Improved Advanced Driver Assistance System (ADAS) Operation Using Algorithmic Skyline Detection
By identifying and cropping the skyline position captured by the image sensor and transmitting only the land part data, the problem of energy consumption and delay in ADAS processing of image frames is solved, improving the efficiency and accuracy of the system.
Patent Information
- Application Number
- CN202010842111.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-08-21
- Filing Date
- 2020-08-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-08-20
AI Technical Summary
When existing advanced driver assistance systems (ADAS) process vehicle image frames, they will transmit a large amount of irrelevant sky part data, resulting in increased energy consumption and network delays, affecting the efficiency and accuracy of the system.
By identifying the skyline position captured by the image sensor, cropping the image frame, only transmitting the land part data related to object detection to the ADAS ECU for processing, and using the pre-configured horizontal boundary position to periodically update to adapt to changes in the skyline position.
The amount of data transmitted is reduced, the data bandwidth and transmission rate are increased, the power consumption of the ECU is reduced, and the accuracy of object detection and the operating efficiency of the entire vehicle are improved.
Smart Images

Figure CN112417943B_ABST
Abstract
Description
[0001] Copyright Notice
[0002] This application contains material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent disclosure, as it appears in the Patent and Trademark Office files or records, but otherwise reserves all copyright rights whatsoever. Technical Field
[0003] The present application relates to an advanced driver assistance system (ADAS), and in particular to improved advanced driver assistance system (ADAS) operation utilizing algorithmic skyline detection. Background Art
[0004] The disclosed embodiments are directed to autonomous driving vehicles, and in particular to systems for improving the operation of advanced driver assistance systems (ADAS) by eliminating extraneous graphics data processed by such a system.
[0005] Currently, many vehicles employ advanced driver assistance systems. ADAS is a system that provides feedback or automatically controls the vehicle in response to defined inputs. One example of ADAS is a blind spot detection system. Another example is a system that maintains a safe following distance of the vehicle relative to other vehicles.
[0006] Typically, ADAS relies on image data captured by one or more cameras mounted on the vehicle on which the ADAS is installed. Such cameras transmit frames of images to an electronic control unit (ECU), which processes the images and generates output signals suitable for the type of ADAS. As an example, in a safe following distance ADAS, an image taken from the front of the vehicle is captured and sent to the appropriate ECU. In response, the ECU analyzes the image using various image processing techniques to identify whether a vehicle or other object is within a certain distance in front of the vehicle. The ECU then outputs a signal indicating the result of the processing to a user interface (e.g., a dashboard interface).
[0007] Although current systems are able to detect objects (e.g., other vehicles) in image frames captured by vehicle cameras, they have various drawbacks. Typically, onboard cameras transmit entire image frames. However, these frames often contain a large amount of irrelevant information. In particular, part of the image contains the sky, which is irrelevant to object detection. By transmitting complete frames including irrelevant parts, current centralized ADAS systems consume additional energy and introduce unnecessary latency in the vehicle network.
[0008] Therefore, there is a need to correct these and other deficiencies of existing ADAS architectures. Summary of the invention
[0009] Disclosed herein are methods, computer-readable media, and devices for improving ADAS using image pre-processing techniques.
[0010] The disclosed embodiments describe techniques for preprocessing image frames captured by an image sensor installed in a vehicle. The described preprocessing includes identifying a skyline portion of a set of frames captured by the image sensor. In response, future image frames captured by the image sensor are cropped, and these cropped frames are then processed by one or more ADAS ECUs. In some embodiments, all processing is performed within the camera, and only the cropped image data is sent to the ADAS ECU. In other embodiments, the camera is only equipped to crop image frames according to a preconfigured horizontal boundary position. This preconfigured horizontal boundary position is calculated by the ADAS ECU and periodically updated to compensate for the changing skyline position.
[0011] In one embodiment, a method is disclosed, the method comprising: receiving one or more image frames captured by an image sensor mounted on a vehicle; identifying a location of a skyline in the one or more image frames, the location comprising a horizontal location of the skyline; cropping one or more future image frames based on the location of the skyline, the cropping producing a cropped image comprising a subset of the corresponding future image frames; and processing the cropped image at an advanced driver assistance system (ADAS).
[0012] In another embodiment, a non-transitory computer-readable storage medium is disclosed for tangibly storing computer program instructions executable by a computer processor, the computer program instructions defining the steps of: receiving one or more image frames captured by an image sensor mounted on a vehicle; identifying a location of a skyline in the one or more image frames, the location including a horizontal location of the skyline; cropping one or more future image frames based on the location of the skyline, the cropping producing a cropped image including a subset of the corresponding future image frames; and processing the cropped image in an advanced driver assistance system (ADAS).
[0013] In another embodiment, a device is disclosed, the device comprising a processor and a storage medium for tangibly storing thereon program logic executed by the processor, the stored program logic causing the processor to perform operations of receiving one or more image frames captured by an image sensor mounted on a vehicle, identifying a location of a skyline in the one or more image frames, the location comprising a horizontal location of the skyline, cropping one or more future image frames based on the location of the skyline, the cropping producing a cropped image comprising a subset of the corresponding future image frames, and processing the cropped image at an advanced driver assistance system (ADAS).
[0014] Embodiments provide numerous advantages over existing ADAS systems. First, the reduced size of the cropped image results in less data being transmitted via the vehicle data bus. This reduction increases the bandwidth available for other applications, as well as increasing the perceived data transfer rate across the bus, improving not only the operation of the ADAS ECU, but also the operation of any other ECU on the bus. Second, cropping the image to only the relevant portion of the ADAS processing results in improved accuracy of the underlying ADAS processing routine due to the exclusion of potential objects from triggering false alarms during object detection. Third, because the ADAS ECU processes insufficient frames, the power consumption of the ECU is reduced, and therefore, the operation of the entire vehicle is improved due to reduced power consumption during image processing. These factors and other factors represent significant technical improvements over existing ADAS, the details of which will be described in more detail below. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The foregoing and other objects, features and advantages of the present invention will become apparent from the following description of the embodiments illustrated in the accompanying drawings, in which reference characters refer to the same parts throughout the several views. The drawings are not necessarily drawn to scale, emphasis instead being placed upon illustrating the principles of the present invention.
[0016] Figure 1 FIG. 1 is a diagram illustrating an image captured by a vehicle image sensor according to some embodiments of the present invention.
[0017] Figure 2A A block diagram illustrating a system for enhancing ADAS operation by reducing image frame size according to some embodiments of the present invention.
[0018] Figure 2B A block diagram illustrating an alternative system for enhancing ADAS operation by reducing image frame size according to some embodiments of the present invention.
[0019] Figure 3 A flow chart illustrating a method for pre-processing captured images for enhanced ADAS processing according to some embodiments of the present invention.
[0020] Figure 4 A flow chart illustrating a method for identifying a skyline in a series of image frames according to some embodiments of the present invention.
[0021] Figure 5 A flow chart illustrating a method for identifying a skyline in an image frame according to some embodiments of the present invention.
[0022] Figure 6 is a block diagram of a vehicle according to some embodiments of the present invention. DETAILED DESCRIPTION
[0023] Figure 1 FIG. 1 is a diagram illustrating an image captured by a vehicle image sensor according to some embodiments of the present invention.
[0024] The illustrated embodiment includes a single frame 100 recorded by an image sensor mounted on a vehicle. Frame 100 includes various features, including a sky portion 102 and a land portion 104. The two portions are separated by a skyline 106.
[0025] In the illustrated embodiment, various features of frame 100 are simplified for purposes of illustration, and the disclosed embodiments are not intended to be limited to any particular type of frame. For example, frame 100 does not illustrate other vehicles, road hazards, and various other real-world objects that must be captured in this frame. Additionally, skyline 106 is illustrated as a horizontal line; however, in real-world embodiments, skyline 106 may include lines of varying heights. In the illustrated embodiment, sky portion 102 and land portion 104 are adjacently placed along a first axis (labeled as the y-axis). The two portions 102, 104 extend across a second axis (labeled as the x-axis).
[0026] In the illustrated embodiment, the ADAS ECU primarily identifies objects that appear partially or entirely within the land portion 104. For example, lane markings, other vehicles, hazards, and other objects typically appear at least partially (and more often, entirely) within the land portion 104. In contrast, objects that appear in the sky portion 102 are typically not identified by the ADAS system. For example, clouds, city skylines, airplanes, birds, celestial bodies, and other aerial objects are not identified by any ADAS processing routine.
[0027] In some embodiments, existing image sensors may be used to capture frames 100. In some embodiments, the cameras that house these image sensors are modified to pre-process frames 100. In other embodiments, the ADAS ECU is modified to pre-process frames 100. Thus, in some embodiments, no changes to the base image sensors or their placement on the vehicle are required. In other embodiments, the existing image sensor, camera, and ADAS ECU hardware may be maintained, and the ECU's firmware or software may be updated to implement the disclosed embodiments. Each of these embodiments is described in detail in the accompanying drawings. Figure 2A and 2B and throughout the remainder of the invention.
[0028] Figure 2A A block diagram illustrating a system for enhancing ADAS operation by reducing image frame size according to some embodiments of the present invention.
[0029] In the illustrated embodiment, cameras ( 202 a , 202 b , 202 n ; collectively 202 ) are installed within a vehicle system 200 a . These cameras 202 are connected to an ADAS ECU 210 via a bus 208 .
[0030] The illustrated ADAS ECU 210 includes a computing device installed in the automobile. The form factor of the ECU 210 is not intended to be limiting, but generally includes a processor, memory, input / output peripherals, and other standard hardware. Typically, the ECU 210 receives data via a bus 208 and transmits data to other devices (including cameras and other ECUs) via the bus 208. In the illustrated embodiment, the bus 208 may include a controller area network CAN bus, a FlexRay bus, a media-oriented system transport (MOST) bus, or other suitable types of buses. In general, the CAN bus is commonly used to connect the ADAS ECU to other devices, but the present invention is not limited to a particular type of bus.
[0031] In the illustrated embodiment, the camera 202 transmits image data to the ADAS ECU 210 via the bus 208. This image data includes image frames that capture the vehicle's surroundings. For example, the ADAS ECU (or its function) for lane assist receives images of the road around the vehicle. In some embodiments, the ECU 210 receives frames from multiple cameras 202. In other embodiments, the ECU 210 receives a stream of frames from a single camera. That is, although illustrated as including multiple cameras 202, in some embodiments, the system 200a may include only a single camera (e.g., 202a).
[0032] In the illustrated embodiment, camera 202a includes an image sensor 204 and skyline detection logic 206. In some embodiments, each camera 202 is equipped with a corresponding sensor and skyline detection logic. In some embodiments, only a subset of cameras 202 are equipped with such sensors and skyline detection logic.
[0033] In the illustrated embodiment, sensor 204 may include any type of image sensor capable of recording a digital image of an area. In some embodiments, image sensor 204 includes a complementary metal oxide semiconductor (CMOS) image sensor, but other specific types of sensors may be used. In the illustrated embodiment, image sensor 204 captures a single frame of image data. Each of these frames is transmitted to skyline detection logic 206. In some embodiments, this transmission includes the transmission of a single frame. In other embodiments, the transmission includes multiple frames transmitted in a batch processing mode. The specific interval used during the batch transmission is not intended to be limiting. In some embodiments, a single image sensor 204 is used, while in other embodiments, multiple image sensors may be used.
[0034] In one embodiment, skyline detection logic 206 includes dedicated circuitry for performing image processing on one or more frames received from image sensor 204. In one embodiment, skyline detection logic 206 includes a dedicated processor or field programmable gate array or similar dedicated device. In other embodiments, skyline detection logic 206 includes firmware, software, or a combination thereof executed by a general purpose central processing unit (CPU), graphics processing unit (GPU), or other processing element. Throughout the specification, and most notably in Figures 3 to 5 The operations performed by skyline detection logic 206 are described in more detail in the specification of FIG. 1. Briefly, skyline detection logic 206 is configured to receive a raw image frame and detect the skyline of an image captured by image sensor 204. After performing this processing, skyline detection logic 206 then transmits only the portion of the image frame that includes a land portion (e.g., land portion 104).
[0035] Thus, in the illustrated embodiment, ECU 210 receives only a subset of a given frame captured by image sensor 204. Specifically, skyline detection logic 206 transmits the land portion of the captured image to ECU 210 via bus 208. In response, ECU 210 is configured to process this land portion according to a pre-configured processing routine. In the illustrated embodiment, the specific processing performed by ECU 210 is not intended to be limiting, and ECU 210 may perform any type of ADAS processing. In response to the processing, ECU 210 then transmits data and / or instructions to one or more other components of system 200a, including camera 202 and other devices (not illustrated).
[0036] Figure 2B A block diagram illustrating an alternative system for enhancing ADAS operation by reducing image frame size according to some embodiments of the present invention.
[0037] Components 202a, 202b, 202n, 208, and 210 of system 200b were previously described in Figure 2A and for the sake of clarity, the description of those components will not be repeated herein.
[0038] In the illustrated embodiment, Figures 3 to 5 The method described in is distributed between the cameras 202 and the ECU 210. Specifically, one or more of the cameras 202 are equipped with image cropping and transmission logic 212. In the illustrated embodiment, the image cropping and transmission logic 212 is configured to receive image frames from the image sensor 204 and crop the frames according to a preconfigured horizontal position in the camera 202a. As described in more detail below, this preconfigured horizontal position is set by the ECU 210. Figure 2AIn comparison, the processing logic of the image cropping and transmission logic 212 is reduced in complexity. Therefore, each camera 202 includes fewer components and reduces the overall power used by the camera. Like the skyline detection logic 206, the image cropping and transmission logic 212 is configured to send the cropped frame to the ECU 210. In addition, the image cropping and transmission logic 212 may include hardware, firmware, software, or a combination thereof.
[0039] and Figure 2A In contrast, skyline detection logic 214 is located within ECU 210 and may include hardware, firmware, software, or a combination thereof. In the illustrated embodiment, skyline detection logic 214 is configured to identify a horizontal position or range of positions representing a skyline in an image frame captured by a given image sensor 204 .
[0040] In the illustrated embodiment, the skyline detection logic 214 identifies the skyline in the plurality of raw frames received from the image sensor 204. In one embodiment, if the preconfigured horizontal position of the camera 202 is not set or is not new, the camera 202a transmits a full frame to the ECU 210. For example, at startup, the preconfigured horizontal position may be empty. Therefore, the image cropping and transmission logic 212 cannot crop the image frame, but transmits the entire frame to the ECU 210. Alternatively, or in conjunction with the foregoing, the camera 202a may record the length of the preconfigured horizontal position and "expire" the preconfigured horizontal position after a predetermined interval (e.g., ten minutes). Upon expiration, the preconfigured horizontal position is set to empty and the full frame is transmitted to the ECU 210 again.
[0041] In the illustrated embodiment, the ECU 210 is configured to first determine whether a full frame or a cropped frame has been received. In one embodiment, the ECU 210 is configured with the resolution of each camera 202. Alternatively, the ECU 210 may detect the camera 202 to obtain its resolution. The ECU 210 then compares the resolution to the image frame size to determine whether the entire image frame was received or whether less than the entire image frame was received.
[0042] If a cropped image frame is received, the ECU 210 processes the cropped image frame according to a processing routine employed by the ECU 210, which is not limiting. However, if the ECU 210 determines that a full image frame has been received, the ECU 210 processes the image frame to identify a skyline. The ECU 210 then uses the horizontal position of the identified skyline to be transmitted back to the camera 202a. The camera 202a stores this horizontal position of the identified skyline as a preconfigured horizontal position and begins cropping subsequent frames. In some embodiments, when calculating the skyline position, the ECU 210 may perform ADAS processing on the full frame to avoid delays in the ADAS processing. Alternatively, the ECU 210 may first identify the skyline, crop the frame, and then perform ADAS processing, thereby simulating a cropped frame received from the camera 202a. In the following Figures 3 to 5 Various details of the skyline detection routine employed by the skyline detection logic 214 are described in more detail in FIG.
[0043] Figure 3 1 is a flow chart illustrating a method for preprocessing captured images for enhanced ADAS processing according to some embodiments of the present invention. Figure 3 The methods discussed in the description of may be performed by an ADAS ECU, dedicated camera logic, or a combination of both (as discussed above).
[0044] In block 302, the vehicle is started. In the illustrated embodiment, block 302 includes initialization and startup of the vehicle's electronic subsystems, including the ECU, input / output devices, and other computerized devices. In some embodiments, block 302 may include startup of automotive (i.e., non-digital) components; however, this is not required.
[0045] In box 304, the method detects whether it is daytime. In one embodiment, daytime includes the portion of a 24-hour day when the sun is visible. In one embodiment, the method uses the current time to determine whether it is daytime. For example, the method can use known sunset and sunrise times to determine whether the current time is between sunrise and sunset of the day. In other embodiments, the method can use image recognition to determine whether an image frame captured by a vehicle camera includes the sun. In other embodiments, the method can analyze the brightness (or other attributes) of the frames captured by the camera to determine whether the average frame brightness (or other attributes) is above a preconfigured threshold. In some embodiments, box 304 is optional. In these embodiments, the camera may include an infrared camera and thus can detect the skyline at night.
[0046] If the method determines that the vehicle was started during non-daylight hours, then the method ends. In some embodiments, the method ends prematurely based on detecting a lack of daylight to avoid extraneous processing. Specifically, when using a visible spectrum camera, it may be difficult (or impossible) to detect the skyline during nighttime hours. Therefore, the method bypasses the skyline detection method described herein because the results are not guaranteed.
[0047] Next, in block 306, the method determines whether the vehicle containing the components performing the method is moving or idle. In some embodiments, block 306 is optional. Specifically, in the illustrated embodiment, block 306 is implemented to prevent unnecessary image processing of frames when the vehicle is stationary. In some embodiments, it is only functional for the ADAS ECU to process these frames when the vehicle is in motion (e.g., lane assist, distance detection, etc.). Therefore, in block 306, the method bypasses further processing until the vehicle is in motion.
[0048] If the vehicle is in motion during the day, the method proceeds to box 308 .
[0049] In block 308, the method captures one or more frames. As discussed above, capturing frames may be performed by a camera mounted in a vehicle via one or more image sensors. Typically, an image frame comprises a frame having a fixed width and height, which is determined by the resolution of the camera capturing the image frame. The particular form of the image frame is not intended to be limiting, and in general, any type of frame may be captured in block 308 and subsequently processed.
[0050] In block 310, the method pre-processes the image frame to identify the skyline. Figure 4 This process is more fully described in , and its disclosure is not repeated herein. Generally, block 310 includes identifying a horizontal position of the skyline based on the image frame captured in block 308. The horizontal position may include an integer representing a position along the height of the image frame where the skyline appears. Alternatively, the horizontal position may include a range of values (e.g., "buckets") for the position along the height of the image frame where the skyline appears.
[0051] In some embodiments, when a frame is captured in block 308 , the method transmits the full frame to the ADAS ECU for processing. That is, when the method attempts to locate the skyline, the method may also process the full frame image to avoid gaps in processing when executing block 310 .
[0052] In block 312, the method crops the frame based on the identified skyline. In one embodiment, the cropped frame in block 312 includes a frame received after the frame captured in block 308. In some embodiments, these frames are referred to as future image frames. In the illustrated embodiment, cropping the image includes segmenting the image at a preconfigured horizontal position. If a given image frame has a height of h, then the preconfigured horizontal position includes a value between 0 and h. In another embodiment, the height of the given image is segmented into n regions. For example, a 100 pixel height may be divided into 20 buckets, each bucket comprising 5 pixels. Thus, in this embodiment, h1 will include a height pixel range of 0 to 4, h2 will include a height pixel range of 5 to 9, and h n would include height pixels 96 to 100 (96, 100 are all inclusive). In this bucket-shaped embodiment, the preconfigured horizontal position may include an identifier for one of these buckets i. In the illustrated embodiment, cropping the image may be accomplished using existing image processing libraries, but typically includes selecting a subset of lines that appear between the preconfigured horizontal position and the bottom line of the image frame, and storing or transmitting this subset of lines as a cropped image.
[0053] In box 314, the method transmits the cropped image frame to the ADAS ECU. As described above, in box 314, the camera transmits the cropped image frame to one or more ADAS ECUs via a bus such as a CAN bus. In one embodiment, the method transmits a single cropped image frame. In other embodiments, the method batch transmits a group of cropped image frames.
[0054] In block 316, the method processes the cropped frame at the corresponding ADAS ECU. As discussed above, processing the cropped frame may include performing object recognition on the cropped frame as needed by the ADAS ECU. The specific processing performed on the cropped frame is not intended to be limiting, and any type of processing performed by the ADAS system may be used in block 316.
[0055] In frame 318, the method determines whether the vehicle is still operating. If the vehicle is still operating, the method continues with steps 304 to 316 described above. If the vehicle is not still operating, the method ends and restarts when a vehicle restart is detected.
[0056] Figure 4 1 is a flow chart illustrating a method for identifying a skyline in a series of image frames according to some embodiments of the present invention. Figure 4 The methods discussed in the description of may be performed by an ADAS ECU, dedicated camera logic, or a combination of both (as discussed above).
[0057] In block 402, the method selects a frame.
[0058] In one embodiment, as previously discussed, the method receives one or more raw image frames captured by an image sensor on a vehicle. In one embodiment, the method receives a single frame, while in other embodiments, the method receives frames in batches, allowing for rapid processing of multiple consecutive frames.
[0059] In block 404, the method identifies the line number of the horizontal line corresponding to the skyline within the frame selected in block 402. This per-frame processing Figure 5 , and the detailed description is not repeated herein. Typically, the output of block 404 is an integer value that identifies where the skyline is located (relative to the height of the image frame). This value is calculated by analyzing the brightness values of the lines for a given frame. However, in other embodiments, a neural network or other machine learning model may be used to calculate the horizon line, which is trained using images with known skyline points.
[0060] In block 406, the method determines whether there are more frames available for processing. If more frames are available for processing, the method re-executes blocks 402 and 404 for each remaining frame. The output of block 406 thus includes a set of horizontal line numbers corresponding to each frame received in block 402. In some embodiments, the set of frames received in block 402 includes a fixed number of consecutive frames. Alternatively, the set of frames received in block 402 includes a set of frames captured during a preconfigured time interval.
[0061] In block 408, the method performs a Gaussian analysis on the identified line numbers. In one embodiment, the method divides the height of the image frame into multiple "buckets" or multiple ranges of height values (e.g., [0...9], [10...19], ... [n-9...n]). The method then iterates for each line number and increments a counter for each bucket. The result is a Gaussian distribution. An example of this distribution is provided in Table 1 below. In Table 1, 100 image frames are processed, where each image frame has a height of 100 pixels and a bucket size of 10 pixels.
[0062] bucket Number of lines 0…9 1 10…19 0 20…29 0 30…39 14 40…49 75 50…59 9 60…69 0 70…79 0 80…89 1 90…99 0
[0063] Table 1
[0064] In block 410, the method selects a maximum bucket value (also referred to as a maximum cross-section value) using a Gaussian distribution. In one embodiment, the maximum bucket value comprises the bucket with the largest number of lines.
[0065] Referring to Table 1, buckets [0...9] and [80...89] have a value of 1, which indicates an outlier during processing. In contrast, 98% of the identified skylines are within the range 30...59. Here, the maximum bucket value includes buckets 40...49. Therefore, this bucket (or range of height values) is used as the location of the skyline.
[0066] In some embodiments, there may be little variation between one or more lines. In some embodiments, the method may group the buckets into a single larger bucket. For example, Table 2 below illustrates this.
[0067]
[0068]
[0069] Table 2
[0070] Here, buckets [30 ... 39] and [40 ... 49] have the same number of lines identified as skylines. In one embodiment, the method may combine these values and treat the larger bucket of 30 ... 49 as the maximum bucket value. In another embodiment, upon detecting this relationship, the method may continue to process frames to "break" the relationship between the buckets, and select the maximum bucket value based on the next frame that breaks the relationship. In other embodiments, the method may process a fixed number of additional frames and then reanalyze the buckets to determine the maximum bucket value. In some embodiments, when two or more buckets have the same maximum bucket value, the method may perform one or more of these operations. In addition, if two or more buckets have line number values within a preconfigured (small) distance from each other, the method may perform one or more of these operations, as illustrated in Table 3.
[0071] bucket Number of lines 0…9 1 10…19 0 20…29 0 30…39 45 40…49 50 50…59 3 60…69 0 70…79 0 80…89 1 90…99 0
[0072] Table 3
[0073] Here, bucket [40 ... 49] is the maximum bucket value, but bucket [30 ... 39] is close enough to bucket [40 ... 49]. In these cases, the method may employ further processing as discussed above to ensure that the appropriate maximum bucket value is selected.
[0074] In block 412, after identifying the maximum bucket value, the method stores this maximum bucket value as the skyline boundary value and returns this value to the calling method (e.g., Figure 3 As described in Figure 3 As described in the description of , the calling method then uses this maximum bucket value to crop future frames.
[0075] Figure 5 1 is a flow chart illustrating a method for identifying a skyline in an image frame according to some embodiments of the present invention. Figure 5 The methods discussed in the description of may be performed by an ADAS ECU, dedicated camera logic, or a combination of both (as discussed above).
[0076] In block 502, the method selects a horizontal line. Figure 3 and 4 A given frame processed in Figure 5 The method described in .
[0077] In block 504, the method identifies the maximum and minimum brightness values for each pixel in the horizontal line. As used herein, brightness refers to the intensity of the pixels in a given line. An image processing library may be used to identify brightness. For an image of width w, the method calculates w brightness values for each pixel in a row. The method then finds the maximum value (lum) for this row. max ) and minimum brightness value (lum min )OK.
[0078] In block 506, the method calculates the brightness spread. As used herein, the brightness spread refers to the difference between the maximum brightness value and the minimum brightness value (lum spread =lum max -lum min ). As described, brightness spread represents the variation in brightness of a given line, and therefore takes into account the variation in brightness across a line of pixels.
[0079] In some embodiments, the method in blocks 504 and 506 excludes pixels that are within a predetermined distance to the left and right of the horizontal line. In such embodiments, the method excludes these pixels due to potential distortion caused by the underlying image sensor. Alternatively, or in conjunction with the foregoing, the method may ignore high brightness values within a line. Typically, the method attempts to remove peripheral brightness values that exceed a predefined threshold of average brightness values. Such values typically represent direct sun reflections on the image sensor and can be safely ignored during processing.
[0080] In block 508, the method caches the calculated luminance spread value for a given line. In some embodiments, the method stores a map for a given frame where the line number comprises the key and the luminance spread comprises the associated value, as illustrated in Table 4, which illustrates an image frame having a height of 10 pixels.
[0081] Number of lines Brightness Diffusion 0 0.05 1 0.04 2 0.02 3 0.01 4 0.02 5 0.15 6 0.15 7 0.12 8 0.11 9 0.13
[0082] Table 4
[0083] In block 510, the method determines whether all lines have been processed. If all lines have not been processed, the method performs steps 502-510 for each remaining line until all lines have been processed.
[0084] In block 512, the method identifies lines having brightness values between the lines that exceed a preset threshold. In some embodiments, this preset threshold is a fixed value. In other embodiments, it may include a maximum difference.
[0085] In the illustrated embodiment, the method processes one line and the line is processed immediately. The method calculates the difference in luminance spread between these lines: d(n-1,n)=lum spread_n -lum spread_n-1 In some embodiments, the absolute value of this difference is used to identify the skyline. An example of this calculation is provided in Table 5, which corresponds to the brightness spread calculated in Table 4:
[0086]
[0087]
[0088] Table 5
[0089] In the illustrated embodiment, line number 6 represents the line number with the largest difference between the previous lines. As illustrated, line number zero may be skipped. In some embodiments, if a preset threshold is below 0.13, line number 6 is selected as the skyline line number. In other embodiments, line number 6 is selected because the line has the highest difference. In some embodiments, when a fixed threshold is used, the first line that meets the threshold (when analyzing from top to bottom of the image) is used as the skyline.
[0090] In general, the above method operates due to the fact that the sky portion of the image usually has little difference between brightness values when compensating for sensor imperfections and direct sunlight. Even on cloudy days, the actual brightness of each pixel is usually well-coordinated. In contrast, the land portion experiences greater brightness fluctuations and therefore results in greater brightness spread. Therefore, by finding the first line with a sharp brightness change, the method can reliably identify when the sky portion ends and the land portion begins due to the sharp change in brightness spread.
[0091] In step 514, the method stores the identified line number and associates the identified line number with the frame analyzed by the method. The method then returns this association for further processing (e.g., as Figure 4 processed in ).
[0092] Figure 6 is a block diagram of a vehicle according to some embodiments of the present invention.
[0093] Figure 6The system described in can be installed completely in the vehicle. In some embodiments, some components (eg, components and subsystems other than subsystem 604) can include existing autonomous and non-autonomous vehicle subsystems.
[0094] The system optionally includes an optional autonomous vehicle subsystem 602. In the illustrated embodiment, the autonomous vehicle subsystem 602 includes a map database 602a, a radar device 602b, a laser radar device 602c, a digital camera 602d, a sonar device 602e, a GPS receiver 602f, and an inertial measurement unit 602g. Each component of the autonomous vehicle subsystem 602 includes a standard component provided in most current autonomous vehicles. In one embodiment, the map database 602a stores multiple high-definition three-dimensional maps for routing and navigation. The radar device 602b, the laser radar device 602c, the digital camera 602d, the sonar device 602e, the GPS receiver 602f, and the inertial measurement unit 602g may include various corresponding devices installed at various locations throughout the autonomous vehicle as known in the art. For example, these devices can be installed along the perimeter of the autonomous vehicle to provide location awareness, collision avoidance, and other standard autonomous vehicle functions. In some embodiments, the autonomous subsystem 602 is built into the vehicle, and in its embodiment, the autonomous subsystem 602 includes an aftermarket system. In the illustrated embodiment, the camera 602d may be included in Figure 2A and 2B The camera 202 is described in the description of FIG.
[0095] Vehicle subsystem 606 is additionally included in the system. Vehicle subsystem 606 includes various anti-lock braking systems 606a, an engine control unit 606b, and a transmission control unit 606c. These components may be used to control the operation of the vehicle in response to data generated by autonomous vehicle subsystem 602 and / or ADAS subsystem 604. Standard autonomous vehicle interactions between autonomous vehicle subsystem 602 and vehicle subsystem 606 are generally known in the art and are not described in detail herein.
[0096] The processing side of the system includes one or more processors 610 , short-term memory 612 , an RF system 614 , a graphics processing unit (GPU) 616 , long-term memory 618 , and one or more interfaces 620 .
[0097] The one or more processors 610 may include a central processing unit, an FPGA, or any range of processing devices required to support the operation of the autonomous vehicle. The memory 612 includes DRAM or other suitable volatile RAM for temporary storage of data required by the processor 610. The RF system 614 may include a cellular transceiver and / or a satellite transceiver. The long-term storage 618 may include one or more large-capacity solid-state drives (SSDs). Typically, the long-term storage 618 can be used to store, for example, high-definition maps, routing data, and any other data that requires permanent or semi-permanent storage. The GPU 616 may include one or more high-throughput GPU devices for processing data received from the autonomous vehicle subsystem 602a. Finally, the interface 620 may include various display units (e.g., dashboard screens) positioned within the autonomous vehicle.
[0098] The system additionally includes an ADAS subsystem 604 that performs the operations required by the method illustrated in the aforementioned figures. The ADAS subsystem 604 includes a blind spot ADAS 604a and a distance ADAS 604b that execute a blind spot algorithm and a distance detection algorithm. The outputs of these systems control the components of the vehicle subsystem 606 in the manner described. The exemplary ADAS subsystem components 604a, 604b are not intended to be limiting, and various other ADAS subsystem components may be used in place of or in combination with components 604a, 604b. In general, any ADAS subsystem component may include Figure 2A and 2B ECU described in .
[0099] Each device is connected via bus 608. In one embodiment, bus 608 may include a controller area network (CAN) bus. In some embodiments, other bus types (e.g., FlexRay or MOST buses) may be used. In addition, each subsystem may include one or more additional buses to handle inter-subsystem communications (e.g., a LIN bus for lower bandwidth communications).
[0100] However, the subject matter disclosed above may be embodied in a variety of different forms, and thus the covered or claimed subject matter is intended to be construed as not limited to any exemplary embodiment set forth herein; the example embodiments are provided for illustration only. Likewise, it is intended that the claimed or covered subject matter be reasonably broad. For example, the subject matter may be embodied as a method, device, component, or system, among other things. Thus, embodiments may, for example, take the form of hardware, software, firmware, or any combination thereof (except software itself). Accordingly, the following detailed description is to be understood at least in a limiting sense.
[0101] Throughout the specification and claims, terms may have nuanced meanings that are suggested or implied by the context beyond the explicitly stated meaning. Likewise, the phrase "in one embodiment" as used herein does not necessarily refer to the same embodiment, and the phrase "in another embodiment" as used herein does not necessarily refer to a different embodiment. For example, claimed subject matter is intended to include, in whole or in part, a combination of example embodiments.
[0102] Typically, terms may be understood at least in part based on the context of use. For example, terms such as "and", "or" or "and / or" as used herein may include a variety of meanings, which may depend at least in part on the context in which such terms are used. Typically, "or" if used in an association list (e.g., A, B, or C) is intended to mean A, B, and C (used here in an inclusive sense), as well as A, B, or C (used here in an exclusive sense). In addition, the term "one or more" as used herein, at least in part depending on the context, may be used to describe any feature, structure, or characteristic in a singular form, or may be used to describe a combination of features, structures, or characteristics in a plural sense. Similarly, terms such as "one", "an", or "the" may again be understood to convey singular usage or to convey plural usage, depending at least in part on the context. In addition, the term "based on" may be understood to not necessarily be intended to convey a set of exclusive factors, and may instead allow for the presence of other factors that may not necessarily be explicitly described, depending at least in part on the context.
[0103] The present invention is described with reference to block diagrams and the operating instructions of methods and devices.It should be understood that the combination of each frame in the block diagram or the operating instructions of the block diagram or the operating instructions and the frame in the block diagram or the operating instructions can be implemented by means of analog or digital hardware and computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer to change its function as described in detail herein, a special-purpose computer, an ASIC or other programmable data processing device, so that the instruction execution via the processor of a computer or other programmable data processing device implements the function / action specified in the block diagram or one or more operating frames.In some alternative embodiments, the function / action described in the frame may not occur in the order pointed out in the operating instructions.For example, depending on the functionality / action involved, two frames shown in succession can actually be executed substantially simultaneously, or the frame can be executed in reverse order sometimes.
[0104] These computer program instructions may be provided to a processor of a general-purpose computer to change its functionality for special purposes; a dedicated computer, ASIC or other programmable data processing device, so that the instructions executed by the processor of the computer or other programmable data processing device implement the functions / actions specified in the block diagram or one or more operation blocks, thereby transforming its functionality according to the embodiments herein.
[0105] For purposes of the present invention, a computer-readable medium (or computer-readable storage medium / multiple media) stores computer data, which may include computer program code (or computer-executable instructions) that can be executed by a computer in a machine-readable form. As an example and not limitation, a computer-readable medium may include a computer-readable storage medium for tangible or fixed storage of data, or a communication medium for transient interpretation of signals containing code. As used herein, a computer-readable storage medium refers to physical or tangible storage (as opposed to a signal), and includes volatile and non-volatile, removable and non-removable media implemented in any tangible information storage method or technology, such as computer-readable instructions, data structures, program modules, or other data. Computer-readable storage media include, but are not limited to, RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technology, CD-ROM, DVD or other optical storage, magnetic cassettes, magnetic tape, disk storage or other magnetic storage devices, or any other physical or material media that can be used to tangibly store the desired information, data or instructions and can be accessed by a computer or processor.
[0106] For purposes of the present invention, a module is a software, hardware or firmware (or combination thereof) system, process or functionality or component thereof that performs or facilitates the processes, features and / or functions described herein (with or without human interaction or augmentation). A module may include sub-modules. The software components of a module may be stored on a computer-readable medium for execution by a processor. A module may be integrated with one or more servers or may be loaded and executed by one or more servers. One or more modules may be grouped into engines or applications.
[0107] Those skilled in the art will recognize that the methods and systems of the present invention may be implemented in many ways and are not limited by the foregoing exemplary embodiments and examples. In other words, functional elements performed by single or multiple components, in various combinations of hardware and software or firmware, and individual functions may be distributed among software applications at the client level or server level or both. In this regard, any number of the features of the different embodiments described herein may be combined into a single or multiple embodiments, and alternative embodiments having fewer or greater than all of the features described herein are possible.
[0108] Functionality may also be distributed, in whole or in part, among multiple components in ways now known or to become known. Thus, a variety of software / hardware / firmware combinations are possible in implementing the functions, features, interfaces, and preferences described herein. Furthermore, the scope of the present invention encompasses conventionally known ways of performing the described features, functions, and interfaces, as well as those changes and modifications that may be made to the hardware, software, or firmware components described herein, as will now and later be understood by those skilled in the art.
[0109] In addition, embodiments of the methods presented in the present invention and described as flow charts are provided by way of example to provide a more complete understanding of the technology. The disclosed methods are not limited to the operations and logical flows presented herein. Alternative embodiments are envisioned in which the order of the various operations is changed and in which sub-operations described as part of a larger operation are performed independently.
[0110] Although various embodiments have been described for the purposes of the present invention, such embodiments should not be considered to limit the teachings of the present invention to those embodiments. Various changes and modifications may be made to the above described elements and operations to obtain results that are still within the scope of the systems and processes described in the present invention.
Claims
1. A method for autonomous driving, comprising: receiving an image frame captured by an image sensor mounted on the vehicle; assigning brightness values to horizontal lines of the image frame; identifying a location of a skyline in the image frame by calculating a brightness difference between each pair of horizontal lines and identifying a brightness difference having a highest difference, the highest difference being associated with at least one horizontal line that includes the location of the skyline; cropping one or more future image frames based on the position of the skyline, thereby producing a cropped image comprising a subset of the one or more future image frames; and The cropped image is processed at an advanced driver assistance system (ADAS). 2 . The method of claim 1 , further comprising determining that a current time corresponds to daytime and that the vehicle is in motion before identifying the location in the one or more image frames of the skyline.
3. The method of claim 1 , wherein identifying the location of the skyline in the image frame further comprises identifying a number of horizontal lines in the image frame, and identifying the number of horizontal lines in the image frame comprises: Calculating a first brightness spread of a first horizontal line, wherein the first brightness spread is a difference between a maximum brightness value and a minimum brightness value of the first horizontal line; calculating a second brightness spread of a second horizontal line, the second horizontal line being located behind the first horizontal line, wherein the second brightness spread is a difference between a maximum brightness value and a minimum brightness value of the second horizontal line; calculating a difference between the second brightness spread and the first brightness spread; as well as When the difference is greater than a predetermined threshold, the number of the first horizontal lines is used as the number of horizontal lines of the image frame. The method of claim 1 , wherein receiving the image frame comprises receiving the image frame in a group of image frames within a predetermined time period.
5. A non-transitory computer-readable storage medium tangibly storing computer program instructions executable by a computer processor, the computer program instructions defining the following steps: receiving an image frame captured by an image sensor mounted on the vehicle; assigning brightness values to horizontal lines of the image frame; identifying a location of a skyline in the image frame by calculating a brightness difference between each pair of horizontal lines and identifying a brightness difference having a highest difference, the highest difference being associated with at least one horizontal line that includes the location of the skyline; cropping one or more future image frames based on the position of the skyline, thereby producing a cropped image comprising a subset of the one or more future image frames; and The cropped image is processed at an advanced driver assistance system (ADAS). 6 . The non-transitory computer-readable storage medium of claim 5 , the program instructions further defining the step of: determining that a current time corresponds to daytime and the vehicle is in motion before identifying the location of the skyline in the one or more image frames.
7. The non-transitory computer-readable storage medium of claim 5, wherein identifying the location of the skyline in the image frame further comprises identifying a number of horizontal lines of the image frame, and identifying the number of horizontal lines of the image frame comprises: Calculating a first brightness spread of a first horizontal line, wherein the first brightness spread is a difference between a maximum brightness value and a minimum brightness value of the first horizontal line; calculating a second brightness spread of a second horizontal line, the second horizontal line being located behind the first horizontal line, wherein the second brightness spread is a difference between a maximum brightness value and a minimum brightness value of the second horizontal line; calculating a difference between the second brightness spread and the first brightness spread; as well as When the difference is greater than a predetermined threshold, the number of the first horizontal lines is used as the number of horizontal lines of the image frame. 8 . The non-transitory computer-readable storage medium of claim 5 , wherein receiving the image frame comprises receiving the image frame in a group of image frames within a predetermined time period.
9. A device for automatic driving, comprising: processor; and A storage medium for tangibly storing thereon program logic executed by the processor, the stored program logic causing the processor to: receiving one or more image frames captured by an image sensor mounted on the vehicle, identifying a location of a skyline in the one or more image frames by calculating a brightness difference between each pair of horizontal lines and identifying a brightness difference having a highest difference, the highest difference being associated with at least one horizontal line that includes the location of the skyline, cropping one or more future image frames based on the position of the skyline, thereby producing a cropped image comprising a subset of the one or more future image frames, and The cropped image is processed at an advanced driver assistance system (ADAS).
10. The apparatus of claim 9, the stored program logic further causing the processor to: determine that a current time corresponds to daytime and the vehicle is in motion before identifying the location of the skyline in the one or more image frames.
11. The apparatus of claim 9 , wherein identifying the location of the skyline in the one or more image frames further comprises identifying a number of horizontal lines of a corresponding image frame in the one or more image frames, and identifying the number of horizontal lines of the corresponding image frame comprises: Calculating a first brightness spread of a first horizontal line, wherein the first brightness spread is a difference between a maximum brightness value and a minimum brightness value of the first horizontal line; calculating a second brightness spread of a second horizontal line, the second horizontal line being located behind the first horizontal line, wherein the second brightness spread is a difference between a maximum brightness value and a minimum brightness value of the second horizontal line; calculating a difference between the second brightness spread and the first brightness spread; as well as When the difference is greater than a predetermined threshold, the number of the first horizontal lines is used as the number of horizontal lines of the corresponding image frame.
