CN115866407A - Vehicle-mounted camera adjusting method and vehicle - Google Patents

Vehicle-mounted camera adjusting method and vehicle Download PDF

Info

Publication number
CN115866407A
CN115866407A CN202211505956.8A CN202211505956A CN115866407A CN 115866407 A CN115866407 A CN 115866407A CN 202211505956 A CN202211505956 A CN 202211505956A CN 115866407 A CN115866407 A CN 115866407A
Authority
CN
China
Prior art keywords
range
exposure time
vehicle
mounted camera
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211505956.8A
Other languages
Chinese (zh)
Inventor
马瑞
顾振业
孟亚杰
梅士情
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinyi Electronic Technology Shanghai Co ltd
Original Assignee
Xinyi Electronic Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinyi Electronic Technology Shanghai Co ltd filed Critical Xinyi Electronic Technology Shanghai Co ltd
Priority to CN202211505956.8A priority Critical patent/CN115866407A/en
Publication of CN115866407A publication Critical patent/CN115866407A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The invention is suitable for the technical field of vehicles, and provides a vehicle-mounted camera adjusting method and a vehicle, wherein the vehicle-mounted camera adjusting method comprises the following steps: detecting the illumination intensity outside the vehicle; if the illumination intensity is changed alternately between the first range and the second range within the preset time, acquiring the exposure time of the vehicle-mounted camera corresponding to the first range and the second range; determining a first exposure time adjusting range according to the exposure time corresponding to the first range; determining a second exposure time adjusting range according to the exposure time corresponding to the second range; and re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range based on the first exposure time adjustment range and the second exposure time adjustment range. The vehicle-mounted camera can improve the smoothness of the image pick-up picture of the vehicle-mounted camera when the light and the shade of the external light are changed alternately.

Description

Vehicle-mounted camera adjusting method and vehicle
Technical Field
The invention belongs to the technical field of vehicles, and particularly relates to a vehicle-mounted camera adjusting method and a vehicle.
Background
The known vehicle-mounted camera has an automatic exposure function, so that the exposure parameters of the vehicle-mounted camera can be adjusted according to the gray level of the current image, the gray level of the photographed image is moderate under different illuminance environments, and object detection is effectively completed.
However, from bright to dim environment, or from dim to bright scene, the vehicle-mounted camera needs certain response time for switching the exposure parameters, the display screen can briefly appear "a slice of white" or "a slice of black", although the response time is very short, about 0.2 second can be achieved, but when the external light changes alternately in brightness and darkness, for example, through continuous tunnels or passing through continuous street lamps at night, the exposure parameters can be continuously switched back and forth, the display screen is continuously abnormal, and the driving experience of the user is greatly influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for adjusting a vehicle-mounted camera and a vehicle, so as to improve fluency of a captured image when external light changes alternately in brightness.
The first aspect of the embodiment of the invention provides a method for adjusting a vehicle-mounted camera, which comprises the following steps:
detecting the illumination intensity outside the vehicle;
if the illumination intensity is changed alternately between the first range and the second range within the preset time, acquiring the exposure time of the vehicle-mounted camera corresponding to the first range and the second range; the first range is smaller than the second range, and the difference value between the upper limit value of the first range and the lower limit value of the second range is larger than a preset threshold value;
determining a first exposure time adjusting range according to the exposure time corresponding to the first range;
determining a second exposure time adjusting range according to the exposure time corresponding to the second range;
and re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range based on the first exposure time adjustment range and the second exposure time adjustment range.
Optionally, determining a first exposure time adjustment range according to the exposure time corresponding to the first range includes:
and taking the exposure time corresponding to the first range plus a first preset value as an upper limit value of a first exposure time adjusting range, and taking the exposure time corresponding to the first range minus a second preset value as a lower limit value of the first exposure time adjusting range to obtain the first exposure time adjusting range.
Optionally, determining a second exposure time adjustment range according to the exposure time corresponding to the second range includes:
and adding the first preset value to the exposure time corresponding to the second range to serve as an upper limit value of a second exposure time adjusting range, and subtracting the second preset value from the exposure time corresponding to the second range to serve as a lower limit value of the second exposure time adjusting range to obtain the second exposure time adjusting range.
Optionally, re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range based on the first exposure time adjustment range and the second exposure time adjustment range includes:
judging whether the first exposure time adjusting range and the second exposure time adjusting range have a superposition range or not;
and if the overlap range exists, calculating the middle value of the overlap range, and taking the middle value as the exposure time of the vehicle-mounted camera corresponding to the first range and the second range respectively.
Optionally, re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range based on the first exposure time adjustment range and the second exposure time adjustment range, further includes:
if the coincidence range does not exist, taking the lower limit value of the first exposure time adjusting range as the exposure time of the vehicle-mounted camera corresponding to the first range; and taking the upper limit value of the second exposure time adjusting range as the exposure time of the vehicle-mounted camera corresponding to the second range.
Optionally, after the exposure time of the vehicle-mounted camera corresponding to the first range and the second range is re-determined, the method further includes:
and if the illumination intensity outside the vehicle is within the first range or the second range and the duration time reaches the preset duration time, re-determining the exposure time of the vehicle-mounted camera according to the illumination intensity outside the vehicle.
Optionally, re-determining the exposure time of the vehicle-mounted camera according to the illumination intensity outside the vehicle includes:
calculating the difference value between the gray value of the current image and the standard gray value;
and re-determining the exposure time of the vehicle-mounted camera based on the current exposure time of the vehicle-mounted camera, the gray value of the current image and the difference value between the gray value of the current image and the standard gray value.
Optionally, the method for adjusting the vehicle-mounted camera further includes:
acquiring the outside temperature;
determining and setting the optimal resolution of the vehicle-mounted camera at the current external temperature according to the external temperature and an external temperature-resolution relation table corresponding to a preset vehicle-mounted camera;
the external temperature-resolution relation table comprises the optimal resolutions of the vehicle-mounted cameras at different external temperatures, and each optimal resolution is located in the resolution adjustable range of the vehicle-mounted camera.
Optionally, the method for adjusting the vehicle-mounted camera further includes:
detecting the temperature of the vehicle-mounted camera at a preset frequency;
if the temperature of the vehicle-mounted camera is larger than the preset threshold value, the resolution of the vehicle-mounted camera is reduced within the resolution adjustable range until the temperature of the vehicle-mounted camera is not larger than the preset threshold value or the resolution of the vehicle-mounted camera is reduced to the lower limit value of the resolution adjustable range.
A second aspect of the embodiments of the present invention provides an adjusting device for a vehicle-mounted camera, including:
the detection module is used for detecting the illumination intensity outside the vehicle;
the acquisition module is used for acquiring the exposure time of the vehicle-mounted camera corresponding to the first range and the second range if the illumination intensity is changed alternately between the first range and the second range within the preset time; the first range is smaller than the second range, and the difference value between the upper limit value of the first range and the lower limit value of the second range is larger than a preset threshold value;
the processing module is used for determining a first exposure time adjusting range according to the exposure time corresponding to the first range; determining a second exposure time adjusting range according to the exposure time corresponding to the second range;
and the determining module is used for re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range based on the first exposure time adjusting range and the second exposure time adjusting range.
A third aspect of embodiments of the present invention provides a vehicle, including an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method for adjusting an in-vehicle camera according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned adjusting method for a vehicle-mounted camera according to the first aspect are implemented.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
the method and the device for adjusting the exposure time of the vehicle-mounted camera determine that the brightness of the external light changes continuously when the illumination intensity is detected to change alternately between a first range and a second range within preset time, at the moment, the exposure time of the vehicle-mounted camera corresponding to the first range and the second range is obtained, a first exposure time adjusting range is determined according to the exposure time corresponding to the first range, a second exposure time adjusting range is determined according to the exposure time corresponding to the second range, the exposure time of the vehicle-mounted camera corresponding to the first range and the second range is comprehensively determined based on the first exposure time adjusting range and the second exposure time adjusting range, the exposure time corresponding to the first range is reduced as much as possible, the exposure time corresponding to the second range is improved, and the problem that a display picture is abnormal due to sudden change of the light is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an implementation of an adjusting method of a vehicle-mounted camera according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an adjustment device of a vehicle-mounted camera according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to illustrate the technical means of the present invention, the following description is given by way of specific examples.
The vehicle-mounted camera faces all moving images, and if the indexes of the camera are unqualified, the vehicle-mounted camera is simply and directly arranged for a vehicle. The existing vehicle-mounted camera generally has an automatic exposure function, and particularly, when the environment is from bright to dim or the scene is from dim to bright, the vehicle-mounted camera can automatically adjust the exposure time, so that the gray level of a shot image is moderate, and overexposure or underexposure is avoided. The scene switching response time is the response time required by the vehicle-mounted camera to switch the exposure time, and in the scene switching response time, if the light is suddenly changed from bright to dark, the picture shot by the vehicle-mounted camera is in an underexposure state and is displayed as 'black in one piece', and if the light is suddenly changed from dark to bright, the picture shot by the vehicle-mounted camera is in an overexposure state and is displayed as 'white in one piece'. Therefore, the shorter the scene change response time, the better. At present, the scene switching response time of vehicle-mounted camera can accomplish about 0.2 second, can not produce great influence in general use, however, when external light and shade alternate change, for example through continuous tunnel, night through continuous street lamp, when the shadow region of continuous building shuttles back and forth, can lead to exposure parameter to make a round trip constantly to switch, and the display screen is unusual, has greatly influenced user's driving experience.
In view of the above, referring to fig. 1, an embodiment of the present invention provides an adjusting method for a vehicle-mounted camera, where the method includes the following steps:
step S101, detecting the illumination intensity outside the vehicle.
In the embodiment, the vehicle is provided with an illumination intensity sensor which can detect the illumination intensity around the vehicle in real time, and the working principle is to convert the illumination intensity value into a voltage value.
Step S102, if the illumination intensity is changed alternately between a first range and a second range within the preset time, acquiring the exposure time of the vehicle-mounted camera corresponding to the first range and the second range; the first range is smaller than the second range, and the difference between the upper limit value of the first range and the lower limit value of the second range is larger than a preset threshold value.
In this embodiment, the total range of possible illumination intensities may be divided into a plurality of small ranges in a gradient, each small range corresponding to an exposure time. That is, when the illumination intensity is changed in any small range, the exposure time is not adjusted by the onboard camera because the difference in illumination intensity is not large.
When the illumination intensity changes from one small range to another small range, the vehicle-mounted camera can adjust the exposure time to adapt to the illumination intensity, and then the imaging quality is ensured.
Further, the first range and the second range are two different small ranges, and a difference between an upper limit value of the first range and a lower limit value of the second range is greater than a preset threshold, at this time, when the illumination intensity changes between the first range and the second range, an instantaneous change of the illumination intensity is large, and an "under-exposure" phenomenon of "one black piece" or an "over-exposure" phenomenon of "one white piece" may occur. When the illumination intensity is continuously changed between the first range and the second range, the illumination intensity is in a state that needs to be adjusted in this embodiment. It should be noted that the size of the preset threshold may be set according to actual requirements, and the present application is not limited thereto.
Step S103, determining a first exposure time adjusting range according to the exposure time corresponding to the first range.
As a possible implementation manner, determining the first exposure time adjustment range according to the exposure time corresponding to the first range may be detailed as follows:
and adding a first preset value to the exposure time corresponding to the first range to serve as an upper limit value of the first exposure time adjusting range, and subtracting a second preset value from the exposure time corresponding to the first range to serve as a lower limit value of the first exposure time adjusting range to obtain the first exposure time adjusting range.
In this embodiment, the exposure time corresponding to the first range is the optimal exposure time under the illumination intensity of the first range, and the first exposure time adjustment range may be an exposure time range in which "overexposure" or "underexposure" is not generated under the illumination intensity of the first range, and is determined by adding or subtracting a certain value to the optimal exposure time.
And step S104, determining a second exposure time adjusting range according to the exposure time corresponding to the second range.
As a possible implementation manner, determining the second exposure time adjustment range according to the exposure time corresponding to the second range may be detailed as follows:
and adding the first preset value to the exposure time corresponding to the second range to serve as an upper limit value of a second exposure time adjusting range, and subtracting the second preset value from the exposure time corresponding to the second range to serve as a lower limit value of the second exposure time adjusting range to obtain the second exposure time adjusting range.
Similarly, in this embodiment, the exposure time corresponding to the second range is the optimal exposure time under the illumination intensity of the second range, and the second exposure time adjustment range may be an exposure time range in which "overexposure" or "underexposure" is not generated under the illumination intensity of the second range, and is determined by adding or subtracting a certain value to the optimal exposure time.
It can be understood that the first range is small, the exposure time corresponding to the first range is long, the second range is large, and the exposure time corresponding to the second range is short, so that the first exposure time adjustment range is larger than the second exposure time adjustment range. In addition, the first preset value and the second preset value can be determined in advance according to experiments.
And step S105, re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range based on the first exposure time adjustment range and the second exposure time adjustment range.
In this embodiment, the exposure time of the vehicle-mounted camera corresponding to the first range and the second range is determined again according to the first exposure time adjustment range and the second exposure time adjustment range, and under the condition that it is ensured that the illumination intensity in the first range does not generate "under exposure" and the illumination intensity in the second range does not generate "over exposure", the exposure time corresponding to the first range is appropriately reduced, and the exposure time corresponding to the second range is increased, so that when the illumination intensity changes in brightness, the phenomenon of "one white" or "one black" on the display screen is effectively improved.
It can be seen that, in this embodiment, when it is detected that the illumination intensity is changed alternately between the first range and the second range within the preset time, it is determined that the brightness of the external light is continuously changed, at this time, by acquiring the exposure time of the vehicle-mounted camera corresponding to the first range and the second range, the first exposure time adjustment range is determined according to the exposure time corresponding to the first range, the second exposure time adjustment range is determined according to the exposure time corresponding to the second range, and based on the first exposure time adjustment range and the second exposure time adjustment range, the exposure time of the vehicle-mounted camera corresponding to the first range and the second range is determined comprehensively, the exposure time corresponding to the first range is reduced as much as possible, the exposure time corresponding to the second range is increased, and the problem of abnormal display screen caused by sudden change of light is alleviated.
As a possible implementation manner, in step S105, based on the first exposure time adjustment range and the second exposure time adjustment range, the exposure time of the vehicle-mounted camera corresponding to the first range and the second range is re-determined, which may be detailed as follows:
judging whether the first exposure time adjusting range and the second exposure time adjusting range have a superposition range or not;
and if the overlap range exists, calculating the middle value of the overlap range, and taking the middle value as the exposure time of the vehicle-mounted camera corresponding to the first range and the second range respectively.
In this embodiment, when the first exposure time adjustment range and the second exposure time adjustment range have an overlapping range, any value may be selected from the overlapping range as the exposure time of the vehicle-mounted camera corresponding to the first range and the second range, and at this time, when the illumination intensity changes between the first range and the second range, the exposure time of the vehicle-mounted camera may not be changed, and the image captured by the vehicle-mounted camera may have a quality slightly different from the optimal exposure time, but may not be "overexposed" or "underexposed", thereby effectively improving the problem of abnormal display screen. Preferably, an intermediate value of the overlapping range may be selected as the exposure time.
As a possible implementation manner, in step S105, based on the first exposure time adjustment range and the second exposure time adjustment range, re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range, further includes:
if the coincidence range does not exist, taking the lower limit value of the first exposure time adjusting range as the exposure time of the vehicle-mounted camera corresponding to the first range; and taking the upper limit value of the second exposure time adjusting range as the exposure time of the vehicle-mounted camera corresponding to the second range.
In this embodiment, when the external brightness change is large, that is, the difference between the first range and the second range is large, the difference between the optimal exposure times of the vehicle-mounted cameras corresponding to the first range and the second range is also large, and there may be no overlapping area in the obtained first exposure time adjustment range and the obtained second exposure time adjustment range.
In this case, the lower limit of the first exposure time adjustment range is used as the exposure time of the vehicle-mounted camera corresponding to the first range, so as to reduce the exposure time corresponding to the first range as much as possible, and prevent "overexposure" or reduce the degree of "overexposure" when the illumination intensity changes to the second range. Similarly, the upper limit value of the second exposure time adjusting range is used as the exposure time of the vehicle-mounted camera corresponding to the second range, and when the illumination intensity changes to the first range, underexposure is prevented or the degree of the underexposure is reduced.
As a possible implementation manner, after re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range in step S105, the method further includes:
and if the illumination intensity outside the vehicle is within the first range or the second range and the duration reaches the preset duration, re-determining the exposure time of the vehicle-mounted camera according to the illumination intensity outside the vehicle.
In this embodiment, when the illumination intensity outside the vehicle is within the first range or the second range and the duration reaches the preset duration, it indicates that the vehicle has passed through a road segment with alternating light and shade, and at this time, the process needs to be ended, and the exposure time of the vehicle-mounted camera is determined again according to the illumination intensity outside the vehicle, so that the exposure time of the vehicle-mounted camera is ensured to be the optimal exposure time, and the imaging quality is improved.
As a possible implementation manner, the exposure time of the vehicle-mounted camera is determined again according to the illumination intensity outside the vehicle, which may be detailed as follows:
calculating the difference value between the gray value of the current image and the standard gray value;
and re-determining the exposure time of the vehicle-mounted camera based on the current exposure time of the vehicle-mounted camera, the gray value of the current image and the difference value between the gray value of the current image and the standard gray value.
In this embodiment, the automatic exposure of the vehicle-mounted camera is actually achieved by automatically adjusting the exposure time, so that the acquired image reaches a reasonable gray scale range, such as 140 ± 20.
The calculation of the image gray value may be a direct averaging method, a gaussian weighted average, or the like.
Specifically, the implementation process of automatic exposure of the vehicle-mounted camera can be as follows:
the first step is as follows: carrying out gray value statistics on the current image;
the second step is that: determining an exposure value according to the gray value of the current image;
the third step: calculating a new exposure time;
the fourth step: applying the new exposure time to the vehicle-mounted camera;
the fifth step: and repeating the first step to the fourth step until the gray value meets the requirement.
As a possible implementation manner, the method for adjusting the vehicle-mounted camera further includes:
acquiring an outside temperature;
determining and setting the optimal resolution of the vehicle-mounted camera at the current external temperature according to the external temperature and an external temperature-resolution relation table corresponding to a preset vehicle-mounted camera;
the external temperature-resolution relation table comprises the optimal resolutions of the vehicle-mounted cameras at different external temperatures, and each optimal resolution is located in the resolution adjustable range of the vehicle-mounted camera.
In the present embodiment, the inventors of the present application have found that the higher the resolution of the in-vehicle camera, the larger the amount of heat generation of the camera, and in severe cases, even more than 100 ℃. The camera is overheated to lead to deformation, and then the focus of camera changes, and the image is fuzzy, damages the camera even. Therefore, the external environment temperature is considered in the embodiment, and the optimal resolution of the camera running at different external temperatures is obtained through experiments, so that the temperature of the camera cannot be too high when the camera works at the corresponding external temperature. It can be understood that, on one hand, the resolution of the camera is set lower when the external environment temperature is high; on the other hand, the resolution of the camera is not smaller than the lowest limit value of the adjustable range of the resolution of the camera, otherwise, the image quality is poor, and the corresponding function cannot be achieved.
As a possible implementation manner, the method for adjusting the vehicle-mounted camera further includes:
detecting the temperature of the vehicle-mounted camera at a preset frequency;
if the temperature of the vehicle-mounted camera is larger than the preset threshold value, the resolution of the vehicle-mounted camera is reduced within the resolution adjustable range until the temperature of the vehicle-mounted camera is not larger than the preset threshold value or the resolution of the vehicle-mounted camera is reduced to the lower limit value of the resolution adjustable range.
In this embodiment, the temperature of the camera may also be detected at a preset frequency, and when the temperature of the camera is greater than a preset threshold, the resolution of the vehicle-mounted camera is reduced within the resolution adjustable range by a certain gradient until the temperature is not greater than the preset threshold or the resolution is reduced to a lower limit of the resolution adjustable range, so as to further prevent image blurring or damage to the camera component caused by overheating of the camera.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by functions and internal logic of the process, and should not limit the implementation process of the embodiments of the present invention in any way.
Referring to fig. 2, an embodiment of the present invention provides an adjusting apparatus for a vehicle-mounted camera, where the apparatus 20 includes:
and the detection module 21 is used for detecting the illumination intensity outside the vehicle.
The obtaining module 22 is configured to obtain exposure times of the vehicle-mounted cameras corresponding to the first range and the second range if the illumination intensity is changed alternately between the first range and the second range within the preset time; the first range is smaller than the second range, and the difference between the upper limit value of the first range and the lower limit value of the second range is larger than a preset threshold value.
The processing module 23 is configured to determine a first exposure time adjustment range according to the exposure time corresponding to the first range; and determining a second exposure time adjusting range according to the exposure time corresponding to the second range.
And the determining module 24 is configured to re-determine the exposure time of the vehicle-mounted camera corresponding to the first range and the second range based on the first exposure time adjustment range and the second exposure time adjustment range.
As a possible implementation manner, the processing module 23 is specifically configured to:
and taking the exposure time corresponding to the first range plus a first preset value as an upper limit value of a first exposure time adjusting range, and taking the exposure time corresponding to the first range minus a second preset value as a lower limit value of the first exposure time adjusting range to obtain the first exposure time adjusting range.
As a possible implementation manner, the processing module 23 is specifically configured to:
and adding the first preset value to the exposure time corresponding to the second range to serve as an upper limit value of a second exposure time adjusting range, and subtracting the second preset value from the exposure time corresponding to the second range to serve as a lower limit value of the second exposure time adjusting range to obtain the second exposure time adjusting range.
As a possible implementation, the determining module 24 is specifically configured to:
judging whether the first exposure time adjusting range and the second exposure time adjusting range have a superposition range or not;
and if the overlap range exists, calculating the middle value of the overlap range, and taking the middle value as the exposure time of the vehicle-mounted camera corresponding to the first range and the second range respectively.
As a possible implementation, the determining module 24 is specifically configured to:
if the coincidence range does not exist, taking the lower limit value of the first exposure time adjusting range as the exposure time of the vehicle-mounted camera corresponding to the first range; and taking the upper limit value of the second exposure time adjusting range as the exposure time of the vehicle-mounted camera corresponding to the second range.
As a possible implementation manner, after re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range, the determining module 24 is further configured to:
and if the illumination intensity outside the vehicle is within the first range or the second range and the duration time reaches the preset duration time, re-determining the exposure time of the vehicle-mounted camera according to the illumination intensity outside the vehicle.
As a possible implementation manner, the exposure time of the vehicle-mounted camera is re-determined according to the illumination intensity outside the vehicle, and the determining module 24 is further specifically configured to:
calculating the difference value between the gray value of the current image and the standard gray value;
and re-determining the exposure time of the vehicle-mounted camera based on the current exposure time of the vehicle-mounted camera, the gray value of the current image and the difference value between the gray value of the current image and the standard gray value.
As a possible implementation, the determining module 24 is further configured to:
acquiring the outside temperature;
determining and setting the optimal resolution of the vehicle-mounted camera at the current external temperature according to the external temperature and an external temperature-resolution relation table corresponding to a preset vehicle-mounted camera;
the external temperature-resolution relation table comprises the optimal resolutions of the vehicle-mounted cameras at different external temperatures, and each optimal resolution is located in the resolution adjustable range of the vehicle-mounted camera.
As a possible implementation, the determining module 24 is further configured to:
detecting the temperature of the vehicle-mounted camera at a preset frequency;
if the temperature of the vehicle-mounted camera is larger than the preset threshold value, the resolution of the vehicle-mounted camera is reduced within the resolution adjustable range until the temperature of the vehicle-mounted camera is not larger than the preset threshold value or the resolution of the vehicle-mounted camera is reduced to the lower limit value of the resolution adjustable range.
An embodiment of the present invention provides a vehicle, which includes an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of the method for adjusting an onboard camera as described above are implemented.
Fig. 3 is a schematic diagram of an electronic device 30 according to an embodiment of the present invention. As shown in fig. 3, the electronic apparatus 30 of this embodiment includes: a processor 31, a memory 32 and a computer program 33 stored in the memory 32 and executable on the processor 31, such as a regulating program for a vehicle camera. The processor 31 implements the steps in the above-described embodiment of the adjustment method for each in-vehicle camera, such as steps S101 to S105 shown in fig. 1, when executing the computer program 33. Alternatively, the processor 31 implements the functions of the modules in the above-described device embodiments, such as the functions of the modules 21 to 24 shown in fig. 2, when executing the computer program 33.
Illustratively, the computer program 33 may be divided into one or more modules/units, which are stored in the memory 32 and executed by the processor 31 to carry out the invention. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 33 in the electronic device 30.
The electronic device 30 may be a desktop computer, a notebook, a palm top computer, a cloud server, or other computing devices. The electronic device 30 may include, but is not limited to, a processor 31, a memory 32. Those skilled in the art will appreciate that fig. 3 is merely an example of the electronic device 30, and does not constitute a limitation of the electronic device 30, and may include more or less components than those shown, or combine certain components, or different components, e.g., the electronic device 30 may also include input-output devices, network access devices, buses, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 32 may be an internal storage unit of the electronic device 30, such as a hard disk or a memory of the electronic device 30. The memory 32 may also be an external storage device of the electronic device 30, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 30. Further, the memory 32 may also include both internal storage units and external storage devices of the electronic device 30. The memory 32 is used for storing computer programs and other programs and data required by the electronic device 30. The memory 32 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described or recited in any embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program instructing related hardware, and the computer program may be stored in a computer readable storage medium, and when executed by a processor, the computer program may implement the steps of the above-described embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random-access Memory (RAM,
the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. An adjusting method of a vehicle-mounted camera is characterized by comprising the following steps:
detecting the illumination intensity outside the vehicle;
if the illumination intensity is changed alternately between a first range and a second range within the preset time, acquiring the exposure time of the vehicle-mounted camera corresponding to the first range and the second range; the first range is smaller than the second range, and the difference value between the upper limit value of the first range and the lower limit value of the second range is larger than a preset threshold value;
determining the first exposure time adjusting range according to the exposure time corresponding to the first range;
determining a second exposure time adjusting range according to the exposure time corresponding to the second range;
and re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range based on the first exposure time adjustment range and the second exposure time adjustment range.
2. The method for adjusting the vehicle-mounted camera according to claim 1, wherein determining the first exposure time adjustment range according to the exposure time corresponding to the first range comprises:
and adding a first preset value to the exposure time corresponding to the first range to serve as an upper limit value of the first exposure time adjusting range, and subtracting a second preset value from the exposure time corresponding to the first range to serve as a lower limit value of the first exposure time adjusting range to obtain the first exposure time adjusting range.
3. The method for adjusting the vehicle-mounted camera according to claim 1, wherein determining the second exposure time adjustment range according to the exposure time corresponding to the second range comprises:
and adding a first preset value to the exposure time corresponding to the second range to serve as an upper limit value of the second exposure time adjusting range, and subtracting a second preset value from the exposure time corresponding to the second range to serve as a lower limit value of the second exposure time adjusting range to obtain the second exposure time adjusting range.
4. The method for adjusting the vehicle-mounted camera according to claim 1, wherein re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range based on the first exposure time adjustment range and the second exposure time adjustment range comprises:
judging whether the first exposure time adjusting range and the second exposure time adjusting range have a coincidence range or not;
if the coincidence range exists, calculating the middle value of the coincidence range, and taking the middle value as the exposure time of the vehicle-mounted camera corresponding to the first range and the second range respectively.
5. The method for adjusting the vehicle-mounted camera according to claim 4, wherein the exposure time of the vehicle-mounted camera corresponding to the first range and the second range is re-determined based on the first exposure time adjustment range and the second exposure time adjustment range, and further comprising:
if the superposition range does not exist, taking the lower limit value of the first exposure time adjusting range as the exposure time of the vehicle-mounted camera corresponding to the first range; and taking the upper limit value of the second exposure time adjusting range as the exposure time of the vehicle-mounted camera corresponding to the second range.
6. The method for adjusting the vehicle-mounted camera according to claim 1, wherein after re-determining the exposure time of the vehicle-mounted camera corresponding to the first range and the second range, the method further comprises:
and if the illumination intensity outside the vehicle is within the first range or the second range and the duration time reaches the preset duration time, re-determining the exposure time of the vehicle-mounted camera according to the illumination intensity outside the vehicle.
7. The method for adjusting the vehicle-mounted camera according to claim 6, wherein the step of re-determining the exposure time of the vehicle-mounted camera according to the illumination intensity outside the vehicle comprises the following steps:
calculating the difference value between the gray value of the current image and the standard gray value;
and re-determining the exposure time of the vehicle-mounted camera based on the current exposure time of the vehicle-mounted camera, the gray value of the current image and the difference value between the gray value of the current image and the standard gray value.
8. The adjustment method of the vehicle-mounted camera according to any one of claims 1 to 7, further comprising:
acquiring the outside temperature;
determining and setting the optimal resolution of the vehicle-mounted camera at the current external temperature according to the external temperature and a preset external temperature-resolution relation table corresponding to the vehicle-mounted camera;
the external temperature-resolution relation table comprises the optimal resolutions of the vehicle-mounted cameras at different external temperatures, and each optimal resolution is located in the resolution adjustable range of the vehicle-mounted camera.
9. The method for adjusting a vehicle-mounted camera according to claim 8, further comprising:
detecting the temperature of the vehicle-mounted camera at a preset frequency;
if the temperature of the vehicle-mounted camera is larger than a preset threshold value, the resolution of the vehicle-mounted camera is reduced within the resolution adjustable range until the temperature of the vehicle-mounted camera is not larger than the preset threshold value or the resolution of the vehicle-mounted camera is reduced to the lower limit value of the resolution adjustable range.
10. A vehicle comprising an electronic device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the method according to any one of claims 1 to 9 when executing said computer program.
CN202211505956.8A 2022-11-28 2022-11-28 Vehicle-mounted camera adjusting method and vehicle Pending CN115866407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211505956.8A CN115866407A (en) 2022-11-28 2022-11-28 Vehicle-mounted camera adjusting method and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211505956.8A CN115866407A (en) 2022-11-28 2022-11-28 Vehicle-mounted camera adjusting method and vehicle

Publications (1)

Publication Number Publication Date
CN115866407A true CN115866407A (en) 2023-03-28

Family

ID=85667408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211505956.8A Pending CN115866407A (en) 2022-11-28 2022-11-28 Vehicle-mounted camera adjusting method and vehicle

Country Status (1)

Country Link
CN (1) CN115866407A (en)

Similar Documents

Publication Publication Date Title
CN111028189B (en) Image processing method, device, storage medium and electronic equipment
US10630906B2 (en) Imaging control method, electronic device and computer readable storage medium
CN105208281B (en) A kind of night scene image pickup method and device
US8896625B2 (en) Method and system for fusing images
CN108337445B (en) Photographing method, related device and computer storage medium
CN108702452B (en) Image shooting method and device
EP3836534A1 (en) Imaging control method, apparatus, electronic device, and computer-readable storage medium
CN108616689B (en) Portrait-based high dynamic range image acquisition method, device and equipment
CN111614892B (en) Face image acquisition method, shooting device and computer-readable storage medium
CN107846556B (en) Imaging method, imaging device, mobile terminal and storage medium
CN105578068A (en) High-dynamic-range image generation method, device and mobile terminal
CN108337446B (en) High dynamic range image acquisition method, device and equipment based on double cameras
CN109040607B (en) Imaging control method, imaging control device, electronic device and computer-readable storage medium
CN111986129A (en) HDR image generation method and device based on multi-shot image fusion and storage medium
US11601600B2 (en) Control method and electronic device
CN110881108B (en) Image processing method and image processing apparatus
CN107454317B (en) Image processing method, image processing device, computer-readable storage medium and computer equipment
CN110213462B (en) Image processing method, image processing device, electronic apparatus, image processing circuit, and storage medium
US10972676B2 (en) Image processing method and electronic device capable of optimizing hdr image by using depth information
CN113747008B (en) Camera and light supplementing method
CN109729276B (en) Near-infrared camera shooting method, device, equipment and storage medium
CN113163127B (en) Image processing method, device, electronic equipment and storage medium
CN112598609A (en) Dynamic image processing method and device
CN115866407A (en) Vehicle-mounted camera adjusting method and vehicle
CN110418066B (en) Image processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 301, Building 1, No. 1 Caosong Road, Xinqiao Town, Songjiang District, Shanghai, 201600

Applicant after: Xinyi Electronic Technology (Shanghai) Co.,Ltd.

Address before: Room 202-1, Building 18, No. 518, Xinzhuan Road, Xinqiao Town, Songjiang District, Shanghai, 201600

Applicant before: Xinyi Electronic Technology (Shanghai) Co.,Ltd.

CB02 Change of applicant information
CB03 Change of inventor or designer information

Inventor after: Ma Rui

Inventor after: Gu Zhenye

Inventor after: Meng Yajie

Inventor after: Mei Shiqing

Inventor before: Ma Rui

Inventor before: Gu Zhenye

Inventor before: Meng Yajie

Inventor before: Mei Shiqing

CB03 Change of inventor or designer information