WO2020129715A1 - Image correction device, image correction method, and program - Google Patents

Image correction device, image correction method, and program Download PDF

Info

Publication number
WO2020129715A1
WO2020129715A1 PCT/JP2019/047939 JP2019047939W WO2020129715A1 WO 2020129715 A1 WO2020129715 A1 WO 2020129715A1 JP 2019047939 W JP2019047939 W JP 2019047939W WO 2020129715 A1 WO2020129715 A1 WO 2020129715A1
Authority
WO
WIPO (PCT)
Prior art keywords
line
image
horizontal straight
dimensional
unit
Prior art date
Application number
PCT/JP2019/047939
Other languages
French (fr)
Japanese (ja)
Inventor
香織 片岡
慎吾 安藤
淳 嵯峨田
Original Assignee
日本電信電話株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 日本電信電話株式会社 filed Critical 日本電信電話株式会社
Publication of WO2020129715A1 publication Critical patent/WO2020129715A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/20Linear translation of a whole image or part thereof, e.g. panning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith

Definitions

  • the present disclosure relates to an image correction device, an image correction method, and a program.
  • the line scan camera capable of acquiring tens of thousands of line images per second is not only used for inspection of abnormalities of products flowing on the belt conveyor in factories, but also mounted on vehicles and arranged in a line.
  • the image sensors By arranging the image sensors in the direction perpendicular to the ground (direction connecting the ground and the sky) and shooting while running, it has been noted that a high-resolution outdoor image can be acquired while running (Non-Patent Document 1). 1).
  • two-dimensional images are created by arranging the line images in the running direction in time series, there may be a case where a deviation occurs between the line images due to vibration of the vehicle when the line images are acquired. is there.
  • Non-Patent Document 2 Japanese Patent Document 2
  • the present disclosure has been made in view of the above points, and in a line parallel image in which line images captured by a line scan camera are arranged in time series, it is possible to appropriately correct the deviation of the line images. It is an object to provide a correction device, an image correction method, and a program.
  • an image correction apparatus is a line image that is captured by a line scan camera in which image pickup elements are arranged in one row and that extends in a direction perpendicular to a moving direction.
  • a line scan camera in which image pickup elements are arranged in one row and that extends in a direction perpendicular to a moving direction.
  • an image generation unit that generates a two-dimensional line-parallel image and a two-dimensional camera in which image pickup elements are arranged in a matrix form a line scan when the line scan camera captures the line image.
  • a horizontal straight line detection unit that detects a horizontal straight line extending in the horizontal direction included in each of a plurality of two-dimensional images obtained by photographing the same direction as the camera, the line image, and the light of the two-dimensional image.
  • An inter-camera associating unit that associates with a vertical line image that passes through the axis center, a horizontal straight line associating unit that associates the horizontal straight lines between the plurality of two-dimensional images, and the line image. Based on the association with the vertical line image, the horizontal straight line is mapped to each of the line images, in the line parallel image, a labeling unit for giving a label to a region including the horizontal straight line, and the label.
  • An image correction unit that corrects the position of the line image in the vertical direction in the line parallel image based on the added region.
  • An image correction apparatus is the image correction apparatus according to the first aspect, wherein the line scan camera and the two-dimensional camera are provided in a vehicle, and the line image is a tire of the vehicle. From the rotary encoder installed in the, based on the signal output each time the vehicle moves a predetermined distance, is an image captured by the line scan camera, the image generation unit, the line image in chronological order Side by side, the line parallel image with the horizontal axis being parallel projection is generated.
  • An image correction apparatus is the image correction apparatus according to the first aspect or the second aspect, wherein the horizontal straight line detection unit includes a pair of sides parallel to the vertical direction and the horizontal direction. At least one side of the pair of sides parallel to the horizontal direction of the rectangle formed by the pair of sides parallel to the horizontal line is the horizontal straight line.
  • An image correction apparatus is the image correction apparatus according to any one of the first to third aspects, in which the labeled unit includes the line image and the line parallel image.
  • a horizontal straight line position calculation unit that derives a positional relationship between the two-dimensional images based on the correspondence and calculates coordinates in the real space of the horizontal straight lines that are associated between the two-dimensional images.
  • an image correction method is directed to an image generation unit that is perpendicular to a moving direction taken by a line scan camera in which image pickup devices are arranged in one row.
  • the program according to the sixth aspect of the present disclosure is a program for causing a computer to function as each unit of the image correction apparatus according to any one of the first to fourth aspects. is there.
  • FIG. 6 is a diagram for explaining a shift generated in a line parallel image generated by the image generation unit of the embodiment. It is a figure for demonstrating matching of a line image and a two-dimensional image by the correspondence part between cameras of an embodiment, and a base line length.
  • FIG. 6 is a diagram illustrating correction of a line image shift by the image correction unit of the embodiment. 6 is a flowchart showing an example of an image correction processing routine in the image correction apparatus of the embodiment.
  • FIG. 1 is a block diagram showing the configuration of an example of the image correction apparatus 10 of this embodiment.
  • a form in which the image correction device of the present disclosure is applied to a line parallel image generated by arranging line images captured by a line scan camera mounted on a vehicle in time series will be described.
  • the image correction apparatus 10 includes an image generation unit 22, a horizontal straight line detection unit 28, an inter-camera correspondence unit 30, a horizontal straight line correspondence unit 34, a labeling unit 36, and an image correction unit. 38.
  • the image correction apparatus 10 of the present embodiment includes a CPU (Central Processing Unit), a RAM (Random Access Memory), and a ROM (Read) that stores a program for executing an image correction processing routine described below and various data. Only Memory), and can be configured with a computer including.
  • a CPU Central Processing Unit
  • RAM Random Access Memory
  • ROM Read
  • the CPU that executes the above-described program causes the image generation unit 22, the horizontal straight line detection unit 28, the inter-camera correspondence unit 30, the horizontal straight line correspondence unit 34, and the labeled unit of the image correction apparatus 10 shown in FIG. It functions as the unit 36 and the image correction unit 38.
  • the image correction apparatus 10 includes a line image storage unit 20, a line parallel image storage unit 24, a two-dimensional image storage unit 26, and a two-dimensional inter-image baseline length storage unit 32.
  • a line image and a two-dimensional image are acquired by each of the line scan camera 2 and the two-dimensional camera 4 provided on the side surface of the vehicle 50.
  • the line scan camera 2 is a camera in which the image pickup elements are arranged in one row, and is also called a “line sensor camera” or the like.
  • the image pickup elements of the line scan camera 2 are arranged in a state of being aligned in a vertical direction B intersecting the moving direction A of the vehicle 50, and the line scan camera 2 is used to drive a line image while the vehicle 50 is traveling. 60 are photographed at regular intervals.
  • a device such as a rotary encoder that outputs a pulse signal each time the vehicle 50 moves a predetermined distance is provided on the tire or the like of the vehicle 50.
  • the line scan camera 2 sequentially captures line images 60 extending in a vertical direction B intersecting the moving direction of the vehicle 50, that is, extending vertically to the ground, based on the pulse signals output from the device, and the captured line images.
  • the image data representing 60 is output.
  • the present invention is not limited to this embodiment, and the line image 60 may be acquired while the vehicle 50 is moving at a constant speed. In this case as well, the line image 60 whose horizontal axis is parallel projection may be acquired. it can.
  • Image data representing each of the plurality of line images 60 taken by the line scan camera 2 is input to the image correction apparatus 10.
  • Image data representing each of the plurality of line images 60 input to the image correction apparatus 10 is stored in the line image storage unit 20.
  • the two-dimensional camera 4 is a camera in which image pickup elements are arranged in a matrix, and is a camera used for taking general photographic images.
  • the two-dimensional camera 4 of the present embodiment is provided on the side surface of the vehicle 50 along with the line scan camera 2, and when the line scan camera 2 captures an image while the vehicle 50 is traveling, the line scan camera 2 is used.
  • the two-dimensional camera 4 of the present embodiment captures a moving image while the line scan camera 2 captures a plurality of line images 60. It should be noted that shooting of a moving image by the two-dimensional camera 4 can be performed inexpensively and easily, and there is little burden even if shooting is performed simultaneously with the line scan camera 2 for blur correction, which will be described later.
  • Image data representing the line image 60 is input to the image generation unit 22 from the line image storage unit 20.
  • the image generation unit 22 arranges the image data representing the line image 60 in chronological order according to the moving direction A of the vehicle 50 to generate a two-dimensional line parallel image (line parallel image 62, see FIG. 3 ).
  • line parallel image a two-dimensional image obtained by arranging a plurality of line images 60 in time series. Therefore, the image of each line (one line in the vertical direction B) of the line parallel image corresponds to the line image 60 captured by the line scan camera 2.
  • FIG. 3 shows an example of the line parallel image 62 generated by the image generation unit 22.
  • the line parallel image 62 is an image in which the line images 60 are arranged one column at a time. Therefore, due to the vibration of the running vehicle 50 or the like, the line image 60 is vertically aligned with the line image 60. Misalignment may occur.
  • the image correction apparatus 10 of the present embodiment corrects the shift of the line image 60 in the vertical direction B in the line parallel image 62.
  • the image data representing the line parallel image 62 generated by the image generation unit 22 is output to the line parallel image storage unit 24 and stored in the line parallel image storage unit 24.
  • moving image data refers to capturing still images, displaying captured still images one after another at high speed, and recognizing them as moving images. Therefore, moving image data is a collection of a plurality of still image data.
  • each of the plurality of still image data included in the moving image data is referred to as two-dimensional image data
  • the image represented by each of the two-dimensional image data is referred to as “two-dimensional image”.
  • a plurality of two-dimensional image data that forms a moving image and is input to the image correction apparatus 10 is stored in the two-dimensional image storage unit 26.
  • Two-dimensional image data representing a two-dimensional image is input from the two-dimensional image storage unit 26 to the horizontal straight line detection unit 28.
  • the horizontal straight line detection unit 28 detects a horizontal straight line serving as an index for correcting the deviation of the line image 60 from each of the plurality of two-dimensional images represented by each of the input two-dimensional image data.
  • the “horizontal straight line” is a straight line extending in a horizontal direction C (see FIG. 2B, FIG. 3, etc.) orthogonal to the vertical direction B, in other words, parallel to the moving direction A of the vehicle 50. It is a straight line.
  • the straight line which is an index for blur correction of the line image 60, is equidistant from the running trajectory of the vehicle 50.
  • the horizontal straight line detection unit 28 of this embodiment detects a rectangle from a two-dimensional image.
  • the building itself to be photographed often has a rectangular shape, and the fact that there are many straight lines forming a rectangle such as a door and a signboard is utilized, and the horizontal straight line detection unit 28 has no vanishing point. That is, only the straight lines estimated to form a rectangle positioned parallel to the moving direction A of the vehicle 50 are selected. As a result, in the image correction apparatus 10 of the present embodiment, it is possible to improve the detection accuracy of the horizontal straight line that serves as an index.
  • the process described in Reference 1 may be applied.
  • the processing of the detected rectangles, when the inclination of one pair of two sides facing each other is the moving direction A of the vehicle 50 as the horizontal axis, another pair of two sides parallel to and facing the horizontal axis.
  • a rectangle whose inclination is parallel to the vertical direction B (the vertical axis direction of the image) is detected.
  • the rectangle is detected from the two-dimensional image, and at least one side of the pair of sides parallel to the horizontal direction of the rectangle is detected as the horizontal straight line, so that the vehicle 50 can be stably operated. It is possible to select a group of horizontal straight lines existing in parallel to the traveling route of, and it is possible to accurately correct the deviation of the line image 60.
  • Image data representing a line-parallel image is input from the line-parallel image storage unit 24 to the inter-camera correspondence unit 30.
  • Image data representing a two-dimensional image is input to the inter-camera correspondence unit 30 from the horizontal straight line detection unit 28.
  • the inter-camera correspondence unit 30 For each of the two-dimensional images, the inter-camera correspondence unit 30 includes a line image 60 and one line along the vertical direction B passing through the optical axis center of the two-dimensional image, which is obtained from the two-dimensional image.
  • An image hereinafter, referred to as “vertical line image”) is associated.
  • the line image 60 taken by the line scan camera 2 is an image in which the horizontal axis is parallel projection.
  • the two-dimensional image captured by the two-dimensional camera 4 is an image by perspective projection. Therefore, the line image 60 and the entire two-dimensional image are different in the way in which the subject is photographed, and it is difficult to associate the same area.
  • the inter-camera correspondence unit 30 collates a vertical line image passing through the optical axis center of the two-dimensional image with the image of one line of the line parallel image 62 (line image 60) and associates them.
  • the method described in Reference Document 2 may be used for the matching.
  • a correlation value between the vertical line image and the line image to be collated may be derived and the line image having a high correlation may be selected.
  • the line parallel image 62 (line image 60) may be reduced or a low-pass filter may be used.
  • the position where the two-dimensional image is captured can be known. This is because, as shown in FIG. 4, in the line parallel image 62 (line image 60), the horizontal axis is parallel projection, and the x coordinate, which is the coordinate on the horizontal axis, directly corresponds to the coordinate in the real space. Is.
  • the two-dimensional image 66 (FIG. 4, 2-dimensional image 66 1, 66 2 reference) base length H between is known, calculates the three-dimensional position of the imaged object in a simple Is possible.
  • a vertical line image 67 1 in the two-dimensional image 66 1 and a vertical line image 67 2 in the two-dimensional image 66 2, associated to the line parallel image 62. Then, the absolute value of the difference between the x-coordinates of the vertical line image 67 1 and the vertical line image 67 2 becomes the base line length H.
  • Information representing the baseline length H derived by the inter-camera correspondence unit 30 is stored in the two-dimensional inter-image baseline length storage unit 32.
  • Information indicating the baseline length H is input from the two-dimensional inter-image baseline length storage unit 32 to the horizontal straight line correspondence unit 34. Further, the horizontal straight line correspondence unit 34 is input with information representing the horizontal straight line detected by the horizontal straight line detection unit 28.
  • the horizontal straight line association unit 34 associates a plurality of two-dimensional images 66 with each other. Specifically, the horizontal straight line association unit 34 of the present embodiment associates the rectangles extracted in each two-dimensional image 66.
  • the method of Reference 2 above may be used for the matching.
  • the y-coordinate which is the height on the vertical axis of the two-dimensional image 66, can be limited to a region having the same y-coordinate as one rectangle.
  • the labeling result of the horizontal straight line mapping unit 34 is input to the labeling unit 36.
  • Image data representing the line parallel image 62 is input to the labeling unit 36 from the line parallel image storage unit 24.
  • the labeling unit 36 of the present embodiment includes a horizontal straight line position calculation unit 37 that calculates the position of the horizontal straight line in the line parallel image 62.
  • the three-dimensional position of the horizontal line on the rectangle in the real space can be calculated by performing stereoscopic vision (see Reference 3).
  • the labeling unit 36 determines the coordinates of the line image 60 included in the line parallel image 62 in the x-axis direction when the moving direction of the vehicle 50 is the x-axis, and the three-dimensional position of the rectangular horizontal straight line in the real space.
  • the horizontal straight line is mapped to the line image 60 from the three-dimensional position in the real space of the horizontal straight line in the vertical line image associated with the line image 60, and each line image in the line parallel image 62 is mapped.
  • a region including 60 mapping positions is labeled as a region where a horizontal straight line should be detected.
  • the y-axis direction of the line parallel image 62 is perspective projection, and therefore the focal length of the line scan camera 2 is f and the height in the real space is set according to the distance Z from the travel route.
  • the y coordinate is represented by a value obtained by dividing the value obtained by multiplying the focal length f and the height Y by the distance Z.
  • the line parallel image 62 to which the label is added from the labeling unit 36 is input to the image correction unit 38.
  • the image correction unit 38 is input with image data representing the line parallel image 62 and information representing the labeled area in the line parallel image 62.
  • the image correction unit 38 detects the contour of the imaging target in the labeled area of the line parallel image 62 by using the process shown in Reference 4, and the line is adjusted so that the contour line segment becomes a straight line.
  • the image 60 is shifted up and down for correction. Specifically, as shown in FIG. 5, with respect to the area 70 to which the label of the line parallel image 62 is given, adjacent pixels are shifted by several pixels as indicated by an arrow S while the line image 60 is shifted in the vertical direction B (up and down). It is also possible to calculate the image correlation value with the gap as in Reference 2 above and correct the shift amount of the line image 60 so that the correlation becomes high.
  • the image correction unit 38 outputs image data representing the line parallel image 62 in which the shift of the line image 60 is corrected in this way.
  • FIG. 6 is a flowchart showing an example of an image correction processing routine executed in the image correction apparatus 10 of this embodiment.
  • the image data representing the line image 60 captured by the line scan camera 2 is stored in the line image storage unit 20 and the two-dimensional image captured by the two-dimensional camera 4 is used.
  • the image data representing 66 is executed at an arbitrary timing such as the timing when the image data representing 66 is stored in the two-dimensional image storage unit 26 or the timing when the execution instruction of the image correction processing routine is received from the outside of the image correction apparatus 10.
  • the image data representing the line image 60 is stored in the line image storage unit 20, and the image data representing the two-dimensional image 66 is stored in the two-dimensional image before the image correction processing routine is executed.
  • the state is stored in the unit 26.
  • step S100 of FIG. 6 the image generation unit 22 arranges the image data representing the line image 60 stored in the line image storage unit 20 in chronological order to generate the line parallel image 62, as described above.
  • the horizontal straight line detection unit 28 has no vanishing point from each of the plurality of two-dimensional images represented by each of the input two-dimensional image data, that is, the movement of the vehicle 50, as described above.
  • a straight line estimated to form a rectangle positioned parallel to the direction A is detected as a horizontal straight line serving as an index for deviation correction.
  • the inter-camera associating unit 30 associates the line images 60 with the vertical line image 67 passing through the optical axis center of the two-dimensional image 66 as described above, thereby associating the cameras. I do. Further, the inter-camera correspondence unit 30 derives the base line length H from each vertical line image 67 of the two two-dimensional images 66.
  • the horizontal straight line association unit 34 associates a plurality of two-dimensional images 66 with each other by associating the rectangles extracted in each two-dimensional image 66 as described above.
  • the labeling unit 36 calculates the three-dimensional position in the real space of the extracted horizontal straight line on the rectangle by the horizontal straight line position calculation unit 37 as described above. Further, the labeling unit 36 maps a horizontal straight line on the line parallel image 62 based on the coordinate in the x-axis direction, which is the moving direction of the vehicle 50, and labels the area where the horizontal straight line should be detected.
  • the image correction unit 38 shifts the line image 60 up and down so that the contour line segment of the photographing target becomes a straight line in the labeled area of the line parallel image 62, as described above. Make a correction.
  • the main image correction processing routine ends.
  • the image correction device 10 includes the image generation unit 22, the horizontal straight line detection unit 28, the inter-camera correspondence unit 30, the horizontal straight line correspondence unit 34, the labeling unit 36, and the image correction unit 38. Equipped with.
  • the image generation unit 22 arranges the line images 60, which are taken by the line scan camera 2 in which the image pickup elements are arranged in one row and extend in the vertical direction B with respect to the moving direction A, in a time series order to form a two-dimensional line parallel image. 62 is generated.
  • the horizontal straight line detection unit 28 is obtained by the two-dimensional camera 4 in which the image pickup elements are arranged in a matrix, when the line scan camera 2 captures the line image 60, in the same direction as the line scan camera 2.
  • a horizontal straight line extending in the horizontal direction C included in each of the plurality of two-dimensional images 66 is detected.
  • the inter-camera associating unit 30 associates the line image 60 with the vertical line image 67 passing through the optical axis center of the two-dimensional image 66.
  • the horizontal straight line association unit 34 associates the horizontal straight lines among the plurality of two-dimensional images 66.
  • the labeling unit 36 maps a horizontal straight line to each of the line images 60 based on the correspondence between the line image 60 and the vertical line image 67, and assigns a label to a region including the horizontal straight line in the line parallel image 62. To do.
  • the image correction unit 38 corrects the position of the line image 60 in the vertical direction B in the line parallel image 62 based on the labeled area.
  • the information of the two-dimensional image 66 captured by the two-dimensional camera 4 and the information of the line image 60 captured by the line scan camera 2 are integrated to perform the blur correction.
  • the horizontal straight line that serves as an index is accurately detected, and the blurring of the line parallel image 62 is corrected.
  • the two-dimensional image 66 taken by the two-dimensional camera 4 is an image by perspective projection
  • a horizontal straight line is detected from a region other than the region equidistant from the x-axis.
  • the inter-camera correspondence unit 30 detects a horizontal straight line existing on the equidistant surface, so that the difference in the appearance (the appearance of the imaging target) can be obtained.
  • the two-dimensional image 66 and the line parallel image 62 (line image 60) can be collated with high accuracy while suppressing.
  • the inter-camera associating unit 30 detects a rectangle and detects only those in which the inclinations of two straight lines forming the rectangle are the same in the horizontal direction C and the vertical direction B, respectively, and are parallel to the horizontal direction C.
  • One of the sides of the set is used as an index for correcting the deviation.
  • the image correction apparatus 10 of the present embodiment by detecting the group of straight lines in the horizontal direction C having no vanishing point in this way, it is possible to accurately shift the horizontal straight lines existing at the same distance from the traveling route of the vehicle 50. It becomes possible to use it as an index for correction.
  • the position of the vertical line image 67 passing through the optical axis center of the two-dimensional image 66 in the real space can be known. Therefore, the horizontal straight line position calculation unit 37 can calculate the position of the horizontal straight line in the real space only by associating the horizontal straight lines between the two-dimensional images 66.
  • the image correction apparatus 10 can detect the horizontal straight line that is an index for correcting the deviation by re-projecting the horizontal straight line to which the position in the real space is added to the line parallel image 62.
  • the image correction apparatus 10 of the present embodiment it is possible to appropriately correct the deviation of the line image 60 in the line parallel image 62 in which the line images 60 taken by the line scan camera 2 are arranged in time series. ..
  • the line parallel image 62 is corrected over a long distance without previously capturing an object serving as an index at the same time or designating a region where blurring exists by a user or the like. Can be automatically performed in a short time.
  • the program for executing the image correction process is pre-installed has been described, but the program may be stored in a computer-readable recording medium and provided. It is also possible to provide it via a network.

Abstract

The present invention addresses the issue of appropriately correcting line image displacement in line parallel images having line images that have been captured by a line scan camera and are lined up in chronological order. An image generation unit 22 lines up line images 60 and generates a two-dimensional line parallel image 62. A horizontal straight line detection unit 28 detects horizontal straight lines included in each of a plurality of two-dimensional images 66. An inter- camera correspondence unit 30 correlates a line image 30 and a vertical line image 67 that passes through the center of a two-dimensional image 66. A horizontal straight line correspondence unit 34 correlates horizontal straight lines between a plurality of two-dimensional images 66. A label application unit 36 maps horizontal straight lines to each of the line images 60, on the basis of the correlation between the line images 60 and the vertical line image 67, and applies a label to a region including a horizontal straight line in the line parallel image 62. The image correction unit 38 corrects the position of the line image 60 in the vertical direction in the line parallel image 62, on the basis of the region to which the label was applied.

Description

画像補正装置、画像補正方法、及びプログラムIMAGE CORRECTION DEVICE, IMAGE CORRECTION METHOD, AND PROGRAM
 本開示は、画像補正装置、画像補正方法、及びプログラムに関する。 The present disclosure relates to an image correction device, an image correction method, and a program.
 一秒に数万枚のライン画像の取得が可能なラインスキャンカメラは、工場等でベルトコンベアを流れる製品の異常検知検査等に用いられるだけでなく、車両等に搭載し、1列に並んだ撮像素子を地面に垂直(地面と空を結ぶ方向)方向に配列して、走行しながら撮影することで、屋外の高解像度な画像を走行しながら取得できる点で注目されている(非特許文献1)。 The line scan camera capable of acquiring tens of thousands of line images per second is not only used for inspection of abnormalities of products flowing on the belt conveyor in factories, but also mounted on vehicles and arranged in a line. By arranging the image sensors in the direction perpendicular to the ground (direction connecting the ground and the sky) and shooting while running, it has been noted that a high-resolution outdoor image can be acquired while running (Non-Patent Document 1). 1).
 このようにラインスキャンカメラを用いることで、ライン画像の取得レートをあげ、車両で一般走行しながら高解像度な画像を取得することが可能となる。 By using the line scan camera in this way, it is possible to increase the line image acquisition rate and acquire high resolution images while traveling in the vehicle in general.
 しかしながら、ライン画像を走行方向に時系列にならべて2次元の画像(ライン並列画像)を作成するが、ライン画像を取得した際の車両の振動等によりライン画像間にずれが生じてしまう場合がある。 However, although two-dimensional images (line parallel images) are created by arranging the line images in the running direction in time series, there may be a case where a deviation occurs between the line images due to vibration of the vehicle when the line images are acquired. is there.
 そこで、従来、ライン画像(ライン並列画像)中に含まれる水平線を推定し、推定した水平線が直線になるように、並べたライン画像を1ラインずつ上下に移動させることで、ライン並列画像におけるライン画像のずれを補正する手法がある(非特許文献2)。 Therefore, conventionally, by estimating the horizontal line included in the line image (line parallel image) and moving the arranged line images up and down by one line so that the estimated horizontal line becomes a straight line, the line in the line parallel image is There is a method for correcting image shift (Non-Patent Document 2).
 しかしながら、従来の水平線を推定する手法では、撮影されたライン画像に必ずケーブル等の水平な直線の目安となるものが写っているとわかっている場合や振動によるずれの箇所を指定しなければ、水平線の推定に失敗し補正処理がうまくいかないといった問題点があった。 However, in the conventional method of estimating the horizon, if it is known that the captured line image always contains a guideline such as a horizontal straight line such as a cable, or if the displacement due to vibration is not specified, There was a problem that the estimation of the horizon failed and the correction process failed.
 本開示は、上記の点に鑑みてなされたものであり、ラインスキャンカメラにより撮影されたライン画像を時系列で並べたライン並列画像における、ライン画像のずれを適切に補正することができる、画像補正装置、画像補正方法、及びプログラムを提供することを目的とする。 The present disclosure has been made in view of the above points, and in a line parallel image in which line images captured by a line scan camera are arranged in time series, it is possible to appropriately correct the deviation of the line images. It is an object to provide a correction device, an image correction method, and a program.
 上記目的を達成するために、本開示の第1の態様の画像補正装置は、撮像素子が1列状に配置されたラインスキャンカメラで撮影された、移動方向に対して垂直方向に延びるライン画像を時系列順に並べて2次元のライン並列画像を生成する画像生成部と、撮像素子が行列状に配置された2次元カメラが、前記ラインスキャンカメラが前記ライン画像を撮影した際に、前記ラインスキャンカメラと同一方向を撮影して得られた複数の2次元画像の各々に含まれる、水平方向に延びる水平直線を検出する水平直線検出部と、前記ライン画像と、前記2次元画像のうちの光軸中心を通る垂直ライン画像との対応付けを行う、カメラ間対応付部と、複数の前記2次元画像間における、前記水平直線の対応付けを行う水平直線対応付部と、前記ライン画像と、前記垂直ライン画像との対応付けに基づいて、前記水平直線を前記ライン画像の各々にマッピングし、前記ライン並列画像における、前記水平直線を含む領域にラベルを付与するラベル付部と、前記ラベルが付与された領域に基づいて、前記ライン並列画像における前記ライン画像の前記垂直方向の位置を補正する画像補正部と、を備える。 In order to achieve the above object, an image correction apparatus according to a first aspect of the present disclosure is a line image that is captured by a line scan camera in which image pickup elements are arranged in one row and that extends in a direction perpendicular to a moving direction. Are arranged in time series, and an image generation unit that generates a two-dimensional line-parallel image and a two-dimensional camera in which image pickup elements are arranged in a matrix form a line scan when the line scan camera captures the line image. A horizontal straight line detection unit that detects a horizontal straight line extending in the horizontal direction included in each of a plurality of two-dimensional images obtained by photographing the same direction as the camera, the line image, and the light of the two-dimensional image. An inter-camera associating unit that associates with a vertical line image that passes through the axis center, a horizontal straight line associating unit that associates the horizontal straight lines between the plurality of two-dimensional images, and the line image. Based on the association with the vertical line image, the horizontal straight line is mapped to each of the line images, in the line parallel image, a labeling unit for giving a label to a region including the horizontal straight line, and the label. An image correction unit that corrects the position of the line image in the vertical direction in the line parallel image based on the added region.
 本開示の第2の態様の画像補正装置は、第1の態様の画像補正装置において、前記ラインスキャンカメラ及び前記2次元カメラは、車両に設けられており、前記ライン画像は、前記車両のタイヤに設置されたロータリエンコーダから、前記車両が所定距離移動する毎に出力される信号に基づいて、前記ラインスキャンカメラにより撮影された画像であり、前記画像生成部は、前記ライン画像を時系列順に並べ、横軸が平行投影の前記ライン並列画像を生成する。 An image correction apparatus according to a second aspect of the present disclosure is the image correction apparatus according to the first aspect, wherein the line scan camera and the two-dimensional camera are provided in a vehicle, and the line image is a tire of the vehicle. From the rotary encoder installed in the, based on the signal output each time the vehicle moves a predetermined distance, is an image captured by the line scan camera, the image generation unit, the line image in chronological order Side by side, the line parallel image with the horizontal axis being parallel projection is generated.
 本開示の第3の態様の画像補正装置は、第1の態様または第2の態様の画像補正装置において、前記水平直線検出部は、前記垂直方向と平行な1組の辺と、前記水平方向と平行な1組の辺とにより成る矩形の、前記水平方向と平行な1組の辺の少なくとも一方の辺を、前記水平直線とする。 An image correction apparatus according to a third aspect of the present disclosure is the image correction apparatus according to the first aspect or the second aspect, wherein the horizontal straight line detection unit includes a pair of sides parallel to the vertical direction and the horizontal direction. At least one side of the pair of sides parallel to the horizontal direction of the rectangle formed by the pair of sides parallel to the horizontal line is the horizontal straight line.
 本開示の第4の態様の画像補正装置は、第1の態様から第3の態様のいずれか1態様の画像補正装置において、前記ラベル付部は、前記ライン画像と、前記ライン並列画像との対応付けに基づいて、前記2次元画像間の位置関係を導出し、前記2次元画像間で対応付けられた前記水平直線の実空間上での座標を算出する、水平直線位置算出部を備える。 An image correction apparatus according to a fourth aspect of the present disclosure is the image correction apparatus according to any one of the first to third aspects, in which the labeled unit includes the line image and the line parallel image. A horizontal straight line position calculation unit that derives a positional relationship between the two-dimensional images based on the correspondence and calculates coordinates in the real space of the horizontal straight lines that are associated between the two-dimensional images.
 上記目的を達成するために、本開示の第5の態様の画像補正方法は、画像生成部により、撮像素子が1列状に配置されたラインスキャンカメラで撮影された、移動方向に対して垂直方向に延びるライン画像を時系列順に並べて2次元のライン並列画像を生成するステップと、水平直線検出部により、撮像素子が行列状に配置された2次元カメラが、前記ラインスキャンカメラが前記ライン画像を撮影した際に、前記ラインスキャンカメラと同一方向を撮影して得られた複数の2次元画像の各々に含まれる、水平方向に延びる水平直線を検出するステップと、カメラ間対応付部により、前記ライン画像と、前記2次元画像のうちの光軸中心を通る垂直ライン画像との対応付けを行うステップと、水平直線対応付部により、複数の前記2次元画像間における、前記水平直線の対応付けを行うステップと、ラベル付部により、前記ライン画像と、前記垂直ライン画像との対応付けに基づいて、前記水平直線を前記ライン画像の各々にマッピングし、前記ライン並列画像における、前記水平直線を含む領域にラベルを付与するステップと、画像補正部により、前記ラベルが付与された領域に基づいて、前記ライン並列画像における前記ライン画像の前記垂直方向の位置を補正するステップと、を備える。 In order to achieve the above-mentioned object, an image correction method according to a fifth aspect of the present disclosure is directed to an image generation unit that is perpendicular to a moving direction taken by a line scan camera in which image pickup devices are arranged in one row. Generating a two-dimensional line parallel image by arranging the line images extending in the direction in time series, and the horizontal line detecting unit, the two-dimensional camera in which the image pickup elements are arranged in a matrix, the line scan camera, the line image The step of detecting a horizontal straight line extending in the horizontal direction included in each of a plurality of two-dimensional images obtained by shooting in the same direction as the line scan camera, A step of associating the line image with a vertical line image that passes through the optical axis center of the two-dimensional image; and a horizontal straight line correspondence attaching unit that associates the horizontal straight lines between the plurality of two-dimensional images. The step of performing the labeling, the labeling unit, based on the correspondence between the line image and the vertical line image, the horizontal straight line is mapped to each of the line images, the horizontal straight line in the line parallel image. And a step of correcting the position of the line image in the line parallel image in the vertical direction by the image correction section, based on the labeled area.
 上記目的を達成するために、本開示の第6態様のプログラムは、コンピュータを、第1の態様から第4の態様のいずれか1態様に記載の画像補正装置の各部として機能させるためのプログラムである。 In order to achieve the above object, the program according to the sixth aspect of the present disclosure is a program for causing a computer to function as each unit of the image correction apparatus according to any one of the first to fourth aspects. is there.
 本開示によれば、ラインスキャンカメラにより撮影されたライン画像を時系列で並べたライン並列画像における、ライン画像のずれを適切に補正することができる、という効果が得られる。 According to the present disclosure, it is possible to appropriately correct the deviation of line images in a line parallel image in which line images captured by a line scan camera are arranged in time series.
実施形態の画像補正装置の一例の構成を示すブロック図である。It is a block diagram which shows the structure of an example of the image correction apparatus of embodiment. ライン画像及び2次元画像の撮影を説明するための図である。It is a figure for explaining photography of a line image and a two-dimensional image. ライン画像の撮影を説明するための図である。It is a figure for explaining photography of a line image. 実施形態の画像生成部で生成されたライン並列画像に生じたずれを説明するための図である。FIG. 6 is a diagram for explaining a shift generated in a line parallel image generated by the image generation unit of the embodiment. 実施形態のカメラ間対応付部によるライン画像と2次元画像との対応付け、及び基線長を説明するための図である。It is a figure for demonstrating matching of a line image and a two-dimensional image by the correspondence part between cameras of an embodiment, and a base line length. 実施形態の画像補正部によるライン画像のずれの補正を説明する図である。FIG. 6 is a diagram illustrating correction of a line image shift by the image correction unit of the embodiment. 実施形態の画像補正装置における画像補正処理ルーチンの一例を示すフローチャートである。6 is a flowchart showing an example of an image correction processing routine in the image correction apparatus of the embodiment.
 以下、図面を参照して本開示の実施形態を詳細に説明する。 Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings.
<本実施形態の画像補正装置の構成>
 図1は、本実施形態の画像補正装置10の一例の構成を示すブロック図である。車両に搭載されたラインスキャンカメラにより撮影されたライン画像を時系列に並べて生成されたライン並列画像に対し、本開示の画像補正装置を適用した形態について説明する。
<Structure of the image correction device of the present embodiment>
FIG. 1 is a block diagram showing the configuration of an example of the image correction apparatus 10 of this embodiment. A form in which the image correction device of the present disclosure is applied to a line parallel image generated by arranging line images captured by a line scan camera mounted on a vehicle in time series will be described.
 図1に示すように本実施形態の画像補正装置10は、画像生成部22、水平直線検出部28、カメラ間対応付部30、水平直線対応付部34、ラベル付部36、及び画像補正部38を備える。一例として、本実施形態の画像補正装置10は、CPU(Central Processing Unit)と、RAM(Random Access Memory)と、後述する画像補正処理ルーチンを実行するためのプログラムや各種データを記憶したROM(Read Only Memory)と、を含むコンピュータで構成することができる。具体的には、上記プログラムを実行したCPUが、図1に示した画像補正装置10の画像生成部22、水平直線検出部28、カメラ間対応付部30、水平直線対応付部34、ラベル付部36、及び画像補正部38として機能する。また、図1に示すように、画像補正装置10は、ライン画像記憶部20、ライン並列画像記憶部24、2次元画像記憶部26、及び2次元画像間基線長記憶部32を備える。 As shown in FIG. 1, the image correction apparatus 10 according to the present embodiment includes an image generation unit 22, a horizontal straight line detection unit 28, an inter-camera correspondence unit 30, a horizontal straight line correspondence unit 34, a labeling unit 36, and an image correction unit. 38. As an example, the image correction apparatus 10 of the present embodiment includes a CPU (Central Processing Unit), a RAM (Random Access Memory), and a ROM (Read) that stores a program for executing an image correction processing routine described below and various data. Only Memory), and can be configured with a computer including. Specifically, the CPU that executes the above-described program causes the image generation unit 22, the horizontal straight line detection unit 28, the inter-camera correspondence unit 30, the horizontal straight line correspondence unit 34, and the labeled unit of the image correction apparatus 10 shown in FIG. It functions as the unit 36 and the image correction unit 38. Further, as shown in FIG. 1, the image correction apparatus 10 includes a line image storage unit 20, a line parallel image storage unit 24, a two-dimensional image storage unit 26, and a two-dimensional inter-image baseline length storage unit 32.
 まず、図2A及び図2Bに示すように、本実施形態では、車両50の側面に設けられた、ラインスキャンカメラ2及び2次元カメラ4の各々により、ライン画像及び2次元画像を取得する。ラインスキャンカメラ2は、撮像素子が1列に配置されたカメラであり、「ラインセンサカメラ」等とも呼ばれる。本実施形態では、ラインスキャンカメラ2の撮像素子が、車両50の移動方向Aと交差する垂直方向Bに並んだ状態に配置されており、車両50の走行中にラインスキャンカメラ2によって、ライン画像60を、一定間隔で撮影する。 First, as shown in FIGS. 2A and 2B, in the present embodiment, a line image and a two-dimensional image are acquired by each of the line scan camera 2 and the two-dimensional camera 4 provided on the side surface of the vehicle 50. The line scan camera 2 is a camera in which the image pickup elements are arranged in one row, and is also called a “line sensor camera” or the like. In the present embodiment, the image pickup elements of the line scan camera 2 are arranged in a state of being aligned in a vertical direction B intersecting the moving direction A of the vehicle 50, and the line scan camera 2 is used to drive a line image while the vehicle 50 is traveling. 60 are photographed at regular intervals.
 具体例として、本実施形態では、車両50のタイヤ等にロータリエンコーダ等の、予め定められた距離を車両50が移動する毎に、パルス信号を出力する装置が設けられている。ラインスキャンカメラ2は、当該装置から出力されるパルス信号に基づいて、車両50の移動方向と交差する垂直方向B、すなわち地面に対して垂直に延びるライン画像60を順次撮影し、撮影したライン画像60を表す画像データを出力する。なお、本実施形態に限定されず、車両50が等速で移動しながら、ライン画像60を取得する形態であってもよく、この場合も横軸が平行投影のライン画像60を取得することができる。 As a specific example, in the present embodiment, a device such as a rotary encoder that outputs a pulse signal each time the vehicle 50 moves a predetermined distance is provided on the tire or the like of the vehicle 50. The line scan camera 2 sequentially captures line images 60 extending in a vertical direction B intersecting the moving direction of the vehicle 50, that is, extending vertically to the ground, based on the pulse signals output from the device, and the captured line images. The image data representing 60 is output. Note that the present invention is not limited to this embodiment, and the line image 60 may be acquired while the vehicle 50 is moving at a constant speed. In this case as well, the line image 60 whose horizontal axis is parallel projection may be acquired. it can.
 ラインスキャンカメラ2で撮影された複数のライン画像60の各々を表す画像データは、画像補正装置10に入力される。画像補正装置10に入力された複数のライン画像60の各々を表す画像データは、ライン画像記憶部20に記憶される。 Image data representing each of the plurality of line images 60 taken by the line scan camera 2 is input to the image correction apparatus 10. Image data representing each of the plurality of line images 60 input to the image correction apparatus 10 is stored in the line image storage unit 20.
 また、2次元カメラ4は、撮像素子が行列状に配置されたカメラであり、一般的な写真画像の撮影に用いられるカメラである。本実施形態の2次元カメラ4は、ラインスキャンカメラ2と並んで、車両50の側面に設けられており、車両50の走行中に、ラインスキャンカメラ2が撮影を行う際に、ラインスキャンカメラ2と同一方向を撮影する。具体例として、本実施形態の2次元カメラ4は、ラインスキャンカメラ2が複数のライン画像60を撮影している間に、動画像の撮影を行う。なお、2次元カメラ4による動画像の撮影は安価で簡易に行うことが可能であり、後述する、ぶれ補正のためにラインスキャンカメラ2と同時に撮影を行っても負担は少ない。 Also, the two-dimensional camera 4 is a camera in which image pickup elements are arranged in a matrix, and is a camera used for taking general photographic images. The two-dimensional camera 4 of the present embodiment is provided on the side surface of the vehicle 50 along with the line scan camera 2, and when the line scan camera 2 captures an image while the vehicle 50 is traveling, the line scan camera 2 is used. Shoot in the same direction as. As a specific example, the two-dimensional camera 4 of the present embodiment captures a moving image while the line scan camera 2 captures a plurality of line images 60. It should be noted that shooting of a moving image by the two-dimensional camera 4 can be performed inexpensively and easily, and there is little burden even if shooting is performed simultaneously with the line scan camera 2 for blur correction, which will be described later.
 画像生成部22には、ライン画像記憶部20からライン画像60を表す画像データが入力される。画像生成部22は、ライン画像60を表す画像データを、車両50の移動方向Aに応じて、時系列順に並べて2次元のライン並列画像(ライン並列画像62、図3参照)を生成する。なお、本実施形態では、複数のライン画像60を時系列順に並べることにより得られた2次元の画像を「ライン並列画像」という。従って、ライン並列画像の各列(垂直方向Bの1列)の画像が、ラインスキャンカメラ2で撮影されたライン画像60に相当する。 Image data representing the line image 60 is input to the image generation unit 22 from the line image storage unit 20. The image generation unit 22 arranges the image data representing the line image 60 in chronological order according to the moving direction A of the vehicle 50 to generate a two-dimensional line parallel image (line parallel image 62, see FIG. 3 ). In the present embodiment, a two-dimensional image obtained by arranging a plurality of line images 60 in time series is referred to as “line parallel image”. Therefore, the image of each line (one line in the vertical direction B) of the line parallel image corresponds to the line image 60 captured by the line scan camera 2.
 図3には、画像生成部22により生成されライン並列画像62の一例を示す。図3に示したように、ライン並列画像62は、1列ずつ、ライン画像60を並べた画像であるため、走行中の車両50の振動等の影響により、ライン画像60に、垂直方向Bにずれが生じる場合がある。本実施形態の画像補正装置10では、ライン並列画像62において、ライン画像60の、垂直方向Bのずれを補正する。 FIG. 3 shows an example of the line parallel image 62 generated by the image generation unit 22. As shown in FIG. 3, the line parallel image 62 is an image in which the line images 60 are arranged one column at a time. Therefore, due to the vibration of the running vehicle 50 or the like, the line image 60 is vertically aligned with the line image 60. Misalignment may occur. The image correction apparatus 10 of the present embodiment corrects the shift of the line image 60 in the vertical direction B in the line parallel image 62.
 画像生成部22が生成したライン並列画像62を表す画像データは、ライン並列画像記憶部24に出力され、ライン並列画像記憶部24に記憶される。 The image data representing the line parallel image 62 generated by the image generation unit 22 is output to the line parallel image storage unit 24 and stored in the line parallel image storage unit 24.
 一方、2次元カメラ4で撮影された動画像の画像データは、画像補正装置10に入力される。本実施形態において「動画像」とは、静止画像を撮影し、撮影した静止画像を高速に次々と表示して、動画像として認知させることをいう。従って、動画像データは、複数の静止画像データの集まりである。本実施形態では、動画像データに含まれる複数の静止画像データの各々を2次元画像データと称し、当該2次元画像データの各々によって表される画像を「2次元画像」という。画像補正装置10に入力された、動画像を構成する複数の2次元画像データは、2次元画像記憶部26に記憶される。 On the other hand, the image data of the moving image captured by the two-dimensional camera 4 is input to the image correction device 10. In the present embodiment, “moving image” refers to capturing still images, displaying captured still images one after another at high speed, and recognizing them as moving images. Therefore, moving image data is a collection of a plurality of still image data. In the present embodiment, each of the plurality of still image data included in the moving image data is referred to as two-dimensional image data, and the image represented by each of the two-dimensional image data is referred to as “two-dimensional image”. A plurality of two-dimensional image data that forms a moving image and is input to the image correction apparatus 10 is stored in the two-dimensional image storage unit 26.
 水平直線検出部28には、2次元画像記憶部26から2次元画像を表す2次元画像データが入力される。水平直線検出部28は、入力された2次元画像データの各々が表す複数の2次元画像の各々から、ライン画像60のずれ補正の指標となる水平直線を検出する。なお、本実施形態において「水平直線」とは、垂直方向Bに対して直交する水平方向C(図2B及び図3等参照)に延びる直線であり、換言すると、車両50の移動方向Aと平行な直線である。 Two-dimensional image data representing a two-dimensional image is input from the two-dimensional image storage unit 26 to the horizontal straight line detection unit 28. The horizontal straight line detection unit 28 detects a horizontal straight line serving as an index for correcting the deviation of the line image 60 from each of the plurality of two-dimensional images represented by each of the input two-dimensional image data. In the present embodiment, the “horizontal straight line” is a straight line extending in a horizontal direction C (see FIG. 2B, FIG. 3, etc.) orthogonal to the vertical direction B, in other words, parallel to the moving direction A of the vehicle 50. It is a straight line.
 ライン画像60のぶれ補正の指標となる直線は、車両50の走行軌跡から等距離であることが望ましい。単純に水平直線の検出を行う場合、撮影対象のデザイン等による直線なのか判別することが難しい。 It is desirable that the straight line, which is an index for blur correction of the line image 60, is equidistant from the running trajectory of the vehicle 50. When simply detecting a horizontal straight line, it is difficult to determine whether it is a straight line due to the design of the object to be photographed or the like.
 そのため、本実施形態の水平直線検出部28では、2次元画像から矩形の検出を行う。 Therefore, the horizontal straight line detection unit 28 of this embodiment detects a rectangle from a two-dimensional image.
 屋外における撮影では、撮影対象の建物自身も矩形の場合が多く、またドア、及び看板等といった矩形を形成する直線が数多くあることを利用し、水平直線検出部28は、消失点を有さない、すなわち、車両50の移動方向Aに対して平行に位置する矩形を形成すると推定される直線のみを選別する。これにより、本実施形態の画像補正装置10では、指標となる水平直線の検出精度を上げることができる。 When photographing outdoors, the building itself to be photographed often has a rectangular shape, and the fact that there are many straight lines forming a rectangle such as a door and a signboard is utilized, and the horizontal straight line detection unit 28 has no vanishing point. That is, only the straight lines estimated to form a rectangle positioned parallel to the moving direction A of the vehicle 50 are selected. As a result, in the image correction apparatus 10 of the present embodiment, it is possible to improve the detection accuracy of the horizontal straight line that serves as an index.
 2次元画像から矩形を検出する処理としては、例えば、参考文献1に記載されている処理を適用してもよい。当該処理では、検出された矩形のうち、対向する一組の2辺の傾きが車両50の移動方向Aを横軸としたとき、当該横軸と平行で、かつ対向するもう一組の2辺の傾きが垂直方向B(画像縦軸方向)と平行である矩形を検出する。 As the process of detecting a rectangle from a two-dimensional image, for example, the process described in Reference 1 may be applied. In the processing, of the detected rectangles, when the inclination of one pair of two sides facing each other is the moving direction A of the vehicle 50 as the horizontal axis, another pair of two sides parallel to and facing the horizontal axis. A rectangle whose inclination is parallel to the vertical direction B (the vertical axis direction of the image) is detected.
[参考文献3]コンピュータビジョン技術評論と将来展望 p.151 [Reference 3] Computer Vision Technical Review and Future Outlook p.151
 このように、本実施形態では、2次元画像から矩形を検出し、矩形の、水平方向と平行な1組の辺の少なくとも一方の辺を、水平直線として検出することにより、安定して車両50の走行経路に対して平行に存在する水平直線群を選択でき、精度よくライン画像60のずれの補正を行うことが可能となる。 As described above, in the present embodiment, the rectangle is detected from the two-dimensional image, and at least one side of the pair of sides parallel to the horizontal direction of the rectangle is detected as the horizontal straight line, so that the vehicle 50 can be stably operated. It is possible to select a group of horizontal straight lines existing in parallel to the traveling route of, and it is possible to accurately correct the deviation of the line image 60.
 水平直線検出部28により検出された水平直線を表す情報は、水平直線対応付部34に出力される。 Information indicating the horizontal straight line detected by the horizontal straight line detection unit 28 is output to the horizontal straight line correspondence unit 34.
 また、カメラ間対応付部30には、ライン並列画像記憶部24から、ライン並列画像を表す画像データが入力される。また、カメラ間対応付部30には、水平直線検出部28から2次元画像を表す画像データが入力される。 Image data representing a line-parallel image is input from the line-parallel image storage unit 24 to the inter-camera correspondence unit 30. Image data representing a two-dimensional image is input to the inter-camera correspondence unit 30 from the horizontal straight line detection unit 28.
 カメラ間対応付部30は、2次元画像の各々について、ライン画像60と、当該2次元画像から得られる、当該2次元画像のうちの光軸中心を通る垂直方向Bに沿った1ライン分の画像(以下、「垂直ライン画像」という)との対応付けを行う。 For each of the two-dimensional images, the inter-camera correspondence unit 30 includes a line image 60 and one line along the vertical direction B passing through the optical axis center of the two-dimensional image, which is obtained from the two-dimensional image. An image (hereinafter, referred to as “vertical line image”) is associated.
 ラインスキャンカメラ2で撮影されたライン画像60は横軸が平行投影の画像である。一方、2次元カメラ4で撮影された2次元画像は、透視投影による画像である。そのため、ライン画像60と、2次元画像の全体とでは、撮影対象の写り方が異なり、同じ領域の対応付けが困難である。しかしながら、2次元画像のうちの光軸中心を通る垂直ライン画像のみをみると、ライン画像60と同じものを撮影している。そこで、カメラ間対応付部30は、2次元画像のうちの光軸中心を通る垂直ライン画像と、ライン並列画像62の1ライン分の画像(ライン画像60)との照合を行い、対応付ける。対応付け(マッチング)には例えば、参考文献2に記載の手法を用いてもよい。垂直ライン画像について、照合を行うライン画像との間の相関値を導出し、相関の高いライン画像を選択してもよい。なお、2次元画像とライン画像60との解像度の違いを抑えるため、ライン並列画像62(ライン画像60)を、縮小したり、ローバスフィルタを用いたりしてもよい。 The line image 60 taken by the line scan camera 2 is an image in which the horizontal axis is parallel projection. On the other hand, the two-dimensional image captured by the two-dimensional camera 4 is an image by perspective projection. Therefore, the line image 60 and the entire two-dimensional image are different in the way in which the subject is photographed, and it is difficult to associate the same area. However, looking at only the vertical line image passing through the optical axis center in the two-dimensional image, the same image as the line image 60 is captured. Therefore, the inter-camera correspondence unit 30 collates a vertical line image passing through the optical axis center of the two-dimensional image with the image of one line of the line parallel image 62 (line image 60) and associates them. For example, the method described in Reference Document 2 may be used for the matching. For the vertical line image, a correlation value between the vertical line image and the line image to be collated may be derived and the line image having a high correlation may be selected. In order to suppress the difference in resolution between the two-dimensional image and the line image 60, the line parallel image 62 (line image 60) may be reduced or a low-pass filter may be used.
[参考文献2]イメージプロセッシング 画像処理標準テキストブック p.253~254 [Reference 2] Image Processing Image Processing Standard Textbook p.253-254
 ラインスキャンカメラ2によるライン画像60と2次元画像のうちの光軸中心を通る垂直ライン画像間の対応付けを行うことで、2次元画像が撮影された位置がわかる。これは、図4に示すように、ライン並列画像62(ライン画像60)は横軸が平行投影であり、横軸上の座標であるx座標がそのまま実空間上の座標と対応しているためである。2次元画像の撮影位置がわかることで、2次元画像66(図4、2次元画像66、66参照)間の基線長Hが既知となり、簡易に撮像物体の3次元位置を算出することが可能となる。 By correlating the line image 60 by the line scan camera 2 and the vertical line image passing through the optical axis center of the two-dimensional image, the position where the two-dimensional image is captured can be known. This is because, as shown in FIG. 4, in the line parallel image 62 (line image 60), the horizontal axis is parallel projection, and the x coordinate, which is the coordinate on the horizontal axis, directly corresponds to the coordinate in the real space. Is. By photographing position of the two-dimensional image is seen, that the two-dimensional image 66 (FIG. 4, 2-dimensional image 66 1, 66 2 reference) base length H between is known, calculates the three-dimensional position of the imaged object in a simple Is possible.
 例えば、図4に示した一例では、2次元画像66における垂直ライン画像67と、2次元画像66における垂直ライン画像67とを、ライン並列画像62に対応付ける。そして、垂直ライン画像67と、垂直ライン画像67とのx座標の差の絶対値が、基線長Hとなる。 For example, in the example shown in FIG. 4, a vertical line image 67 1 in the two-dimensional image 66 1, and a vertical line image 67 2 in the two-dimensional image 66 2, associated to the line parallel image 62. Then, the absolute value of the difference between the x-coordinates of the vertical line image 67 1 and the vertical line image 67 2 becomes the base line length H.
 カメラ間対応付部30により導出された基線長Hを表す情報は、2次元画像間基線長記憶部32に記憶される。 Information representing the baseline length H derived by the inter-camera correspondence unit 30 is stored in the two-dimensional inter-image baseline length storage unit 32.
 水平直線対応付部34には、2次元画像間基線長記憶部32から基線長Hを表す情報が入力される。また、水平直線対応付部34には、水平直線検出部28により検出された水平直線を表す情報が入力される。 Information indicating the baseline length H is input from the two-dimensional inter-image baseline length storage unit 32 to the horizontal straight line correspondence unit 34. Further, the horizontal straight line correspondence unit 34 is input with information representing the horizontal straight line detected by the horizontal straight line detection unit 28.
 水平直線対応付部34は、複数の2次元画像66同士の対応付けを行う。具体的には本実施形態の水平直線対応付部34は、各2次元画像66において抽出した矩形の対応付けを行う。対応付け(マッチング)には、上記の参考文献2の手法を用いてもよい。探索範囲は、2次元画像66の縦軸上の高さであるy座標を、片方の矩形と同じy座標の領域に限定することもできる。 The horizontal straight line association unit 34 associates a plurality of two-dimensional images 66 with each other. Specifically, the horizontal straight line association unit 34 of the present embodiment associates the rectangles extracted in each two-dimensional image 66. The method of Reference 2 above may be used for the matching. In the search range, the y-coordinate, which is the height on the vertical axis of the two-dimensional image 66, can be limited to a region having the same y-coordinate as one rectangle.
 ラベル付部36には、水平直線対応付部34の対応付け結果が入力される。また、ラベル付部36には、ライン並列画像記憶部24からライン並列画像62を表す画像データが入力される。 The labeling result of the horizontal straight line mapping unit 34 is input to the labeling unit 36. Image data representing the line parallel image 62 is input to the labeling unit 36 from the line parallel image storage unit 24.
 また、図1に示すように本実施形態のラベル付部36は、ライン並列画像62における水平直線の位置を算出する水平直線位置算出部37を含む。 Further, as shown in FIG. 1, the labeling unit 36 of the present embodiment includes a horizontal straight line position calculation unit 37 that calculates the position of the horizontal straight line in the line parallel image 62.
 矩形の対応付けができれば、ステレオ視(参考文献3参照)を行うことで、矩形上の水平直線の実空間上での3次元位置を算出することができる。ラベル付部36は、車両50の移動方向をx軸とした場合のライン並列画像62に含まれるライン画像60のx軸方向の座標と、矩形上の水平直線の実空間上での3次元位置とに基づいて、ライン画像60に対応付けられた垂直ライン画像中の水平直線の実空間上での3次元位置から、ライン画像60に水平直線をマッピングし、ライン並列画像62における、各ライン画像60のマッピング位置を含む領域を、水平直線が検出されるはずの領域としてラベル付を行う。 If the rectangles can be associated, the three-dimensional position of the horizontal line on the rectangle in the real space can be calculated by performing stereoscopic vision (see Reference 3). The labeling unit 36 determines the coordinates of the line image 60 included in the line parallel image 62 in the x-axis direction when the moving direction of the vehicle 50 is the x-axis, and the three-dimensional position of the rectangular horizontal straight line in the real space. On the basis of and, the horizontal straight line is mapped to the line image 60 from the three-dimensional position in the real space of the horizontal straight line in the vertical line image associated with the line image 60, and each line image in the line parallel image 62 is mapped. A region including 60 mapping positions is labeled as a region where a horizontal straight line should be detected.
[参考文献3]イメージプロセッシング 画像処理標準テキストブック p.271~273 [Reference 3] Image Processing Image Processing Standard Textbook p.271-273
 地面と垂直方向をy軸としたとき、ライン並列画像62のy軸方向は透視投影のため、走行経路からの距離Zに応じて、ラインスキャンカメラ2の焦点距離をf、実空間での高さをYとすると、y座標は、焦点距離fと高さYとを乗算した値を、距離Zで除算した値で表される。具体的には、水平直線位置算出部37は、ライン画像60に対応付けられた垂直ライン画像中の水平直線の実空間上での3次元位置の高さYと距離Zを用いて、下記(1)式により、ライン画像60のマッピング位置のy座標を算出する。
 y= (f×Y)/Z   ・・・(1)
When the vertical direction to the ground is the y-axis, the y-axis direction of the line parallel image 62 is perspective projection, and therefore the focal length of the line scan camera 2 is f and the height in the real space is set according to the distance Z from the travel route. When the height is Y, the y coordinate is represented by a value obtained by dividing the value obtained by multiplying the focal length f and the height Y by the distance Z. Specifically, the horizontal straight line position calculation unit 37 uses the height Y and the distance Z of the three-dimensional position of the horizontal straight line in the vertical line image associated with the line image 60 in the real space as follows ( The y coordinate of the mapping position of the line image 60 is calculated by the equation 1).
y=(f×Y)/Z (1)
 画像補正部38には、ラベル付部36からラベルが付与されたライン並列画像62が入力される。具体的には、画像補正部38には、ライン並列画像62を表す画像データと、ライン並列画像62におけるラベルが付与された領域を表す情報とが入力される。 The line parallel image 62 to which the label is added from the labeling unit 36 is input to the image correction unit 38. Specifically, the image correction unit 38 is input with image data representing the line parallel image 62 and information representing the labeled area in the line parallel image 62.
 画像補正部38は、ライン並列画像62におけるラベルが付与された領域において参考文献4で示すような処理等を用いて撮影対象の輪郭の検出を行い、輪郭線分が直線になるように、ライン画像60を上下にずらして補正を行う。具体的には、図5に示すように、ライン並列画像62のラベルが付与された領域70について、矢印Sのように数ピクセルずつ、垂直方向B(上下)にライン画像60をずらしながら隣接ライン間との画像相関値を上記参考文献2のように算出し、相関が高くなるよう、ライン画像60のずれ量を補正してもよい。 The image correction unit 38 detects the contour of the imaging target in the labeled area of the line parallel image 62 by using the process shown in Reference 4, and the line is adjusted so that the contour line segment becomes a straight line. The image 60 is shifted up and down for correction. Specifically, as shown in FIG. 5, with respect to the area 70 to which the label of the line parallel image 62 is given, adjacent pixels are shifted by several pixels as indicated by an arrow S while the line image 60 is shifted in the vertical direction B (up and down). It is also possible to calculate the image correlation value with the gap as in Reference 2 above and correct the shift amount of the line image 60 so that the correlation becomes high.
[参考文献4]OpenCVプログラミングブック 毎日コミュニケーションズ発行 p.146~155 [Reference 4] OpenCV Programming Book, Mainichi Communications, p.146-155
 画像補正部38からは、このようにしてライン画像60のずれが補正されたライン並列画像62を表す画像データが出力される。 The image correction unit 38 outputs image data representing the line parallel image 62 in which the shift of the line image 60 is corrected in this way.
<本実施形態の画像補正装置10の作用>
 次に、本実施形態の画像補正装置10の作用について図面を参照して説明する。図6は、本実施形態の画像補正装置10において実行される画像補正処理ルーチンの一例を示すフローチャートである。
<Operation of the image correction device 10 of the present embodiment>
Next, the operation of the image correction device 10 of the present embodiment will be described with reference to the drawings. FIG. 6 is a flowchart showing an example of an image correction processing routine executed in the image correction apparatus 10 of this embodiment.
 図6に示した画像補正処理ルーチンは、例えば、ラインスキャンカメラ2により撮影されたライン画像60を表す画像データがライン画像記憶部20に記憶され、かつ2次元カメラ4により撮影された2次元画像66を表す画像データが2次元画像記憶部26に記憶されたタイミングや、画像補正装置10の外部から画像補正処理ルーチンの実行指示を受け付けたタイミング等、任意のタイミングで実行される。なお、本実施形態の画像補正装置10では、画像補正処理ルーチンの実行前に、ライン画像60を表す画像データをライン画像記憶部20に、また2次元画像66を表す画像データを2次元画像記憶部26に記憶させた状態としておく。 In the image correction processing routine shown in FIG. 6, for example, the image data representing the line image 60 captured by the line scan camera 2 is stored in the line image storage unit 20 and the two-dimensional image captured by the two-dimensional camera 4 is used. The image data representing 66 is executed at an arbitrary timing such as the timing when the image data representing 66 is stored in the two-dimensional image storage unit 26 or the timing when the execution instruction of the image correction processing routine is received from the outside of the image correction apparatus 10. In the image correction apparatus 10 of the present embodiment, the image data representing the line image 60 is stored in the line image storage unit 20, and the image data representing the two-dimensional image 66 is stored in the two-dimensional image before the image correction processing routine is executed. The state is stored in the unit 26.
 図6のステップS100で画像生成部22は、上述したように、ライン画像記憶部20に記憶されているライン画像60を表す画像データを時系列順に並べてライン並列画像62を生成する。 In step S100 of FIG. 6, the image generation unit 22 arranges the image data representing the line image 60 stored in the line image storage unit 20 in chronological order to generate the line parallel image 62, as described above.
 次のステップS102で水平直線検出部28は、上述したように、入力された2次元画像データの各々が表す複数の2次元画像の各々から、消失点を有さない、すなわち、車両50の移動方向Aに対して平行に位置する矩形を形成すると推定される直線を、ずれ補正の指標となる水平直線として検出する。 In the next step S102, the horizontal straight line detection unit 28 has no vanishing point from each of the plurality of two-dimensional images represented by each of the input two-dimensional image data, that is, the movement of the vehicle 50, as described above. A straight line estimated to form a rectangle positioned parallel to the direction A is detected as a horizontal straight line serving as an index for deviation correction.
 次のステップS104でカメラ間対応付部30は、上述したように、ライン画像60と、2次元画像66の光軸中心を通る垂直ライン画像67との対応付けを行うことでカメラ間の対応付けを行う。また、カメラ間対応付部30は、2つの2次元画像66の各々の垂直ライン画像67により、基線長Hを導出する。 In the next step S104, the inter-camera associating unit 30 associates the line images 60 with the vertical line image 67 passing through the optical axis center of the two-dimensional image 66 as described above, thereby associating the cameras. I do. Further, the inter-camera correspondence unit 30 derives the base line length H from each vertical line image 67 of the two two-dimensional images 66.
 次のステップS106で水平直線対応付部34は、上述したように、各2次元画像66において抽出した矩形の対応付けを行うことで、複数の2次元画像66同士の対応付けを行う。 In the next step S106, the horizontal straight line association unit 34 associates a plurality of two-dimensional images 66 with each other by associating the rectangles extracted in each two-dimensional image 66 as described above.
 次のステップS108でラベル付部36は、上述したように、水平直線位置算出部37により、抽出した上記矩形上の水平直線の実空間上での3次元位置を算出する。また、ラベル付部36は、車両50の移動方向であるx軸方向の座標に基づいて、ライン並列画像62に水平直線をマッピングし、水平直線が検出されるはずの領域にラベル付を行う。 In the next step S108, the labeling unit 36 calculates the three-dimensional position in the real space of the extracted horizontal straight line on the rectangle by the horizontal straight line position calculation unit 37 as described above. Further, the labeling unit 36 maps a horizontal straight line on the line parallel image 62 based on the coordinate in the x-axis direction, which is the moving direction of the vehicle 50, and labels the area where the horizontal straight line should be detected.
 次のステップS110で画像補正部38は、上述したように、ライン並列画像62におけるラベルが付与された領域において、撮影対象の輪郭線分が直線になるように、ライン画像60を上下にずらして補正を行う。画像補正部38によってライン画像60のずれが補正されたライン並列画像62を表す画像データが出力されると、本画像補正処理ルーチンが終了する。 In the next step S110, the image correction unit 38 shifts the line image 60 up and down so that the contour line segment of the photographing target becomes a straight line in the labeled area of the line parallel image 62, as described above. Make a correction. When the image data representing the line parallel image 62 in which the deviation of the line image 60 is corrected by the image correction unit 38 is output, the main image correction processing routine ends.
 以上説明したように本実施形態の画像補正装置10は、画像生成部22、水平直線検出部28、カメラ間対応付部30、水平直線対応付部34、ラベル付部36、及び画像補正部38を備える。画像生成部22は、撮像素子が1列状に配置されたラインスキャンカメラ2で撮影された、移動方向Aに対して垂直方向Bに延びるライン画像60を時系列順に並べて2次元のライン並列画像62を生成する。水平直線検出部28は、撮像素子が行列状に配置された2次元カメラ4が、ラインスキャンカメラ2がライン画像60を撮影した際に、ラインスキャンカメラ2と同一方向を撮影して得られた複数の2次元画像66の各々に含まれる、水平方向Cに延びる水平直線を検出する。カメラ間対応付部30は、ライン画像60と、2次元画像66の光軸中心を通る垂直ライン画像67との対応付けを行う。水平直線対応付部34は、複数の2次元画像66間における、水平直線の対応付けを行う。ラベル付部36は、ライン画像60と、垂直ライン画像67との対応付けに基づいて、水平直線をライン画像60の各々にマッピングし、ライン並列画像62における、水平直線を含む領域にラベルを付与する。画像補正部38は、ラベルが付与された領域に基づいて、ライン並列画像62におけるライン画像60の垂直方向Bの位置を補正する。 As described above, the image correction device 10 according to the present embodiment includes the image generation unit 22, the horizontal straight line detection unit 28, the inter-camera correspondence unit 30, the horizontal straight line correspondence unit 34, the labeling unit 36, and the image correction unit 38. Equipped with. The image generation unit 22 arranges the line images 60, which are taken by the line scan camera 2 in which the image pickup elements are arranged in one row and extend in the vertical direction B with respect to the moving direction A, in a time series order to form a two-dimensional line parallel image. 62 is generated. The horizontal straight line detection unit 28 is obtained by the two-dimensional camera 4 in which the image pickup elements are arranged in a matrix, when the line scan camera 2 captures the line image 60, in the same direction as the line scan camera 2. A horizontal straight line extending in the horizontal direction C included in each of the plurality of two-dimensional images 66 is detected. The inter-camera associating unit 30 associates the line image 60 with the vertical line image 67 passing through the optical axis center of the two-dimensional image 66. The horizontal straight line association unit 34 associates the horizontal straight lines among the plurality of two-dimensional images 66. The labeling unit 36 maps a horizontal straight line to each of the line images 60 based on the correspondence between the line image 60 and the vertical line image 67, and assigns a label to a region including the horizontal straight line in the line parallel image 62. To do. The image correction unit 38 corrects the position of the line image 60 in the vertical direction B in the line parallel image 62 based on the labeled area.
 このように、本実施形態の画像補正装置10では、2次元カメラ4により撮影された2次元画像66による情報とラインスキャンカメラ2により撮影されたライン画像60による情報とを統合し、ぶれ補正の指標となる水平直線を精度よく検出し、ライン並列画像62におけるぶれ補正を行う。 As described above, in the image correction apparatus 10 of the present embodiment, the information of the two-dimensional image 66 captured by the two-dimensional camera 4 and the information of the line image 60 captured by the line scan camera 2 are integrated to perform the blur correction. The horizontal straight line that serves as an index is accurately detected, and the blurring of the line parallel image 62 is corrected.
 2次元カメラ4により撮影された2次元画像66は透視投影による画像のため、車両50の移動方向Aをx軸とした場合、x軸から等距離に存在する領域以外から水平直線を検出してしまう可能性がある。x軸からの距離が異なる、すなわち奥行が異なる直線を参照にずれの補正を行うと誤りが生じる。これに対して、本実施形態の画像補正装置10では、カメラ間対応付部30で、等距離面上に存在する水平直線を検出することで、見え方(撮影対象の写り方)の違いを抑制し、精度良く、2次元画像66とライン並列画像62(ライン画像60)との照合を行うことができる。 Since the two-dimensional image 66 taken by the two-dimensional camera 4 is an image by perspective projection, when the moving direction A of the vehicle 50 is the x-axis, a horizontal straight line is detected from a region other than the region equidistant from the x-axis. There is a possibility that it will end up. An error will occur if the deviation is corrected with reference to straight lines having different distances from the x-axis, that is, different depths. On the other hand, in the image correction apparatus 10 according to the present embodiment, the inter-camera correspondence unit 30 detects a horizontal straight line existing on the equidistant surface, so that the difference in the appearance (the appearance of the imaging target) can be obtained. The two-dimensional image 66 and the line parallel image 62 (line image 60) can be collated with high accuracy while suppressing.
 カメラ間対応付部30は、矩形を検出し、矩形を形成する2組の直線の傾きがそれぞれ水平方向Cと垂直方向Bとで一致しているもののみ検出し、その水平方向Cと平行な1組の辺の一方を、ずれを補正するための指標とする。本実施形態の画像補正装置10では、このように消失点をもたない水平方向Cの直線群を検出することで精度よく、車両50の進行経路から等距離に存在する水平直線を、ずれを補正するための指標とすることが可能となる。 The inter-camera associating unit 30 detects a rectangle and detects only those in which the inclinations of two straight lines forming the rectangle are the same in the horizontal direction C and the vertical direction B, respectively, and are parallel to the horizontal direction C. One of the sides of the set is used as an index for correcting the deviation. In the image correction apparatus 10 of the present embodiment, by detecting the group of straight lines in the horizontal direction C having no vanishing point in this way, it is possible to accurately shift the horizontal straight lines existing at the same distance from the traveling route of the vehicle 50. It becomes possible to use it as an index for correction.
 また、本実施形態の画像補正装置10によれば、2次元画像66の光軸中心を通る垂直ライン画像67の実空間での位置がわかる。そのため、水平直線位置算出部37は、2次元画像66間における水平直線の対応付けを行うだけで、水平直線の実空間上での位置を算出することができる。画像補正装置10では、実空間上での位置が付与された水平直線をライン並列画像62に再投影することで、ずれの補正の指標となる水平直線を検出することが可能となる。 Further, according to the image correction apparatus 10 of the present embodiment, the position of the vertical line image 67 passing through the optical axis center of the two-dimensional image 66 in the real space can be known. Therefore, the horizontal straight line position calculation unit 37 can calculate the position of the horizontal straight line in the real space only by associating the horizontal straight lines between the two-dimensional images 66. The image correction apparatus 10 can detect the horizontal straight line that is an index for correcting the deviation by re-projecting the horizontal straight line to which the position in the real space is added to the line parallel image 62.
 従って、本実施形態の画像補正装置10によれば、ラインスキャンカメラ2により撮影されたライン画像60を時系列で並べたライン並列画像62における、ライン画像60のずれを適切に補正することができる。 Therefore, according to the image correction apparatus 10 of the present embodiment, it is possible to appropriately correct the deviation of the line image 60 in the line parallel image 62 in which the line images 60 taken by the line scan camera 2 are arranged in time series. ..
 また、本実施形態の画像補正装置10によれば、予め指標となる物体を同時に撮影したり、ぶれが存在する領域をユーザ等が指定したりすることなく、長距離にわたるライン並列画像62の補正を短時間に自動で行うことが可能となる。 Further, according to the image correction apparatus 10 of the present embodiment, the line parallel image 62 is corrected over a long distance without previously capturing an object serving as an index at the same time or designating a region where blurring exists by a user or the like. Can be automatically performed in a short time.
 また、本実施形態では、上記画像補正処理を実行するためのプログラムが予めインストールされている形態について説明したが、当該プログラムを、コンピュータが読み取り可能な記録媒体に格納して提供することも可能であるし、ネットワークを介して提供することも可能である。 In addition, in the present embodiment, the form in which the program for executing the image correction process is pre-installed has been described, but the program may be stored in a computer-readable recording medium and provided. It is also possible to provide it via a network.
2 ラインスキャンカメラ
4 2次元カメラ
10 画像補正装置
22 画像生成部
28 水平直線検出部
30 カメラ間対応付部
34 水平直線対応付部
36 ラベル付部
37 水平直線位置算出部
38 画像補正部
2 line scan camera 4 2D camera 10 image correction device 22 image generation unit 28 horizontal straight line detection unit 30 inter-camera correspondence unit 34 horizontal straight line correspondence unit 36 label unit 37 horizontal straight line position calculation unit 38 image correction unit

Claims (6)

  1.  撮像素子が1列状に配置されたラインスキャンカメラで撮影された、移動方向に対して垂直方向に延びるライン画像を時系列順に並べて2次元のライン並列画像を生成する画像生成部と、
     撮像素子が行列状に配置された2次元カメラが、前記ラインスキャンカメラが前記ライン画像を撮影した際に、前記ラインスキャンカメラと同一方向を撮影して得られた複数の2次元画像の各々に含まれる、水平方向に延びる水平直線を検出する水平直線検出部と、
     前記ライン画像と、前記2次元画像のうちの光軸中心を通る垂直ライン画像との対応付けを行う、カメラ間対応付部と、
     複数の前記2次元画像間における、前記水平直線の対応付けを行う水平直線対応付部と、
     前記ライン画像と、前記垂直ライン画像との対応付けに基づいて、前記水平直線を前記ライン画像の各々にマッピングし、前記ライン並列画像における、前記水平直線を含む領域にラベルを付与するラベル付部と、
     前記ラベルが付与された領域に基づいて、前記ライン並列画像における前記ライン画像の前記垂直方向の位置を補正する画像補正部と、
     を備えた画像補正装置。
    An image generation unit that arranges line images, which are taken by a line scan camera in which image pickup elements are arranged in one row and extend in a direction perpendicular to a moving direction, in time series to generate a two-dimensional line parallel image,
    The two-dimensional cameras in which the image pickup devices are arranged in a matrix form a plurality of two-dimensional images obtained by photographing the line image in the same direction as the line scan camera when the line scan camera captures the line image. A horizontal straight line detection unit included, which detects a horizontal straight line extending in the horizontal direction,
    An inter-camera associating unit that associates the line image with a vertical line image passing through the optical axis center of the two-dimensional image;
    A horizontal straight line correspondence attaching unit that associates the horizontal straight lines between a plurality of the two-dimensional images,
    A labeling unit that maps the horizontal straight line to each of the line images based on the correspondence between the line image and the vertical line image, and gives a label to a region including the horizontal straight line in the line parallel image. When,
    An image correction unit that corrects the position of the line image in the line parallel image in the vertical direction based on the labeled area;
    Image correction device equipped with.
  2.  前記ラインスキャンカメラ及び前記2次元カメラは、車両に設けられており、
     前記ライン画像は、前記車両のタイヤに設置されたロータリエンコーダから、前記車両が所定距離移動する毎に出力される信号に基づいて、前記ラインスキャンカメラにより撮影された画像であり、
     前記画像生成部は、前記ライン画像を時系列順に並べ、横軸が平行投影の前記ライン並列画像を生成する、
     請求項1に記載の画像補正装置。
    The line scan camera and the two-dimensional camera are provided in a vehicle,
    The line image, from a rotary encoder installed on the tire of the vehicle, based on a signal output each time the vehicle moves a predetermined distance, is an image taken by the line scan camera,
    The image generation unit arranges the line images in chronological order to generate the line parallel image in which the horizontal axis is parallel projection.
    The image correction device according to claim 1.
  3.  前記水平直線検出部は、前記垂直方向と平行な1組の辺と、前記水平方向と平行な1組の辺とにより成る矩形の、前記水平方向と平行な1組の辺の少なくとも一方の辺を、前記水平直線とする、
     請求項1または請求項2に記載の画像補正装置。
    The horizontal straight line detection unit is a rectangle formed by a set of sides parallel to the vertical direction and a set of sides parallel to the horizontal direction, and at least one side of the set of sides parallel to the horizontal direction. Is the horizontal straight line,
    The image correction device according to claim 1.
  4.  前記ラベル付部は、前記ライン画像と、前記ライン並列画像との対応付けに基づいて、前記2次元画像間の位置関係を導出し、前記2次元画像間で対応付けられた前記水平直線の実空間上での座標を算出する、水平直線位置算出部を備える、
     請求項1から請求項3のいずれか1項に記載の画像補正装置。
    The labeling unit derives a positional relationship between the two-dimensional images on the basis of the correspondence between the line images and the line parallel images, and realizes the realization of the horizontal straight lines associated between the two-dimensional images. A horizontal straight line position calculation unit for calculating coordinates in space,
    The image correction device according to any one of claims 1 to 3.
  5.  画像生成部により、撮像素子が1列状に配置されたラインスキャンカメラで撮影された、移動方向に対して垂直方向に延びるライン画像を時系列順に並べて2次元のライン並列画像を生成するステップと、
     水平直線検出部により、撮像素子が行列状に配置された2次元カメラが、前記ラインスキャンカメラが前記ライン画像を撮影した際に、前記ラインスキャンカメラと同一方向を撮影して得られた複数の2次元画像の各々に含まれる、水平方向に延びる水平直線を検出するステップと、
     カメラ間対応付部により、前記ライン画像と、前記2次元画像のうちの光軸中心を通る垂直ライン画像との対応付けを行うステップと、
     水平直線対応付部により、複数の前記2次元画像間における、前記水平直線の対応付けを行うステップと、
     ラベル付部により、前記ライン画像と、前記垂直ライン画像との対応付けに基づいて、前記水平直線を前記ライン画像の各々にマッピングし、前記ライン並列画像における、前記水平直線を含む領域にラベルを付与するステップと、
     画像補正部により、前記ラベルが付与された領域に基づいて、前記ライン並列画像における前記ライン画像の前記垂直方向の位置を補正するステップと、
     を備えた画像補正方法。
    A step of arranging, by the image generation unit, line images, which are taken by a line scan camera in which the image pickup elements are arranged in one row and extending in a direction perpendicular to the moving direction, in time series to generate a two-dimensional line parallel image; ,
    The two-dimensional cameras in which the image pickup elements are arranged in a matrix by the horizontal straight line detection unit are obtained by photographing in the same direction as the line scan camera when the line scan camera captures the line image. Detecting a horizontal straight line included in each of the two-dimensional images and extending in the horizontal direction;
    A step of associating the line image with a vertical line image passing through the optical axis center of the two-dimensional image by the inter-camera associating unit;
    A step of associating the horizontal straight lines between the plurality of two-dimensional images by the horizontal straight line correspondence attaching unit;
    By the labeling unit, based on the correspondence between the line image and the vertical line image, the horizontal straight line is mapped to each of the line images, and in the line parallel image, a label is attached to a region including the horizontal straight line. The steps to grant,
    A step of correcting the position of the line image in the line parallel image in the vertical direction based on the area to which the label is attached by the image correction unit;
    Image correction method including.
  6.  コンピュータを、請求項1から請求項4のいずれか1項に記載の画像補正装置の各部として機能させるためのプログラム。 A program for causing a computer to function as each unit of the image correction apparatus according to any one of claims 1 to 4.
PCT/JP2019/047939 2018-12-18 2019-12-06 Image correction device, image correction method, and program WO2020129715A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018236644A JP2020099009A (en) 2018-12-18 2018-12-18 Image correction device, image correction method, and program
JP2018-236644 2018-12-18

Publications (1)

Publication Number Publication Date
WO2020129715A1 true WO2020129715A1 (en) 2020-06-25

Family

ID=71102793

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/047939 WO2020129715A1 (en) 2018-12-18 2019-12-06 Image correction device, image correction method, and program

Country Status (2)

Country Link
JP (1) JP2020099009A (en)
WO (1) WO2020129715A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04363984A (en) * 1991-02-07 1992-12-16 Riibuson:Kk Solid-state image pickup device
JP2006195758A (en) * 2005-01-14 2006-07-27 Nippon Telegr & Teleph Corp <Ntt> Stereo matching apparatus and method, and program for this method
JP2014026670A (en) * 2013-10-21 2014-02-06 Canon Inc Information processing device, processing method therefor, and program
JP2015220623A (en) * 2014-05-19 2015-12-07 三菱電機株式会社 Mobile body imaging system
JP2017215220A (en) * 2016-06-01 2017-12-07 東日本旅客鉄道株式会社 Railway vehicle appearance inspection device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04363984A (en) * 1991-02-07 1992-12-16 Riibuson:Kk Solid-state image pickup device
JP2006195758A (en) * 2005-01-14 2006-07-27 Nippon Telegr & Teleph Corp <Ntt> Stereo matching apparatus and method, and program for this method
JP2014026670A (en) * 2013-10-21 2014-02-06 Canon Inc Information processing device, processing method therefor, and program
JP2015220623A (en) * 2014-05-19 2015-12-07 三菱電機株式会社 Mobile body imaging system
JP2017215220A (en) * 2016-06-01 2017-12-07 東日本旅客鉄道株式会社 Railway vehicle appearance inspection device

Also Published As

Publication number Publication date
JP2020099009A (en) 2020-06-25

Similar Documents

Publication Publication Date Title
US10834324B2 (en) Image distortion correction of a camera with a rolling shutter
JP6612297B2 (en) Road vertical contour detection
JP4095491B2 (en) Distance measuring device, distance measuring method, and distance measuring program
US5073819A (en) Computer assisted video surveying and method thereof
KR101913168B1 (en) Egomotion estimation system and method
EP3333538A1 (en) Scanner vis
US7342669B2 (en) Three-dimensional shape measuring method and its device
CN110163912B (en) Two-dimensional code pose calibration method, device and system
KR102198352B1 (en) Apparatus and method for 3d image calibration in tiled display
CN110567469A (en) Visual positioning method and device, electronic equipment and system
JP2006252473A (en) Obstacle detector, calibration device, calibration method and calibration program
JP4793324B2 (en) Vehicle monitoring apparatus and vehicle monitoring method
CN108335337B (en) method and device for generating orthoimage picture
WO2015198930A1 (en) Distance measurement device, and distance measurement correction device using correction parameter
JP2013186816A (en) Moving image processor, moving image processing method and program for moving image processing
KR101544021B1 (en) Apparatus and method for generating 3d map
JP2016500547A5 (en)
JP2008082870A (en) Image processing program, and road surface state measuring system using this
CN107545586B (en) Depth obtaining method and system based on light field polar line plane image local part
JP6410231B2 (en) Alignment apparatus, alignment method, and computer program for alignment
JP2009276233A (en) Parameter calculating apparatus, parameter calculating system and program
KR20120108256A (en) Robot fish localization system using artificial markers and method of the same
KR100574227B1 (en) Apparatus and method for separating object motion from camera motion
JP2013257244A (en) Distance measurement device, distance measurement method, and distance measurement program
JP2017147689A (en) Video editing device, video editing method, and computer program for editing video

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19898102

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19898102

Country of ref document: EP

Kind code of ref document: A1