Excavator
The excavator system with multiple cameras and stereo cameras generates a viewpoint-converted image to overcome the limited range of conventional laser radars, allowing for enhanced monitoring and safety through wider area surveillance.
Patent Information
- Application Number
- JP2023043083
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2033-05-16
AI Technical Summary
Conventional laser radars on excavators can only detect the distance and direction of a very limited portion of an object's surface, limiting the range of monitoring around the excavator.
An excavator system comprising a lower traveling body, an upper rotating body, and an attachment with multiple pairs of cameras and stereo cameras that acquire images and distance information, generating a viewpoint-converted image displayed on a visible unit to provide a wider range of monitoring.
Enables the excavator to obtain distance and direction information of objects in a broader area around it, enhancing the operator's awareness and safety by providing a comprehensive view of the surroundings.
Smart Images

Figure 0007560163000012 
Figure 0007560163000013 
Figure 0007560163000014
Abstract
Description
[Technical field]
[0001] The present invention relates to a shovel. [Background technology]
[0002] Conventionally, there is known a surroundings monitoring device that uses a laser radar attached to an upper rotating body of a shovel to monitor the surroundings while obtaining the distance and direction of objects present around the shovel relative to the shovel (see, for example, Patent Document 1).
[0003] This surroundings monitoring device determines an object to be a stationary obstacle if the distance and direction of the object relative to the shovel do not change over a predetermined period of time, and determines the object to be a moving obstacle if the distance and direction change. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2008-163719 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, the laser radar described in Patent Document 1 irradiates an object with a single laser beam and detects the distance and direction of the object from the reflected light. Therefore, the laser radar described in Patent Document 1 can only detect the distance between itself and an extremely limited portion of the object surface.
[0006] In view of the above, an object of the present invention is to provide a shovel that can obtain the distance and direction of objects present in a wider range around the shovel relative to the shovel. [Means for solving the problem]
[0007] In order to achieve the above object, a shovel according to an embodiment of the present invention includes a lower traveling body, an upper rotating body rotatably mounted on the lower traveling body, a boom attached to the upper rotating body and included in an attachment, an arm attached to the boom and included in the attachment, and a pair of two each composed of a device for acquiring distance information to a surrounding measurement object and a device for acquiring an image, and a plurality of the pairs are arranged on the upper rotating body. A viewpoint conversion image, which is an image showing the surroundings of the shovel as viewed from above, is generated based on the output of the devices for acquiring the multiple images, and the viewpoint conversion image is displayed on a display unit installed in a position that is easily visible to an operator, and a frame corresponding to an image of an object existing within an overlapping area of the imaging ranges of the devices for acquiring the multiple images is displayed in the viewpoint conversion image. do. Effect of the Invention
[0008] By using the above-mentioned means, the present invention can provide a shovel that can obtain the distance and direction of objects present in a wider range around the shovel relative to the shovel. [Brief description of the drawings]
[0009] [Figure 1] 1 is a block diagram illustrating an example of the configuration of an image generating device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating a configuration example of a shovel on which an image generating device is mounted. [Diagram 3] FIG. 2 is a diagram illustrating an example of a spatial model onto which an input image is projected. [Figure 4] FIG. 2 is a diagram showing an example of the relationship between a spatial model and an image plane to be processed. [Diagram 5] 11 is a diagram for explaining correspondence between coordinates on an input image plane and coordinates on a spatial model. FIG. [Figure 6] 11 is a diagram for explaining correspondence between coordinates performed by a coordinate correspondence means; FIG. [Figure 7] FIG. 13 is a diagram for explaining the action of a group of parallel lines. [Figure 8] 13 is a diagram for explaining the function of the auxiliary line group. FIG. [Figure 9] 13 is a flowchart showing the flow of a processing object image generating process and an output image generating process. [Figure 10] This is an example of the output image (part 1). [Figure 11] FIG. 1 is a top view (part 1) of a shovel on which an image generating device is mounted. [Figure 12] FIG. 1 is a diagram showing input images from three cameras mounted on a shovel and an output image generated using the input images. [Figure 13] 1A and 1B are diagrams for explaining an image disappearance prevention process for preventing an object from disappearing in an overlapping region between the imaging ranges of two cameras. [Figure 14] 13 is a comparison diagram illustrating the difference between the output image shown in FIG. 12 and an output image obtained by applying image loss prevention processing to the output image in FIG. 12. [Figure 15] FIG. 13 is a diagram showing input distance images of three stereo cameras mounted on a shovel and an output distance image generated using the input distance images. [Figure 16] 16 is a comparison diagram illustrating the difference between the output distance image shown in FIG. 15 and the output distance image obtained by applying distance image loss prevention processing to the output distance image in FIG. 15. [Figure 17] 13 is a diagram showing an example of a combined output image obtained by combining an output image with an output distance image; FIG. [Figure 18] FIG. 13 is a diagram showing another example of a combined output image obtained by combining an output image with an output distance image. [Figure 19] FIG. 2 is a partial right side view of a shovel on which an image generating device is mounted. [Figure 20] FIG. 20 is an enlarged view of the protuberance in FIG. 19. [Figure 21] FIG. 13 is a diagram showing an example of an output distance image. [Figure 22] FIG. 13 is a diagram showing an example of an output image. [Figure 23] 13 is a flowchart showing the flow of a first pixel extraction process. [Figure 24] FIG. 2 is a partial right side view of a shovel on which an image generating device is mounted. [Diagram 25] FIG. 25 is an enlarged view of a shallow depression in FIG. 24. [Figure 26] FIG. 13 is a diagram showing an example of an output distance image. [Figure 27] FIG. 13 is a diagram showing an example of an output image. [Figure 28] 13 is a flowchart showing the flow of a second pixel extraction process. [Figure 29] 4 is a flowchart showing a flow of a driving assistance process. [Diagram 30] FIG. 2 is a diagram showing a shovel on which an image generating device is mounted. [Diagram 31] 11A and 11B are comparative diagrams illustrating the difference between a pre-correction output distance image and a corrected output distance image. [Diagram 32] 11 is a comparison diagram (part 1) showing the difference between a pre-correction post-composition output image and a corrected post-composition output image. FIG. [Diagram 33] 13 is a comparison diagram (part 2) showing the difference between a pre-corrected post-composition output image and a corrected post-composition output image. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the best mode for carrying out the present invention will be described with reference to the drawings.
[0011] FIG. 1 is a block diagram illustrating an example of the configuration of an image generating device 100 according to an embodiment of the present invention.
[0012] Image generating device 100 is an example of a work machine surroundings monitoring device that monitors the periphery of a work machine, and is composed of a control unit 1, a camera 2, an input unit 3, a memory unit 4, a display unit 5, and a stereo camera 6. Specifically, image generating device 100 generates an output image based on an input image captured by camera 2 mounted on the work machine and an input distance image output by stereo camera 6, and presents the output image to an operator.
[0013] 2 is a diagram showing a configuration example of a shovel 60 as a work machine on which the image generating device 100 is mounted, and the shovel 60 has an upper rotating body 63 mounted on a crawler-type lower traveling body 61 via a rotating mechanism 62 so as to be freely rotatable about a rotating axis PV. The shovel 60 generates an output image by using distance information in a two-dimensional array.
[0014] The upper rotating body 63 is provided with a cab (operator's room) 64 on its front left side, an excavation attachment E on its front center, and a camera 2 (right side camera 2R, rear camera 2B) and a stereo camera 6 (right side stereo camera 6R, rear stereo camera 6B) on its right side and rear. A display unit 5 is installed in a position that is easily visible to the operator inside the cab 64.
[0015] Next, each component of the image generating device 100 will be described.
[0016] The control unit 1 is a computer equipped with a CPU (Central Processing Unit), RAM (Random Access Memory), ROM (Read Only Memory), NVRAM (Non-Volatile Random Access Memory), etc., and stores programs corresponding to, for example, the coordinate matching means 10, image generation means 11, pixel extraction means 12, distance correction means 13, distance image synthesis means 14, and driving assistance means 15 described below in the ROM or NVRAM, and causes the CPU to execute processing corresponding to each means while using the RAM as a temporary storage area.
[0017] The camera 2 is a device for acquiring an input image showing the surroundings of the excavator 60, and is, for example, a right side camera 2R and a rear camera 2B equipped with imaging elements such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor) that are attached to the right side and rear of the upper rotating body 63 so as to be able to capture images of areas that are blind spots for the operator in the cab 64 (see FIG. 2). The camera 2 may be attached to a position other than the right side and rear of the upper rotating body 63 (for example, the front and left side), and may be equipped with a wide-angle lens or a fisheye lens so as to be able to capture images of a wide range.
[0018] Furthermore, camera 2 acquires an input image in response to a control signal from control unit 1, and outputs the acquired input image to control unit 1. When camera 2 acquires an input image using a fisheye lens or a wide-angle lens, it outputs a corrected input image in which apparent distortion and tilt caused by using such a lens have been corrected to control unit 1, but the input image without correction of the apparent distortion and tilt may be output as is to control unit 1. In that case, control unit 1 corrects the apparent distortion and tilt.
[0019] The input unit 3 is a device that enables an operator to input various pieces of information to the image generating apparatus 100, and is, for example, a touch panel, a button switch, a pointing device, a keyboard, or the like.
[0020] The storage unit 4 is a device for storing various types of information, and is, for example, a hard disk, an optical disk, or a semiconductor memory.
[0021] The display unit 5 is a device for displaying image information, and is, for example, a liquid crystal display or a projector installed in the cab 64 of the shovel 60 (see Figure 2), and displays various images output by the control unit 1.
[0022] The stereo camera 6 is a device for acquiring a two-dimensional array of distance information of objects existing around the excavator 60, and is attached to the right side and rear of the upper rotating body 63 so as to capture images of areas that are blind spots for an operator in the cab 64 (see FIG. 2). The stereo camera 6 may be attached to any one of the front, left side, right side, and rear of the upper rotating body 63, or may be attached to all of the surfaces.
[0023] The stereo camera 6 is a device equipped with the imaging functions of multiple cameras. In this embodiment, the stereo camera 6 is a device that integrally has the imaging functions of two cameras, and includes two sets of imaging mechanisms (combinations of imaging elements and lens mechanisms) and one shared shutter mechanism in one housing. However, the stereo camera 6 may be configured with multiple independent cameras.
[0024] Furthermore, the multiple sets of imaging mechanisms in the stereo camera 6 are arranged at a predetermined interval from each other. In this embodiment, the two sets of imaging mechanisms are arranged side by side at a predetermined interval in the vertical direction. Note that the two sets of imaging mechanisms may be arranged side by side at a predetermined interval in the horizontal direction, or may be arranged side by side at a predetermined interval in each of the vertical direction (vertical direction) and the horizontal direction (horizontal direction).
[0025] Moreover, the stereo camera 6 acquires distance information for each pixel, whereas the camera 2 acquires brightness, hue value, saturation value, etc. for each pixel. In this embodiment, the stereo camera 6 derives the distance between the stereo camera 6 and an object shown in each pixel of an image (hereinafter referred to as a "basic image") output by one of the two imaging mechanisms based on the parallax between the images output by each of the two imaging mechanisms. The stereo camera 6 then generates distance information in a two-dimensional array by substituting the derived distance for the value of each pixel of the basic image, and outputs the information to the control unit 1. Therefore, in the following, the two-dimensional array of distance information by the stereo camera 6 will be referred to as an input distance image and an output distance image in contrast to the input image and output image of the camera 2. Moreover, the resolution (number of pixels) of the input distance image and the output distance image of the stereo camera 6 may be the same as or different from the resolution of the input image and the output image of the camera 2. Moreover, one or more pixels in the input image and the output image of the camera 2 may be associated in advance with one or more pixels in the input distance image and the output distance image of the stereo camera 6. The input distance image may also be generated by the control unit 1 based on a plurality of images output by each imaging mechanism of the stereo camera 6 .
[0026] Furthermore, the input image planes of the multiple imaging mechanisms constituting the stereo camera 6 are preferably parallel to each other, and most preferably form the same plane, because this allows the process of deriving distance from parallax to be performed easily and with high accuracy.
[0027] Furthermore, like camera 2, stereo camera 6 may be mounted at a position other than the right side and rear side of upper rotating body 63 (for example, the front and left side), and a wide-angle lens or fisheye lens may be attached so as to capture a wide range.
[0028] Similarly to camera 2, stereo camera 6 acquires an input distance image in response to a control signal from control unit 1 and outputs the acquired input distance image to control unit 1. Similarly to camera 2, when stereo camera 6 acquires an input distance image using a fisheye lens or a wide-angle lens, it outputs a corrected input distance image in which apparent distortion and tilt caused by using such a lens have been corrected to control unit 1, but the input distance image in which the apparent distortion and tilt have not been corrected may also be output as is to control unit 1. In that case, control unit 1 corrects the apparent distortion and tilt.
[0029] In addition, the image generating device 100 may generate a processing target image based on an input image, and perform image conversion processing on the processing target image to generate an output image that allows the operator to intuitively grasp the positional relationship and distance to surrounding features, and then present the output image to the operator.
[0030] The image generating device 100 performs the same processing on the input distance image. In this case, the processing target image is interpreted as the processing target distance image. The same applies to the following description.
[0031] The "image to be processed" is an image that is generated based on an input image and is subject to image conversion processing (e.g., scale conversion, affine transformation, distortion transformation, viewpoint conversion processing, etc.). For example, when an input image taken by a camera capturing an image of the earth's surface from above and including a horizontal image (e.g., the sky) due to its wide angle of view is used in the image conversion processing, the input image is projected onto a specified spatial model so that the horizontal image is not displayed unnaturally (e.g., so that the sky is not treated as being on the earth's surface), and then the projected image projected onto the spatial model is reprojected onto another two-dimensional plane, resulting in an image suitable for image conversion processing. Note that the image to be processed may be used as it is as an output image without undergoing image conversion processing.
[0032] A "spatial model" is a projection target of an input image, which is composed of one or more planes or curved surfaces, including at least a plane or curved surface other than the target image plane, which is the plane on which the target image is located (for example, a plane parallel to the target image plane, or a plane or curved surface that forms an angle with the target image plane).
[0033] The image generating device 100 may generate an output image by performing image conversion processing on a projected image projected onto the spatial model without generating a processing target image. Also, the projected image may be used as an output image as it is without performing image conversion processing.
[0034] Figure 3 shows an example of a spatial model MD onto which an input image is projected, where Figure 3(A) shows the relationship between the shovel 60 and the spatial model MD when the shovel 60 is viewed from the side, and Figure 3(B) shows the relationship between the shovel 60 and the spatial model MD when the shovel 60 is viewed from above.
[0035] As shown in FIG. 3, the space model MD has a semi-cylindrical shape, and has a flat area R1 inside its bottom surface and a curved area R2 inside its side surface.
[0036] FIG. 4 is a diagram showing an example of the relationship between the spatial model MD and the processing target image plane, and the processing target image plane R3 is, for example, a plane including the planar region R1 of the spatial model MD. For clarity, FIG. 4 shows the spatial model MD in a cylindrical shape, not a semi-cylindrical shape as shown in FIG. 3, but the spatial model MD may be either a semi-cylindrical shape or a cylindrical shape. The same applies to the following figures. As described above, the processing target image plane R3 may be a circular region including the planar region R1 of the spatial model MD, or may be an annular region not including the planar region R1 of the spatial model MD.
[0037] Next, various means included in the control unit 1 will be described.
[0038] The coordinate correspondence means 10 is a means for corresponding the coordinates on the input image plane where the input image captured by the camera 2 is located, the coordinates on the spatial model MD, and the coordinates on the image plane R3 to be processed.For example, based on various parameters related to the camera 2 such as the optical center, focal length, CCD size, optical axis direction vector, camera horizontal vector, projection method, etc. of the camera 2 that are set in advance or input via the input unit 3, and the predetermined mutual positional relationship between the input image plane, the spatial model MD, and the image plane R3 to be processed, the coordinate correspondence means 10 corresponds the coordinates on the input image plane, the coordinates on the spatial model MD, and the coordinates on the image plane R3 to be processed, and stores these correspondences in the input image / spatial model correspondence map 40 and the spatial model / image to be processed correspondence map 41 in the memory unit 4.
[0039] In addition, when the coordinate matching means 10 does not generate the image to be processed, it omits matching between the coordinates on the spatial model MD and the coordinates on the image plane R3 to be processed, and storing this correspondence in the spatial model / image to be processed correspondence map 41.
[0040] The coordinate matching means 10 also performs similar processing on the input distance image output by the stereo camera. In this case, the camera, input image plane, and processing target image plane are replaced with the stereo camera, input distance image plane, and processing target distance image plane. The same applies to the following description.
[0041] The image generation means 11 is a means for generating an output image, and for example, by performing a scale transformation, an affine transformation, or a distortion transformation on the image to be processed, it associates coordinates on the image to be processed plane R3 with coordinates on the output image plane in which the output image is located, stores this correspondence in the image to be processed / output image correspondence map 42 of the memory unit 4, and generates the output image by relating the values of each pixel in the output image (for example, brightness value, hue value, saturation value, etc.) to the values of each pixel in the input image while referring to the input image / spatial model correspondence map 40 and the spatial model / image to be processed correspondence map 41 in which the coordinate correspondence means 10 has stored the values.
[0042] In addition, based on various parameters such as the optical center, focal length, CCD size, optical axis direction vector, camera horizontal direction vector, projection method, etc. of the virtual camera, which are set in advance or input via the input unit 3, the image generation means 11 matches coordinates on the image plane R3 to be processed with coordinates on the output image plane on which the output image is located, stores this correspondence in the image to be processed / output image correspondence map 42 of the memory unit 4, and generates an output image by relating the values of each pixel in the output image (for example, brightness value, hue value, saturation value, etc.) to the values of each pixel in the input image, while referring to the input image / spatial model correspondence map 40 and the spatial model / image to be processed correspondence map 41 in which the coordinate matching means 10 has stored the values.
[0043] The image generating means 11 may generate an output image by changing the scale of the processing target image without using the concept of a virtual camera.
[0044] Furthermore, when the image generating means 11 does not generate a processing target image, it associates coordinates on the spatial model MD with coordinates on the output image plane in accordance with the applied image conversion processing, and generates an output image by relating the value of each pixel in the output image (e.g., luminance value, hue value, saturation value, etc.) with the value of each pixel in the input image while referring to the input image-spatial model correspondence map 40. In this case, the image generating means 11 omits the association between the coordinates on the processing target image plane R3 and the coordinates on the output image plane, and the storage of the correspondence in the processing target image-output image correspondence map 42.
[0045] The image generating means 11 also performs similar processing on the input distance image or the processing target distance image. In this case, the output image plane is interpreted as the output distance image plane. The same applies to the following description.
[0046] The pixel extraction means 12 is a means for extracting pixels that satisfy a predetermined condition from the input distance image of the stereo camera 6. For example, the pixel extraction means 12 extracts pixels that satisfy a predetermined condition from pixels having pixel values that represent the distance between the stereo camera 6 and features around the shovel 60 in the input distance image.
[0047] Specifically, the pixel extraction means 12 extracts pixels where the difference between the plane on which the shovel 60 is located (hereinafter referred to as the "installation surface") and the distance between the stereo camera 6 (hereinafter referred to as the "installation surface distance") is equal to or greater than a predetermined distance. The installation surface may be an inclined surface. The installation surface distance is set in advance for each pixel in the input distance image of the stereo camera 6 based on the installation position and installation angle of the stereo camera 6. The pixel extraction means 12 then corrects the input distance image by replacing the pixel values of the pixels not extracted with a predetermined value (for example, zero as the minimum value) and maintaining the pixel values of the extracted pixels as they are. The pixel extraction means 12 will be described in detail later.
[0048] The distance correction means 13 is a means for correcting distance information acquired by the stereo camera. For example, the distance correction means 13 corrects the value of a pixel extracted by the pixel extraction means 12. Specifically, the distance correction means 13 corrects a pixel value representing the distance between a feature around the shovel 60 and the stereo camera 6 to a value representing the distance between a reference outside the stereo camera 6 and that feature. The distance correction means 13 may also correct a pixel value in an input distance image output by the stereo camera 6 before extraction by the pixel extraction means 12. The distance correction means 13 will be described in detail later.
[0049] The distance image synthesis means 14 is a means for synthesizing an image related to a camera and an image related to a stereo camera. For example, the distance image synthesis means 14 synthesizes an output image generated by the image generation means 11 based on the input image of the camera 2, and an output distance image based on the input distance image of the stereo camera 6. The output distance image is an output distance image after at least one of extraction by the pixel extraction means 12 and correction by the distance correction means 13 has been applied. However, the output distance image may be an output distance image before extraction by the pixel extraction means 12 and correction by the distance correction means 13 have been applied. The distance image synthesis means 14 will be described in detail later.
[0050] The driving support means 15 is a means for supporting the driving of the shovel 60. For example, the driving support means 15 executes a function of supporting the driving of the shovel 60 when it is determined that a predetermined feature exists in the moving direction of the shovel 60.
[0051] "Specified features" include, for example, people such as workers who may collide with the shovel 60, obstacles that may impede the movement of the shovel 60, cliffs, depressions, slopes, holes, etc. that may cause the shovel 60 to slip, fall, or become stranded.
[0052] The function to assist driving (hereinafter referred to as "driving assistance function") includes, for example, outputting an alarm, displaying a warning on the display unit 5, turning on or blinking a warning light, decelerating the shovel 60, limiting the traveling speed of the shovel 60, stopping the traveling of the shovel 60, etc.
[0053] Specifically, when the driving support means 15 determines that there is a cliff in the moving direction (rearward) of the shovel 60 while the shovel 60 is moving (backward), it displays a warning informing the user of the presence of a cliff on the display unit 5. The moving direction of the shovel 60 is detected based on, for example, the operation content (e.g., the operation direction, the operation amount, etc.) of the operating lever.
[0054] In addition, the driving assistance means 15 may reduce the movement (retreat) speed of the shovel 60 as the distance between the shovel 60 and the cliff becomes shorter, and may stop the movement (retreat) of the shovel 60 when the distance between the shovel 60 and the cliff becomes equal to or shorter than a predetermined distance.
[0055] The driving support means 15 also determines whether or not a predetermined feature exists based on the output of the stereo camera 6. For example, when the stereo camera 6 detects a feature having a depth of a predetermined distance or more from the installation surface, the driving support means 15 determines that a depression that may cause the shovel 60 to slide off exists. The driving support means 15 may also determine that a depression that may cause the shovel 60 to slide off exists only when at least one of the actual depth, opening area, width, and depth of the depression calculated based on the input distance image satisfies a predetermined condition. The driving support means 15 may also determine whether or not a depression that may cause the shovel 60 to slide off exists based on an increasing gradient of pixel values along a predetermined direction (movement direction of the shovel 60) in the input distance image.
[0056] Alternatively, when the stereo camera 6 detects an object having a height equal to or greater than a predetermined distance from the installation surface, the driving support means 15 may determine that there is an obstacle that may collide with the shovel 60. The driving support means 15 may also determine whether or not there is an obstacle that may collide with the shovel 60 based on a decreasing gradient of pixel values along a predetermined direction (the moving direction of the shovel 60) in the input distance image.
[0057] Next, an example of a specific process performed by the coordinate association means 10 and the image generation means 11 will be described.
[0058] The coordinate correspondence means 10 can correspond the coordinates on the input image plane to the coordinates on the spatial model using, for example, Hamilton's quaternion.
[0059] Figure 5 is a diagram for explaining the correspondence between coordinates on the input image plane and coordinates on the spatial model, in which the input image plane of camera 2 is represented as a plane in a UVW Cartesian coordinate system with the optical center C of camera 2 as the origin, and the spatial model is represented as a three-dimensional surface in an XYZ Cartesian coordinate system.
[0060] First, the coordinate matching means 10 converts coordinates on the spatial model (coordinates in the XYZ coordinate system) into coordinates on the input image plane (coordinates in the UVW coordinate system) by translating the origin of the XYZ coordinate system to the optical center C (origin of the UVW coordinate system), and then rotating the XYZ coordinate system so that the X axis matches the U axis, the Y axis matches the V axis, and the Z axis matches the -W axis (the sign "-" means that the direction is reversed. This is because in the UVW coordinate system, the direction in front of the camera is the +W direction, and in the XYZ coordinate system, the direction vertically downward is the -Z direction).
[0061] In addition, when there are multiple cameras 2, each camera 2 will have its own individual UVW coordinate system, and the coordinate matching means 10 will translate and rotate the XYZ coordinate system for each of the multiple UVW coordinate systems.
[0062] The above-mentioned transformation is realized by translating the XYZ coordinate system so that the optical center C of camera 2 becomes the origin of the XYZ coordinate system, then rotating the system so that the Z axis coincides with the -W axis, and further rotating the system so that the X axis coincides with the U axis. Therefore, by describing this transformation using a Hamiltonian quaternion, the coordinate correspondence means 10 can combine these two rotations into a single rotation calculation.
[0063] By the way, the rotation of vector A to make it coincide with another vector B corresponds to the process of rotating vector A by the angle formed by vector A and vector B around the normal line of the plane spanned by vector A and vector B as an axis. If this angle is θ, then the dot product of vector A and vector B gives the angle θ as follows:
[0064]
number
[0065] Also, the unit vector N of the normal to the plane spanned by vector A and vector B is given by the cross product of vector A and vector B as
[0066]
number
[0067] In addition, when i, j, and k are imaginary units, the quaternion is
[0068]
number
[0069]
number
[0070]
number
[0071] The quaternion Q can express a three-dimensional vector (a, b, c) with its real component t set to 0 (zero) and its pure imaginary components a, b, and c. It can also express rotational motion around an arbitrary vector axis using the components t, a, b, and c.
[0072] Furthermore, the quaternion Q can express multiple consecutive rotation operations as a single rotation operation by integrating them. For example, when an arbitrary point S (sx, sy, sz) is rotated by an angle θ around an arbitrary unit vector C (l, m, n) as its axis, a point D (ex, ey, ez) can be expressed as follows.
[0073]
number
[0074]
number
[0075] In this embodiment, if the quaternion representing the rotation that makes the line connecting point X' on the X-axis and the origin coincide with the U-axis is Qx, then the quaternion R representing "the rotation that makes the Z-axis coincide with the -W-axis and further the X-axis coincide with the U-axis" is
[0076]
number
[0077] From the above, when any coordinate P on the spatial model (XYZ coordinate system) is expressed as a coordinate on the input image plane (UVW coordinate system), the coordinate P' is
[0078]
number
[0079] After converting the coordinates on the spatial model (XYZ coordinate system) into coordinates on the input image plane (UVW coordinate system), the coordinate matching means 10 calculates the incidence angle α formed by the line segment CP' connecting the optical center C (coordinates in the UVW coordinate system) of the camera 2 and the coordinate P' expressed in the UVW coordinate system of an arbitrary coordinate P on the spatial model, and the optical axis G of the camera 2.
[0080] In addition, the coordinate matching means 10 calculates the deflection angle φ formed by a line segment EP' connecting the intersection E of the plane H and the optical axis G to the coordinate P' and the U' axis on the plane H, and the length of the line segment EP' on the plane H that is parallel to the input image plane R4 (e.g., a CCD surface) of the camera 2 and includes the coordinate P'.
[0081] In a camera optical system, the image height h is usually a function of the incident angle α and focal length f, so the coordinate correspondence means 10 calculates the image height h by selecting an appropriate projection method such as normal projection (h=f tan α), orthogonal projection (h=f sin α), stereographic projection (h=2f tan(α / 2)), equisolid angle projection (h=2f sin(α / 2)), or equidistant projection (h=fα).
[0082] Thereafter, the coordinate correspondence means 10 decomposes the calculated image height h into U and V components on the UV coordinate system using the deflection angle φ, and divides it by a numerical value equivalent to the pixel size per pixel of the input image plane R4, thereby enabling correspondence between the coordinate P (P') on the spatial model MD and the coordinate on the input image plane R4.
[0083] The pixel size per pixel in the U-axis direction of the input image plane R4 is a U The pixel size of one pixel in the V-axis direction of the input image plane R4 is a V Then, the coordinates (u, v) on the input image plane R4 corresponding to the coordinates P (P') on the spatial model MD are
[0084]
number
[0085]
number
[0086] In this way, the coordinate correspondence means 10 corresponds coordinates on the spatial model MD to coordinates on one or more input image planes R4 that exist for each camera, and associates the coordinates on the spatial model MD, the camera identifier, and the coordinates on the input image plane R4 and stores them in the input image-spatial model correspondence map 40.
[0087] In addition, since the coordinate correspondence means 10 calculates the transformation of coordinates using quaternions, it has the advantage of not causing gimbal lock, unlike the case where the transformation of coordinates is calculated using Euler angles. However, the coordinate correspondence means 10 is not limited to the one that calculates the transformation of coordinates using quaternions, and may calculate the transformation of coordinates using Euler angles.
[0088] In addition, when correspondence to coordinates on a plurality of input image planes R4 is possible, the coordinate correspondence means 10 may correspond the coordinate P(P') on the spatial model MD to coordinates on the input image plane R4 related to the camera having the smallest incidence angle α, or may correspond to coordinates on the input image plane R4 selected by the operator.
[0089] Next, a process of reprojecting the coordinates on the curved region R2 (coordinates having a component in the Z-axis direction) among the coordinates on the spatial model MD onto the processing target image plane R3 on the XY plane will be described.
[0090] Figure 6 is a diagram for explaining the correspondence between coordinates by the coordinate correspondence means 10. Figure 6(A) is a diagram showing the correspondence between coordinates on the input image plane R4 of camera 2 that adopts normal projection (h = ftan α) as an example, and coordinates on the spatial model MD. The coordinate correspondence means 10 corresponds the two coordinates by making each of the line segments connecting the coordinates on the input image plane R4 of camera 2 and the coordinates on the spatial model MD corresponding to those coordinates pass through the optical center C of camera 2.
[0091] 6(A), the coordinate matching means 10 matches the coordinate K1 on the input image plane R4 of the camera 2 with the coordinate L1 on the planar region R1 of the spatial model MD, and matches the coordinate K2 on the input image plane R4 of the camera 2 with the coordinate L2 on the curved region R2 of the spatial model MD. At this time, both the line segment K1-L1 and the line segment K2-L2 pass through the optical center C of the camera 2.
[0092] In addition, when the camera 2 employs a projection method other than the normal projection (for example, orthogonal projection, stereoscopic projection, equisolid angle projection, equidistant projection, etc.), the coordinate matching means 10 matches the coordinates K1, K2 on the input image plane R4 of the camera 2 with the coordinates L1, L2 on the spatial model MD in accordance with the respective projection method.
[0093] Specifically, the coordinate matching means 10 matches coordinates on the input image plane with coordinates on the spatial model MD based on a predetermined function (e.g., orthogonal projection (h=fsinα), stereoscopic projection (h=2ftan(α / 2)), equisolid angle projection (h=2fsin(α / 2)), equidistant projection (h=fα), etc.). In this case, the line segment K1-L1 and the line segment K2-L2 do not pass through the optical center C of the camera 2.
[0094] Figure 6(B) is a diagram showing the correspondence between coordinates on the curved region R2 of the spatial model MD and coordinates on the image plane R3 to be processed. The coordinate correspondence means 10 introduces a group of parallel lines PL located on the XZ plane that form an angle β with the image plane R3 to be processed, and corresponds the two coordinates by making both the coordinates on the curved region R2 of the spatial model MD and the coordinates on the image plane R3 to be processed corresponding to those coordinates lie on one of the group of parallel lines PL.
[0095] In the example of FIG. 6(B), the coordinate corresponding means 10 corresponds the coordinate L2 on the curved region R2 of the spatial model MD and the coordinate M2 on the processing target image plane R3 by assuming that these two coordinates lie on a common parallel line.
[0096] The coordinate matching means 10 is capable of matching coordinates on the planar region R1 of the spatial model MD to coordinates on the image plane R3 to be processed using the group of parallel lines PL, in the same manner as the coordinates on the curved region R2. However, in the example of Figure 6(B), since the planar region R1 and the image plane R3 to be processed are a common plane, the coordinate L1 on the planar region R1 of the spatial model MD and the coordinate M1 on the image plane R3 to be processed have the same coordinate value.
[0097] In this way, the coordinate correspondence means 10 corresponds coordinates on the spatial model MD with coordinates on the image plane R3 to be processed, and associates the coordinates on the spatial model MD with the coordinates on the image plane R3 to be processed and stores them in the spatial model / image to be processed correspondence map 41.
[0098] Figure 6(C) is a diagram showing the correspondence between coordinates on the image plane R3 to be processed and coordinates on the output image plane R5 of the virtual camera 2V, which adopts normal projection (h = ftan α) as an example, and the image generation means 11 matches the two coordinates by making each of the line segments connecting the coordinates on the output image plane R5 of the virtual camera 2V and the corresponding coordinates on the image plane R3 to be processed pass through the optical center CV of the virtual camera 2V.
[0099] 6(C), the image generating means 11 associates the coordinate N1 on the output image plane R5 of the virtual camera 2V with the coordinate M1 on the processing target image plane R3 (planar region R1 of the spatial model MD), and associates the coordinate N2 on the output image plane R5 of the virtual camera 2V with the coordinate M2 on the processing target image plane R3. At this time, both the line segment M1-N1 and the line segment M2-N2 pass through the optical center CV of the virtual camera 2V.
[0100] In addition, when the virtual camera 2V employs a projection method other than normal projection (e.g., orthogonal projection, stereoscopic projection, equisolid angle projection, equidistant projection, etc.), the image generating means 11 corresponds the coordinates N1, N2 on the output image plane R5 of the virtual camera 2V to the coordinates M1, M2 on the image plane R3 to be processed in accordance with the respective projection method.
[0101] Specifically, the image generating means 11 associates coordinates on the output image plane R5 with coordinates on the processing target image plane R3 based on a predetermined function (e.g., orthogonal projection (h=fsinα), stereoscopic projection (h=2ftan(α / 2)), equisolid angle projection (h=2fsin(α / 2)), equidistant projection (h=fα), etc.). In this case, the line segments M1-N1 and M2-N2 do not pass through the optical center CV of the virtual camera 2V.
[0102] In this way, the image generation means 11 matches coordinates on the output image plane R5 with coordinates on the image plane R3 to be processed, associates the coordinates on the output image plane R5 with the coordinates on the image plane R3 to be processed and stores them in the image to be processed / output image correspondence map 42, and generates an output image by matching the values of each pixel in the output image with the values of each pixel in the input image while referring to the input image / spatial model correspondence map 40 and spatial model / image to be processed correspondence map 41 stored by the coordinate matching means 10.
[0103] Note that Figure 6(D) is a combination of Figures 6(A) to 6(C) and shows the relative positions of the camera 2, the virtual camera 2V, the planar region R1 and curved region R2 of the spatial model MD, and the image plane R3 to be processed.
[0104] Next, with reference to FIG. 7, the function of the group of parallel lines PL introduced by the coordinate correspondence means 10 to correspond the coordinates on the spatial model MD to the coordinates on the image plane R3 to be processed will be described.
[0105] FIG. 7(A) is a diagram showing a case where an angle β is formed between the parallel line group PL located on the XZ plane and the image plane R3 to be processed, and FIG. 7(B) is a diagram showing a case where an angle β1 (β1>β) is formed between the parallel line group PL located on the XZ plane and the image plane R3 to be processed. Also, each of the coordinates La to Ld on the curved area R2 of the spatial model MD in FIG. 7(A) and FIG. 7(B) corresponds to each of the coordinates Ma to Md on the image plane R3 to be processed, and each interval between the coordinates La to Ld in FIG. 7(A) is equal to each interval between the coordinates La to Ld in FIG. 7(B). Note that the parallel line group PL is assumed to exist on the XZ plane for the purpose of explanation, but in reality, it is assumed to exist so as to extend radially from all points on the Z axis toward the image plane R3 to be processed. Note that the Z axis in this case is referred to as the "reprojection axis".
[0106] 7(A) and 7(B), the intervals between the coordinates Ma to Md on the processing target image plane R3 decrease linearly as the angle between the parallel lines PL and the processing target image plane R3 increases (the intervals decrease uniformly regardless of the distance between the curved region R2 of the spatial model MD and each of the coordinates Ma to Md.) On the other hand, in the example of Fig. 7, the coordinates on the planar region R1 of the spatial model MD are not converted to coordinates on the processing target image plane R3, so the intervals between the coordinates do not change.
[0107] The change in the spacing between these coordinate groups means that only the image portion on the output image plane R5 (see Figure 6) that corresponds to the image projected onto the curved region R2 of the spatial model MD is linearly enlarged or reduced.
[0108] Next, with reference to FIG. 8, an alternative example of the group of parallel lines PL introduced by the coordinate correspondence means 10 to correspond between the coordinates on the spatial model MD and the coordinates on the image plane R3 to be processed will be described.
[0109] 8(A) is a diagram showing a case where all of the auxiliary lines AL located on the XZ plane extend from a starting point T1 on the Z axis toward the image plane R3 to be processed, and FIG. 8(B) is a diagram showing a case where all of the auxiliary lines AL extend from a starting point T2 (T2>T1) on the Z axis toward the image plane R3 to be processed. In addition, each of the coordinates La to Ld on the curved area R2 of the spatial model MD in FIG. 8(A) and FIG. 8(B) corresponds to each of the coordinates Ma to Md on the image plane R3 to be processed (in the example of FIG. 8(A), the coordinates Mc and Md are outside the area of the image plane R3 to be processed and are not shown), and each interval between the coordinates La to Ld in FIG. 8(A) is equal to each interval between the coordinates La to Ld in FIG. 8(B). Note that the auxiliary lines AL are assumed to exist on the XZ plane for the purpose of explanation, but in reality, they are assumed to exist so as to extend radially from any point on the Z axis toward the image plane R3 to be processed. As in FIG. 7, the Z axis in this case will be referred to as the "reprojection axis."
[0110] 8(A) and 8(B), the intervals between each of the coordinates Ma to Md on the processing target image plane R3 decrease nonlinearly as the distance (height) between the start point of the auxiliary line group AL and the origin O increases (the greater the distance between the curved region R2 of the spatial model MD and each of the coordinates Ma to Md, the greater the degree of decrease in each interval). On the other hand, in the example of Fig. 8, the coordinate group on the planar region R1 of the spatial model MD is not converted into the coordinate group on the processing target image plane R3, so the intervals between the coordinate group do not change.
[0111] The change in the spacing between these coordinate groups means that, as with the group of parallel lines PL, only the image portion on the output image plane R5 (see Figure 6) that corresponds to the image projected onto the curved region R2 of the spatial model MD is nonlinearly enlarged or reduced.
[0112] In this way, the image generating device 100 can linearly or nonlinearly enlarge or reduce the image portion (e.g., a horizontal image) of the output image corresponding to the image projected onto the curved region R2 of the spatial model MD without affecting the image portion (e.g., a road surface image) of the output image corresponding to the image projected onto the planar region R1 of the spatial model MD.Therefore, it is possible to quickly and flexibly enlarge or reduce the features located around the shovel 60 (features in an image when the surroundings are viewed horizontally from the shovel 60) without affecting the road surface image in the vicinity of the shovel 60 (a virtual image when the shovel 60 is viewed from directly above), thereby improving the visibility of the blind spot area of the shovel 60.
[0113] Next, the process by which the image generating device 100 generates an image to be processed (hereinafter referred to as "image to be processed generation process") and the process by which the image generating device 100 generates an output image using the generated image to be processed (hereinafter referred to as "output image generation process") will be described with reference to Fig. 9. Fig. 9 is a flowchart showing the flow of the image to be processed generation process (steps S1 to S3) and the output image generation process (steps S4 to S6). It is assumed that the positions of the camera 2 (input image plane R4), the spatial model (planar region R1 and curved region R2), and the image to be processed plane R3 have been determined in advance.
[0114] First, the control unit 1 causes the coordinate association means 10 to associate coordinates on the processing target image plane R3 with coordinates on the spatial model MD (step S1).
[0115] Specifically, the coordinate correspondence means 10 acquires an angle formed between the group of parallel lines PL and the processing target image plane R3, calculates a point where one of the group of parallel lines PL extending from a coordinate on the processing target image plane R3 intersects with the curved region R2 of the spatial model MD, derives coordinates on the curved region R2 corresponding to the calculated point as a coordinate on the curved region R2 corresponding to that coordinate on the processing target image plane R3, and stores the correspondence in the spatial model / processing target image correspondence map 41. Note that the angle formed between the group of parallel lines PL and the processing target image plane R3 may be a value stored in advance in the storage unit 4 or the like, or may be a value dynamically input by the operator via the input unit 3.
[0116] Furthermore, when a coordinate on the image plane R3 to be processed coincides with a coordinate on the planar region R1 of the spatial model MD, the coordinate correspondence means 10 derives the coordinate on the planar region R1 as a coordinate corresponding to the coordinate on the image plane R3 to be processed, and stores this correspondence in the spatial model / image to be processed correspondence map 41.
[0117] After that, the control unit 1 causes the coordinate association means 10 to associate one coordinate on the spatial model MD derived by the above-mentioned process with a coordinate on the input image plane R4 (step S2).
[0118] Specifically, the coordinate correspondence means 10 acquires the coordinates of the optical center C of the camera 2 that employs normal projection (h=f tan α), calculates the point at which a line segment extending from a coordinate on the spatial model MD and passing through the optical center C intersects with the input image plane R4, derives the coordinates on the input image plane R4 corresponding to the calculated point as a coordinate on the input image plane R4 that corresponds to that coordinate on the spatial model MD, and stores this correspondence in the input image / spatial model correspondence map 40.
[0119] Thereafter, the control unit 1 determines whether or not all coordinates on the image plane R3 to be processed have been matched with coordinates on the spatial model MD and coordinates on the input image plane R4 (step S3), and if it determines that all coordinates have not yet been matched (NO in step S3), it repeats the processing of steps S1 and S2.
[0120] On the other hand, if the control unit 1 determines that all coordinates have been matched (YES in step S3), it terminates the processing target image generation process and starts the output image generation process, and the image generation means 11 matches the coordinates on the processing target image plane R3 with the coordinates on the output image plane R5 (step S4).
[0121] Specifically, the image generation means 11 generates an output image by applying a scale transformation, an affine transformation, or a distortion transformation to the image to be processed, and stores in the image to be processed / output image correspondence map 42 the correspondence relationship between coordinates on the image to be processed plane R3 and coordinates on the output image plane R5, which is determined by the content of the applied scale transformation, affine transformation, or distortion transformation.
[0122] Alternatively, when the image generation means 11 generates an output image using the virtual camera 2V, it may calculate coordinates on the output image plane R5 from coordinates on the processing target image plane R3 in accordance with the projection method adopted, and store the correspondence in the processing target image / output image correspondence map 42.
[0123] Alternatively, when the image generation means 11 generates an output image using a virtual camera 2V that employs normal projection (h=f tan α), it may acquire the coordinates of the optical center CV of the virtual camera 2V, calculate the point at which a line segment extending from a coordinate on the output image plane R5 and passing through the optical center CV intersects with the image plane R3 to be processed, derive the coordinates on the image plane R3 to be processed corresponding to the calculated point as a coordinate on the image plane R3 to be processed corresponding to that coordinate on the output image plane R5, and store the correspondence in the image to be processed / output image correspondence map 42.
[0124] Thereafter, the control unit 1, using the image generation means 11, traces the correspondence between coordinates on the input image plane R4 and coordinates on the spatial model MD, the correspondence between coordinates on the spatial model MD and coordinates on the image plane R3 to be processed, and the correspondence between coordinates on the image plane R3 to be processed and coordinates on the output image plane R5 while referring to the input image / spatial model correspondence map 40, the spatial model / image to be processed correspondence map 41, and the image to be processed / output image correspondence map 42, and obtains values (e.g., brightness values, hue values, saturation values, etc.) held by coordinates on the input image plane R4 corresponding to each coordinate on the output image plane R5, and adopts the obtained values as the values of each corresponding coordinate on the output image plane R5 (step S5). In addition, when multiple coordinates on multiple input image planes R4 correspond to one coordinate on the output image plane R5, the image generation means 11 may derive a statistical value (e.g., average, maximum, minimum, intermediate, etc.) based on the values of each of the multiple coordinates on the multiple input image planes R4, and adopt that statistical value as the value of that coordinate on the output image plane R5.
[0125] Thereafter, the control unit 1 determines whether all coordinate values on the output image plane R5 have been matched to coordinate values on the input image plane R4 (step S6), and if it determines that all coordinate values have not yet been matched (NO in step S6), it repeats the processing of steps S4 and S5.
[0126] On the other hand, if the control unit 1 determines that all coordinate values have been associated (YES in step S6), it generates an output image and ends this series of processes.
[0127] In addition, when the image generating device 100 does not generate an image to be processed, it omits the processing target image generation process, and replaces the "coordinates on the processing target image plane" in step S4 of the output image generation process with "coordinates on the spatial model."
[0128] With the above configuration, the image generating device 100 can generate a processing target image and an output image that enable the operator to intuitively grasp the positional relationship between the shovel 60 and the features around the shovel 60.
[0129] Furthermore, by performing coordinate matching from the image plane R3 to be processed via the spatial model MD back to the input image plane R4, the image generating device 100 can reliably match each coordinate on the image plane R3 to be processed with one or more coordinates on the input image plane R4, and can quickly generate a better quality image to be processed than when coordinate matching is performed in the order from the input image plane R4 via the spatial model MD to the image plane R3 to be processed (in this case, each coordinate on the input image plane R4 can be reliably matched with one or more coordinates on the image plane R3 to be processed, but there may be cases where some of the coordinates on the image plane R3 to be processed cannot be matched with any coordinates on the input image plane R4, in which case it may be necessary to perform interpolation processing or the like on some of the coordinates on the image plane R3 to be processed).
[0130] Furthermore, when enlarging or reducing only the image corresponding to the curved region R2 of the spatial model MD, the image generating device 100 can achieve the desired enlargement or reduction by simply changing the angle formed between the group of parallel lines PL and the target image plane R3 and rewriting only the portion of the spatial model / target image correspondence map 41 that relates to the curved region R2, without rewriting the contents of the input image / spatial model correspondence map 40.
[0131] Furthermore, when changing the appearance of the output image, the image generating device 100 can generate the desired output image (a scale-transformed image, an affine-transformed image, or a distorted image) simply by changing the values of various parameters related to the scale transformation, affine transformation, or distorted transformation and rewriting the target image / output image correspondence map 42, without rewriting the contents of the input image / spatial model correspondence map 40 and the spatial model / target image correspondence map 41.
[0132] Similarly, when changing the viewpoint of the output image, the image generating device 100 can generate an output image viewed from the desired viewpoint (viewpoint converted image) simply by changing the values of various parameters of the virtual camera 2V and rewriting the target image / output image correspondence map 42, without rewriting the contents of the input image / spatial model correspondence map 40 and the spatial model / target image correspondence map 41.
[0133] FIG. 10 is a display example when an output image generated using input images from two cameras 2 (the right side camera 2R and the rear camera 2B) mounted on the excavator 60 is displayed on the display unit 5. In FIG.
[0134] The image generating device 100 projects the input images from the two cameras 2 onto the planar region R1 and curved region R2 of the spatial model MD, and then reprojects them onto the image plane R3 to be processed to generate an image to be processed.The image generating device 100 generates an output image by performing image transformation processing (e.g., scale transformation, affine transformation, distortion transformation, viewpoint transformation processing, etc.) on the generated image to be processed, and simultaneously displays an image of the area near the shovel 60 looking down from the sky (image in the planar region R1) and an image of the surroundings viewed horizontally from the shovel 60 (image in the image plane R3 to be processed).
[0135] When the image generating device 100 does not generate a processing target image, the output image is generated by performing image conversion processing (for example, viewpoint conversion processing) on the image projected onto the space model MD.
[0136] Moreover, the output image is cropped into a circle so that an image of the shovel 60 performing a turning operation can be displayed naturally, and the center CTR of the circle is generated so that it is on the cylindrical central axis of the spatial model MD and on the turning axis PV of the shovel 60, and is displayed so as to rotate about the center CTR in accordance with the turning operation of the shovel 60. In this case, the cylindrical central axis of the spatial model MD may or may not coincide with the reprojection axis.
[0137] The radius of the spatial model MD is, for example, 5 meters, and the angle formed by the group of parallel lines PL with the image plane R3 to be processed, or the starting height of the group of auxiliary lines AL, can be set so that when an object (for example, a worker) is located at a position away from the center of rotation of the shovel 60 by the maximum reach distance of the excavation attachment E (for example, 12 meters), the object is displayed sufficiently large (for example, 7 millimeters or more) on the display unit 5.
[0138] Furthermore, the output image may be arranged so that the CG image of the shovel 60 coincides with the upper part of the screen of the display unit 5 and the center of rotation coincides with the center CTR. This is to make it easier to understand the positional relationship between the shovel 60 and the features appearing in the output image. Note that the output image may be arranged so that a frame image including various information such as the direction is placed around it.
[0139] Next, the output image generated by the image generating device 100 will be described in detail with reference to FIGS.
[0140] FIG. 11 is a top view of a shovel 60 equipped with an image generating device 100. In the embodiment shown in FIG. 11, the shovel 60 is equipped with three cameras 2 (a left side camera 2L, a right side camera 2R, and a rearward camera 2B) and three stereo cameras 6 (a left side stereo camera 6L, a right side stereo camera 6R, and a rearward stereo camera 6B). Areas CL, CR, and CB shown by dashed lines in FIG. 11 indicate the imaging ranges of the left side camera 2L, the right side camera 2R, and the rearward camera 2B, respectively. Areas ZL, ZR, and ZB shown by dotted lines in FIG. 11 indicate the imaging ranges of the left side stereo camera 6L, the right side stereo camera 6R, and the rearward stereo camera 6B, respectively.
[0141] In this embodiment, the imaging range of the stereo camera 6 is narrower than that of the camera 2, but the imaging range of the stereo camera 6 may be the same as or wider than that of the camera 2. In addition, the imaging range of the stereo camera 6 is located near the shovel 60 within the imaging range of the camera 2, but may be in an area farther from the shovel 60.
[0142] FIG. 12 is a diagram showing input images from each of the three cameras 2 mounted on the shovel 60 and an output image generated using these input images.
[0143] The image generating device 100 projects the input images of the three cameras 2 onto the planar region R1 and the curved region R2 of the spatial model MD, and then reprojects them onto the processing target image plane R3 to generate a processing target image. The image generating device 100 also generates an output image by performing image conversion processing (e.g., scale conversion, affine transformation, distortion conversion, viewpoint conversion processing, etc.) on the generated processing target image. As a result, the image generating device 100 simultaneously displays an image of the vicinity of the shovel 60 looking down from the sky (image in the planar region R1) and an image of the surroundings viewed horizontally from the shovel 60 (image in the processing target image plane R3). The image displayed in the center of the output image is a CG image 60CG of the shovel 60.
[0144] In FIG. 12, the input image of the right side camera 2R and the input image of the rear camera 2B each capture a person within the overlapping area between the imaging range of the right side camera 2R and the imaging range of the rear camera 2B (see area R10 surrounded by a dotted line in the input image of the right side camera 2R, and area R11 surrounded by a dotted line in the input image of the rear camera 2B).
[0145] However, if coordinates on the output image plane are mapped to coordinates on the input image plane for the camera with the smallest angle of incidence, the output image will lose people in the overlap area (see area R12 surrounded by a dotted line in the output image).
[0146] Therefore, in the output image portion corresponding to the overlapping area, the image generating device 100 mixes an area to which coordinates on the input image plane of the rear camera 2B correspond with an area to which coordinates on the input image plane of the right side camera 2R correspond, thereby preventing objects in the overlapping area from disappearing.
[0147] FIG. 13 is a diagram for explaining an image disappearance prevention process for preventing an object from disappearing in an overlapping region between the imaging ranges of the two cameras.
[0148] FIG. 13A is a diagram showing an output image portion corresponding to an overlapping region between the imaging range of the right side camera 2R and the imaging range of the rear camera 2B, which corresponds to a rectangular region R13 indicated by a dotted line in FIG.
[0149] Also, in Figure 13 (A), the area PR1 filled in gray is the image area in which the input image portion of the rear camera 2B is located, and each coordinate on the output image plane corresponding to area PR1 is associated with a coordinate on the input image plane of the rear camera 2B.
[0150] On the other hand, the area PR2 filled in white is the image area in which the input image portion of the right side camera 2R is placed, and each coordinate on the output image plane corresponding to area PR2 is associated with a coordinate on the input image plane of the right side camera 2R.
[0151] In this embodiment, areas PR1 and PR2 are arranged to form a striped pattern, and the boundary line between areas PR1 and PR2 arranged alternately in stripes is determined by concentric circles on a horizontal plane centered on the rotation center of the shovel 60.
[0152] Fig. 13(B) is a top view showing the state of the spatial region diagonally to the right rear of the shovel 60, and shows the current state of the spatial region captured by both the rear camera 2B and the right side camera 2R. Fig. 13(B) also shows that a rod-shaped three-dimensional object OB exists diagonally to the right rear of the shovel 60.
[0153] FIG. 13C shows a part of an output image generated based on input images obtained by actually capturing images of the spatial region shown in FIG. 13B with the rear camera 2B and the right side camera 2R.
[0154] Specifically, image OB1 represents an image of the three-dimensional object OB in the input image of rear camera 2B extended in the extension direction of the line connecting rear camera 2B and the three-dimensional object OB by viewpoint conversion for generating the road surface image. That is, image OB1 is a part of the image of the three-dimensional object OB displayed when the road surface image in the output image portion is generated using the input image of rear camera 2B.
[0155] Moreover, image OB2 represents an image of the three-dimensional object OB in the input image of the right side camera 2R extended in the extension direction of the line connecting the right side camera 2R and the three-dimensional object OB by viewpoint conversion for generating the road surface image. In other words, image OB2 is a part of the image of the three-dimensional object OB displayed when the road surface image in the output image portion is generated using the input image of the right side camera 2R.
[0156] In this way, the image generating device 100 mixes, in the overlapping region, an area PR1 to which coordinates on the input image plane of the rear camera 2B correspond and an area PR2 to which coordinates on the input image plane of the right side camera 2R correspond. As a result, the image generating device 100 displays both the images OB1 and OB2 relating to one three-dimensional object OB on the output image, thereby preventing the three-dimensional object OB from disappearing from the output image.
[0157] Fig. 14 is a comparison diagram showing the difference between the output image in Fig. 12 and an output image obtained by applying image loss prevention processing to the output image in Fig. 12, where Fig. 14(A) shows the output image in Fig. 12 and Fig. 14(B) shows the output image after the image loss prevention processing has been applied. In Fig. 14(A) in area R12 surrounded by a dashed line, a person has disappeared, whereas in Fig. 14(B) in area R14 surrounded by a dashed line, the person is displayed without disappearing.
[0158] Next, the output distance image generated by the image generating device 100 will be described with reference to Fig. 15. Fig. 15 is a diagram showing input distance images of the three stereo cameras 6 mounted on a shovel 60 and an output distance image generated using the input distance images.
[0159] The image generating device 100 projects the input distance images of the three stereo cameras 6 onto the planar region R1 and curved region R2 of the spatial model MD, and then reprojects them onto the target distance image plane R3 to generate a target distance image. The image generating device 100 also generates an output distance image by performing image conversion processing (e.g., scale conversion, affine transformation, distortion conversion, viewpoint conversion processing, etc.) on the generated target distance image. The image generating device 100 then simultaneously displays a distance image of the vicinity of the shovel 60 looking down from the sky (distance image in the planar region R1) and a distance image of the surroundings viewed horizontally from the shovel 60 (image in the target distance image plane R3). The image displayed in the center of the output distance image is a CG image 60CG of the shovel 60.
[0160] 15 are displayed so that the smaller the pixel value (distance from the stereo camera 6) the whiter (lighter) the image, and the larger the pixel value the blacker (darker) the image. The pixel values (distances) of the parts corresponding to the road surface and the upper rotating body 63 are set to the maximum value (infinity) in order to improve the visibility of features existing around the shovel 60 in the output distance image. That is, the parts corresponding to the road surface and the upper rotating body 63 are displayed in black.
[0161] In FIG. 15, the input distance image of the right side stereo camera 6R and the input distance image of the rear stereo camera 6B each capture a person within the overlapping area between the imaging range of the right side stereo camera 6R and the imaging range of the rear stereo camera 6B (see area R15 surrounded by a dotted line in the input distance image of the right side stereo camera 6R, and area R16 surrounded by a dotted line in the input distance image of the rear stereo camera 6B).
[0162] However, if coordinates on the output distance image plane are matched to coordinates on the input distance image plane for the closest stereo camera, the output distance image will lose people in the overlap area (see area R17 surrounded by a dotted line in the output distance image).
[0163] Therefore, in the output distance image portion corresponding to the overlapping region, the image generating device 100 associates the coordinates on the input distance image plane of the rear stereo camera 6B and the coordinates on the input distance image plane of the right side stereo camera 6R, whichever has the smaller pixel value (distance), with the coordinates on the output distance image plane. As a result, the image generating device 100 displays two distance images of one three-dimensional object on the output distance image, preventing the three-dimensional object from disappearing from the output distance image. Note that, hereinafter, this process of preventing the disappearance of an object in the overlapping region of the imaging ranges of the two stereo cameras is referred to as distance image disappearance prevention process.
[0164] Figure 16 is a comparison diagram showing the difference between the output distance image of Figure 15 and the output distance image obtained by applying distance image disappearance prevention processing to the output distance image of Figure 15, with Fig. 16(A) showing the output image of Figure 15 and Fig. 16(B) showing the output distance image after applying the distance image disappearance prevention processing. In area R17 surrounded by a dashed line in Figure 16(A), the person has disappeared, whereas in area R17 surrounded by a dashed line in Figure 16(B), the person is still displayed and not disappeared.
[0165] Next, the process in which the image generating device 100 synthesizes an output distance image with an output image (hereinafter referred to as "distance image synthesis process") will be described with reference to FIGS.
[0166] FIG. 17 is a diagram showing an example of a combined output image obtained by combining an output image with an output distance image.
[0167] The distance image synthesis means 14 of the image generating device 100 converts the pixel values (distances) of the extracted pixels extracted by the pixel extraction means 12 into luminance values, hue values, saturation values, etc., as shown in FIG. 16(B), for example, and displays the extracted pixels superimposed on the output image shown in FIG. 14(B). The extracted pixels displayed superimposed have a color according to the distance from the stereo camera 6, for example, and change the color stepwise or steplessly, such as red, yellow, green, and blue, as the distance increases. The extracted pixels displayed superimposed have a luminance according to the distance from the stereo camera 6, and the luminance may be decreased stepwise or steplessly as the distance increases. The areas EX1 to EX5 in FIG. 17 are areas formed by the extracted pixels, and are hereinafter referred to as feature areas.
[0168] The distance image synthesis means 14 may also superimpose distance information of the feature regions EX1 to EX5 formed by a predetermined number or more of adjacent extracted pixels on the output image. Specifically, the distance image synthesis means 14 superimposes, for example, the minimum, maximum, average, median, or the like of the pixel values (distance) of the pixels constituting the feature region EX1 on the output image as a representative value representing the distance to the feature region EX1. Note that the distance image synthesis means 14 may superimpose the representative value on the output image only if the representative value is less than a predetermined value. This is to make it easier to recognize features that are relatively close to the shovel 60, i.e. features with a relatively high possibility of contact.
[0169] FIG. 18 is a diagram showing another example of a combined output image obtained by combining an output image with an output distance image.
[0170] In Fig. 18, the distance image synthesis means 14, instead of changing the color or brightness of the extracted pixels and displaying them in a superimposed manner, superimposes and displays frames RF1 to RF5 corresponding to the feature regions EX1 to EX5 in Fig. 17, respectively. Note that the line type of the frame may be any type, including dotted lines, solid lines, dashed lines, and dashed dotted lines, and the shape of the frame may be any type, including rectangular, circular, elliptical, and polygonal.
[0171] The distance image synthesis means 14 may also superimpose distance information corresponding to each of the frames RF1 to RF5 on the output image. Specifically, the distance image synthesis means 14 superimposes, for example, the minimum, maximum, average, median, or the like of pixel values (distances) of pixels constituting the feature area EX1 corresponding to frame RF1 on the output image as a representative value of the distance corresponding to frame RF1. Note that the distance image synthesis means 14 may superimpose and display the representative value on the output image only when the representative value is less than a predetermined value. This is to make it easier to recognize features that are relatively close to the shovel 60, i.e., features with a relatively high possibility of contact.
[0172] The distance image synthesis means 14 may also change the color of the frame in accordance with the corresponding distance information. Specifically, the distance image synthesis means 14 changes the color of the frame stepwise or continuously, such as from red to yellow to green to blue, as the distance increases. Note that the distance image synthesis means 14 may also decrease the brightness of the frame stepwise or continuously as the distance increases.
[0173] By viewing the composite output image as described above, the operator of the shovel 60 can more easily recognize the positions of features present around the shovel 60 and the distances to those features. In addition, the operator of the shovel 60 can more easily recognize the positions of features present in areas that are blind spots as viewed from the operator and the distances to those features.
[0174] With the above configuration, the image generating device 100 synthesizes an output distance image generated based on an input distance image captured by the stereo camera 6 onto an output image generated based on an input image captured by the camera 2. Therefore, the image generating device 100 can measure the distance to each feature present in a relatively wide area around the shovel 60 with relatively high resolution. As a result, the image generating device 100 can generate a highly reliable synthesized output image.
[0175] Moreover, the camera 2 and the stereo camera 6 are disposed so that their respective imaging ranges surround the shovel 60. Therefore, the image generating device 100 can generate a composite output image that shows the surroundings of the shovel 60 as viewed from above. As a result, the operator of the shovel 60 can more easily recognize the positions of features present around the shovel 60 and the distances to those features.
[0176] Furthermore, the image generating device 100 applies the same image conversion process to the processing target distance image as the image conversion process applied to the processing target image, so that the image generating device 100 can easily associate coordinates in the output image plane with coordinates in the output distance image plane.
[0177] Furthermore, the image generating device 100 changes the color of the extracted pixel or frame stepwise or steplessly according to the distance from the stereo camera 6, that is, according to the distance from the shovel 60. Therefore, the operator of the shovel 60 can intuitively judge the presence or absence of a risk of contact.
[0178] Furthermore, the image generating device 100 acquires distance information in a two-dimensional array using the stereo camera 6. Therefore, the image generating device 100 is less susceptible to the effects of heat sources, light sources, light absorbing materials, and the like in the imaging range, compared to when the image generating device 100 acquires distance information in a two-dimensional array using a distance image sensor configured with a light projecting LED and a light receiving CCD.
[0179] 19 to 23, a process (hereinafter referred to as a "first pixel extraction process") in which the image generating device 100 extracts pixels that satisfy a predetermined condition from the input distance image and corrects the input distance image will be described. In this embodiment, the pixel value in the input distance image captured by the rear stereo camera 6B is equal to or smaller than the installation surface distance.
[0180] Fig. 19 is a partial right side view of a shovel 60 equipped with an image generating device 100. In the embodiment shown in Fig. 19, the shovel 60 is equipped with one camera 2 (rear camera 2B) and one stereo camera 6 (rear stereo camera 6B). Note that an area ZB indicated by a dotted line in Fig. 19 indicates the imaging range of the rear stereo camera 6B.
[0181] Fig. 19 also shows that an object P3 extending vertically upward from the ground and a raised portion P4 on the ground are present behind the shovel 60. Fig. 19 also shows that the rear stereo camera 6B detects a distance E1a to the object P3 and a distance E2a to the raised portion P4.
[0182] FIG. 19 also shows that if the object P3 and the protruding portion P4 were not present, the rear stereo camera 6B would have detected the installation surface distances E1 and E2 instead of the distances E1a and E2a.
[0183] Figure 19 also shows that the difference (E1-E1a) between the installation surface distance E1 and the distance E1a is distance E1b (hereinafter, the difference when the installation surface distance E1 is greater than the distance E1a is referred to as the "first differential distance"), and the difference (E2-E2a) between the installation surface distance E2 and the distance E2a is the first differential distance E2b.
[0184] Fig. 20 is an enlarged view of the protruding portion P4 in Fig. 19. As shown in Figs. 19 and 20, a line segment connecting a point on the protruding portion P4 as viewed from the rear stereo camera 6B and the rear stereo camera 6B forms an angle (hereinafter referred to as "installation surface angle") γ4 with the installation surface. In this case, the height (hereinafter referred to as "estimated height") H1b of the protruding portion P4 from the installation surface is expressed as the first difference distance E2b × sin(γ4). Similarly to the installation surface distance, the installation surface angle is set in advance for each pixel in the input distance image of the rear stereo camera 6B based on the installation position and installation angle of the rear stereo camera 6B.
[0185] Moreover, the pixel value in the input distance image captured by the rear stereo camera 6B represents the distance between the feature and the rear stereo camera 6B. Therefore, the estimated height of the feature can be obtained by multiplying a first difference distance, which is the difference between the value of each pixel in the input distance image and the installation surface distance corresponding to each pixel, by the sine of the installation surface angle corresponding to each pixel. In this embodiment, the estimated height H1b of the protuberance P4 can be obtained by multiplying the first difference distance E2b by sin(γ4).
[0186] Incidentally, as described above, the pixel values in the input distance image captured by the rear stereo camera 6B represent the distance between the feature and the rear stereo camera 6B. Therefore, when the input distance image is subjected to a process that changes the color or brightness according to the distance from the rear stereo camera 6B to generate an output distance image, the visibility of the output distance image may be impaired if the pixel values in the input distance image are used as is. Specifically, the output distance image represents the ground (installation surface) with a color or brightness that changes stepwise with increasing distance from the shovel 60, which may make it difficult to discern the presence of the object P3 and the protuberance P4.
[0187] Therefore, the pixel extraction means 12 of the image generating device 100 extracts pixels that satisfy a predetermined condition from the input distance image of the rear stereo camera 6B, for example, and corrects the input distance image based on the extraction result. Specifically, the pixel extraction means 12 extracts pixels having a pixel value smaller than the installation surface distance corresponding to each pixel from among the pixels in the input distance image. Then, the pixel extraction means 12 replaces the pixel value of a pixel having a pixel value equal to the installation surface distance with a predetermined value (for example, zero as the minimum value). On the other hand, the pixel extraction means 12 maintains the pixel value of a pixel having a pixel value smaller than the installation surface distance as it is. In this case, the pixel value equal to the installation surface distance may be a value having a predetermined width.
[0188] Furthermore, the pixel extraction means 12 may extract pixels whose first difference distance is equal to or greater than a predetermined distance from among the pixels in the input distance image. In this case, the pixel extraction means 12 replaces the pixel value of a pixel whose first difference distance is less than the predetermined distance with a predetermined value (for example, zero as the minimum value), and maintains the pixel value of a pixel whose first difference distance is equal to or greater than the predetermined distance. For example, as shown in FIG. 20, the pixel extraction means 12 sets the pixel value of a pixel corresponding to the first difference distance E2b to zero because the first difference distance E2b is less than the predetermined distance E2b1. Note that the predetermined distance E2b1 is a distance corresponding to a predetermined height H1. Alternatively, as shown in FIG. 20, the pixel extraction means 12 may determine that the installation surface height H1b is less than the predetermined height H1, and replace the pixel value of a pixel corresponding to the installation surface height H1b with zero. Alternatively, the pixel extraction means 12 may determine that the ratio of the first difference distance E2b to the installation surface distance E2 (hereinafter, the ratio when the installation surface distance E2 is greater than the distance E2a is referred to as the "first difference ratio") is less than a predetermined ratio, and replace the pixel value of the corresponding pixel with zero. Note that the predetermined distance, predetermined height, predetermined ratio, etc. are set in advance for each pixel, pixel row, or pixel column in the input distance image of the rear stereo camera 6B based on the installation position and installation angle of the rear stereo camera 6B. Also, the predetermined height and predetermined ratio may be common to all pixels in the input distance image.
[0189] Fig. 21 shows an example of an output distance image of the rear stereo camera 6B. Fig. 21(A) shows an output distance image when the pixel values of all pixels in the input distance image are used as is without extraction by the pixel extraction means 12. Fig. 21(B) shows an output distance image when the pixel extraction means 12 extracts, from each pixel in the input distance image, pixels having pixel values smaller than the installation surface distance corresponding to each pixel. Fig. 21(C) shows an output distance image when the pixel extraction means 12 extracts, from each pixel in the input distance image, pixels whose first difference distance is equal to or greater than a predetermined distance or whose estimated height is equal to or greater than a predetermined height.
[0190] As shown in Figure 21 (A), when pixel extraction is not performed, the output distance image represents the installation surface in a manner in which the brightness gradually decreases with increasing distance from the shovel 60, making the presence of the object P3 and the protrusion P4 difficult to discern.
[0191] On the other hand, as shown in Fig. 21(B), when pixels having pixel values smaller than the installation surface distance are extracted from among the pixels in the input distance image, the output distance image improves the visibility of features present on the installation surface. Specifically, the output distance image of Fig. 21(B) replaces the pixel values of all pixels having pixel values equal to the installation surface distance with zero, thereby making the color and brightness of the installation surface uniform regardless of the distance from the shovel 60. As a result, the output distance image of Fig. 21(B) makes the distance images of the object P3 and the protruding portion P4 stand out from the distance image of the installation surface, improving their visibility.
[0192] Furthermore, as shown in FIG. 21(C), when extracting pixels whose first difference distance is equal to or greater than a predetermined distance among the pixels in the input distance image, the output distance image improves the visibility of features whose installation surface height is equal to or greater than a predetermined height. Specifically, the output distance image of FIG. 21(C) sets the pixel values of all pixels whose first difference distance is less than the predetermined distance to zero, so that the color and brightness of features (including the installation surface) whose installation surface height is less than a predetermined height are uniform regardless of the distance from the shovel 60. As a result, the output distance image of FIG. 21(C) makes the distance image of the protuberance P4, whose installation surface height H1b is less than the predetermined height H1, and the distance image of the installation surface have a single color and brightness. And, the output distance image of FIG. 21(C) makes only the distance image of the object P3, whose installation surface height is equal to or greater than the predetermined height H1, stand out from the other distance images, thereby improving its visibility.
[0193] In the output distance image of Fig. 21(C), the pixel values of pixels corresponding to the base part of the object P3 (part where the installation surface height is less than the predetermined height H1) are set to zero, and the distance image of that part and the distance image of the installation surface are made into a single color and brightness. However, pixels corresponding to parts determined to be part of the object P3 may maintain their pixel values in the input distance image as they are, even if the first difference distance is less than the predetermined distance or the installation surface height is less than the predetermined height H1. Whether a particular pixel belongs to part of the distance image of the object P3 can be determined, for example, based on the first difference distance or the installation surface height related to surrounding pixels and the first difference distance or the installation surface height related to the particular pixel.
[0194] Fig. 22 shows examples of output images from rear camera 2B. Fig. 22(A) shows an output image when the output distance image of Fig. 21(A) is superimposed. Fig. 22(B) shows an output image when the output distance image of Fig. 21(B) is superimposed. Fig. 22(C) shows an output image when the output distance image of Fig. 21(C) is superimposed.
[0195] As shown in Figure 22(A), the output image superimposed with the output distance image of Figure 21(A) shows the installation surface in a manner in which the brightness gradually decreases with increasing distance from the shovel 60, and the presence of the object P3 and the protrusion P4 cannot be highlighted.
[0196] On the other hand, as shown in FIG. 22(B), an output image in which an output distance image in which the color and brightness of the installation surface are uniform regardless of the distance from the shovel 60 is superimposed makes the images of the object P3 and the protuberance P4 stand out from the image of the installation surface, improving their visibility. In addition, the output image in FIG. 22(B) displays the values of the distance between the object P3 and the protuberance P4 and the rear stereo camera 6B in a superimposed manner. This makes it possible to further highlight the presence of the object P3 and the protuberance P4. Note that, for example, a value corrected by the distance correction means 13 is used as the value of the distance between the object P3 and the rear stereo camera 6B. Also, the value of the distance between the object P3 and the rear stereo camera 6B may be superimposed and displayed only when it is equal to or less than a predetermined value. This is to further highlight the presence of features close to the shovel 60. Also, the brightness or color of the value of the distance (pixel value) is determined according to the magnitude of the distance (pixel value). For example, the color of the value of the distance (pixel value) changes from purple to blue, green, yellow, red, etc. as the distance (pixel value) becomes smaller. The distance value may be the minimum value among the pixel values of the pixels included in the distance image area of the object P3 in the input distance image extracted by the pixel extraction means 12. The same applies to the distance value between the protrusion P4 and the rear stereo camera 6B.
[0197] Furthermore, as shown in FIG. 22(C), the output image in which an output distance image in which the color and brightness of the feature (including the installation surface) whose installation surface height is less than a predetermined height is uniform regardless of the distance from the shovel 60 is superimposed improves the visibility of the object P3. Specifically, the output image highlights only the upper part of the image of the object P3 whose installation surface height is equal to or greater than a predetermined height from other images, improving its visibility. Also, the output image in FIG. 22(C) superimposes and displays only the value of the distance between the object P3 whose installation surface height is equal to or greater than a predetermined height and the rear stereo camera 6B. This makes it possible to further highlight only the presence of the object P3 whose installation surface height is equal to or greater than a predetermined height.
[0198] Furthermore, in the above description, image generating device 100 superimposes the output distance image of rear stereo camera 6B on the output image of rear camera 2B and displays it on display unit 5. However, image generating device 100 may display only the output distance image on display unit 5, or may display the output distance image and the output image side by side on display unit 5.
[0199] Furthermore, instead of or in addition to displaying the distance values between the object P3 and the protrusion P4 and the rear stereo camera 6B, the image generating device 100 may display a frame as shown in FIG. 18.
[0200] Furthermore, the image generating device 100 may display an indicator (not shown) such as a bar-shaped indicator with a distance scale indicating the relationship between distance (pixel value) and color or brightness on the output distance image or at an end of the output image.
[0201] Next, the flow of the first pixel extraction process will be described with reference to Fig. 23. Fig. 23 is a flowchart showing the flow of the first pixel extraction process. The pixel extraction means 12 of the image generating device 100 executes this first pixel extraction process, for example, every time an input distance image is acquired.
[0202] First, the pixel extraction means 12 reads out and acquires the installation surface distance for one pixel (hereinafter, referred to as the "target pixel") in the input distance image from a ROM or the like (step S11). The pixel extraction means 12 may also read out and acquire the installation surface angle from a ROM or the like.
[0203] After that, the pixel extraction means 12 calculates the first difference distance by subtracting the pixel value of the target pixel from the installation surface distance (step S12). Note that the pixel extraction means 12 may calculate the first difference ratio based on the calculated first difference distance and the installation surface distance, or may calculate the estimated height based on the calculated first difference distance and the installation surface angle.
[0204] Thereafter, the pixel extraction means 12 compares the calculated first difference distance with a predetermined distance stored in a ROM or the like (step S13). Note that the pixel extraction means 12 may compare the calculated first difference ratio with a predetermined ratio stored in a ROM or the like, or may compare the calculated estimated height with a predetermined height stored in a ROM or the like.
[0205] If the first difference distance is equal to or greater than the predetermined distance (YES in step S13), the pixel extraction means 12 extracts the target pixel as a pixel whose current pixel value is to be maintained as is. The same applies to the case where the first difference ratio is equal to or greater than the predetermined ratio or the estimated height is equal to or greater than the predetermined height.
[0206] On the other hand, if the first difference distance is less than the predetermined distance (NO in step S13), the pixel extraction means 12 does not extract the target pixel as a pixel that maintains its current pixel value as is. Specifically, the pixel extraction means 12 replaces the pixel value of the target pixel with a predetermined value stored in a ROM or the like (step S14). The same applies when the first difference ratio is less than the predetermined ratio or when the estimated height is less than the predetermined height.
[0207] In the above embodiment, the process of replacing the pixel values of the target pixels that were not extracted with a predetermined value is performed when it is determined whether or not to extract each target pixel, but it may also be performed all at once after it is determined whether or not to extract multiple or all of the target pixels.
[0208] Thereafter, the pixel extracting means 12 judges whether the determination as to whether extraction is necessary has been performed for all pixels in the acquired input distance image (step S15).
[0209] When it is determined that the determination as to whether extraction is necessary has not yet been performed for all pixels (NO in step S15), the pixel extracting means 12 executes the processes in and after step S11 for another target pixel.
[0210] When it is determined that the determination as to whether extraction is necessary has been performed for all pixels (YES in step S15), the pixel extracting means 12 completes the current first pixel extraction process.
[0211] With the above configuration, the image generating device 100 can improve the visibility of the distance image relating to features that the shovel 60 may come into contact with by omitting detailed display of the distance image relating to the installation surface.
[0212] In addition, the image generating device 100 can improve the visibility of features (e.g., workers) whose installation surface height is equal to or higher than a predetermined height by omitting detailed display of features whose installation surface height is less than a predetermined height.
[0213] As a result, the image generation device 100 can more reliably prevent the shovel 60 from colliding with a feature.
[0214] 24 to 28, another example of the process (hereinafter referred to as "second pixel extraction process") in which the image generating device 100 extracts pixels that satisfy a predetermined condition from the input distance image and corrects the input distance image will be described. In this embodiment, the pixel value in the input distance image captured by the rear stereo camera 6B is equal to or greater than the installation surface distance.
[0215] Fig. 24 is a partial right side view of a shovel 60 equipped with the image generating device 100, and corresponds to Fig. 19. In the embodiment shown in Fig. 24, the shovel 60 is equipped with one camera 2 (rear camera 2B) and one stereo camera 6 (rear stereo camera 6B). Note that an area ZB indicated by a dotted line in Fig. 24 indicates the imaging range of the rear stereo camera 6B.
[0216] Fig. 24 also shows that a shallow depression PK1 and a deep depression (cliff) PK2 exist in the ground behind the shovel 60. Fig. 24 also shows that the rear stereo camera 6B detects a distance E3a to the bottom of the shallow depression PK1 and a distance E4a to the bottom of the deep depression PK2.
[0217] FIG. 24 also shows that if the shallow recess PK1 and the deep recess PK2 did not exist, the rear stereo camera 6B would have detected the installation surface distances E3 and E4 instead of the distances E3a and E4a.
[0218] Figure 24 also shows that the difference between distance E3a and installation surface distance E3 (E3a-E3) is distance E3b (hereinafter, the difference when the installation surface distance E3 is smaller than distance E3a is referred to as the "second differential distance"), and the difference between distance E4a and installation surface distance E4 (E4a-E4) is the second differential distance E4b.
[0219] Fig. 25 is an enlarged view of the shallow depression PK1 in Fig. 24. As shown in Fig. 24 and Fig. 25, a line segment connecting the bottom point of the shallow depression PK1 as viewed from the rear stereo camera 6B and the rear stereo camera 6B forms an installation surface angle γ5 with the installation surface. In this case, the depth DP1b of the shallow depression PK1 from the installation surface (hereinafter referred to as the "estimated depth") is expressed as the second difference distance E3b × sin(γ5).
[0220] Moreover, the pixel value in the input distance image captured by the rear stereo camera 6B represents the distance between the feature and the rear stereo camera 6B. Therefore, the estimated depth of the feature can be obtained by multiplying the second difference distance, which is the difference between the value of each pixel in the input distance image and the installation surface distance corresponding to each pixel, by the sine of the installation surface angle corresponding to each pixel. In this embodiment, the estimated depth DP1b of the shallow depression PK1 can be obtained by multiplying the second difference distance E3b by sin(γ5).
[0221] Incidentally, as described above, the pixel values in the input distance image captured by the rear stereo camera 6B represent the distance between the feature and the rear stereo camera 6B. Therefore, when the input distance image is subjected to a process that changes the color or brightness according to the distance from the rear stereo camera 6B to generate an output distance image, the visibility of the output distance image may be impaired if the pixel values in the input distance image are used as is. Specifically, the output distance image represents the ground (installation surface) with a color or brightness that changes stepwise with increasing distance from the shovel 60, which may make it difficult to discern the presence of the shallow depression PK1 and the deep depression PK2.
[0222] Therefore, the pixel extraction means 12 of the image generating device 100 extracts pixels that satisfy a predetermined condition from the input distance image of the rear stereo camera 6B, for example, and corrects the input distance image based on the extraction result. Specifically, the pixel extraction means 12 extracts pixels having a pixel value greater than the installation surface distance corresponding to each pixel from among the pixels in the input distance image. Then, the pixel extraction means 12 replaces the pixel value of a pixel having a pixel value equal to the installation surface distance with a predetermined value (for example, zero as the minimum value). On the other hand, the pixel extraction means 12 maintains the pixel value of a pixel having a pixel value greater than the installation surface distance as it is. In this case, the pixel value equal to the installation surface distance may be a value having a predetermined width.
[0223] Furthermore, the pixel extraction means 12 may extract pixels whose second difference distance is equal to or greater than a predetermined distance from among the pixels in the input distance image. In this case, the pixel extraction means 12 replaces the pixel value of the pixel whose second difference distance is less than the predetermined distance with a predetermined value (for example, zero as the minimum value), and maintains the pixel value of the pixel whose second difference distance is equal to or greater than the predetermined distance. For example, as shown in FIG. 25, the pixel extraction means 12 sets the pixel value of the pixel corresponding to the second difference distance E3b to zero because the second difference distance E3b is less than the predetermined distance E3b1. Note that the predetermined distance E3b1 is a distance corresponding to the predetermined depth DP1. Alternatively, as shown in FIG. 25, the pixel extraction means 12 may determine that the installation surface depth DP1b is less than the predetermined depth DP1, and replace the pixel value of the pixel corresponding to the installation surface depth DP1b with zero. Alternatively, the pixel extraction means 12 may determine that the ratio of the second difference distance E3b to the distance E3a (hereinafter, the ratio when the installation surface distance E3 is smaller than the distance E3a is referred to as the "second difference ratio") is less than a predetermined ratio, and replace the pixel value of the corresponding pixel with zero. Note that the predetermined distance, predetermined depth, predetermined ratio, etc. are set in advance for each pixel, pixel row, or pixel column in the input distance image of the rear stereo camera 6B based on the installation position and installation angle of the rear stereo camera 6B. Also, the predetermined depth and predetermined ratio may be common to all pixels in the input distance image.
[0224] Fig. 26 shows an example of an output distance image of the rear stereo camera 6B. Fig. 26(A) shows an output distance image in the case where the pixel values of all pixels in the input distance image are used as they are without extraction by the pixel extraction means 12. Fig. 26(B) shows an output distance image in the case where the pixel extraction means 12 extracts, from among the pixels in the input distance image, pixels having pixel values greater than the installation surface distance corresponding to each pixel. Fig. 26(C) shows an output distance image in the case where the pixel extraction means 12 extracts, from among the pixels in the input distance image, pixels whose second difference distance is equal to or greater than a predetermined distance or whose estimated depth is equal to or greater than a predetermined depth.
[0225] As shown in Figure 26 (A), when pixel extraction is not performed, the output distance image represents the installation surface in a manner in which the brightness gradually decreases with increasing distance from the shovel 60, making it difficult to discern the presence of the shallow depression PK1 and the deep depression PK2.
[0226] On the other hand, as shown in Fig. 26(B), when pixels having pixel values greater than the installation surface distance are extracted from among the pixels in the input distance image, the output distance image improves the visibility of the depressions present below the installation surface. Specifically, the output distance image of Fig. 26(B) replaces the pixel values of all pixels having pixel values equal to the installation surface distance with zero, thereby making the color and brightness of the installation surface uniform regardless of the distance from the shovel 60. As a result, the output distance image of Fig. 26(B) makes the distance images of the shallow depressions PK1 and deep depressions PK2 stand out from the distance image of the installation surface, improving their visibility.
[0227] Furthermore, as shown in FIG. 26(C), when extracting pixels whose second difference distance is equal to or greater than a predetermined distance among the pixels in the input distance image, the output distance image improves the visibility of features whose installation surface depth is equal to or greater than a predetermined depth. Specifically, the output distance image of FIG. 26(C) sets the pixel values of all pixels whose second difference distance is less than the predetermined distance to zero, so that the color and brightness of features (including the installation surface) whose installation surface depth is less than the predetermined depth are uniform regardless of the distance from the shovel 60. As a result, the output distance image of FIG. 26(C) makes the distance image of the shallow depression PK1, whose installation surface depth DP1b is less than the predetermined depth DP1, and the distance image of the installation surface have a single color and brightness. And, the output distance image of FIG. 26(C) makes only the distance image of the deep depression PK2, whose installation surface depth is equal to or greater than the predetermined depth DP1, stand out from the other distance images, improving its visibility.
[0228] In the output distance image of Fig. 26(C), the pixel values of pixels corresponding to the edge portion of the deep recess PK2 (portion where the installation surface depth is less than the predetermined depth DP1) are set to zero, and the distance image of that portion and the distance image of the installation surface are made into a single color and brightness. However, pixels corresponding to portions determined to be part of the deep recess PK2 may maintain their pixel values in the input distance image as they are, even if the second difference distance is less than the predetermined distance or the installation surface depth is less than the predetermined depth DP1. Whether a particular pixel belongs to part of the distance image of the deep recess PK2 can be determined, for example, based on the second difference distance or installation surface depth of surrounding pixels and the second difference distance or installation surface depth of the particular pixel.
[0229] Fig. 27 shows examples of output images from rear camera 2B. Fig. 27(A) shows an output image when the output distance image of Fig. 26(A) is superimposed. Fig. 27(B) shows an output image when the output distance image of Fig. 26(B) is superimposed. Fig. 27(C) shows an output image when the output distance image of Fig. 26(C) is superimposed.
[0230] As shown in Figure 27(A), the output image superimposed on the output distance image of Figure 26(A) represents the installation surface in a manner in which the brightness gradually decreases with increasing distance from the shovel 60, and the presence of the shallow depression PK1 and the deep depression PK2 cannot be highlighted.
[0231] On the other hand, as shown in FIG. 27(B), an output image in which an output distance image in which the color and brightness of the installation surface are uniform regardless of the distance from the shovel 60 is superimposed makes the images of the shallow depression PK1 and the deep depression PK2 stand out from the image of the installation surface, improving their visibility. In addition, the output image in FIG. 27(B) displays the values of the distance between each of the shallow depression PK1 and the deep depression PK2 and the rear stereo camera 6B in a superimposed manner. This makes it possible to further highlight the presence of the shallow depression PK1 and the deep depression PK2. Note that, for example, a value corrected by the distance correction means 13 is used as the value of the distance between the shallow depression PK1 and the rear stereo camera 6B. Also, the value of the distance between the shallow depression PK1 and the rear stereo camera 6B may be superimposed and displayed only when it is less than a predetermined value. This is to further highlight the presence of depressions close to the shovel 60. Also, the brightness or color of the value of the distance (pixel value) is determined according to the magnitude of the distance (pixel value). For example, the color of the distance (pixel value) value changes from purple to blue, green, yellow, red, etc. as the distance (pixel value) becomes smaller. The distance value may be the minimum value of the pixel values of the pixels included in the distance image area of the shallow depression PK1 in the input distance image extracted by the pixel extraction means 12. The same applies to the value of the distance between the deep depression PK2 and the rear stereo camera 6B.
[0232] Furthermore, as shown in FIG. 27(C), an output image in which an output distance image in which the color and brightness of features (including the installation surface) whose installation surface depth is less than a predetermined depth are uniform regardless of the distance from the shovel 60 is superimposed improves the visibility of the deep depression PK2. Specifically, the output image highlights only the image of the deep depression PK2 whose installation surface depth is equal to or greater than a predetermined depth from other images, improving its visibility. Also, the output image in FIG. 27(C) superimposes and displays only the value of the distance between the deep depression PK2 whose installation surface depth is equal to or greater than a predetermined depth and the rear stereo camera 6B. This makes it possible to further highlight only the presence of the deep depression PK2 whose installation surface depth is equal to or greater than a predetermined depth.
[0233] Furthermore, in the above description, image generating device 100 superimposes the output distance image of rear stereo camera 6B on the output image of rear camera 2B and displays it on display unit 5. However, image generating device 100 may display only the output distance image on display unit 5, or may display the output distance image and the output image side by side on display unit 5.
[0234] In addition, the image generating device 100 may display a frame as shown in FIG. 18 instead of or in addition to displaying the distance values between each of the shallow depression PK1 and the deep depression PK2 and the rear stereo camera 6B.
[0235] Next, the flow of the second pixel extraction process will be described with reference to Fig. 28. Fig. 28 is a flowchart showing the flow of the second pixel extraction process. The pixel extraction means 12 of the image generating device 100 executes this second pixel extraction process, for example, every time an input distance image is acquired.
[0236] First, the pixel extraction means 12 reads out and acquires the installation surface distance for one pixel (hereinafter, referred to as the "target pixel") in the input distance image from a ROM or the like (step S21). The pixel extraction means 12 may also read out and acquire the installation surface angle from a ROM or the like.
[0237] After that, the pixel extraction means 12 calculates a second difference distance by subtracting the installation surface distance from the pixel value of the target pixel (step S22). Note that the pixel extraction means 12 may calculate a second difference ratio based on the calculated second difference distance and the pixel value of the target pixel, or may calculate an estimated depth based on the calculated second difference distance and the installation surface angle.
[0238] Thereafter, the pixel extraction means 12 compares the calculated second difference distance with a predetermined distance stored in a ROM or the like (step S23). Note that the pixel extraction means 12 may compare the calculated second difference ratio with a predetermined ratio stored in a ROM or the like, or may compare the calculated estimated depth with a predetermined depth stored in a ROM or the like.
[0239] If the second difference distance is equal to or greater than the predetermined distance (YES in step S23), the pixel extraction means 12 extracts the target pixel as a pixel whose current pixel value is to be maintained as is. The same applies to the case where the second difference ratio is equal to or greater than the predetermined ratio or the estimated depth is equal to or greater than the predetermined depth.
[0240] On the other hand, if the second difference distance is less than the predetermined distance (NO in step S23), the pixel extraction means 12 does not extract the target pixel as a pixel that maintains the current pixel value as it is. Specifically, the pixel extraction means 12 replaces the pixel value of the target pixel with a predetermined value stored in a ROM or the like (step S24). The same applies when the second difference ratio is less than the predetermined ratio or when the estimated depth is less than the predetermined depth.
[0241] The process of replacing the pixel values of the non-extracted target pixels with a predetermined value may be performed collectively after determining whether or not extraction is required for a plurality of or all of the target pixels.
[0242] Thereafter, the pixel extracting means 12 judges whether the determination as to whether extraction is necessary has been performed for all pixels in the acquired input distance image (step S25).
[0243] When it is determined that the determination as to whether extraction is necessary has not yet been performed for all pixels (NO in step S25), the pixel extracting means 12 executes the processes in and after step S21 for another target pixel.
[0244] When it is determined that the determination as to whether extraction is necessary has been performed for all pixels (YES in step S25), the pixel extracting means 12 completes this second pixel extraction process.
[0245] With the above configuration, the image generating device 100 can improve the visibility of the distance image of depressions (e.g., roadsides, cliffs, etc.) that may cause the shovel 60 to slip by omitting detailed display of the distance image related to the installation surface.
[0246] Furthermore, the image generating device 100 can improve the visibility of depressions whose installation surface depth is equal to or greater than a predetermined depth by omitting detailed display of depressions whose installation surface depth is less than a predetermined depth.
[0247] As a result, the image generating device 100 can more reliably prevent the shovel 60 from sliding down into the depression.
[0248] Furthermore, in the above, the first pixel extraction process and the second pixel extraction process are described separately, but the two pixel extraction processes may be combined.
[0249] Next, a process in which the driving support means 15 executes a driving support function (hereinafter, referred to as "driving support process") will be described with reference to Fig. 29. Fig. 29 is a flowchart showing the flow of the driving support process, and the driving support means 15 executes this driving support process repeatedly at a predetermined cycle while the shovel 60 is traveling.
[0250] First, the driving support means 15 detects the moving direction of the shovel 60 based on the operation direction of a traveling operation lever (not shown) of the shovel 60 (step S31).
[0251] After that, the driving support means 15 judges whether or not a predetermined feature exists in the moving direction of the shovel 60 (step S32). In this embodiment, the driving support means 15 judges whether or not a depression that may cause the shovel 60 to slip exists behind the retreating shovel 60, based on the input distance image acquired by the rear stereo camera 6B.
[0252] When it is determined that there is a depression that may cause the shovel 60 to slide (YES in step S32), the driving assistance means 15 executes a driving assistance function (step S33). In this embodiment, the driving assistance means 15 sounds an alarm and displays a warning message on the display unit 5 notifying that a depression exists. In addition, the driving assistance means 15 may reduce the backward movement speed of the shovel 60 as the distance to the depression becomes shorter, or may stop the shovel 60 when the distance to the depression falls below a predetermined value.
[0253] On the other hand, when it is determined that there is no depression that may cause the shovel 60 to slide (NO in step S32), the driving assistance means 15 ends the current driving assistance process without executing the driving assistance function.
[0254] With the above configuration, the image generating device 100 can automatically determine the presence or absence of a specified feature based on the output of the stereo camera 6, and execute a driving assistance function as necessary, thereby further improving the safety of operating the shovel 60.
[0255] Next, the process in which the image generating device 100 corrects the pixel values (distances) of the input distance image (hereinafter referred to as "distance correction process") will be described with reference to FIGS. 30 to 33.
[0256] Fig. 30 shows a shovel 60 equipped with an image generating device 100, with Fig. 30(A) being a top view and Fig. 30(B) being a partial right side view. In the embodiment shown in Fig. 30, the shovel 60 is equipped with one camera 2 (rear camera 2B) and one stereo camera 6 (rear stereo camera 6B). Note that an area CB indicated by a dashed dotted line in Fig. 30 indicates the imaging range of the rear camera 2B. Also, an area ZB indicated by a dotted line in Fig. 30 indicates the imaging range of the rear stereo camera 6B.
[0257] As shown in FIG. 30, there are two objects P1 and P2 extending vertically upward from the ground behind the shovel 60. The two objects P1 and P2 are rod-shaped objects of different heights and exist in different directions when viewed from the rear stereo camera 6B. Specifically, as shown in FIG. 30(B), the height of the object P1 is lower than the height of the object P2. However, the shortest distance between each of the two objects P1 and P2 and the rear stereo camera 6B is the same, that is, distance D. This is because the lower object P1 exists closer to the shovel 60 than the higher object P2.
[0258] Also, as shown in FIG. 30(B), the line segment connecting the closest point on the object P1 as viewed from the rear stereo camera 6B and the rear stereo camera 6B forms an angle γ1 with the horizontal plane. Similarly, the line segment connecting the closest point on the object P2 as viewed from the rear stereo camera 6B and the rear stereo camera 6B forms an angle γ2 with the horizontal plane. In this case, the horizontal distance D1 between the object P1 and the plane including the rear surface of the shovel 60 is expressed as D×cos(γ1), and the horizontal distance D2 between the object P2 and the plane including the rear surface of the shovel 60 is expressed as D×cos(γ2). Note that the horizontal distance D2 is greater than the horizontal distance D1.
[0259] The pixel values in the input distance image captured by the rear stereo camera 6B represent the distance between the feature and the rear stereo camera 6B. Therefore, if the pixel values in the input distance image are used as is, in a process that changes the display color or brightness according to the distance from the rear stereo camera 6B, the top of the object P1 and the top of the object P2 will be displayed with the same color or brightness. This display may cause the operator to mistakenly recognize that the object P1 and the object P2 are at the same distance from the rear surface of the shovel 60, even if the object P1 is closer to the shovel 60 than the object P2, as described above.
[0260] This situation occurs because the rear stereo camera 6B captures images diagonally downward while attached to the top of the upper rotating body 63. That is, the distance recognized by the operator is the horizontal distance from the shovel 60, whereas the distance acquired by the stereo camera 6 is the linear distance from the stereo camera 6. The rear stereo camera 6B is attached to the top of the upper rotating body 63 so as to protect the sensor from contact with surrounding objects.
[0261] Therefore, the distance correction means 13 of the image generating device 100 corrects, for example, the pixel values representing the distance between each of the objects P1, P2 and the rear stereo camera 6B to pixel values representing the horizontal distance between each of the objects P1, P2 and a plane including the rear surface of the shovel 60.
[0262] Specifically, the distance correction means 13 derives the angle γ formed between a line segment connecting the rear stereo camera 6B and an arbitrary point on the object P1 and a horizontal plane from the coordinates of a pixel in the input distance image corresponding to the arbitrary point on the object P1 as seen by the rear stereo camera 6B. Since the mounting position and mounting angle of the rear stereo camera 6B are known, the distance correction means 13 can derive the angle γ from the coordinates of that pixel.
[0263] Then, the distance correction means 13 multiplies the cosine of angle γ, cos(γ), derived from the coordinates of the pixel corresponding to the arbitrary point on the feature by the pixel value of the pixel, i.e., the distance between the rear stereo camera 6B and the arbitrary point on the object P1. In this way, the distance correction means 13 calculates the horizontal distance between the rear stereo camera 6B and the arbitrary point on the object P1, and replaces the pixel value of the pixel corresponding to the arbitrary point with the calculated horizontal distance.
[0264] Similarly, the distance correction means 13 derives the angle γ formed between the horizontal plane and a line segment connecting the rear stereo camera 6B and an arbitrary point on the object P2. Then, the cosine of the angle γ, cos(γ), is multiplied by the pixel value, i.e., the distance between the rear stereo camera 6B and the arbitrary point on the object P2. Then, the horizontal distance between the rear stereo camera 6B and the arbitrary point on the object P2 is calculated, and the pixel value of the pixel corresponding to the arbitrary point is replaced with the calculated horizontal distance.
[0265] Here, the effect of the correction by the distance correcting means 13 will be described with reference to FIGS.
[0266] Figure 31 is a comparison diagram showing the difference between an output distance image based on an input distance image that has not been subjected to distance correction processing (hereinafter referred to as the "pre-corrected output distance image") and an output distance image based on an input distance image that has been subjected to distance correction processing (hereinafter referred to as the "corrected output distance image"), with Figure 31(A) showing the pre-corrected output distance image and Figure 31(B) showing the corrected output distance image. Note that in this embodiment, pixel extraction processing has already been performed on the input distance image.
[0267] Moreover, Figure 32 is a comparison diagram showing the difference between a synthesized output image (hereinafter referred to as the "pre-corrected synthesized output image") in which an output image generated based on the input image of the rear camera 2B is synthesized with a pre-corrected output distance image, and a synthesized output image (hereinafter referred to as the "corrected synthesized output image") in which a corrected output distance image is synthesized with that output image, where Figure 32(A) shows the pre-corrected synthesized output image and Figure 32(B) shows the corrected synthesized output image.
[0268] 31(A) and 32(A), in the pre-correction output distance image and the pre-correction post-combination output image, objects P1 and P2 are displayed in similar colors. Specifically, for both objects P1 and P2, the closer to the top, the whiter (lighter) the object is displayed, and the closer to the bottom, the blacker (darker) the object is displayed. For this reason, it is difficult for the operator to determine which object is closer to the shovel 60.
[0269] In contrast, as shown in Figures 31(B) and 32(B), in the corrected output distance image and the corrected combined output image, the objects P1 and P2 are displayed in different colors. Specifically, the object P1 is displayed generally light, and the object P2 is displayed generally dark. Therefore, the operator can easily recognize that the object P1 is closer to the shovel 60 than the object P2.
[0270] FIG. 33 is another example of a comparison diagram showing the difference between a pre-corrected combined output image and a corrected combined output image, and shows an example in which frames are displayed in a superimposed manner.
[0271] As shown in Figure 33 (A), in the output image after pre-correction synthesis, when the minimum pixel value of the pixels contained in a feature area is adopted as the representative value of that feature area, both objects P1 and P2 are displayed as being one meter away from the shovel 60.
[0272] 33(B), the corrected combined output image displays horizontal distances D1, D2 between objects P1, P2 and a plane including the rear surface of the shovel 60. That is, it is displayed that object P1 is 1 meter away from the rear surface of the shovel 60, and object P2 is 1.5 meters away from the rear surface of the shovel 60. Therefore, the operator can easily recognize that object P1 is closer to the shovel 60 than object P2.
[0273] With the above configuration, the image generating device 100 corrects pixel values in the input distance image captured by the stereo camera 6 so that the pixel values represent the horizontal distance from the shovel 60. As a result, the image generating device 100 can convey the state of the surrounding features to the operator in an easier-to-understand manner.
[0274] In the above embodiment, the distance correction means 13 individually corrects the pixel values of the pixels extracted by the pixel extraction means 12. However, the present invention is not limited to this. For example, the distance correction means 13 may perform a predetermined correction collectively for each pixel row, each pixel column, or each pre-divided area in the input distance image plane, without calculating the horizontal distance using the cosine as described above. This is to obtain the same effect as when the horizontal distance is calculated using the cosine by simple correction while suppressing the calculation load. Specifically, the distance correction means 13 may perform correction by a predetermined correction amount collectively, for example, so that the pixel row located at the upper side of the input distance image plane is subjected to a larger distance increase correction, or the pixel row located at the lower side of the input distance image plane is subjected to a larger distance decrease correction.
[0275] In the above embodiment, the distance correction means 13 performs correction when the rear stereo camera 6B is attached to the upper rear surface of the upper rotating body 63 and captures an image diagonally downward. However, the present invention is not limited to this. For example, the distance correction means 13 may perform correction when the stereo camera captures an image in the horizontal direction, or may perform correction when the stereo camera captures an image diagonally upward.
[0276] In the above embodiment, the distance correction means 13 uses a plane including the rear surface of the shovel 60 as a reference and corrects the pixel values of the pixels included in the feature region to pixel values that represent the horizontal distance between the feature and the plane including the rear surface of the shovel 60. However, the present invention is not limited to this. For example, the distance correction means 13 may use the rotation axis PV of the shovel 60 as a reference and correct the pixel values of the pixels included in the feature region to pixel values that represent the horizontal distance between the feature and the rotation axis PV of the shovel 60.
[0277] Furthermore, the distance correction means 13 may correct the pixel values of the pixels included in the feature region to a pixel value that represents the shortest horizontal distance between the feature and the shovel 60. In this case, the distance correction means 13 selects a reference from a plane including the right side of the shovel 60, a plane including the left side of the shovel 60, a plane including the rear side of the shovel 60, or the like, depending on the actual position of the feature.
[0278] The shortest horizontal distance may be the shortest horizontal distance in the moving direction of the shovel 60, i.e., in a direction parallel to the front-rear direction of the lower traveling structure 61. In this case, the pixel value of a feature that is not in the moving direction of the shovel 60 is corrected to the maximum value (infinity) even if the feature is close to the shovel 60. As a result, the operator can more easily recognize features that are in the moving direction of the shovel 60.
[0279] Although the preferred embodiments of the present invention have been described in detail above, the present invention is not limited to the above-described embodiments, and various modifications and substitutions can be made to the above-described embodiments without departing from the scope of the present invention.
[0280] For example, in the above-described embodiment, the image generating device 100 adopts a cylindrical spatial model MD as the spatial model, but it may also adopt a spatial model having another cylindrical shape such as a polygonal prism, or it may adopt a spatial model consisting of two surfaces, a bottom surface and a side surface, or it may adopt a spatial model having only a side surface.
[0281] Furthermore, the image generating device 100 is mounted together with a camera and a stereo camera on a self-propelled shovel equipped with movable members such as a bucket, an arm, a boom, a swivel mechanism, etc., to constitute an operation support system that supports the movement of the shovel and the operation of these movable members while presenting surrounding images to the operator. However, the image generating device 100 may also be mounted together with a camera and a stereo camera on a work machine that does not have a swivel mechanism, such as a forklift or asphalt finisher, or on a work machine that has movable members but is not self-propelled, such as an industrial machine or a fixed crane, to constitute an operation support system that supports the operation of such work machines.
[0282] Also, in the above-mentioned embodiment, the distance image synthesis means 14 generates an output distance image, and then synthesizes the generated output distance image with the output image. However, the present invention is not limited to this. The distance image synthesis means 14 may, for example, synthesize an input image and an input distance image to generate a synthesized input image, generate a post-synthesis processing target image on which information related to the distance image is superimposed, and then generate a post-synthesis output image. Also, the distance image synthesis means 14 may, for example, synthesize a processing target image and a processing target distance image to generate a post-synthesis processing target image, and then generate a post-synthesis output image.
[0283] In the above embodiment, the image generating device 100 includes the camera 2 and the stereo camera 6 separately. The image generating device 100 generates one output image (viewpoint conversion image) based on a plurality of input images from the camera 2, and generates one output distance image (viewpoint conversion distance image) based on a plurality of input distance images from the stereo camera 6. The image generating device 100 then synthesizes the output distance image into the output image. However, the present invention is not limited to this configuration. For example, the image generating device 100 may generate an output image (viewpoint conversion image) based on three images output by one imaging mechanism in each of the left side stereo camera 6L, the rear stereo camera 6B, and the right side stereo camera 6R, and generate one output distance image (viewpoint conversion distance image) based on the three input distance images of the three stereo cameras. In this case, the camera 2 may be omitted. In this case, it is desirable to install the left side stereo camera 6L, the rear side stereo camera 6B, and the right side stereo camera 6R at approximately the center of the left side, rear side, and right side of the upper rotating body 63, respectively, so that the imaging range is not biased. Therefore, the multiple sets of imaging mechanisms in each stereo camera are arranged side by side at a predetermined interval in the vertical direction. This is because it is easy to install the stereo camera at approximately the center of each side, regardless of the size of the juxtaposition interval. Also, if multiple sets of imaging mechanisms are arranged side by side in the horizontal direction, it may be difficult to install the stereo camera at approximately the center of each side, depending on the juxtaposition interval.
[0284] In the above embodiment, the stereo camera 6 derives the distance between the object captured in each pixel of the basic image and the stereo camera 6 based on the parallax between the images output by each of the two sets of imaging mechanisms. The stereo camera 6 then generates an input distance image as distance information of a two-dimensional array by substituting the derived distance into the value of each pixel of the basic image, and outputs the generated input distance image to the control unit 1. The control unit 1 then generates one output distance image using a plurality of input distance images from the plurality of stereo cameras 6. However, the present invention is not limited to this configuration. For example, the image generating device 100 generates a first output image (first viewpoint conversion image) based on three images output by the first imaging mechanism of each of the three stereo cameras, and generates a second output image (second viewpoint conversion image) based on three images output by the second imaging mechanism of each of the three stereo cameras. Furthermore, the image generating device 100 may generate an output distance image without using an input distance image by deriving the distance between an object appearing in each pixel of the first viewpoint converted image and a specified reference point based on the parallax between the first viewpoint converted image and the second viewpoint converted image.
[0285] The surroundings monitoring device of Patent Document 1 generates an illustrated image of the shovel and its surroundings viewed from above, and displays an illustration representing the obstacle at a position on the illustrated image corresponding to the actual location of the obstacle. The surroundings monitoring device of Patent Document 1 also displays stationary obstacles and moving obstacles in different illustrations. In this way, the surroundings monitoring device of Patent Document 1 is able to convey the situation of obstacles around the shovel to the driver in an easy-to-understand manner. However, the laser radar described in Patent Document 1 irradiates an object with one laser beam and detects the distance and direction of the object from the reflected light. Therefore, the laser radar described in Patent Document 1 only detects the distance between an extremely limited part of the object surface and itself, and the detection result is only used to roughly determine the position of the illustration representing the object. Therefore, the output image presented by the surroundings monitoring device described in Patent Document 1 is still insufficient to convey the situation of obstacles around the shovel to the driver in an easy-to-understand manner. [Explanation of symbols]
[0286] 1 Control unit 2 Camera 2L Left side camera 2R Right side camera 2B Rear camera 3 Input unit 4 Memory unit 5 Display unit 6 Stereo camera 6L Left side stereo camera 6R Right side stereo camera 6B Rear stereo camera 10 Coordinate matching means 11 Image generation means 12 Pixel extraction means 13 Distance correction means 14 Distance image synthesis means 15 Driving assistance means 40 Input image Space model correspondence map 41 Space model Processing target image correspondence map 42 Processing target image Output image correspondence map 60 Excavator 61 Undercarriage 62 Swing mechanism 63 Upper rotating body 64 Cab 100 Image generation device
Claims
1. A lower running body; An upper rotating body rotatably mounted on the lower traveling body; A boom attached to the upper rotating body and included in an attachment; An arm attached to the boom and included in the attachment; a pair of a device for acquiring distance information to a surrounding measurement target and a device for acquiring an image; A plurality of the pairs are disposed on the upper rotating body, a viewpoint conversion image which is an image showing the surroundings of the shovel as seen from above based on an output of a device for acquiring a plurality of the images, and a viewpoint conversion image is displayed on a display unit installed in a position which is easily visible to an operator, In the viewpoint conversion image, a frame corresponding to an image of an object existing within an overlapping area between the imaging ranges of the devices acquiring the plurality of images is displayed. Shovel.
2. A lower running body, An upper rotating body rotatably mounted on the lower traveling body; A boom attached to the upper rotating body and included in an attachment; An arm attached to the boom and included in the attachment; a pair of a device for acquiring distance information to a surrounding measurement target and a device for acquiring an image; A plurality of the pairs are disposed on the upper rotating body, The device for acquiring distance information is attached to the upper part of the upper rotating body so as to face obliquely downward, The device is configured to detect, within the monitoring range of the device for acquiring the distance information, an object that is within a predetermined distance from the shovel and has a height of a predetermined height or more from the installation surface of the shovel as an object that may cause a collision, and not to detect, within the monitoring range of the device for acquiring the distance information, an object that is within the predetermined distance from the shovel and has a height of less than the predetermined height from the installation surface as an object that may cause a collision. Shovel.
3. A lower running body, An upper rotating body rotatably mounted on the lower traveling body; A boom attached to the upper rotating body and included in an attachment; An arm attached to the boom and included in the attachment; a pair of a device for acquiring distance information to a surrounding measurement target and a device for acquiring an image; A plurality of the pairs are disposed on the upper rotating body, The device for acquiring distance information is attached to the upper part of the upper rotating body so as to face obliquely downward, When the linear distance between the device for acquiring distance information and each of the two objects is the same and the horizontal distance between the device for acquiring distance information and each of the two objects is different from each other, the device is configured to be able to recognize that the linear distance between the device for acquiring distance information and each of the two objects is the same and to recognize that the horizontal distance between the device for acquiring distance information and each of the two objects is different from each other. Shovel.
4. A lower running body, An upper rotating body rotatably mounted on the lower traveling body; A boom attached to the upper rotating body and included in an attachment; An arm attached to the boom and included in the attachment; a pair of a device for acquiring distance information to a surrounding measurement target and a device for acquiring an image; A plurality of the pairs are disposed on the upper rotating body, The device for acquiring distance information is attached to the upper part of the upper rotating body so as to face obliquely downward, The apparatus is configured to calculate a horizontal distance between the device for acquiring the distance information and the measurement object based on an output of the device for acquiring the distance information, and to calculate a height of the measurement object. Shovel.
5. The device for acquiring distance information and the device for acquiring images are both attached to the upper part of the upper rotating body so as to face diagonally downward. A shovel according to any one of claims 1 to 4.
Citation Information
Patent Citations
Display device for working machine
JP2002327470A
Circumference monitor of working machine
JP2008163719A
Monitoring device for working machine
JP2010112100A
Image generating apparatus and operation supporting system
JP2012109741A
Device for detecting operator around construction vehicle
JP2012225111A
