OPTICAL VELOCITY MEASURING APPARATUS AND MOVING OBJECT
20170322232 · 2017-11-09
Assignee
Inventors
Cpc classification
G01B11/14
PHYSICS
G01P3/36
PHYSICS
International classification
G01P3/36
PHYSICS
G01B11/00
PHYSICS
G01B11/14
PHYSICS
Abstract
An optical velocity measuring apparatus which can restrict the effect of rotational motion of a moving object and estimate a velocity of its own with high accuracy, for a moving object with no wheels or a moving object of which the wheels slip includes an imager, provided in a moving object, for imaging a traveling surface such that a shift amount of each pixel at a time when an imaging target surface has shifted varies depending on a position of the pixel within an image, and the optical velocity measuring apparatus acquires a pixel shift amount gradient, which is a change in the shift amount of each pixel with respect to a predetermined axis, from a plurality of images captured by the imaging means in a time series and a velocity of the moving object from the pixel shift amount gradient is acquired.
Claims
1. An optical velocity measuring apparatus comprising: imaging means, provided in a moving object, for imaging a traveling surface such that a shift amount of each pixel at a time when an imaging target surface has shifted varies depending on a position of the pixel within an image; and calculating means for acquiring, as a pixel shift amount gradient, a change in the shift amount of each pixel with respect to a predetermined axis, from a plurality of images captured by the imaging means in a time series, and for acquiring a velocity of the moving object from the pixel shift amount gradient.
2. The optical velocity measuring apparatus according to claim 1, wherein the pixel shift amount Gradient with respect to a known shift amount of the moving object is stored, and wherein the calculating means acquires a velocity of the moving object from the acquired pixel shift amount gradient and the pixel shift amount gradient with respect to the known shift amount.
3. The optical velocity measuring apparatus according to claim 1, wherein the imaging means obliquely images the traveling surface such that the shift amount of each pixel at the time when the imaging target surface has shifted varies depending on the position of the pixel within the image.
4. The optical velocity measuring apparatus according to claim 1, wherein the pixel shift amount gradient acquired by the calculating means refers to a gradient of the pixel shift amount on a line of intersection between a plane which passes through an optical axis of the imaging means and is perpendicular to the traveling surface and an image forming surface of the imaging means and a gradient of the pixel shift amount on a straight line on the image forming surface which passes through the optical axis of the imaging means and which is substantially perpendicular to the line of intersection.
5. The optical velocity measuring apparatus according to claim 1, wherein the pixel shift amount gradient acquired by the calculating means is calculated based on difference between shift amounts of pixels at positions symmetric about a point of intersection between the optical axis of the imaging means and the image forming surface of the imaging means.
6. A moving object including shifting means for displacing a position of its own and controlling means for controlling the shifting means, the moving object comprising: an optical velocity measuring apparatus that is configured with imaging means for imaging a traveling surface such that a shift amount of each pixel at a time when an imaging target surface has shifted varies depending on a position of the pixel within an image and calculating means for acquiring, as a pixel shift amount gradient, a change in the shift amount of each pixel with respect to a predetermined axis, from a plurality of images captured by the imaging means in a time series, and for acquiring a velocity of the moving object from the pixel shift amount gradient.
7. The moving object according to claim 6, further comprising: posture recognizing means for recognizing a posture of the imaging means of the optical velocity measuring apparatus, wherein the calculating means uses the posture information recognized by the posture recognizing means in calibration for velocity measurement of the moving object.
8. The moving object according to claim 6, wherein the controlling means switches between, depending on the velocity of the moving object, the optical velocity measuring apparatus and a grounded velocity measuring apparatus which has been grounded to the traveling surface.
9. The moving object according to claim 6, wherein the grounded velocity measuring apparatus is used in a case where a velocity is equal to or lower than a velocity at which a measurement error in the optical velocity measuring apparatus and a measurement error in the grounded velocity measuring apparatus become equal in degree, and the optical velocity measuring apparatus is used in a case where a velocity is equal to or higher than the velocity at which the measurement error in the optical velocity measuring apparatus and the measurement error in the grounded velocity measuring apparatus become equal in degree.
10. The moving object according to claim 6, wherein the optical velocity measuring apparatus is calibrated while the grounded velocity measuring apparatus is being used.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
DESCRIPTION OF EMBODIMENTS
[0021] Hereinafter, embodiments will be described with reference to the drawings.
First Embodiment
[0022] In this embodiment, an example of an optical velocity measuring apparatus according to the invention will be described.
[0023] First of all, with reference to
[0024]
[0025] Hereinafter, each of configurations of the optical velocity measuring apparatus 11 will be described.
[0026] The imaging means 111 has a plurality of imaging elements, and measures a luminance value of each of the imaging elements. For instance, a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) camera can be appropriately used. In addition, the imaging means 111 images an imaging target surface at a predetermined rate (frame rate) F. At this time, the imaging means is provided such that a shift amount of each pixel at the time when the imaging target surface has shifted varies depending on a position within the image. For instance, when the imaging means is obliquely provided with respect to the imaging target surface, the further away the imaging target surface is located, the smaller a pixel shift amount becomes, and the nearer the imaging target surface is located, the greater a pixel shift amount becomes. Alternatively, different areas of from the imaging target surface may be imaged at the same time by a camera lens being devised or a reflector or the like being used or a plurality of cameras being synchronously used. The frame rate of the imaging means is appropriately set within a range in which calculating a pixel shift amount is possible. For example, in a case where the velocity of the moving object is high, a pixel shift amount per unit time is large and thus the pixel under observation shifts to the outside of the next image (frame-out). Therefore, the shift amount of the pixel cannot be acquired in some cases. Accordingly, for example, the higher an immediately preceding velocity or an average velocity of the moving object, the faster a frame rate becomes. In addition, there is a method through which frame-out of the pixel under observation is prevented by, for instance, setting an orientation in which the imaging means is provided such that a further away area is imaged when the immediately preceding velocity or the average velocity of the moving object increases. The image captured by the imaging means 111 is input to the calculating means 113.
[0027] The calculating means 113 includes, for example, a read only memory (ROM) in which a program or firmware is stored, a random access memory (RAM) as a memory unit, and a control unit that executes the program stored in the ROM. As the control unit, for example, a central processing unit (CPU), a graphics processing unit (GPU), a field programmable gate array (FPGA), or the like is appropriately used. The calculating means 113 calculates a velocity of the moving object, and sends the calculated velocity to the information exchanging means 112.
[0028] The information exchanging means 112 is a device that transmits and receives signals in a wired or a wireless manner, and a variety of digital or analog input/output (IO) ports and devices are appropriately used. For example, camera posture information, a target velocity of the moving object, a signal indicating the start of calculation, or the like is transmitted to the calculating means 113 via the information exchanging means 112. In addition, for instance, the calculated velocity, debug information of various devices, a response signal with respect to an input signal, or the like is transmitted to the outside of the apparatus 11.
[0029] Hereinafter, a velocity calculation method will be described.
[0030] A coordinate system illustrated in
[0031] The pixel shift amount is regarded as a shift amount of any point on the traveling surface which has been projected onto the image forming surface C. In a case where the moving object has shifted, without rotation, backward by ΔX and to the right by ΔY along the traveling surface G, any point M.sub.0=(x, y) on the traveling surface G relatively shifts forward by ΔX and to the left by ΔY. When the traveling surface G is expressed as Equation 1, a projection point M.sub.c0=(x.sub.c, y.sub.c) acquired by M.sub.0 being projected onto the image forming surface C is expressed as Equation 2.
z=ax+by+c [Equation 1]
[0032] In a state illustrated in
[0033] Once Equation 2 is substituted into Equation 3 and then rearranged, each of differential terms of Equation 3 is expressed as Equation 4.
[0034] Since the traveling surface G is parallel to the y-axis, b is 0. Once b is set to 0 and Equation 4 is substituted into Equation rearranging gives Equation 5.
[0035] Hereinbefore, a pixel shift amount in the case where the moving object has shifted without rotation has been described. On the other hand, pixel shift amounts Δx.sub.cr and Δy.sub.cr at the time when the camera has rotated, without shifting, by ΔΦ in a roll direction, Δθ in a pitch direction, and Δψ in a yaw direction are expressed as the following Equation. However, ΔΦ, Δθ, and Δψ are minute values.
[0036] From the above, pixel shift amounts Δx.sub.c and Δy.sub.c in a case where the moving object is rotated and shifted are expressed as Equation 7 obtained by adding Equation 5 and Equation 6 together.
[0037] Hereinafter, it will be described that the velocity of the moving object can be estimated from a gradient on the x-axis in the shift amount vector field and a gradient on the y-axis in the shift amount vector field when x.sub.c and y.sub.c are assumed as variables.
[0038] Since y.sub.c is 0 on the x-axis, Equation 7 is expressed as the following Equation.
[0039] A second term of Δx.sub.c in Equation 8 is a pixel shift amount as a result of pitch-rotation.
[0040] In addition, since x.sub.c is 0 on the y-axis, Equation 7 is expressed as the following Equation.
[0041] In Equation 9, the gradient of Δx.sub.c is −ΔΦ. Accordingly, once a gradient is acquired from a plurality of points of Δx.sub.c on the y-axis, a rotation amount ΔΦ in the roll direction is acquired. Once x.sub.cΔΦ is calculated from the acquired ΔΦ and then x.sub.cΔΦ is subtracted from Δy.sub.c of Equation 8, Equation 10 is derived.
[0042] In Equation 10, it is evident that Δy.sub.c is proportional to a horizontal shift amount ΔY of the moving object. Accordingly, once a gradient of Δy.sub.c with respect to the known shift amount of the moving object is recorded, the horizontal shift amount of the moving object is acquired based on the recorded gradient. By dividing the horizontal shift amount by time taken for the shift, a horizontal velocity of the moving object is acquired.
[0043] Hereinbefore, it has been described that the shift amount of the moving object can be calculated by using the gradient of the pixel shift amount. Whatever orientation the camera attached to the moving object faces, a similar calculation can be performed by a gradient of a line of intersection between a plane which passes through the optical axis of the camera and is perpendicular to the traveling surface G and the image forming surface C being used and by a gradient of a straight line on the image forming surface C which passes through the optical axis of the camera and which is perpendicular to the line of intersection being used. In addition, the rotation amount of the moving object can be calculated from, for example, Equation 8 or the like by various coefficients of the traveling surface G calculated from a posture of the camera and the acquired ΔX, ΔY, and ΔΦ being used.
[0044] Hereinafter, internal configuration elements of the calculating means 113 will be described.
[0045] From a plurality of captured images acquired from the imaging means 111, the pixel shift amount calculation unit 1131 calculates a pixel shift amount at a plurality of points within an image. In the embodiment, a block matching method is used as a method for calculating a pixel shift amount.
[0046]
[0047] In this Equation, x and y are natural numbers that indicate a position of a block within a search range, a pixel on the upper left end of the image is set as the origin, and a downward direction is set as the x-axis and the right is set as the y-axis. In addition, when there are w pixels in the horizontal width of the block and h pixels in the vertical width of the block, x′=0, 1, . . . , h and y′=0, 1, . . . w. R is calculated with respect to x and y within the entire search region, and x and y that result in a lowest R can be estimated as a shift destination of a pixel included in the block within the image 2. By the above being calculated with respect to the block in a plurality of different parts within the image, the pixel shift amount vector field within the image can be calculated. A method for calculating the pixel shift amount vector field is not limited to the aforementioned method. For instance, a method in which a gradient method using a relationship between spatial and temporal gradients of brightness of each point may be employed or a method in which a pixel shift amount is calculated by an edge within the image being detected and then an edge that matches the above edge among a plurality of images captured at different time points being found may be employed.
[0048] The pixel shift amount gradient calculation unit 1132 calculates a gradient of the pixel shift amount vector field.
[0049] When a function is fitted to the pixel shift amount vector field, the pixel shift amount vector of the entire image is not required. According to Non Patent Literature, for example, in a case of plane function-fitting, it is preferable to have pixel shift amount vectors of at least three parts. Accordingly, for example, by acquiring a pixel shift amount vector with respect to the search region illustrated in
[0050] The velocity calculation unit 1133 calculates a velocity from the pixel shift amount gradient by means of the velocity calculation method that has already been described.
[0051] As illustrated in
[0052] It is possible to provide the velocity measuring apparatus in which an effect of rotational motion of the moving object on velocity measurement results is small, and which can measure an exact velocity of a moving object with no wheels or a moving object of which the wheels slip.
[0053] Hereinafter, an example of a moving object which is provided with the aforementioned optical velocity measuring apparatus and which can measure an exact velocity of its own even when a posture of the moving object changes and wheels of the moving object slip or idle will be described. Out of configurations and functions of the optical velocity measuring apparatus 11 in
[0054] A structure of a moving object 21 provided with the optical velocity measuring apparatus of the embodiment will be described with reference to
[0055] A system configuration of the moving object 21 will be described with reference to
[0056] The controlling means 213 includes a traveling control unit 2121, a velocity measuring means switching unit 2122, and a calibration unit 2123 on the inside thereof. The traveling control unit 2121 controls the moving object such that the moving object does not overturn in the roll direction and controls a shift direction and velocity of the moving object or the like based on the posture information of the moving object from the posture recognizing means 214 and the velocity information and shift direction information from the traveling means 212. The velocity measuring means switching unit 2122 switches velocity measuring means in accordance with a wheel rotation velocity of traveling means such that highly accurate velocity measurement results are acquired. The calibration unit 2123 calibrates the optical velocity measuring apparatus 11. Herein, calibration means acquiring a ratio of a pixel shift amount vector gradient described in the first embodiment to a known velocity acquired by other velocity measuring means to a distance from the apparatus 11 to the ground at the time of velocity measurement.
[0057] An operation of the controlling means 213 will be described with reference to
[0058] The switching reference value V.sub.k of the velocity measuring means switching unit 2122 will be described with reference to
[0059] In addition, by the optical velocity measuring apparatus, which is not being used, being calibrated when measuring a velocity from a wheel rotation amount, time and efforts that are spent on conducting an operation only for calibration before using the moving object reduces.
[0060] A method for calculating a velocity from calibration results will be described. According to Equation 8, a pixel shift amount gradient is proportional to a velocity, and is inversely proportional to a coefficient c. The coefficient c is an intercept at which the traveling surface G intersects with the z-axis of the coordinate system. In addition, the coefficient c is proportional to a distance between the imaging means 111 and the traveling surface G. From the above, the velocity can be calculated through the following Equation.
[0061] In the above Equation, c′ is the coefficient c or an amount that is proportional to the coefficient c, v.sub.x is a velocity in the forward direction, v.sub.y is a velocity to the left, p.sub.x is a pixel shift amount gradient in the x-direction, p.sub.y is a pixel shift amount gradient in the y-direction, and K.sub.x and K.sub.y are the proportionality constants acquired by calibration. The proportionality constants K.sub.x and K.sub.y are acquired by a known x-direction velocity v.sub.x0, y-direction velocity v.sub.y0, and coefficient c or amount c.sub.0′ that is proportional to the coefficient c, all of which have been recorded at the time of calibration and an x-direction pixel shift amount gradient p.sub.x0 and y-direction pixel shift amount gradient p.sub.y0, all of which have been measured being used in the following Equation.
[0062] The coefficient c can be acquired from, for example, a geometric relationship between a posture of the moving object 21 obtained by the posture recognizing means and the imaging means 111 of the optical velocity measuring apparatus 11. Alternatively, a distance between the imaging means 111 and the traveling surface G is used as an amount that is proportional to the coefficient c. The distance may be measured by a sensor, such as a laser sensor and an ultrasonic sensor, provided in the moving object 21 being appropriately used.
[0063] The stabilizing means 211 operates such that a roll angle of the apparatus 11 is substantially horizontal with respect to the traveling surface based on a control signal from the controlling means 213 since the stabilizing means 211 can control a posture of the optical velocity measuring apparatus 11 in a pitch or roll direction. Although the stabilizing means 211 is not necessarily required to measure a velocity, using the stabilizing means 211 can simplify the calculation since the pixel shift amount gradient on the x-axis and the y-axis of the image forming surface can be used.
[0064] The traveling means 212 can steer front and back wheels independently of each other as illustrated in
[0065] The controlling means 213 includes, for example, a ROM in which a program or firmware is stored, a RAM as a memory unit, and a CPU, as a control unit, which executes the program stored in the ROM.
[0066] As described above, in the embodiment, it is possible to provide a velocity measuring apparatus in which effect of rotational motion of a moving object on velocity measurement results is small, and which can measure an exact velocity of the moving object with no wheels or a moving object of which the wheels slip. In addition, it is possible to provide a moving object which is provided with the velocity measuring apparatus, and which can estimate an exact velocity of its own regardless of slipping or idling of the wheels and presence or absence of wheels. A surface to be an imaging target is not limited to the ground. Insofar as a surface of which a positional relationship with the camera is known, any surface becomes the target. For instance, a ground surface, a wall of a building, a ceiling, a water surface, a top plate for a table and the like may become the target. In particular, it is expected to be applicable to a ship or a flying object which shifts without wheels being used.
[0067] The invention is not limited to the aforementioned embodiment, and includes various modification examples. For instance, the aforementioned embodiment is a detailed description to promote understanding on the invention, and the aforementioned embodiment is not to limit the invention to a form having all and every configuration described herein. In addition, a part of a configuration of a certain embodiment can substituted with a configuration of different embodiments, and a configuration of a certain embodiment can be added with a configuration of other embodiments. In addition, a part of a configuration of each embodiment can be added with different configurations, be deleted, and be substituted by different configurations.
[0068] In addition, each of the aforementioned configurations, functions, processing units, processing means, and the like may be realized in the form of hardware such as an integrated circuit which is designed so as to incorporate a part or the whole of the above. In addition, the aforementioned configurations, functions, and the like may be realized in the form of software by interpreting and executing a program in which a processor realizes each function. Information, such as a program, a table and a file to realize each function, can be written in a recording device including a memory, a hard disk, and a solid state drive (SSD) or in a recording medium including an IC card, an SD card, and a DVD.
[0069] In addition, control lines or information lines that are thought to be necessary have been described for the sake of explanation, and not all types of products of control lines or information lines are described herein. It may be considered that practically all configurations are connected to each other in reality.
[0070] In addition, although the optical velocity measuring apparatus provided in the moving object has been described in the aforementioned embodiment, the apparatus, for example, can be provided at a fixed point and can be used in measuring a velocity of an imaging target object as well. A shift velocity of the imaging target object can be measured by, for instance, a liquid surface, a sheet-like object, an object sprayed on a sheet, and the like being imaged.
[0071] In addition, an indirect imaging may be conducted by the imaging means of the apparatus that captures an image projected from externally provided imaging means onto an image monitor or a screen instead of directly imaging, by the imaging device of the apparatus, an object of which a shift velocity intended to be observed.
REFERENCE SIGNS LIST
[0072] 11 optical velocity measuring apparatus of first embodiment
[0073] 111 imaging means
[0074] 112 information exchanging means
[0075] 113 calculating means
[0076] 1131 pixel shift amount calculation unit
[0077] 1132 pixel shift amount gradient calculation unit
[0078] 1133 velocity calculation unit
[0079] 21 moving object of second embodiment
[0080] 211 stabilizing means
[0081] 212 traveling means
[0082] 2121 traveling control unit
[0083] 2122 velocity measuring means switching unit
[0084] 2123 calibration unit
[0085] 213 controlling means
[0086] 214 posture recognizing means
[0087] 215 external information inputting and outputting means
[0088] x.sub.c x-coordinate on image forming surface of camera
[0089] y.sub.c y-coordinate on image forming surface of camera
[0090] Δx.sub.c pixel shift amount in x-direction
[0091] Δy.sub.c pixel shift amount in y-direction
[0092] Δx shift amount in x-direction of imaging target
[0093] Δy shift amount in y-direction of imaging target
[0094] ΔX shift amount in forward direction of imaging target
[0095] ΔY shift amount to left of imaging target