METHOD FOR OVERLAPPING IMAGES
20170323427 · 2017-11-09
Inventors
- JINN-FENG JIANG (KAOHSIUNG CITY, TW)
- SHIH-CHUN HSU (KAOHSIUNG CITY, TW)
- HUNG-YUAN WEI (KAOHSIUNG CITY, TW)
- TSUNG-HAN LEE (KAOHSIUNG CITY, TW)
- TSU-KUN CHANG (KAOHSIUNG CITY, TW)
- TIEN-SZU PAN (KAOHSIUNG CITY, TW)
Cpc classification
B60R2300/202
PERFORMING OPERATIONS; TRANSPORTING
B60R2300/303
PERFORMING OPERATIONS; TRANSPORTING
G01C11/02
PHYSICS
G06T3/4038
PHYSICS
B60R2300/304
PERFORMING OPERATIONS; TRANSPORTING
International classification
G06T3/40
PHYSICS
Abstract
A method for overlapping images is revealed. After overlapping the overlapped regions in two depth images generated by structured-light camera units, a first image, the overlapped image, and a fourth image are display on a display unit. Thereby, the drivers' viewing ranges blocked by the vehicle body while viewing outwards from the interior of a vehicle can be retrieved. Then the drivers' blind spots can be minimized and thus improving driving safety.
Claims
1. A method for overlapping images, comprising steps of: generating a first depth image using a first structured-light camera unit and generating a second depth image using a second structured-light camera unit, said first depth image including a first image and a second image, and said second depth image including a third image and a fourth image; acquiring a plurality of first stable extremal regions of said second image and a plurality of second stable extremal regions of said third image according to a first algorithm; and overlapping said second image and said third image to generate a first overlapped image, and displaying said first image, said first overlapped image and said fourth image on a display unit when said plurality of first stable extremal regions and said plurality of second stable extremal regions match.
2. The method for overlapping images of claim 1, further comprising a step of setting the overlapped portion in said first depth image with said second depth images as said second image and setting the overlapped portion in said second depth image with said first depth images as said third image according to the angle between said first structured-light camera unit and said second structured-light camera unit.
3. The method for overlapping images of claim 1, wherein said first algorithm is the maximally stable extremal regions (MSER) algorithm.
4. The method for overlapping images of claim 1, further comprising steps of: generating a first color image using a first camera unit and generating a second color image using a second camera unit, said first color image including a fifth image and a sixth image, and said second color image including a seventh image and an eighth image; acquiring a plurality of first stable color regions of said sixth image and a plurality of second stable color regions of said seventh image according to a second algorithm; and when said plurality of first stable color regions and said plurality of second stable color regions match, overlapping said sixth image and said seventh image to generate a second overlapped image, and displaying said fifth image, said second overlapped image, and said eighth image on said display unit.
5. The method for overlapping images of claim 4, further comprising a step of setting the overlapped portion in said first color image with said second color images as said sixth image and setting the overlapped portion in said second color image with said first color images as said seventh image according to the angle between said first camera unit and said second camera unit.
6. The method for overlapping images of claim 4, further comprising a step of processing said sixth image and said seventh image using an edge detection algorithm and generating an edge-detected sixth image and an edge-detected seventh image.
7. The method for overlapping images of claim 4, wherein said second algorithm is the maximally stable color regions (MSCR) algorithm.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
DETAILED DESCRIPTION
[0045] In order to make the structure and characteristics as well as the effectiveness of the present disclosure to be further understood and recognized, the detailed description of the present disclosure is provided as follows along with embodiments and accompanying figures.
[0046] According to the prior art, the combined image of the multiple images taken by a plurality of cameras disposed on a vehicle is a pantoscopic image. This fits to the visual customs of humans and solves the problem of blind spots. Nonetheless, the images taken by the plurality of cameras are planar images. It is difficult for drivers to estimate the distance to an object according to planar images. Thereby, a method for overlapping images according to extremal regions in the overlapped regions of two structured-light images is provided in this disclosure. In addition, the pantoscopic structured-light image formed by overlapping two structured-light images can also overcome the blind spots while a driver driving a vehicle.
[0047] In the following, the process of the method for overlapping images according to the first embodiment of the present disclosure will be described. Please refer to
[0051] Next, the system required to implement the method for overlapping images according to the present disclosure will be described below. Please refer to
[0052] The structured-light projecting module 10 includes a laser unit 101 and a lens set 103, used for detecting if objects, such as pedestrians, animals, other vehicles, immobile fences and bushes, that may influence driving safety exist within tens of meters surrounding the vehicle, and detecting the distances between the vehicle and the objects. The detection method adopted by the present disclosure is to use the structured light technique. The principle is to project controllable light spots, light stripes, or light planes to a surface of the object under detection. Then sensors such as cameras are used to acquire the reflected images. After geometric calculations, the stereoscopic coordinates of the object can be given. According to a preferred embodiment of the present disclosure, the invisible laser is adopted as the light source. The invisible laser is superior to normal light due to its high coherence, slow attenuation, long measurement distance, high accuracy, and resistance to the influence by other light sources. After the light provided by the laser unit 101 is dispersed by the lens set 103, it becomes a light plane 105 in space. As shown in
[0053] As shown in
[0054] As shown in
[0055] As shown in
[0056] In the following, the process of implementing the method for overlapping images according to the first embodiment of the present disclosure will be described. Please refer to
[0057] The step S1 is to acquire images. After the structured-light projecting module 10 of the first camera device 11 projects the structured light, the structured-light camera unit 30 (the first structured-light camera unit) of the first camera device 11 receives the reflected structured light and generates a first depth image 111. Then the structured-light projecting module 10 of the second camera device 13 projects the structured light, the structured-light camera unit 30 (the second structured-light camera unit) of the second camera device 13 receives the reflected structured light and generates a second depth image 131. The first depth image 111 and the second depth image 131 overlap partially. As shown in
[0058] The step S3 is to acquire characteristic values. The processing unit 50 adopts the maximally stable extremal regions (MSER) algorithm to calculate the second image 1113 for giving a plurality of first stable extremal regions, and calculate the third image 1311 for giving a plurality of second stable extremal regions. According to the MSER algorithm, an image is first converted to a greyscale image. Set the values 0˜255 as the threshold value, respectively. The pixels with the pixel values greater than the threshold value are set as 1, while those with the pixel values less than the threshold value are set as 0. 256 binary images according to the threshold values will be generated. By comparing the image regions of neighboring threshold values, the relations of threshold variations among regions, and hence the stable extremal regions, can be given. For example, as shown in
[0059] The step S5 is to generate an overlapped image. The processing unit 50 matches the first stable extremal regions A˜C of the second image 1113 to the second stable extremal regions D˜F of the third image 1311. The processing unit 50 can adopt the k-dimensional tree algorithm, the brute force algorithm—the BBF (Best-Bin-First) algorithm or other matching algorithms for matching. When the first stable extremal regions A˜C match the second stable extremal regions D˜F, overlap the second image 1113 and the third image 1311 to generate a first overlapped image 5. As shown in
[0060] Because the first camera device 11 includes the first structured-light camera unit and the second camera device 13 includes the second structured-light camera unit, the processing unit 50 sets the overlapped portion in the first depth image 111 with the second depth image 131 as the second image 1113 and sets the overlapped portion in the second depth image 131 with the first depth image 111 as the third image 1311 according to the angle 15 between the first and second camera devices 11, 13. Thereby, as the above stable extremal regions overlap, the second image 1113 also overlaps the third image 1311 to generate the first overlapped image 5.
[0061] After the first overlapped image 5 is generated, the first image 1111, the first overlapped image 5, and the fourth image 1313 are displayed on the display unit 90. The driver of the vehicle 3 can know if there are objects nearby and the distance between the objects and the vehicle 3 according to the first image 1111, the first overlapped image 5, and the fourth image 1313 displayed on the display unit 90. According to the present disclosure, two depth images are overlapped and the overlapped portion in the images are overlapped. Consequently, the displayed range is broader and the viewing range blocked by the vehicle when the driver views outwards from the vehicle can be retrieved. Then the driver's blind spots can be reduced and thus improving driving safety. Hence, the method for overlapping images according to the first embodiment of the present disclosure is completed.
[0062] Next, the method for overlapping images according to the second embodiment of the present disclosure will be described below. Please refer to
[0063] According to the second embodiment of the present disclosure, the step S1 is to acquire images. The structured-light camera unit 30 of the first camera device 11 generates a first depth image 111. The structured-light camera unit 30 of the second camera device 13 generates a second depth image 131. The camera unit 110 (the first camera unit) of the first camera device 11 generates a first color image 113; the camera unit 110 (the second camera unit) of the second camera device 13 generates a second color image 133. As shown in
[0064] According to the second embodiment of the present disclosure, the step S3 is to acquire characteristic values. The processing unit 50 adopts the MSER algorithm (the first algorithm) to calculate the second image 1113 to give a plurality of first stable extremal regions and calcite the third image 1131 to give a plurality of second stable extremal regions. The processing unit 50 adopts the maximally stable color regions (MSCR) algorithm (the second algorithm) to calculate the sixth image 1133 to give a plurality of first stable color regions and calculate the seventh image 1331 to give a plurality of second stable color regions. The MSCR algorithm calculates the similarity among neighboring pixels and combines the pixels with similarity within a threshold value to an image region. Then, by changing the threshold values, the relations of threshold variations among image regions, and hence the stable color regions, can be given. For example, as shown in
[0065] According to the second embodiment of the present disclosure, the step S5 is to generate overlapped imaged. The processing unit 50 matches the first stable extremal regions A˜C of the second image 1113 to the second stable extremal regions D˜F of the third image 1311. Then the processing unit 50 generates a first overlapped image 5 according to the matched and overlapped second and third images 1113, 1311. The processing unit 50 matches the first stable color regions G˜I of the sixth image 1133 to the second stable color regions J˜L of the seventh image 1331. Then the processing unit 50 generates a second overlapped image 8 according to the matched and overlapped sixth and seventh images 1133, 1331. As shown in
[0066] Because the first camera device 11 includes the first structured-light camera unit and the second camera device 13 includes the second structured-light camera unit, the processing unit 50 sets the overlapped portion in the first depth image 111 with the second depth image 131 as the second image 1113, the overlapped portion in the second depth image 131 with the first depth image 111 as the third image 1311, the overlapped portion in the first color image 113 with the second color image 133 as the sixth image 1133, and the overlapped portion in the second color image 133 with the first color image 113 as the seventh image 1331 according to the angle 15 between the first and second camera devices 11, 13.
[0067] After the first overlapped image 5 and the second overlapped image 8 are generated, the first image 1111, the first overlapped image 5, the fourth image 1313, the fifth image 1131, the second overlapped image 8, and the eighth image 1333 are displayed on the display unit 90. The first image 1111 overlaps the fifth image 1131; the first overlapped image 5 overlaps the second overlapped image 8; and the fourth image 1313 overlaps the eighth image 1333. The driver of the vehicle 3 can see the images of nearby objects and further know the distance between the objects and the vehicle 3. According to the present disclosure, the displayed range is broader and the viewing range blocked by the vehicle when the driver views outwards from the vehicle can be retrieved. Then the driver's blind spots can be reduced and thus improving driving safety. Hence, the method for overlapping images according to the second embodiment of the present disclosure is completed.
[0068] Next, the method for overlapping images according to the third embodiment of the present disclosure will be described. Please refer to
[0069] The step S4 is to perform edge detection. The processing unit 50 performs edge detection on the second and third images 1113, 1311 or the sixth and seventh images 1133, 1331 using an edge detection algorithm. Then an edge-detected second image 1113 and an edge-detected third image 1311, or an edge detected sixth image 1133 and an edge-detected seventh image 1331, will be generated. The edge detection algorithm can be the Canny algorithm, the Canny-Deriche algorithm, the differential algorithm, the Sobel algorithm, the Prewitt algorithm, the Roberts cross algorithm, or other edge detection algorithms. The purpose of edge detection is to improve the accuracy while overlapping images.
[0070] According to the present embodiment, in a step S5, the processing unit 50 overlap the edge-detected second image 1113 and the edge-detected third image 1311 to generate the first overlapped image 5, or overlap the edge-detected sixth image 1133 and the edge-detected seventh image 1331 to generate the second overlapped image 8.
[0071] Hence, the method for overlapping images according to the third embodiment of the present disclosure is completed. By means of edge detection algorithms, the accuracy while overlapping the first overlapped image 5 or the second overlapped image 8 will be improved.
[0072] Next, the method for overlapping images according to the fourth embodiment of the present disclosure will be described. Please refer to
[0073] According to an embodiment of the present disclosure, the nearer image 1115 includes the regions in the first depth image 111 with a depth between 0 and 0.5 meters; the nearer image 1315 includes the regions in the second depth image 113 with a depth between 0 and 0.5 meters.
[0074] Next, the method for overlapping images according to the fifth embodiment of the present disclosure will be described. Please refer to
[0075] According to an embodiment of the present disclosure, the farther image 1117 includes the regions in the first depth image 111 with a depth greater than 5 meters; the farther image 1317 includes the regions in the second depth image 113 with a depth greater than 5 meters. Preferably, the farther image 1117 and the farther image 1317 include the regions in the first depth image 111 and the second depth image 113 with a depth greater than 10 meters
[0076] Next, the method for overlapping images according to the sixth embodiment of the present disclosure will be described. Please refer to
[0077] Accordingly, the present disclosure conforms to the legal requirements owing to its novelty, nonobviousness, and utility. However, the foregoing description is only embodiments of the present disclosure, not used to limit the scope and range of the present disclosure. Those equivalent changes or modifications made according to the shape, structure, feature, or spirit described in the claims of the present disclosure are included in the appended claims of the present disclosure.