The present invention relates to a correction system of an image pickup apparatus, a work machine, and a correction method of the image pickup apparatus in order to correct the image pickup apparatus provided in the work machine.
There is a work machine which includes an image pickup apparatus (for example, Patent Literature 1). Such a work machine picks up an image of an object by the image pickup apparatus, controls its own operation based on the pickup image result, and sends information of the pickup image to a management apparatus.
Patent Literature 1: Japanese Laid-open Patent Publication No. 2012-233353
Patent Literature 1 discloses a technology of correcting a work machine using the image pickup apparatus. However, the correction of the image pickup apparatus of the work machine is neither disclosed nor suggested in Patent Literature 1.
An object of the invention is to correct an image pickup apparatus of a work machine.
According to the present invention, a correction system of an image pickup apparatus comprises: at least two image pickup apparatuses; and a processing apparatus that sets a distance between a first image pickup apparatus and a second image pickup apparatus constant in the at least two image pickup apparatuses, changes a parameter defining a posture of the second image pickup apparatus, searches a corresponding portion between a pair of images obtained by the first image pickup apparatus and the second image pickup apparatus, and obtains the parameter based on the searched result.
It is preferable that the processing apparatus includes a search unit which sets a distance between a first image pickup apparatus and a second image pickup apparatus constant in the at least two image pickup apparatuses and changes a parameter defining a posture of the second image pickup apparatus so as to search a corresponding portion between a pair of images obtained by the first image pickup apparatus and the second image pickup apparatus, and a determination unit which obtains a posture parameter defining a posture of the image pickup apparatus based on a result searched by the search unit.
It is preferable that wherein the parameter defines a rotation of the second image pickup apparatus.
It is preferable that wherein the parameter includes a first parameter that is used to rotate the second image pickup apparatus with the first image pickup apparatus as a center, and a second parameter that is used to rotate the second image pickup apparatus about a center of the second image pickup apparatus.
It is preferable that wherein the processing apparatus determines the first image pickup apparatus and the second image pickup apparatus, of which the parameter is necessarily obtained, based on the result of searching the corresponding portion between the pair of images obtained by a pair of the image pickup apparatuses in the at least two image pickup apparatuses.
It is preferable that wherein the processing apparatus obtains the parameter with respect to a pair of the image pickup apparatuses of which a success rate of a searching is less than a threshold in a case where there are a plurality of the pairs of image pickup apparatuses.
According to the present invention, a work machine comprises: the correction system of the image pickup apparatus; and a plurality of image pickup apparatuses.
According to the present invention, a correction method of an image pickup apparatus, comprises: determining whether a parameter of one of a pair of image pickup apparatuses needs to be obtained based on a result of searching a corresponding portion between a pair of images obtained by the pair of image pickup apparatuses in a plurality of image pickup apparatuses; in a case the parameter is obtained, setting a distance between a first image pickup apparatus and a second image pickup apparatus of the pair of image pickup apparatuses constant, and changing a parameter defining a posture of the second image pickup apparatus so as to search a corresponding portion between a pair of images obtained by the first image pickup apparatus and the second image pickup apparatus; and obtaining a posture parameter defining a posture of the image pickup apparatus based on a searching result.
According to the invention, it is possible to suppress that work efficiency is reduced when a work is performed using a work machine provided with a work machine equipped with an operation tool.
Embodiments of the invention will be described in detail with reference with the drawings.
<Entire Configuration of Excavator>
The excavator 100 as a work machine includes a vehicle body 1 and the work machine 2. The vehicle body 1 includes a revolving superstructure 3, a cab 4, and a traveling body 5. The revolving superstructure 3 is attached to the traveling body 5 to be freely revolved. The revolving superstructure 3 contains apparatuses (not illustrated) such as a hydraulic pump and an engine. The cab 4 is disposed in the front portion of the revolving superstructure 3. In the cab 4, an operation apparatus 25 illustrated in
The work machine 2 is attached to the front portion of the vehicle body 1, and includes a boom 6, an arm 7, a bucket 8 as an operation tool, a boom cylinder 10, an arm cylinder 11, and a bucket cylinder 12. In the embodiment, the forward side of the vehicle body 1 is a direction from a backrest 4SS of a driver seat 4S illustrated in
The base end portion of the boom 6 is rotatably attached to the front portion of the vehicle body 1 through a boom pin 13. The boom pin 13 corresponds to the rotation center with respect to the revolving superstructure 3 of the boom 6. The base end portion of the arm 7 is rotatably attached to the end portion of the boom 6 through an arm pin 14. The arm pin 14 corresponds to the rotation center with respect to the boom 6 of the arm 7. The bucket 8 is rotatably attached to the end portion of the arm 7 through a bucket pin 15. The bucket pin 15 corresponds to the rotation center with respect to the arm 7 of the bucket 8.
As illustrated in
The boom cylinder 10, the arm cylinder 11, and the bucket cylinder 12 illustrated in
The base end portion of the arm cylinder 11 is rotatably attached to the boom 6 through an arm cylinder foot pin 11a. The end portion of the arm cylinder 11 is rotatably attached to the arm 7 through an arm cylinder top pin 11b. The arm cylinder 11 is extended or compressed by the oil pressure so as to drive the arm 7.
The base end portion of the bucket cylinder 12 is rotatably attached to the arm 7 through a bucket cylinder foot pin 12a. The end portion of the bucket cylinder 12 is rotatably attached to one end of a first link member 47 and one end of a second link member 48 through a bucket cylinder top pin 12b. The other end of the first link member 47 is rotatably attached to the end portion of the arm 7 through a first link pin 47a. The other end of the second link member 48 is rotatably attached to the bucket 8 through a second link pin 48a. The bucket cylinder 12 is extended or compressed by the oil pressure so as to drive the bucket 8.
As illustrated in
In the embodiment, the first angle detection unit 18A detects the stroke length of the boom cylinder 10. A processing apparatus 20 described below calculates a rotational angle δ1 of the boom 6 with respect to the Zm axis in a coordinate system (Xm, Ym, Zm) of the excavator 100 illustrated in
The second angle detection unit 18B detects a stroke length of the arm cylinder 11. The processing apparatus 20 calculates a rotational angle δ2 of the arm 7 with respect to the boom 6 based on the stroke length of the arm cylinder 11 detected by the second angle detection unit 18B. The third angle detection unit 18C detects a stroke length of the bucket cylinder 12. The processing apparatus 20 calculates a rotational angle δ3 of the bucket 8 with respect to the arm 7 based on the stroke length of the bucket cylinder 12 detected by the third angle detection unit 18C.
<Image Pickup Apparatus>
As illustrated in
As illustrated in
In the embodiment, the excavator 100 includes four image pickup apparatuses 30, but the number of image pickup apparatuses 30 of the excavator 100 is not limited to four and may be at least two. The excavator 100 is configured with is not limited to four using at least a pair of image pickup apparatuses 30 to pick up the stereo image of an object.
The plurality of image pickup apparatuses 30a, 30b, 30c, and 30d are disposed on the forward side and the upward side of the cab 4. The upward side is a direction orthogonal to the grounding surface of the crawler belts 5a and 5b of the excavator 100 and separated from the grounding surface. The grounding surface of the crawler belts 5a and 5b is a flat surface defined by at least three points not on the same straight line in a portion where at least one of the crawler belts 5a and 5b is grounded. The plurality of image pickup apparatuses 30a, 30b, 30c, and 30d stereoscopically picks up the image of the object on the forward side of the vehicle body 1 of the excavator 100. The object is, for example, an object to be dug by the work machine 2. The processing apparatus 20 illustrated in
The image PIa is an image picked up by the image pickup apparatus 30a, the image PIb is an image picked up by the image pickup apparatus 30b, the image PIc is an image picked up by the image pickup apparatus 30c, the image PId is an image picked up by the image pickup apparatus 30d. Since the pair of image pickup apparatuses 30a and 30b are disposed to face the upward of the excavator 100, the upper portion of the object OJ is taken in the images PIa and PIb. Since the pair of image pickup apparatuses 30c and 30d are disposed to face the downward of the excavator 100, the lower portion of the object OJ is taken in the images PIc and PId.
As can be seen from
The processing apparatus 20 obtains a first parallax image from the images PIa and PIb picked up by the pair of image pickup apparatuses 30a and 30b in a case where stereoscopic image processing is performed on the images PIa, PIb, PIc, and PId of the same object OJ picked up by the plurality of image pickup apparatuses 30a, 30b, 30c, and 30d. In addition, the processing apparatus 20 obtains a second parallax image from the images PIc and PId picked up by the pair of image pickup apparatuses 30c and 30d. Thereafter, the processing apparatus 20 obtains one parallax image by combining the first parallax image and the second parallax image. The processing apparatus 20 measures the object in the three-dimensional manner using the obtained parallax images. In this way, the processing apparatus 20 and the plurality of image pickup apparatuses 30a, 30b, 30c, and 30d measure the entire of a predetermined region of the object OJ picked up at one time in the three-dimensional manner.
In the embodiment, for example, the image pickup apparatus 30c is used as a reference among four image pickup apparatuses 30a, 30b, 30c, and 30d. Four image pickup apparatuses 30a, 30b, 30c, and 30d each include the coordinate system. These coordinate systems will be appropriately referred to as an image pickup apparatus coordinate system. In
<Correction System of Image Pickup Apparatus>
In a case where the image pickup apparatus 30 is moved by some reasons, the correction method according to the embodiment corrects a positional deviation of the image pickup apparatus 30 to realize the three-dimensional measurement using the resultant image stereoscopically picked up by at least one pair of image pickup apparatuses 30. It will be assumed that the positional deviation occurs between the image pickup apparatus 30c and the image pickup apparatus 30d among four image pickup apparatuses 30a, 30b, 30c, and 30d. In this case, the processing unit 21 of the processing apparatus 20 performs the correction method according to the embodiment. The image pickup apparatus 30c and the image pickup apparatus 30d subjected to the correction method according to the embodiment will be respectively referred to as a first image pickup apparatus 30c and a second image pickup apparatus 30d.
The processing unit 21 sets a constant distance between the first image pickup apparatus 30c and the second image pickup apparatus 30d among four (at least two) image pickup apparatuses 30a, 30b, 30c, and 30d in the embodiment when the correction method according to the embodiment is performed, and changes a parameter defining a posture of the second image pickup apparatus 30d. Then, the processing unit 21 obtains the parameter based on a result of searching the corresponding portions between a pair of images obtained by the first image pickup apparatus 30c and the second image pickup apparatus 30d during the image processing (the stereoscopic image processing in the embodiment). The search unit 21A of the processing unit 21 changes and searches the parameter. The determination unit 21A of the processing unit 21 obtains the parameter based on the searching result. The stereoscopic image processing is a method of obtaining a distance to the object based on two images obtained by observing the same object from different two image pickup apparatuses 30. The distance to the object is, for example, expressed by visualizing distance information to the object as a distance image in gradation.
When the correction method according to the embodiment is performed, the processing apparatus 20 performs the stereoscopic image processing on the pair of images picked up by the pair of image pickup apparatuses 30 to obtain the position of the object (specifically, the coordinates of the object in the three-dimensional coordinate system). In this way, the processing apparatus 20 can measure the object in the three-dimensional manner using the pair of images obtained by picking up the same object using at least the pair of image pickup apparatuses 30. In other words, at least the pair of image pickup apparatuses 30 and the processing apparatus 20 measure the object in the three-dimensional manner by the stereoscopic method.
The storage unit 22 is configured by at least one of a non-volatile or volatile semiconductor memory such as a RAM (Random Access Memory), a ROM (Random Access Memory), a flash memory, an EPROM (Erasable Programmable Random Access Memory), or an EEPROM (Electrically Erasable Programmable Random Access Memory), a magnetic disk, a flexible disk, and a magneto-optical disk. The storage unit 22 stores the computer program therein for performing the correction method according to the embodiment in the processing unit 21. The storage unit 22 stores information therein to be used when the processing unit 21 performs the correction method according to the embodiment. The information includes, for example, information necessary for obtaining the position of a part of the work machine 2 based on internal correction data of the image pickup apparatus 30, the posture of each image pickup apparatus 30, and a positional relation between the image pickup apparatuses 30, and the posture of the work machine 2.
The input/output unit 23 is an interface circuit for the connection between the processing apparatus 20 and machines. A bus 51, the first angle detection unit 18A, the second angle detection unit 18B, and the third angle detection unit 18C are connected to the input/output unit 23. The bus 51 is connected to the plurality of image pickup apparatuses 30a, 30b, 30c, and 30d. The resultant images picked up by the image pickup apparatuses 30a, 30b, 30c, and 30d are input to the input/output unit 23 through the bus 51. The processing unit 21 acquires the resultant images picked up by the image pickup apparatuses 30a, 30b, 30c, and 30d through the bus 51 and the input/output unit 23. The processing apparatus 20 may be realized by a dedicated software product, or may be realized by a function of the processing apparatus 20 in cooperation of a plurality of circuits.
<Three-Dimensional Measurement>
The image pickup apparatus 30L includes an image pickup element 31L. The original point of the image pickup apparatus coordinate system (Xs, Ys, Zs) of the image pickup apparatus 30L (that is, the center of the image pickup apparatus 30L) is set as an optical center OCL. The Zs axis of the image pickup apparatus 30L is an optical axis of the image pickup apparatus 30L, and passes through the optical center OCL. When picking up the object, the image pickup apparatus 30L obtains an image 32L containing the object. The image pickup apparatus 30R includes an image pickup element 31R. The original point of the image pickup apparatus coordinate system (Xs, Ys, Zs) of the image pickup apparatus 30R (that is, the center of the image pickup apparatus 30R) is set as an optical center OCR. The Zs axis of the image pickup apparatus 30R is an optical axis of the image pickup apparatus 30R, and passes through the optical center OCR. When picking up the object, the image pickup apparatus 30R obtains an image 32R containing the object.
In the embodiment, the object of which the position is obtained by the stereoscopic method is the blade edge P3 of the bucket 8 illustrated in
The processing apparatus 20 performs the stereoscopic image processing on the image 32L of the blade edge P3 of the bucket 8 picked up by the image pickup apparatus 30L and the image 32R of the blade edge P3 of the bucket 8 picked up by the image pickup apparatus 30R. The position of the blade edge P3 of the bucket 8 (the same object) is measured in the three-dimensional manner by the stereoscopic image processing. The stereoscopic image processing includes a process of generating a parallax image 33 based on the pair of images 32L and 32R, and a process of measuring a space of the pickup range of the image pickup apparatuses 30L and 30R in the three-dimensional manner based on parallax information contained in the parallax image 33.
In the process of generating the parallax image 33, as illustrated in
Further, the parallax is generally defined by a variation amount in angle formed between the line-of-sights of the pair of image pickup apparatuses 30 with the measurement object as a reference. In a case where the pair of image pickup apparatuses 30 are arrange in parallel, the parallax is the pixel amount deviated in the pickup image in which the projected point of the same measurement point in the image of the other image pickup apparatus 30 is deviated from the projected point of the measurement point in the image of the reference image pickup apparatus.
The parallax image 33 stores “0” in an image PXs failed in searching in a case where the searching of the corresponding images fails, and stores a value larger than “0” in an image PXs succeeding in searching in a case where the searching succeeds. In the parallax image 33, the image PXs stored with “0” becomes black, and the image PXs stored with the value larger than “0” becomes a gray scale. Therefore, in order to confirm whether the stereoscopic image processing succeeds, a ratio occupied by the image PXs stored with a value other than “0” in the parallax image 33 may be used. For example, when a ratio of the image PXs in the gray scale (that is, the image PXs stored with a value other than “0”) occupied in the parallax image 33 is equal to or more than a threshold, it is determined that the stereoscopic image processing succeeds. The threshold is, for example, may be set to 80% to 90%, and the invention is not limited to this range.
The processing apparatus 20 obtains a distance to the object using triangulation in the process of the three-dimensional measurement. As illustrated in
In this case, the distance from the image pickup apparatuses 30L and 30R to the blade edge P3 become the Z-axis coordinate ZP of the blade edge P3 in the three-dimensional coordinate system (X,Y,Z). When the parallax is set to d=YL−(YR−B), the ZP is obtained by B× f/d.
In each pixel PXs of the parallax image 33 illustrated in
In the example illustrated in
In a case where the image pickup apparatus 30L is not disposed in parallel to the image pickup apparatus 30R, the corresponding image between the pair of images 32L and 32R may be not searched. Therefore, a relative positional relation between the image pickup apparatus 30L and the image pickup apparatus 30R is obtained in advance. Then, the stereoscopic image processing and the three-dimensional measurement can be made by correcting at least one of the images 32L and 32R based on the deviation between the image pickup apparatus 30L and the image pickup apparatus 30R obtained from the relative positional relation.
The deviation between the image pickup apparatus 30L and the image pickup apparatus 30R can be expressed by a deviation of the secondary apparatus with respect to the primary apparatus (that is, a deviation of the image pickup apparatus 30L with respect to the image pickup apparatus 30R). Therefore, there are deviations in six directions in total such as a rotation RTx about the Xs axis of the image pickup apparatus 30L, a rotation RTy about the Ys axis of the image pickup apparatus 30L, a rotation RTz about the Zs axis of the image pickup apparatus 30L, a deviation in the Xs axis direction of the image pickup apparatus 30L, a deviation in the Ys axis direction of the image pickup apparatus 30L, and a deviation in the Zs axis direction of the image pickup apparatus 30L.
The deviation caused by the rotation RTz can be expressed by an angle γ about the Zs axis. Therefore, the position (xs, ys) in an xs-ys plane of the image 32Lr of the image pickup apparatus 30L is rotated about the Zs axis using Equation (1) so as to be converted into the position (Xs, Ys) in an Xs-Ys plane of the image 32L of the image pickup apparatus 30L in the case of no deviation.
Similarly to the rotation RTz about the Zs axis, the deviation caused by the rotation RTx about the Xs axis is corrected by Equation (2), and the deviation caused by the rotation RTy about the Ys axis is corrected by Equation (3). An angle α in Equation (2) indicates the deviation caused by the rotation RTx, and an angle β in Equation (3) indicates the deviation caused by the rotation RTy. The angles α, β, and γ are quantities to correct the deviations in the rotation directions about the axes in the image pickup apparatus coordinate system of the image pickup apparatus 30L. Hereinafter, the angles α, β, and γ will be appropriately referred to as rotation direction correction quantities α, β, and γ, or simply as the rotation direction correction quantity.
The deviation of the image pickup apparatus 30L generated in the Xs axis direction of the image pickup apparatus 30R is corrected by moving the position of the image 32Lr picked up by the image pickup apparatus 30L by an deviation cancelling quantity ΔX in parallel to the Xs axis direction of the image pickup apparatus 30R. The deviations of the image pickup apparatus 30L generated in the Ys axis direction and the Zs axis direction of the image pickup apparatus 30R are also corrected similarly to the deviation cancelling quantity ΔX of the image pickup apparatus 30L generated in the Xs axis direction. In other words, the position of the image 32Lr picked up by the image pickup apparatus 30L is moved by the deviation cancelling quantities ΔY and ΔZ in parallel to the Ys axis direction and the Zs axis direction of the image pickup apparatus 30R. The deviation cancelling quantities ΔX, ΔY, and ΔZ are quantities for correcting the deviations in a translation direction of the pair of image pickup apparatuses 30. Hereinafter, the deviation cancelling quantities ΔX, ΔY, and ΔZ will be appropriately referred to as the translation direction correction quantities ΔX, ΔY, and ΔZ or simply as the translation direction correction quantity.
The obtaining of the rotation direction correction quantities α, β, and γ and the translation direction correction quantities ΔX, ΔY, and ΔZ in order to correct the deviation of the pair of the image pickup apparatus 30R and the image pickup apparatus 30L of the stereo camera is referred to as an external correction. The external correction is performed, for example, at the time of releasing the excavator 100. The rotation direction correction quantities α, β, and γ and the translation direction correction quantities ΔX, ΔY, and ΔZ obtained in the external correction are parameters for defining the posture of the image pickup apparatus 30. Hereinafter, these parameters will be appropriately referred to as posture parameters. The posture parameters are six-dimensional parameters. The posture parameters obtained in the external correction are stored in the storage unit 22 of the processing apparatus 20 illustrated in
At least the pair of image pickup apparatuses 30 of the excavator 100 illustrated in
As illustrated in
In a case where the image pickup apparatus 30 is moved by some external factors, the posture parameter may be obtained again by the external correction, but it takes time and trouble in the installation of equipment for the external correction and the work for the external correction. In a case where the posture of the image pickup apparatus 30 is changed, the correction system 50 illustrated in
In Step S102, the processing apparatus 20 performs the stereoscopic image processing on the images picked up in Step S101. Specifically, the stereoscopic image processing is performed on the images picked up by the pair of image pickup apparatuses 30 of the stereo camera. The image processing is a processing to generate a parallax image from the pair of images. In Step S102, the processing apparatus 20 generates the parallax images from all the pairs of images obtained by all the combinations of the stereo camera among the plurality of image pickup apparatuses 30 of the excavator 100.
In the embodiment, the excavator 100 includes four image pickup apparatuses 30a, 30b, 30c, and 30d. In the example illustrated in
R1: the image pickup apparatus 30a and the image pickup apparatus 30b
R2: the image pickup apparatus 30a and the image pickup apparatus 30c
R3: the image pickup apparatus 30a and the image pickup apparatus 30d
R4: the image pickup apparatus 30b and the image pickup apparatus 30c
R5: the image pickup apparatus 30b and the image pickup apparatus 30d
R6: the image pickup apparatus 30c and the image pickup apparatus 30d
When the parallax images are generated by the above-described six combinations, the image pickup apparatuses 30a, 30b, 30c, and 30d each will generate the parallax images three times. In the embodiment, in a case where the ratio of the gray-scaled pixels occupying in the parallax image is equal to or more than a threshold, it is determined that the parallax image is normal. The magnitude of the threshold is the same as described above.
In the six combinations R1 to R6, the pair of image pickup apparatuses 30 configured by a combination generating a normal parallax image even once does not cause the deviation. Since the image pickup apparatus 30 to obtain the posture parameter is determined from the six parallax images obtained by the six combinations R1 to R6, the processing apparatus 20 uses, for example, a determination table TB illustrated in
In the determination table TB, the image pickup apparatus 30 corresponding to the combination generating the normal parallax image is written by “1”, and the image pickup apparatus 30 corresponding to the combination not generating the normal parallax image is written by “0”. Then, a total sum in the determination table TB is written by a total number of times when the each of image pickup apparatuses 30a, 30b, 30c, and 30d writes “1”. In this way, the determination table TB can show the number of times when the normal parallax images are generated by the image pickup apparatuses 30a, 30b, 30c, and 30d. The processing unit 21 writes the values in the determination table TB.
In the determination table TB, “1” or “0” is written according to the rules below.
(1) In a case where the parallax image generated by a combination R1 is normal, “1” is written for the image pickup apparatuses 30a and 30b.
(2) In a case where the parallax image generated by a combination R2 is normal, “1” is written for the image pickup apparatuses 30a and 30c.
(3) In a case where the parallax image generated by a combination R3 is normal, “1” is written for the image pickup apparatuses 30a and 30d.
(4) In a case where the parallax image generated by a combination R4 is normal, “1” is written for the image pickup apparatuses 30b and 30c.
(5) In a case where the parallax image generated by a combination R5 is normal, “1” is written for the image pickup apparatuses 30b and 30d.
(6) In a case where the parallax image generated by a combination R6 is normal, “1” is written for the image pickup apparatuses 30c and 30d.
The determination table TB illustrated in
In Step S103, the processing apparatus 20 uses the determination table TB to count the number of times when the normal parallax images is generated for each of the image pickup apparatuses 30a, 30b, 30c, and 30d. In Step S104, the processing apparatus 20 determines the image pickup apparatus 30 to obtain the posture parameter again due to the deviation based on the number of times when the normal parallax image is generated. In this way, in a case where there are a plurality of pairs of image pickup apparatuses 30, the processing apparatus 20 obtains the posture parameter of at least one of the pair of image pickup apparatuses 30 which has a success rate of the searching is less than a threshold (that is, the normal parallax image) again.
When the image pickup apparatus 30 to obtain the posture parameter again is determined, the processing apparatus 20 performs a process of obtaining the posture parameter. In Step S105, the processing apparatus 20 (the search unit 21A of the processing unit 21 in this embodiment) changes the posture parameter. Then, in Step S106, the search unit 21A of the processing apparatus 20 performs the stereoscopic image processing on the pair of images picked up by the image pickup apparatus 30 to obtain the posture parameter again and the paired image pickup apparatus 30 using the changed posture parameter. The pair of images subjected to the stereoscopic image processing are the images picked up in Step S101. Specifically, the stereoscopic image processing is a process of generating the parallax image from the pair of images.
When the process of Step S106 is ended, the processing apparatus 20 (the determination unit 21B of the processing unit 21 in this embodiment) compares, in Step S107, a gray scale ratio SR which is a ratio of the gray-scaled pixels occupying the parallax image generated in Step S106 (that is, the image stored with a value other than “0”) with a threshold SRc. The process of Step S107 is a process of determining the success rate of the stereoscopic image processing. As described above, the magnitude of the threshold SRc may be set from 80% to 90% for example, but the invention is not limited to the value in the range. In Step S107, in a case where the gray scale ratio SR is less than the threshold SRc (Step S107, No), the determination unit 21B of the processing apparatus 20 returns the procedure to Step S105, and repeatedly performs the processes from Step S105 to Step S107 until the gray scale ratio SR is equal to or more than the threshold SRc.
In Step S107, in a case where the gray scale ratio SR of the parallax image is equal to or more than the threshold SRc (Step S107, Yes), the determination unit 21B of the processing apparatus 20 determines the posture parameter at this time as a new posture parameter in Step S108. Thereafter, the stereoscopic image processing is performed using the posture parameter determined in Step S108.
In the embodiment, the processing apparatus 20 changes the posture parameter of one of the pair of image pickup apparatuses 30 as the objects of which the posture parameter is changed, and does not change the posture parameter of the other one. Therefore, the stereoscopic image processing is performed on the pair of images picked up by these apparatuses. The relative positional relation of the pair of image pickup apparatuses 30 can be quickly approached to a state before the deviation occurs by changing the posture parameter of one of the pair of image pickup apparatuses 30, compared to a case where both the posture parameters are changed. As a result, the processing apparatus can shorten the time taken for obtaining a new posture parameter.
In the pair of image pickup apparatuses 30 of which the posture parameter is changed, an apparatus of which the posture parameter is not changed will be referred to as the first image pickup apparatus, and an apparatus of which the posture parameter is changed will be referred to as the second image pickup apparatus. In this example, the objects of which the posture parameter is changed are the image pickup apparatus 30c and the image pickup apparatus 30d illustrated in
As described in the following, the second parameter includes angles α′, β′, and γ′ as illustrated in
When the angle θ and the angle φ of the first parameter are changed, the second image pickup apparatus 30d rotates about the first image pickup apparatus 30c (more specifically, the original point (matched with an optical center OCc in this example) of the image pickup apparatus coordinate system of the first image pickup apparatus 30c). In other words, the first parameter causes the second image pickup apparatus 30d to rotate about the first image pickup apparatus 30c.
When the angles α′, β′, and γ′ of the second parameter are changed, the second image pickup apparatus 30d rotates about itself (more specifically, the original point (matched with an optical center OCd in this example) of the image pickup apparatus coordinate system of the second image pickup apparatus 30d). In other words, the second parameter causes the second image pickup apparatus 30d to rotate about the second image pickup apparatus 30d.
In this way, the first parameter and the second parameter both are parameters to define the posture of the second image pickup apparatus 30d. The relative positional relation between the first image pickup apparatus 30c and the second image pickup apparatus 30d are defined by defining the posture of the second image pickup apparatus 30d.
In the embodiment, the processing apparatus 20 changes the parameters to define the posture of the second image pickup apparatus 30d such that a distance between the first image pickup apparatus 30c and the second image pickup apparatus 30d is constant (that is, the length B of the base line BL between the first image pickup apparatus 30c and the second image pickup apparatus 30d is set to be constant. The base line BL between the first image pickup apparatus 30c and the second image pickup apparatus 30d is a straight line connecting the optical center OCc of the first image pickup apparatus 30c and the optical center OCd of the second image pickup apparatus 30d.
When the angle θ and the angle φ of the first parameter are changed while setting the length of the base line BL constant, the second image pickup apparatus 30d rotates about the first image pickup apparatus 30c. As a result, the translation component of the second image pickup apparatus 30d is also changed in addition to the rotation component of the second image pickup apparatus 30d. Therefore, the rotation direction correction quantities α, β, and γ and the translation direction correction quantities ΔX, ΔY, and ΔZ of the posture parameter are changed by changing the first parameter and the second parameter. The number of parameters to be changed for obtaining the posture parameter can be reduced by changing the angle θ and the angle φ of the first parameter while setting the length of the base line BL constant. As a result, it is preferable that the calculation load of the processing apparatus 20 is reduced.
When the angles θ and φ of the first parameter and the angles α′, β′, and γ′ of the second parameter are obtained, the relative positional relation between the first image pickup apparatus 30c and the second image pickup apparatus 30d is obtained. The processing apparatus 20 generates the parallax image while changing the first parameter and the second parameter until the gray scale ratio SR of the parallax image increased to be equal to or more than the threshold SRc. When the first parameter and the second parameter are changed, the processing apparatus 20 changes the angles θ and φ and the angles α′, β′, and γ′ by a predetermined amount of change in both positive and negative directions until the angles reach predetermined quantities with the values before the change as a reference.
The processing apparatus 20 generates the parallax image from the pair of images picked up by the first image pickup apparatus 30c and the second image pickup apparatus 30d using the changed angles θ and φ and the changed angles α′, β′, and γ′ whenever the angles θ and φ and the angles α′, β′, and γ′ are changed. Specifically, the processing apparatus 20 obtains the rotation direction correction quantities α, β, and γ and the translation direction correction quantities ΔX, ΔY, and ΔZ of the posture parameter using the changed angles θ and φ and the changed angles α′, β′, and γ′, and generates the parallax image using the obtained posture parameter. The processing apparatus 20 compares the gray scale ratio SR of the generated parallax image and the threshold SRc.
The processing apparatus 20 obtains the rotation direction correction quantities α, β, and γ and the translation direction correction quantities ΔX, ΔY, and ΔZ of the posture parameter using the first parameter and the second parameter when the gray scale ratio SR of the parallax image is equal to or more than the threshold SRc. Then, the stereoscopic image processing is performed on the image picked up by the image pickup apparatus 30 using the newly obtained rotation direction correction quantities α, β, and γ and the newly obtained translation direction correction quantities ΔX, ΔY, and ΔZ, and the three-dimensional measurement is performed.
The description will be made in a case where three image pickup apparatuses 30 of the plurality of image pickup apparatuses 30 are the objects to change the posture parameter. In a case where three image pickup apparatuses 30b, 30c, and 30d illustrated in
For example, the image pickup apparatus 30c is set to the first image pickup apparatus, and the image pickup apparatuses 30b and 30d are set to the second image pickup apparatus. Then, the combination of the image pickup apparatus 30c and the image pickup apparatus 30b, and the combination of the image pickup apparatus 30c and the image pickup apparatus 30d are established. The processing apparatus 20 changes the posture parameter of the image pickup apparatus 30b with respect to the formal combination, and changes the posture parameter of the image pickup apparatus 30d with respect to the latter combination.
The method of obtaining the posture parameter in a case where three image pickup apparatuses 30 change the posture parameter is not limited to the above method. For example, the processing apparatus 20 may determine first the posture parameter of the image pickup apparatus 30b in the combination of the image pickup apparatus 30c and the image pickup apparatus 30b, and then set the image pickup apparatus 30b as the first image pickup apparatus and the image pickup apparatus 30d as the second image pickup apparatus so as to determine the posture parameter of the image pickup apparatus 30d.
The description will be made in a case where four image pickup apparatuses 30 in the plurality of image pickup apparatuses 30 change the posture parameter. In a case where four image pickup apparatuses 30a, 30b, 30c, and 30d illustrated in
Herein, it is assumed that a first combination of the image pickup apparatus 30a and the image pickup apparatus 30b and a second combination of the image pickup apparatus 30c and the image pickup apparatus 30d are established. In this case, any one in the first combination is set as the first image pickup apparatus, and the other one is set as the second image pickup apparatus. Similarly, also in the second combination, any one of the combination is set as the first image pickup apparatus, and the other one is set as the second image pickup apparatus. The processing apparatus 20 obtains a new posture parameter by changing the posture parameter of the second image pickup apparatus in each of the first combination and the second combination.
The correction system 50 and the correction method according to the embodiment perform the following processes in a case where a positional deviation occurs in at least one of at least two image pickup apparatuses 30 of the excavator 100 which is the work machine for some external factors. In other words, the correction system 50 and the correction method according to the embodiment change the posture parameter of at least two image pickup apparatuses 30 while setting the distance between the first image pickup apparatus and the second image pickup apparatus constant, and obtain a new posture parameter based on the parallax image obtained as a result of searching the corresponding portion between the pair of images obtained by the first image pickup apparatus and the second image pickup apparatus. Herein, at least one of the first image pickup apparatus and the second image pickup apparatus is the image pickup apparatus in which the positional deviation occurs for some external factors.
Through such a process, the correction system 50 and the correction method according to the embodiment can correct the image pickup apparatus 30 which includes the excavator 100 as the work machine. In addition, since there is no need for the correction system 50 and the correction method according to the embodiment to install equipment for the correction, the positional deviation of the image pickup apparatus 30 generated in a user's place of the excavator 100 can be easily and simply corrected. In this way, the correction system 50 and the correction method according to the embodiment can correct the positional deviation of the image pickup apparatus 30 even in a case where there is no equipment for correcting the image pickup apparatus 30, so that there is an advantage that the work is not suspended. The correction system 50 and the correction method according to the embodiment further have an advantage that the positional deviation of the image pickup apparatus 30 can be easily and quickly corrected by a software process without moving the image pickup apparatus 30 where the positional deviation occurs.
The correction system 50 and the correction method according to the embodiment determine the image pickup apparatus 30 of which the posture parameter is necessarily obtained, based on a result obtained by searching the corresponding portion between the pair of images obtained by the pair of image pickup apparatuses 30 in at least two image pickup apparatuses 30 (that is, the ratio of the gray-scaled image occupied in the parallax image). Specifically, the image pickup apparatus 30 in which the normal parallax image is not generated even once is set as the image pickup apparatus 30 of which the posture parameter is necessarily obtained (that is, the image pickup apparatus 30 in which an unallowable positional deviation occurs). Therefore, the correction system 50 and the correction method according to the embodiment can easily and reliably determine the image pickup apparatus 30 of which the posture parameter is necessarily obtained.
Hitherto, the embodiments have been described, the embodiments are not limited to the above-described content. In addition, the above-described components include a range of so-called equivalents such as components which are assumable by a person skilled in the art, and substantially the same components as the assumable components. The above-described components can be appropriately combined. At least one of various omissions, substitutions, and modifications of the components can be made in a scope not departing from the spirit of the embodiments. The work machine is not limited to the excavator 100 as long as the machine is provided with at least the pair of image pickup apparatuses and three-dimensionally measures the object by the stereoscopic method using the pair of image pickup apparatuses, and a work machine such as a wheel loader or a bulldozer may be applied. The process of obtaining the posture parameter may be performed by an external processing apparatus of the excavator 100. In this case, the image picked up by the image pickup apparatus 30 is sent to the external processing apparatus of the excavator 100 through communication for example.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2015/077873 | 9/30/2015 | WO | 00 |