Method and system for dynamically adjusting parameters of camera settings for image enhancement
10129458 ยท 2018-11-13
Assignee
Inventors
Cpc classification
G06T5/94
PHYSICS
International classification
H04N7/18
ELECTRICITY
Abstract
A method for image-based dynamic feature enhancement includes: using the camera to capture multiple images, selecting an ROI from each of the multiple images displayed on the camera through the ROI selection unit, configuring multiple brightness weights to correspond to the ROI, adjusting brightness of the image according to the multiple brightness weights and multiple actual brightness values corresponding to the ROI, and performing a multi-layer progressive sharpening process to adjust multiple actual sharpening parameters of the image through the sharpening adjustment unit. The camera parameters of the camera can be directly and instantly adjusted to improve brightness and sharpening of images captured by the camera and facilitate advanced driver assistance system to clearly identify road conditions.
Claims
1. A method for dynamically adjusting parameters of camera settings for image enhancement performed by a system for image-based dynamic feature enhancement, wherein the system includes a camera, a region of interest (ROI) selection unit and a sharpening adjustment unit, the method comprising: using the camera to capture multiple images; selecting an ROI from each of the multiple images displayed on the camera through the ROI selection unit; dividing the ROI into multiple blocks and configuring multiple brightness weights to the respective blocks of the ROI; performing a contour analysis of each image; and performing a multi-layer progressive sharpening process to adjust multiple actual sharpening parameters corresponding to the respective blocks of the ROI of the image through the sharpening adjustment unit, wherein the multi-layer progressive sharpening process comprises: configuring a sharpening parameter threshold; comparing the actual sharpening parameter corresponding to each block of the ROI with the sharpening parameter threshold and progressively incrementing or decrementing the actual sharpening parameter for the actual sharpening parameter to fall within a tolerance range of the sharpening parameter threshold; and grading degree of edge exposure associated with sub-images on the blocks of the ROI to enhance object contours in the sub-images.
2. The method as claimed in claim 1, wherein the brightness weights are configured by mapping an actual brightness value corresponding to each block of the ROI to one of the multiple brightness weights in a brightness weight mapping table, and the actual brightness value of the block is adjusted according to the mapped brightness weight.
3. The method as claimed in claim 1, wherein the multiple images and the sharpening parameter threshold are stored in a memory.
4. A system for dynamically adjusting parameters of camera settings for image enhancement, comprising: a camera capturing multiple images and having a memory; a display screen connected to the camera; a region of interest (ROI) selection unit electrically connected to the display screen and defining a range of an ROI on each image taken by the camera and displayed on the display screen; a block division unit electrically connected to the display screen and dividing the image on the display screen into multiple blocks; an image analysis unit electrically connected to the camera and analyzing multiple actual brightness values and multiple actual sharpening parameters corresponding to the respective blocks of the image; a brightness weight configuration unit electrically connected to the image analysis unit and the display screen, receiving the actual brightness values corresponding to the respective blocks of the image, and configuring a brightness weight of a sub-image on each block of the image by mapping the actual brightness value corresponding to the block to a brightness weight in a brightness weight mapping table stored in the memory of the camera; a brightness adjustment unit electrically connected to the brightness weight configuration unit and the camera and adjusting the actual brightness values of the sub-images on the multiple blocks of the image according to the brightness weight configured in each block; and a sharpening adjustment unit electrically connected to the camera and the image analysis unit, performing a multi-layer progressive sharpening process to enhance contours of objects in the sub-image of each block of the image, and adjusting the actual sharpening parameter corresponding to the sub-image on each block of each image according to degree of distortion of the sub-image, wherein the multi-layer progressive sharpening process progressively increments or decrements the actual sharpening parameter corresponding to each block of each image according to a comparison between the actual sharpening parameter and a sharpening parameter threshold until the actual sharpening parameter falls within a tolerance range of the sharpening parameter threshold.
5. The system as claimed in claim 4, wherein the multiple images and the sharpening parameter threshold are stored in the memory of the camera.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION OF THE INVENTION
(8) With reference to
(9) The camera 11 may be a regular digital camera or a regular digital video camcorder and includes the display screen 12 or is externally connected to the display screen 12. The camera 11 has a memory 111 storing multiple images 121 taken by the camera 11. The ROI selection unit 13 is electrically connected to the display screen 12 and defines the range of an ROI 122 of each image 121 displayed on the display screen 12 based on different road conditions, time and weather.
(10) The block division unit 14 is electrically connected to the display screen 12 and serves to divide the image 121 on the display screen 12 into multiple blocks 123. The image analysis unit 15 is electrically connected to the camera 11 and serves to analyze multiple actual brightness values and multiple actual sharpening parameters of multiple images taken by the camera 11. The brightness weight configuration unit 16 is electrically connected to the image analysis unit 15 and the display screen 12, receives the actual brightness values corresponding to the blocks of each image 121, and configures a brightness weight of a sub-image on each block 123 by mapping the actual brightness value corresponding to the block 123 to a brightness weight in a brightness weight mapping table stored in the memory 111 of the camera 11. The brightness weight mapping table in the camera 11 includes multiple actual brightness values and multiple brightness weights corresponding to the multiple actual brightness values and varies from manufacturer to manufacturer. Given the brightness weight mapping table, the system for dynamically adjusting parameters of camera settings for image enhancement 10 can adjust the image 121 on the display screen 12 in a bright and clear fashion according to a brightness range represented by the brightness weight configured in each block 123. How to create the brightness weight mapping table is well-known to persons skilled in the art and is therefore not elaborated here. The brightness adjustment unit 17 is electrically connected to the brightness weight configuration unit 16 and the camera 11 and adjusts the actual brightness values of the sub-images on the multiple blocks 123 of the image 121 according to the brightness weight configured in each block 123.
(11) The sharpening adjustment unit 18 is electrically connected to the camera 11 and the image analysis unit 15, and utilizes a multi-layer progressive sharpening process to enhance contour clarity of the multiple image taken by the camera 11 according to the actual sharpening parameters of the multiple images analyzed by the image analysis unit 15, adjust the actual sharpening parameter corresponding to the sub-image on each block 123 of each image 121 depending on degree of distortion of the sub-image, boost high-frequency edge information of the sub-image as a layer of boosted edge information, and combine the multiple layers of boosted edge information of the sub-images of each image after brightness of the sub-image in each block 123 of the image is adjusted, thereby attaining the purpose of contour enhancement for the multiple images.
(12) With reference to
(13) Step S301: Use a camera 11 to capture multiple images and store the multiple images in a memory 111. The camera 11 of the system for dynamically adjusting parameters of camera settings for image enhancement continuously takes multiple road ahead images. As the environmental brightness and contours of objects on the images won't suddenly change, image processing is performed on the multiple images taken in a previous time duration, and the camera parameters of the camera 11 are adjusted for the multiple images taken in the current time duration to be displayed on the display screen 12 in a vivid and clear way.
(14) Step S302: Select an ROI 122 from each image 121 displayed on the display screen 12 of the camera 11. It is noted that not all the blocks of the image 121 on the display screen 12 require image enhancement processing. Instead, choosing the ROI 122 can lower time for image computation and accelerate time for image enhancement. For example, with reference to
(15) The system for dynamically adjusting parameters of camera settings for image enhancement 10 may be integrated in an electronic system of a vehicle, such as a navigation system or a central control system, or the system for dynamically adjusting parameters of camera settings for image enhancement 10 may be installed in an automated driving system. The range of the ROI 122 varies with environments, such that users can adjust the range of the ROI to adapt to different road conditions and driver's perspectives.
(16) Step S303: Configure multiple brightness weights corresponding to the image 121 on the display screen 12. After selecting the ROI 122, the method for dynamically adjusting parameters of camera settings for image enhancement divides the image 121 and the ROI 122 into multiple blocks 123 respectively and labels the multiple brightness weights on the respective blocks 123. Not the sub-images on all the blocks 123 are overexposed or insufficiently luminous. Some of the blocks 123 are excessively bright (overexposed) while some other blocks 123 are excessively dark (underexposed). Hence, a block-by-block brightness adjustment needs to be performed. Configuration of the multiple brightness weights for the blocks 123 can be implemented by first creating a brightness weight mapping table and assigning a brightness weight in the brightness weight mapping table, which is mapped by an actual brightness value of the sub-image on each block 123, to the block 123. The brightness weight mapping table may be stored in the brightness weight configuration unit 16 or in the memory 111 of the camera 11. The brightness weight mapping table may be user-dependent, vehicle-dependent or camera-dependent.
(17) Given as an example as shown in
(18) Step S304: Adjust brightness of the image 121 according to the brightness weight and the actual brightness value of each block 123. The actual brightness values of the image 121 on the display screen 12 are adjusted according to the brightness weight of each block 123. In the case of an underexposed block, the actual brightness value corresponding to the block is increased. In the case of an overexposed block, the actual brightness value corresponding to the block is decreased. The method for dynamically adjusting parameters of camera settings for image enhancement adjusts brightness using the multiple images captured by the camera 11 and directly performs adjustment of the brightness parameters of the camera 11 instead of image processing on the multiple images.
(19) Step S305: Perform a contour analysis of each image 121. After brightness of the image 121 of the camera 11 is completed, sharpening enhancement of the image 121 can be performed. However, prior to the sharpening adjustment, a contour analysis of each image 121 needs to be conducted to determine if edges of objects on the multiple images 121 captured by the camera 11 are blurred or clear.
(20) Step S306: Use a multi-layer progressive sharpening process to update multiple actual sharpening parameters of the image 121. The sharpening adjustment of the image 121, which uses a fine-tuning approach to progressively adjust the sharpening parameter in a step-by-step manner for the sharpening parameter of the camera 11 to be adjusted to be within a tolerance range of a threshold, is performed by the system for dynamically adjusting parameters of camera settings for image enhancement.
(21) With reference to
(22) Step S401: Configure a sharpening parameter threshold. The configured sharpening parameter threshold is stored in the memory 111 of the camera 11. In the image 121 displayed on the camera 11, the sub-images on the multiple blocks 123 in the ROI 121 of the image 121 have different actual sharpening parameters. The actual sharpening parameters of the sub-images on the multiple blocks 123 are adjusted according to the sharpening parameter threshold for the images 121 taken by the camera 11 to have visible and clear contours.
(23) Step S402: Compare the actual sharpening parameter with the sharpening parameter threshold. The actual sharpening parameter is progressively increased or decreased to approach the sharpening parameter threshold, which is a configured value as a basis of having clear and visible contours of objects on the images. The sharpening parameter threshold can be modified on user's demand. Upon adjustment of the sharpening parameter threshold, a tolerance range of the sharpening parameter threshold can be configured, such that the actual sharpening parameters of the image 121 can be progressively adjusted to fall within the tolerance range of the sharpening parameter threshold for the images taken by the camera 11 to be clear and visible. If the actual sharpening parameter is less than the tolerance range of the sharpening parameter threshold, perform step S403 and resume step S402, if the actual sharpening parameter is greater than the tolerance range of the sharpening parameter threshold, perform step S404 and resume step S402, and if the actual sharpening parameter falls within the tolerance range of the sharpening parameter threshold, terminate the multi-layer progressive sharpening process.
(24) Step S403: Increment the actual sharpening parameter.
(25) Step S404: Decrement the actual sharpening parameter.
(26) The value to be incremented or decremented each time from the actual sharpening parameter of each block 123 on the image 121 can be configured in the multi-layer progressive sharpening process. For example, with reference to
(27) Given an example for explanation, in consideration of the contour clarity of the multiple images, a value range of the actual sharpening parameter can be configured to be 0255, indicative of 256 levels. Suppose that the value of the actual sharpening parameter of a certain block on the image 121 is 200, the tolerance range of the sharpening parameter threshold is 2315, and there are two sharpening processing layers, namely, the first progressively incrementing sharpening layer 41 and the first progressively decrementing sharpening layer 51. To adjust the actual sharpening parameter to fall within the tolerance of the sharpening parameter threshold, which is 226236, the multi-layer progressive sharpening process enters the first progressively incrementing sharpening layer 41, and the first progressively incrementing sharpening layer 41 increases the actual sharpening parameter by 5 and is thus adjusted to 205. As the value of the actual sharpening parameter is still less than the lower bound of the tolerance range of the sharpening parameter threshold, the multi-layer progressive sharpening process enters the first progressively incrementing sharpening layer 41 again to increase the actual sharpening parameter until the actual sharpening parameter falls within the tolerance range of the sharpening parameter threshold. On the other hand, if the actual sharpening parameter is greater than the upper bound of the tolerance range of the sharpening parameter threshold, the multi-layer progressive sharpening process enters the first progressively decrementing sharpening layer 51 to progressively decrement the actual sharpening parameter until the actual sharpening parameter falls within the tolerance range of the sharpening parameter threshold.
(28) Moreover, in step S306 degree of edge exposure associated with the sub-images of the picture 121 are graded to enhance the object contours in the sub-images on the multiple blocks 123. The multi-layer progressive sharpening process is employed to identify corresponding edges in the sub-images on the blocks 123, fix the actual sharpening parameters of the sub-images according to the degree of distortion associated with the sub-images on the blocks, then boost high-frequency edge information of the sub-images to form multiple layers of boosted edge information, such as the T1-layer of edge information, T2-layer of edge information, T3-layer of edge information, and T4-layer of edge information as shown in
(29) Even though numerous characteristics and advantages of the present invention have been set forth in the foregoing description, together with details of the structure and function of the invention, the disclosure is illustrative only. Changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.