The present invention generally relates systems and methods for detecting a seatbelt having a known pattern using an image having an oversaturated condition.
Cameras and other image detection devices have been utilized to detect one or more objects. Control systems that are in communication with these cameras can receive images captured by the cameras and process these images. The processing of these images can include detecting one or more objects found in the captured images. Based on these detected objects, the control system may perform some type of action in response to these detected variables.
Conventional systems for detecting seatbelt usage typically rely upon a seat belt buckle switch. However, those conventional systems are unable to detect if the seatbelt is properly positioned or if the seat belt buckle is being spoofed. Seat track sensors are typically used to determine distance to an occupant of a motor vehicle. However, such use of seat track sensors do not account for body position of the occupant relative to the seat.
Image-based systems may have difficulty detecting objects when one or more regions of an image are oversaturated, which can result from bright light, such as direct sunlight.
A method for detecting seatbelt positioning is provided. The method comprises: capturing, by a camera, a source image of an occupant in a vehicle; determining a position of a head of the occupant in the source image; determining a region of interest for a seatbelt based on the position of the head of the occupant; determining an oversaturation condition in the region of interest for the seatbelt; adjusting the source image to form an adjusted image compensating the oversaturation condition in the region of interest for the seatbelt; converting the adjusted image to a black-and-white image; and detecting the seatbelt within the black-and-white image.
A system for detecting seatbelt positioning is provided. The system comprises: a seatbelt having a predetermined pattern; a camera configured to capture a source image of an occupant wearing the seatbelt; and a controller in communication with the camera. The controller is configured to: determine a position of a head of the occupant in the source image; determine a region of interest for the seatbelt based on the position of the head of the occupant; determine an oversaturation condition in the region of interest for the seatbelt; adjust the source image to form an adjusted image that compensates the oversaturation condition in the region of interest for the seatbelt; convert the adjusted image to a black-and-white image; and detect the seatbelt within the black-and-white image.
Further objects, features, and advantages of this invention will become readily apparent to persons skilled in the art after a review of the following description, with reference to the drawings and claims that are appended to and form a part of this specification.
Referring to
As to the vehicle 10, the vehicle 10 is shown in
Referring to
Located within the cabin 14 are seats 18A and 18B. The seats 18A and 18B are such that they are configured so as to support an occupant of the vehicle 10. The vehicle 10 may have any number of seats. Furthermore, it should be understood that the vehicle 10 may not have any seats at all.
The vehicle 10 may have one or more cameras 20A-20F located and mounted to the vehicle 10 so as to be able to have a field a view of at least a portion of the cabin 14 that function as part of a vision system. As such, the cameras 20A-20F may have a field of view of the occupants seated in the seats 18A and/or 18B. Here, cameras 20A and 20C are located on the A-pillars 16A. Camera 20B is located on a rearview mirror 22. Camera 20D may be located on a dashboard 24 of the vehicle 10. Camera 20E and 20F may focus on the driver and/or occupant and may be located adjacent to the vehicle cluster 25 or a steering wheel 23, respectively. Of course, it should be understood that any one of a number of different cameras may be utilized. As such, it should be understood that only one camera may be utilized or numerous cameras may be utilized. Furthermore, the cameras 20A-20F may be located and mounted to the vehicle 10 anywhere so long as to have a view of at least a portion of the cabin 14.
The cameras 20A-20F may be any type of camera capable of capturing visual information. This visual information may be information within the visible spectrum, but could also be information outside of the visible spectrum, such as infrared or ultraviolet light. Here, the cameras 20A-20F are near infrared (NIR) cameras capable of capturing images generated by the reflection of near infrared light. Near infrared light may include any light in the near-infrared region of the electromagnetic spectrum (from 780 nm to 2500 nm). However, the seatbelt detection system 12 of the present disclosure may be configured to use a specific wavelength or range of wavelengths within the near-infrared region.
The source of this near-infrared light could be a natural source, such as the sun, but could also be an artificial source such as a near-infrared light source 26. The near-infrared light source 26 may be mounted anywhere within the cabin 14 of the vehicle 10 so as long as to be able to project near-infrared light into at least a portion of the cabin 14. Here, the near-infrared light source 26 is mounted to the rearview mirror 22 but should be understood that the near-infrared light source 26 may be mounted anywhere within the cabin 14. Additionally, it should be understood that while only one near-infrared light source 26 is shown, there may be more than one near-infrared light source 26 located within the cabin 14 of the vehicle 10.
Also located within the cabin 14 may be an output device 28 for relaying information to one or more occupants located within the cabin 14. Here, the output device 28 is shown in a display device so as to convey visual information to one or more occupants located within the cabin 14. However, it should be understood that the output device 28 could be any output device capable of providing information to one or more occupants located within the cabin 14. As such, for example, the output device may be an audio output device that provides audio information to one or more occupants located within the cabin 14 of a vehicle 10. Additionally, should be understood that the output device 28 could be a vehicle subsystem that controls the functionality of the vehicle.
Referring to
The processor 30 may also be in communication with a camera 20. The camera 20 may be the same as cameras 20A-20F shown and described in
The near-infrared light source 26 may also be in communication with the processor 30. When activated by the processor 30, the near-infrared light source 26 projects near-infrared light 36 to an object 38 which may either absorb or reflect near-infrared light 40 towards the camera 20 wherein the camera can capture images illustrating the absorbed or reflected near-infrared light 40. These images may then be provided to the processor 30.
The processor 30 may also be in communication with the output device 28. The output device 28 may include a visual and/or audible output device capable of providing information to one or more occupants located within the cabin 14 of
A method 100 of detecting seatbelt positioning is shown in the flowchart of
The method 100 also includes determining a position of a head of the occupant in the source image at step 104. The processor 30 may perform step 104, which may include using one or more face detection algorithms to detect a human face and to thereby determine the position of the head. In some embodiments, step 104 may include detecting parts of a face, such as just the eyes, which may allow the position of the head to be determined where parts of the face are obstructed, e.g. by a mask or a scarf. In some embodiments, step 104 may detect the position of the head where the occupant 44 is wearing glasses, sunglasses, a head covering, such as a hat, headband, headscarf, etc. and/or other accessories or other articles of clothing.
The method 100 also includes determining a region of interest for a seatbelt based on the position of a head of the occupant at step 106. The processor 30 may perform step 106. The region of interest for the seatbelt may be below the position of the head, for example, where the region of interest for the seatbelt is across a chest of the user. The region of interest for the seatbelt may be spaced apart from the position of the head as shown, for example, in
The method 100 also includes determining an oversaturation condition in the region of interest for the seatbelt at step 108. The processor 30 may perform step 108. The oversaturation condition may include one or more parts of the region of interest for the seatbelt being oversaturated, which may be visible as a bright and/or washed-out appearance, as shown in
In some embodiments, step 108 includes determining a predetermined number of pixels within a given region and each having a brightness level greater than a predetermined brightness level. The predetermined number of pixels may be a predetermined proportion of the pixels within the given region. For example, the image may be subdivided into some number of sections, such as a grid of the sections. The oversaturated region 70 may include any number of the sections having the predetermined number of pixels with brightness levels greater than the predetermined brightness level. Alternatively or additionally, an average or median brightness level may be calculated for each of the sections, which may be compared with the predetermined brightness level to determine whether each of the sections is oversaturated.
The method 100 also includes adjusting the source image to form an adjusted image compensating the oversaturation condition in the region of interest for the seatbelt at step 110. The processor 30 may perform step 110.
In some embodiments, adjusting the source image at step 110 includes adjusting an exposure of the source image based on a contrast ratio in the region of interest for the seatbelt. For example, the processor 30 may progressively reduce or increase an exposure value until the contrast ratio in the region of interest for the seatbelt reaches a predetermined value.
In some embodiments, adjusting the source image at step 110 includes adjusting an exposure of the source image based on causing the predetermined pattern of the seatbelt to be detected within the region of interest for the seatbelt. For example, the processor 30 may progressively reduce or increase an exposure value until the predetermined pattern of the seatbelt is detected within the region of interest for the seatbelt, or until the exposure value reaches a corresponding minimum or maximum value.
The method 100 also includes converting the adjusted image to a black-and-white (B/W) image at step 112. The terms black and white may include any representations of pixels in one of two binary states representing dark or light. The processor 30 may perform step 112, which may include using a localized binary threshold to determine whether any given pixel in the B/W image should be black or white. Such a localized binary threshold may compare a source pixel in the source image (i.e. the filtered image) to nearby pixels within a predetermined distance of the pixel. If the source pixel is brighter than an average of the nearby pixels, the corresponding pixel in the B/W image may be set to white, and if the source pixel is less bright than the average of the nearby pixels, then the corresponding pixel in the B/W image may be set to black. In some embodiments, the predetermined distance may be about 100 pixels. In some embodiments, the predetermined distance may be equal to or approximately equal to a pixel width of the seatbelt 50 with the seatbelt 50 at a nominal position relative to the camera (e.g. in use on an occupant 44 having a medium build and sitting in the seat 18a in an intermediate position.
The method 100 also includes detecting the seatbelt within the black-and-white image at step 114. The processor 30 may perform step 114. In some embodiments, step 114 includes scanning across the black-and-white image to detect a plurality of transitions between black and white segments corresponding to stripes extending lengthwise along a length of the seatbelt, and using detections of the plurality of transitions to indicate a detection of the seatbelt. For example, the processor 30 may scan across one or more lines in the B/W image to detect Black/White (or White/Black) transitions and to use detections of those transitions to indicate detections 64 of the seatbelt 50. The one or more lines may include one or more horizontal lines, although the lines may have a different orientation or direction. Step 114 may include comparing the relative distances between the transitions to detect the seatbelt by determining if those relative distances correlate to a ratio of the widths of the stripes of the seatbelt 50.
The method 100 may also include filtering the image to remove glints at step 116. Step 116 may be performed prior to determining the oversaturation condition in the region of interest for the seatbelt at step 108. The processor 30 may perform step 116, which may include applying a median filter to the image. Such a median filter may preserve edges while smoothing abnormally bright or dark areas (i.e. glints), which may result from seatbelt yarns, bad pixels in the camera 20, or other noise-inducing particles, such as lint stuck to the seatbelt 50. This step 116 may reduce a number of false detections of black/white transitions, and thereby improves the performance and reliability of the method 100.
By executing the method of the present disclosure, the seatbelt detection system 12 can determine if the occupant 44 is properly wearing their seatbelt 50. The system and method of the present disclosure can improve the confidence that the occupant 44 is properly wearing the seatbelt 50.
In addition, as stated previously, the seatbelt 50 may have light absorbing and/or reflecting material 50C located on or disposed on the seatbelt 50. The cameras 20A-20F can capture images of the material 50C. As stated before, this material 50C may be in a known pattern having pattern elements that are separated from each other by known distances 52. The seatbelt detection system 12 can then review these captured images from the camera 20A-20F and determine if the distance of the seatbelt 50 to the camera is generally an expected distance indicating that the seatbelt 50 is properly across the body 48 of the occupant 44. In addition, because this pattern is known, clothing that the occupant 44 may be wearing that may reflect and/or absorb light, such as infrared light, can be ignored as it is highly unlikely that the clothing worn by the occupant would have a pattern matching that of the pattern of the stripes 68a-68g on the seatbelt 50.
If a determination is made that the occupant 44 is properly wearing the seatbelt 50, the seatbelt detection system 12 can allow the vehicle 10 to operate in a normal mode. However, if the seatbelt detection system 12 indicates that the occupant 44 is not properly wearing the seatbelt 50, the control system 12 could take any one of a number of different actions. For example, the seatbelt detection system 12 could indicate to the occupant 44 using the output device 28 so as to provide a visual and/or audible cue that the seatbelt 50 is not being properly worn. Additionally, the output device 28 could be in communication with any one of a number of different vehicle systems so as to restrict the operation of the vehicle 10 until the seatbelt 50 is being properly worn by the occupant 44.
The seatbelt detection system 12 may also be in communication with other control systems so as to improve the reliability of the system. For example, the seatbelt detection system 12 may also be in communication with one or more sensors, such as the sensors that detect the safety belt latch 61 or tongue is inserted into the safety belt buckle 63. If the seatbelt detection system 12 determines that the safety belt buckle is properly latched and determines that the seatbelt 50 is properly positioned across the body 48 of the occupant 44, the seatbelt detection system 12 can, with more confidence, determine that the seatbelt 50 is being properly utilized by the occupant 44.
In some embodiments, dedicated hardware implementations, such as application specific integrated circuits, programmable logic arrays, and other hardware devices, can be constructed to implement one or more steps of the methods described herein. Applications that may include the apparatus and systems of various embodiments can broadly include a variety of electronic and computer systems. One or more embodiments described herein may implement functions using two or more specific interconnected hardware modules or devices with related control and data signals that can be communicated between and through the modules, or as portions of an application-specific integrated circuit. Accordingly, the present system encompasses software, firmware, and hardware implementations.
In accordance with various embodiments of the present disclosure, the methods described herein may be implemented by software programs executable by a computer system. Further, in an exemplary, non-limited embodiment, implementations can include distributed processing, component/object distributed processing, and parallel processing. Alternatively, virtual computer system processing can be constructed to implement one or more of the methods or functionality as described herein.
Further, the methods described herein may be embodied in a computer-readable medium. The term “computer-readable medium” includes a single medium or multiple media, such as a centralized or distributed database, and/or associated caches and servers that store one or more sets of instructions. The term “computer-readable medium” shall also include any medium that is capable of storing, encoding or carrying a set of instructions for execution by a processor or that cause a computer system to perform any one or more of the methods or operations disclosed herein.
As a person skilled in the art will readily appreciate, the above description is meant as an illustration of the principles of this invention. This description is not intended to limit the scope or application of this invention in that the invention is susceptible to modification, variation, and change, without departing from the spirit of this invention, as defined in the following claims.