WO2022134630A1 - Camera module and control method and apparatus therefor, vehicle, and storage medium - Google Patents

Camera module and control method and apparatus therefor, vehicle, and storage medium Download PDF

Info

Publication number
WO2022134630A1
WO2022134630A1 PCT/CN2021/113601 CN2021113601W WO2022134630A1 WO 2022134630 A1 WO2022134630 A1 WO 2022134630A1 CN 2021113601 W CN2021113601 W CN 2021113601W WO 2022134630 A1 WO2022134630 A1 WO 2022134630A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera module
image
brightness
fill light
image brightness
Prior art date
Application number
PCT/CN2021/113601
Other languages
French (fr)
Chinese (zh)
Inventor
孙牵宇
苏水静
许亮
Original Assignee
上海商汤临港智能科技有限公司
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 上海商汤临港智能科技有限公司 filed Critical 上海商汤临港智能科技有限公司
Publication of WO2022134630A1 publication Critical patent/WO2022134630A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Definitions

  • the present disclosure relates to intelligent vehicle cabin technology, in particular to a camera module and a control method and device thereof, a vehicle, and a storage medium.
  • the smart car cabin has a camera module that realizes the function of DMS (Driver Monitoring System, driver monitoring system), wherein the camera module needs sufficient illumination when collecting images, so that the collected images meet the requirements of image detection, For example, the brightness of the collected images should be able to meet the brightness requirements required by the driver fatigue detection algorithm to identify the driver's fatigue state.
  • DMS Driver Monitoring System, driver monitoring system
  • the embodiments of the present disclosure provide at least a camera module and a control method and device thereof, a vehicle, and a storage medium.
  • a camera module in a first aspect, includes:
  • the number of the fill light is less than or equal to a preset value
  • a processor which is configured to detect the image brightness of the image collected by the camera module when the fill light is turned on, and adjust the camera according to the image brightness of the image collected by the camera module The shooting parameters of the module.
  • a vehicle in a second aspect, includes the camera module described in any embodiment of the present disclosure.
  • a third aspect provides a control method for a camera module, the camera module includes a fill light and a processor, and the number of the fill light is less than or equal to a preset value; the control method includes: in the When the fill light is turned on, the image brightness of the image collected by the camera module is detected; the shooting parameters of the camera module are adjusted according to the image brightness of the image collected by the camera module.
  • a control device for a camera module includes a fill light and a processor, and the number of the fill light is less than or equal to a preset value; the control device includes: an image detection module is used to detect the image brightness of the image collected by the camera module when the fill light is turned on; a parameter adjustment module is used to adjust the camera module according to the image brightness of the image collected by the camera module group shooting parameters.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the control method for a camera module described in any embodiment of the present disclosure.
  • the processor in the camera module adjusts the shooting parameters of the camera module according to the image brightness of the image when the fill light is turned on. , so that the number of fill lights in the camera module can be set more flexibly. For example, a small number of fill lights can be set. In this case, even if the illumination of the light source provided is insufficient due to the reduction of the number of fill lights, it is possible to adjust the shooting parameters of the camera module to make up for the decrease in the illumination of the light source.
  • the influence of brightness; and the flexibility of the number of fill lights can also help to flexibly set the volume of the camera module according to the actual product requirements, avoiding greater integration difficulties and costs.
  • FIG. 1 shows a schematic structural diagram of a camera module provided by at least one embodiment of the present disclosure
  • FIG. 2 shows a flow chart of a method for controlling a camera module provided by at least one embodiment of the present disclosure
  • FIG. 3 shows a schematic structural diagram of a camera module provided by at least one embodiment of the present disclosure
  • FIG. 4 shows an exposure control process provided by at least one embodiment of the present disclosure
  • FIG. 5 shows a schematic flowchart of a parameter adjustment provided by at least one embodiment of the present disclosure
  • FIG. 6 shows a schematic diagram of a QE curve of a sensor provided by at least one embodiment of the present disclosure
  • FIG. 7 shows a schematic structural diagram of a lens provided by at least one embodiment of the present disclosure
  • FIG. 8 shows a schematic structural diagram of a control device for a camera module provided by at least one embodiment of the present disclosure.
  • the camera module may include a processor 11 and a fill light 12 .
  • the number of the fill lights 12 may be less than or equal to a certain preset value, wherein the preset value is a positive integer, and the embodiment of the present disclosure does not limit the specific value of the preset value.
  • the preset value may be 1, 2, 3, 4, etc.
  • the specific value of the preset value may be determined according to the actual product requirements of the camera module. For example, in the case that the volume of the camera module is expected to be as small as possible in actual product requirements, the preset value may be 1.
  • the camera module can collect the image of the detected object when the fill light is turned on.
  • the camera module can be set in various environments, and the detected object can be a solid object or a spatial area.
  • the detected object may be the occupant of the vehicle, or at least one of the driver area, the passenger area, the front seat area, the rear seat area, the trunk area, and the like of the vehicle.
  • the camera module can capture images of the occupant or at least one of the above-mentioned areas.
  • the processor 11 in the camera module may be a chip or a processing circuit disposed on a PCB mainboard inside the camera module.
  • the processor 11 can detect the image brightness of the image collected by the camera module, and adjust the shooting parameters of the camera module according to the image brightness.
  • the processor 11 adjusts the shooting parameters of the camera module according to the image brightness
  • one way may be to compare the image brightness with the reference brightness, and adjust the shooting parameters according to the comparison result.
  • the reference brightness can be used as a criterion for determining whether the image brightness of the image collected by the camera module is suitable. If the image brightness can reach the reference brightness, it means that the image brightness of the image collected by the camera module meets the requirements, otherwise , indicating that the image brightness does not meet the requirements, and the camera module can re-collect the image.
  • the reference brightness can be determined according to a priori product experience. For example, according to experience, the image brightness of the image needs to reach a certain value to meet the detection requirements, then the value can be used as the reference brightness.
  • the reference brightness may be a brightness that can clearly identify the state of the driver's face.
  • the reference brightness can be preset in the camera module. If the image brightness does not reach the preset reference brightness, the processor 11 can adjust the shooting parameters of the camera module, so that when the camera module collects images according to the adjusted shooting parameters, the image brightness reaches the reference brightness.
  • the shooting parameters are adjustable parameters of the camera module.
  • the shooting parameters of the camera module may include, but are not limited to, at least one of the following: exposure time, analog gain or digital gain.
  • the processor 11 may control the shooting parameters of the camera module in other ways than according to the reference brightness.
  • the processor 11 may preset the mapping relationship between the image brightness and the shooting parameters, and when detecting that the image brightness of the image collected by the camera module is within a certain brightness range, determine the shooting parameters corresponding to the brightness range,
  • the shooting parameters may be preset parameters suitable for use when the brightness of the image is detected.
  • the parameter adjustment amount of the corresponding module shooting parameter may also be preset.
  • the exposure time is correspondingly increased by T1, or the analog gain is correspondingly increased by M1; when the image brightness is S2, the exposure time is correspondingly increased by T2, and so on.
  • the corresponding relationship between the image brightness and the above-mentioned adjustment amounts such as S1/S2 can be set.
  • FIG. 2 illustrates a control method of a camera module.
  • the control method describes the imaging process of the camera module shown in FIG. 1 .
  • the execution body of the control method may be the processor in FIG. 1 , or may be an external processor or other electronic device. Whether it is an internal or external processor of the camera module, as long as the processor establishes a communication connection with the camera module, the processor can detect the image of the camera module, and the shooting parameters of the camera module can be processed by executing the automatic exposure algorithm. Control it.
  • the external processor can establish a communication channel with the circuit board in the camera module through an IIC bus (Inter-Integrated Circuit Bus, integrated circuit bus), and control the shooting parameters of the sensor in the camera module.
  • IIC bus Inter-Integrated Circuit Bus, integrated circuit bus
  • step 200 when the fill light is turned on, the image brightness of the image captured by the camera module is detected.
  • the camera module may include a fill light and a processor, wherein the number of the fill light is less than or equal to a preset value.
  • the camera module can collect the image of the detected object when the fill light is turned on.
  • the detected object may be a human face, and the image may include a human face.
  • the processor can detect the image brightness of the above-mentioned images collected by the camera module.
  • step 202 the shooting parameters of the camera module are adjusted according to the image brightness of the image collected by the camera module.
  • the processor may adjust the shooting parameters of the camera module according to the image brightness of the image collected by the camera module.
  • one of the ways to adjust the shooting parameters according to the image brightness may be according to the reference brightness. It can be determined whether the image brightness of the image reaches the preset reference brightness, and if the image brightness reaches the reference brightness, the next image processing can be performed on the image. For example, in the application of vehicle DMS, driver fatigue or distraction detection can be performed based on the driver's face in the image. And if the image brightness does not reach the reference brightness, the processor can adjust the shooting parameters of the camera module, for example, the exposure time and the gain can be adjusted.
  • the camera module will continue to collect the image of the detected object using the adjusted shooting parameters, and similarly, the processor will also detect whether the image brightness of the collected image reaches the reference brightness. If the image brightness still does not reach the reference brightness, the processor may continue to adjust the shooting parameters, for example, continue to increase the exposure time or digital gain, and return to step 200 to continue image acquisition by the camera module according to the newly adjusted shooting parameters. Therefore, steps 200 and 202 in this embodiment can be performed cyclically until the image brightness of the obtained image is sufficient.
  • the shooting parameters of the camera module are adjusted according to the image brightness of the image collected by the camera module, so that the camera module can be more flexible. to set the number of fill lights in the camera module.
  • a small number of fill lights can be set.
  • the processor can adjust the shooting parameters of the camera module to make up for the decrease in the illuminance of the light source.
  • the impact on image brightness; the flexibility of the number of fill lights can also help reduce the installation difficulty and cost of the camera module.
  • only a small number of fill lights can be set in the camera module, such as a single fill light, thereby reducing the volume of the camera module, making it easier to install and integrate, and reducing the cost of the whole vehicle .
  • the volume of the camera module can be reduced.
  • the total horizontal length of the camera module is 30mm to 45mm
  • the vertical window size of the camera module is 20mm to 35mm
  • the total longitudinal length of the camera module is 30mm to 45mm.
  • this method of adjusting the image brightness of the image captured by the camera module by adjusting the shooting parameters of the camera module can be more effective than the method of increasing the power of the fill light.
  • the problem of heat dissipation of the fill light If the image brightness is improved by increasing the power of the fill light, the heat of the fill light will increase, resulting in heat dissipation problems.
  • the solution of the embodiment of the present disclosure on the basis of not causing the problem of heat dissipation, can allow flexible setting of the number of fill lights in the camera module. For example, setting fewer fill lights can also ensure the quality of the collected images.
  • the image brightness takes into account the considerations of cost, brightness, integration difficulty and heat dissipation, thereby reducing the volume and cost of the camera module while ensuring the brightness requirements of the image captured by the camera module without causing heat dissipation problems.
  • the camera module may include a fill light 31 , a light plate 32 , a cover plate 33 , a lens 34 and a circuit board 35 .
  • the fill light 31 is fixedly arranged on the light board 32, the light board 32 can be used to provide fill light control signals to the fill light 31, and the material of the light board 32 can be an aluminum substrate.
  • the supplementary light wavelength of the supplementary light 31 may be 850 nm to 1000 nm.
  • the cover plate 33 can be made of PMMA (polymethyl methacrylate, polymethyl methacrylate) material, for example. As shown in FIG. 3 , the cover plate 33 is equivalent to a protective cover of the camera module, and can cover the fill light 31 and other components inside the camera module.
  • PMMA polymethyl methacrylate, polymethyl methacrylate
  • the lens 34 is an infrared filter (IR filter, illustrated in the subsequent FIG. 7 ).
  • 7 is a schematic structural diagram of the lens 34 in FIG. 3 .
  • the left side of the lens can receive the light transmitted by the cover plate 33, and the light is incident along the optical axis of the lens to the infrared filter on the right side of the lens, and the light is filtered by the infrared filter. , into the photosensitive surface of the sensor.
  • the cover plate 33 can be covered on the lens 34 and the fill light 31, and the fill light 31 and the lens 34 are arranged in parallel along the aperture direction of the camera module.
  • the lens 34 may be a visible light-infrared integrated lens, or may also be a single infrared lens.
  • a sensor may be provided on the circuit board 35, and the sensor is provided at one end of the lens 34 along the optical axis direction, and is used for sensing the light entering the camera module through the lens. Moreover, when the image is captured, the light can reach the sensor on the circuit board 35 through the above-mentioned cover plate 33 and the infrared filter in the lens 34 .
  • the sensor can convert the photons of the received light into electrons, and then convert the electrons into analog signals, and the analog signals are amplified by the processing of analog gain.
  • the detected object for example, the detected object may be the human face of a car driver.
  • the processor in the camera module may be, for example, a chip or a processing circuit on the circuit board 35 .
  • an automatic exposure algorithm may be executed by the processor to control the exposure of the camera module, specifically, the exposure control may be performed on the sensor on the circuit board in the camera module to ensure that the camera module
  • the brightness of the generated image can stably reach the preset reference brightness, for example, the image brightness meets the image detection requirements of the DMS (Driver Monitoring System, driver monitoring system). For example, when fatigue detection or dangerous action detection is performed on the driver through the DMS system, the driver's image is required to have sufficient image brightness to obtain a more accurate detection result.
  • FIG. 4 illustrates a flow of a method for controlling exposure of a camera module by a processor in the vehicle-mounted camera module when the camera module is a vehicle-mounted camera module. As shown in FIG. 4 , the method may include steps 400 and 402 .
  • step 400 when the fill light is turned on, the image brightness of the image collected by the vehicle-mounted camera module is detected.
  • the vehicle camera module can capture images.
  • the vehicle camera module can convert the incident light into electrons, and digitize the electrons for image processing to obtain the image of the detected object.
  • the processor may acquire the image brightness of the image.
  • the processor may acquire the image brightness of a predetermined area in the image, and use the image brightness of the predetermined area in the image as the image brightness of the image, where the predetermined area includes a predetermined object in the image the area in which it is located.
  • the predetermined object is the driver's face, so as to identify whether the driver is in a fatigued state through face detection.
  • the area where the predetermined object is located may be an image area including the driver's face.
  • the image may be divided into multiple sub-images according to different regions, and then some sub-images in the central region are acquired as the region where the predetermined object is located, and the image brightness of the region is determined.
  • the specific scope of the central area can be defined independently, as long as it can cover the predetermined object.
  • step 402 if the brightness of the image is lower than the preset reference brightness, the shooting parameters of the sensors in the vehicle-mounted camera module are adjusted to obtain an image with the reference brightness.
  • the preset reference brightness may be a preset image brightness value, and the image brightness value can meet the brightness requirement of DMS detection.
  • the brightness value required by the scene can be set as the reference brightness.
  • the shooting parameters of the sensor in the vehicle camera module can be adjusted.
  • the shooting parameters include at least one of the following: exposure time, analog gain or digital gain.
  • the processor may adjust the exposure time of the sensor to enable the vehicle-mounted camera module to obtain an image with the reference brightness according to the adjusted parameters.
  • the processor cannot adjust the exposure time of the sensor to make the image brightness reach the reference brightness.
  • the exposure time and at least one of the analog gain and the digital gain need to be adjusted to make the vehicle camera model
  • the group obtains an image that reaches the reference brightness according to the adjusted parameters.
  • FIG. 5 illustrates an exposure control method in which the processor adjusts the exposure time, the analog gain and the digital gain, so that the camera module obtains an image with a reference brightness. It can be understood that, in actual implementation, it is not necessary to adjust all the three parameters, and only some of the parameters may need to be adjusted.
  • step 500 when it is determined that the image brightness of the image of the vehicle-mounted camera module does not reach the reference brightness, the exposure time of the sensor in the vehicle-mounted camera module is adjusted.
  • the exposure time can be adjusted preferentially. The longer the exposure time is, the more light enters, which is more helpful to improve the image brightness of the image.
  • This embodiment also sets a maximum exposure time, for example, the maximum exposure time may be set to 6ms, so as to avoid the negative impact on image quality caused by too long exposure time.
  • the adjustment of the exposure time of the sensor in this embodiment is actually the adjustment of the exposure time of the shutter in the sensor.
  • the processor may repeatedly perform the first adjustment operation until the exposure time of the camera module reaches the preset maximum exposure time or the image brightness of the image collected by the camera module reaches the reference brightness.
  • the first adjustment operation includes: increasing the exposure time of the camera module and using the camera module to capture images.
  • the processor can first increase the exposure time by a certain value, and then the camera module can collect images according to the increased exposure time. If the processor finds that the image brightness of the image obtained at this time still cannot reach the reference brightness, it can continue to increase the exposure time until the image brightness meets the requirements.
  • the processor may repeat the second adjustment operation until the image brightness reaches the reference brightness brightness.
  • the second adjustment operation may include: adjusting at least one of an analog gain and a digital gain of the camera module, and using the camera module to capture images.
  • the following takes steps 502 and 504 as examples to illustrate a process of adjusting the analog gain and the digital gain.
  • step 502 when the exposure time reaches a preset maximum exposure time and the image brightness is lower than a preset reference brightness, the analog gain is continued to be adjusted.
  • an image generated after adjusting the exposure time can be obtained, and it can be determined whether the image brightness of the image reaches the reference brightness. If the judgment result is YES, an image is obtained. If the judgment result is no, you can continue to adjust the gain.
  • This embodiment takes the priority adjustment of the analog gain as an example.
  • step 504 when the analog gain reaches the maximum analog gain, and the image brightness is lower than the preset reference brightness, the digital gain is continuously adjusted until an image that reaches the reference brightness is obtained.
  • the gain will also have an adjusted maximum value. If the image brightness is still lower than the preset reference brightness after the analog gain adjustment reaches the maximum analog gain, continue to adjust the digital gain until the image with the reference brightness is obtained.
  • the shooting parameters are adjusted, so that the adjusted vehicle-mounted camera module can obtain an image that reaches the reference brightness.
  • This method enables the camera module to set up a small number of fill lights, combined with exposure control to obtain sufficient image brightness.
  • the camera module can be provided with a small number of supplementary lights.
  • a vehicle camera module can be provided with one supplementary light.
  • a fill light is set, because the processor can adjust the shooting parameters of the camera module through the exposure control method shown in FIG. 4 or FIG. 5 , the camera can still be improved even with one fill light.
  • a fill light can be turned on. At this time, the image brightness of the image of the vehicle camera module is low and has not yet reached the brightness requirement for DMS detection. Then, when the processor determines that the image brightness is lower than the reference brightness, it can increase the exposure time of the sensor in the camera module, or increase the value of the analog gain or digital gain of the sensor. The image still achieves sufficient image brightness in the case of a fill light.
  • the setting of a fill light reduces the cost of the camera module, and also reduces the integration difficulty of the fill light.
  • the design of a fill light reduces the size of the camera module, which is beneficial to reduce the impact of the camera module on the driver when the camera module is applied to the DMS in the car.
  • the vehicle-mounted camera module in order to save the consumption of the fill light, improve the service life of the fill light, and further improve the reliability and durability of the entire vehicle-mounted camera module, in this embodiment, the vehicle-mounted camera module can also be performed as follows: Improve:
  • the cover plate 33 and the infrared filter in the lens 34 can be provided, so that the cover plate 33 and the infrared filter can transmit more near-infrared light.
  • the cut-off wavelength of the cover plate can be set to be smaller than the first wavelength threshold.
  • the first wavelength threshold can be 750 nm, so that the light transmitted by the cover plate is in the Including near-infrared light above the 750nm band. The more light that passes through, the more electrons the sensor converts, and the brighter the final image.
  • the cutoff wavelength of the infrared filter in the lens can also be set to be smaller than the second wavelength threshold.
  • the second wavelength threshold can be the same as the first wavelength threshold, for example, set to 750nm, so as to transmit more near infrared light.
  • one of the performance metrics of the sensor on the circuit board can be QE (Photodiode quantum efficiency, photodiode quantum efficiency), which refers to the ratio of the number of converted electrons to the number of incident photons.
  • QE Photodiode quantum efficiency, photodiode quantum efficiency
  • the function of gain is to amplify the image signal, so as to enhance the brightness of the image picture.
  • the unit of gain can usually be expressed in "multiples", such as 1x, 2x, 3x, etc.
  • the sensors on the circuit board can be further adjusted, and a sensor with higher QE performance can be selected.
  • the quantum efficiency of the sensor at the first wavelength may not be lower than the first preset efficiency value, wherein the first wavelength may not exceed 750 nm, and the first preset efficiency value may not be lower than 50%; and the sensor may be set at the first wavelength.
  • the quantum efficiency of the two wavelengths is not lower than the second preset efficiency value, wherein the second wavelength may be not less than 950 nm, and the second preset efficiency value may be not lower than 10%.
  • FIG. 6 illustrates the QE curve of a sensor selected in this embodiment.
  • the quantum efficiency of the sensor for light in the 750 nm band is not lower than 50%. , that is, at least half of the photons in the light in the 750nm band can be converted into electrons; the quantum efficiency for the light in the 950nm band is not less than 10%, that is, at least one tenth of the photons in the light in the 950nm band can be converted. for electrons.
  • the dotted curve in FIG. 6 is the QE performance curve of the sensor used before adjustment
  • the solid line curve is the QE performance curve of the sensor used after adjustment. It can be seen that the sensor selected in this embodiment is better than the sensor used before adjustment. The QE value of the sensor has been increased. The improvement of the QE performance of the sensor will allow more electrons to be converted, which will help improve the image quality.
  • the senor can receive more light or convert more photons into electrons, thereby More electrons are available, and the resulting images will be brighter and of higher quality based on signal processing after the electrons are digitized.
  • the supplementary light can also be saved.
  • the sun will generate a considerable amount of near-infrared light. This part of the light passes through the cover plate and the lens to reach the sensor for imaging. If this part of the ambient light is strong enough, the final image brightness obtained by the camera module may also be The reference brightness can be achieved, and the fill light can be turned off. In this way, the consumption of fill light can be saved.
  • the processor can adjust the shooting parameters of the camera module in response to the image brightness of the image collected by the camera module not reaching the reference brightness, such as adjusting the sensor in the camera module. At least one of exposure time, digital gain, or analog gain.
  • the processor can continuously perform exposure control, monitor the image brightness in real time, and can control the camera module according to the detected image brightness.
  • the processor can execute at least one of the following two examples: wherein, in an example, in the case that the fill light is not turned on, if it is found that the image brightness of the image collected by the camera module does not reach
  • the preset reference brightness can adjust the shooting parameters of the camera module. For example, if the image brightness of the image is lower than the reference brightness, the exposure time of the camera module is increased to increase the brightness of the image captured by the camera module.
  • the fill light in the camera module can be turned on.
  • the processor adjusts the shooting parameters of the camera module to a preset threshold, for example, the exposure time reaches the maximum exposure time, and the gain is also adjusted to the corresponding maximum gain, but the image captured by the camera module has If the image brightness has not yet reached the reference brightness, the processor can control the fill light in the camera module to turn on.
  • the processor will monitor whether the image brightness of the image can reach the reference brightness, and if not, it can perform exposure control, such as adjusting at least one of exposure time, analog gain or digital gain, so that the final image reaches the desired level quality.
  • the camera module according to the embodiment of the present disclosure can be provided with a small number of supplementary lights.
  • a smaller number of fill lights for example, a single fill light
  • the module volume also reduces the integration difficulty of the camera module.
  • FIG. 8 provides a control device for a camera module, which can be applied to a device that controls the camera module, such as a processor inside the camera module or an external control device, so that the device can perform any of the tasks of the present disclosure.
  • a device that controls the camera module such as a processor inside the camera module or an external control device, so that the device can perform any of the tasks of the present disclosure.
  • a method for controlling a camera module according to an embodiment.
  • the camera module includes a fill light and a processor, and the number of fill lights is less than or equal to a preset value.
  • the apparatus may include an image detection module 81 and a parameter adjustment module 82 .
  • the image detection module 81 is configured to detect the image brightness of the image collected by the camera module when the fill light is turned on.
  • the parameter adjustment module 82 is configured to adjust the shooting parameters of the camera module according to the image brightness of the image collected by the camera module.
  • the image detection module 81 is specifically configured to acquire the image brightness of a predetermined area in the image, and use the image brightness of the predetermined area in the image as the image brightness of the image, where the predetermined area includes the The area in the image where the predetermined object is located.
  • the device may further include: a light control module 83 for adjusting the shooting parameters of the camera module to a preset threshold value in response to the fact that the fill light is not turned on When the image brightness of the image collected by the camera module does not reach the reference brightness, the fill light in the camera module is controlled to be turned on.
  • a light control module 83 for adjusting the shooting parameters of the camera module to a preset threshold value in response to the fact that the fill light is not turned on
  • the fill light in the camera module is controlled to be turned on.
  • the foregoing apparatus may be configured to execute any corresponding method described above, which is not repeated here for brevity.
  • An embodiment of the present disclosure further provides a vehicle, and the vehicle includes the camera module described in any embodiment of the present disclosure.
  • the camera module can be installed at the position of the A-pillar on the driver's side in the vehicle, or installed under the front windshield on the driver's side.
  • Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, implements the method of any embodiment of the present disclosure, and the method can perform a procedure on a camera module. control.
  • one or more embodiments of the present disclosure may be provided as a method, system or computer program product. Accordingly, one or more embodiments of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present disclosure may employ a computer program implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein form of the product.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • Embodiments of the subject matter and functional operations described in this disclosure can be implemented in digital electronic circuitry, in tangible embodied computer software or firmware, in computer hardware including the structures disclosed in this disclosure and their structural equivalents, or in a combination of one or more.
  • Embodiments of the subject matter described in this disclosure may be implemented as one or more computer programs, ie, one or more of computer program instructions encoded on a tangible, non-transitory program carrier for execution by, or to control the operation of, data processing apparatus. multiple modules.
  • the program instructions may be encoded on an artificially generated propagating signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode and transmit information to a suitable receiver device for interpretation by the data.
  • the processing device executes.
  • the computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of these.
  • the processes and logic flows described in this disclosure can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output.
  • the processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • Computers suitable for the execution of a computer program include, for example, general and/or special purpose microprocessors, or any other type of central processing unit.
  • the central processing unit will receive instructions and data from read only memory and/or random access memory.
  • the basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data.
  • a computer will also include, or be operatively coupled to, one or more mass storage devices for storing data, such as magnetic, magneto-optical or optical disks, to receive data therefrom or to It transmits data, or both.
  • the computer does not have to have such a device.
  • the computer may be embedded in another device, such as a mobile phone, personal digital assistant (PDA), mobile audio or video player, game console, global positioning system (GPS) receiver, or a universal serial bus (USB) ) flash drives for portable storage devices, to name a few.
  • PDA personal digital assistant
  • GPS global positioning system
  • USB universal serial bus
  • Computer-readable media suitable for storage of computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices (eg, EPROM, EEPROM, and flash memory devices), magnetic disks (eg, internal hard disks or flash memory devices). removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks.
  • semiconductor memory devices eg, EPROM, EEPROM, and flash memory devices
  • magnetic disks eg, internal hard disks or flash memory devices. removable disks
  • magneto-optical disks e.g., CD-ROM and DVD-ROM disks.
  • the processor and memory may be supplemented by or incorporated in special purpose logic circuitry.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

Embodiments of the present invention provide a camera module and a control method and apparatus therefor, a vehicle, and a storage medium. The camera module may comprise: light supplement lamps, the number of the light supplement lamps being less than or equal to a preset value; and a processor, the processor being used for measuring, when the light supplement lamps are turned on, image brightness of an image acquired by the camera module, and adjusting a photographing parameter of the camera module according to the image brightness of the image acquired by the camera module.

Description

摄像模组及其控制方法和装置、车辆、存储介质Camera module and its control method and device, vehicle, storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求于2020年12月24日提交的、申请号为202011553948.1、发明名称为“摄像模组及其控制方法和装置、车辆、存储介质”的中国专利申请的优先权,该中国专利申请公开的全部内容以引用的方式并入本文中。This disclosure claims the priority of the Chinese patent application filed on December 24, 2020, with the application number of 202011553948.1 and the invention titled "Camera Module and Control Method and Device, Vehicle, and Storage Medium", which is published The entire contents of are incorporated herein by reference.
技术领域technical field
本公开涉及智能车舱技术,具体涉及一种摄像模组及其控制方法和装置、车辆、存储介质。The present disclosure relates to intelligent vehicle cabin technology, in particular to a camera module and a control method and device thereof, a vehicle, and a storage medium.
背景技术Background technique
目前智能车舱中具有实现DMS(Driver Monitoring System,驾驶员监控系统)功能的摄像模组,其中该摄像模组在进行图像采集时需要足够的照度,以使得采集的图像满足图像检测的要求,例如,采集的图像的亮度要能够满足驾驶员疲劳检测算法识别驾驶员疲劳状态所需的亮度要求。At present, the smart car cabin has a camera module that realizes the function of DMS (Driver Monitoring System, driver monitoring system), wherein the camera module needs sufficient illumination when collecting images, so that the collected images meet the requirements of image detection, For example, the brightness of the collected images should be able to meet the brightness requirements required by the driver fatigue detection algorithm to identify the driver's fatigue state.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本公开实施例至少提供一种摄像模组及其控制方法和装置、车辆、存储介质。In view of this, the embodiments of the present disclosure provide at least a camera module and a control method and device thereof, a vehicle, and a storage medium.
第一方面,提供一种摄像模组,所述摄像模组包括:In a first aspect, a camera module is provided, and the camera module includes:
补光灯,所述补光灯的数量小于或等于预设值;fill light, the number of the fill light is less than or equal to a preset value;
处理器,所述处理器用于在所述补光灯开启的情况下,检测所述摄像模组采集的图像的图像亮度,并根据所述摄像模组采集的图像的图像亮度,调节所述摄像模组的拍摄参数。a processor, which is configured to detect the image brightness of the image collected by the camera module when the fill light is turned on, and adjust the camera according to the image brightness of the image collected by the camera module The shooting parameters of the module.
第二方面,提供一种车辆,该车辆包括本公开任一实施例所述的摄像模组。In a second aspect, a vehicle is provided, and the vehicle includes the camera module described in any embodiment of the present disclosure.
第三方面,提供一种摄像模组的控制方法,所述摄像模组包括补光灯和处理器,所述补光灯的数量小于或等于预设值;所述控制方法包括:在所述补光灯开启的情况下,检测所述摄像模组采集的图像的图像亮度;根据所述摄像模组采集的图像的图像亮度, 调节所述摄像模组的拍摄参数。A third aspect provides a control method for a camera module, the camera module includes a fill light and a processor, and the number of the fill light is less than or equal to a preset value; the control method includes: in the When the fill light is turned on, the image brightness of the image collected by the camera module is detected; the shooting parameters of the camera module are adjusted according to the image brightness of the image collected by the camera module.
第四方面,提供一种摄像模组的控制装置,所述摄像模组包括补光灯和处理器,所述补光灯的数量小于或等于预设值;所述控制装置包括:图像检测模块,用于在所述补光灯开启的情况下,检测所述摄像模组采集的图像的图像亮度;参数调整模块,用于根据所述摄像模组采集的图像的图像亮度调节所述摄像模组的拍摄参数。In a fourth aspect, a control device for a camera module is provided, the camera module includes a fill light and a processor, and the number of the fill light is less than or equal to a preset value; the control device includes: an image detection module is used to detect the image brightness of the image collected by the camera module when the fill light is turned on; a parameter adjustment module is used to adjust the camera module according to the image brightness of the image collected by the camera module group shooting parameters.
第五方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现本公开任一实施例所述的摄像模组的控制方法。In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, implements the control method for a camera module described in any embodiment of the present disclosure.
本公开实施例提供的摄像模组及其控制方法和装置、车辆、存储介质,通过由摄像模组中的处理器在补光灯开启的情况下根据图像的图像亮度调节摄像模组的拍摄参数,使得可以更灵活的设置摄像模组中补光灯的数量。比如,可以设置数量较少的补光灯,在这种情况下,即使由于补光灯数量减少导致提供的光源照度不够,也能够通过调节摄像模组的拍摄参数来弥补上述光源照度降低对图像亮度的影响;而补光灯数量设置的灵活化也有助于根据实际产品需求来灵活设置摄像模组的体积,避免较大的集成难度和成本。In the camera module and its control method and device, vehicle, and storage medium provided by the embodiments of the present disclosure, the processor in the camera module adjusts the shooting parameters of the camera module according to the image brightness of the image when the fill light is turned on. , so that the number of fill lights in the camera module can be set more flexibly. For example, a small number of fill lights can be set. In this case, even if the illumination of the light source provided is insufficient due to the reduction of the number of fill lights, it is possible to adjust the shooting parameters of the camera module to make up for the decrease in the illumination of the light source. The influence of brightness; and the flexibility of the number of fill lights can also help to flexibly set the volume of the camera module according to the actual product requirements, avoiding greater integration difficulties and costs.
附图说明Description of drawings
为了更清楚地说明本公开一个或多个实施例,下面将对实施例描述中所需要使用的附图作简单地介绍。应当理解,下面描述中的附图仅仅是本公开一个或多个实施例中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate one or more embodiments of the present disclosure, the accompanying drawings that are used in the description of the embodiments will be briefly introduced below. It should be understood that the accompanying drawings in the following description are only some of the embodiments described in one or more embodiments of the present disclosure. For those skilled in the art, without creative efforts, the drawings can also be used according to the drawings. Get additional drawings.
图1示出了本公开至少一个实施例提供的一种摄像模组的结构示意图;1 shows a schematic structural diagram of a camera module provided by at least one embodiment of the present disclosure;
图2示出了本公开至少一个实施例提供的一种摄像模组的控制方法的流程;FIG. 2 shows a flow chart of a method for controlling a camera module provided by at least one embodiment of the present disclosure;
图3示出了本公开至少一个实施例提供的一种摄像模组的结构示意图;3 shows a schematic structural diagram of a camera module provided by at least one embodiment of the present disclosure;
图4示出了本公开至少一个实施例提供的一种曝光控制流程;FIG. 4 shows an exposure control process provided by at least one embodiment of the present disclosure;
图5示出了本公开至少一个实施例提供的一种参数调整的流程示意图;FIG. 5 shows a schematic flowchart of a parameter adjustment provided by at least one embodiment of the present disclosure;
图6示出了本公开至少一个实施例提供的一种传感器的QE曲线示意图;FIG. 6 shows a schematic diagram of a QE curve of a sensor provided by at least one embodiment of the present disclosure;
图7示出了本公开至少一个实施例提供的一种镜头的结构示意图;FIG. 7 shows a schematic structural diagram of a lens provided by at least one embodiment of the present disclosure;
图8示出了本公开至少一个实施例提供的一种摄像模组的控制装置的结构示意图。FIG. 8 shows a schematic structural diagram of a control device for a camera module provided by at least one embodiment of the present disclosure.
具体实施方式Detailed ways
为了使本领域的技术人员更好地理解本公开一个或多个实施例中的技术方案,下面将结合本公开一个或多个实施例中的附图,对本公开一个或多个实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开一个或多个实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都应当属于本公开保护的范围。In order for those skilled in the art to better understand the technical solutions in one or more embodiments of the present disclosure, the following will describe the technical solutions in one or more embodiments of the present disclosure with reference to the accompanying drawings in one or more embodiments of the present disclosure. The technical solutions are clearly and completely described, and obviously, the described embodiments are only a part of the embodiments of the present disclosure, but not all of the embodiments. Based on one or more embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.
本公开实施例提供了一种摄像模组。如图1所示,该摄像模组可以包括处理器11和补光灯12。其中,补光灯12的数量可以是小于或等于某个预设值,其中该预设值为正整数,本公开实施例不限制该预设值的具体数值。例如,该预设值可以是1、2、3、4等,预设值的具体数值可以根据摄像模组的实际产品需求确定。例如,在实际产品需求中期望摄像模组体积尽可能小的情况下,该预设值可以是1。Embodiments of the present disclosure provide a camera module. As shown in FIG. 1 , the camera module may include a processor 11 and a fill light 12 . The number of the fill lights 12 may be less than or equal to a certain preset value, wherein the preset value is a positive integer, and the embodiment of the present disclosure does not limit the specific value of the preset value. For example, the preset value may be 1, 2, 3, 4, etc., and the specific value of the preset value may be determined according to the actual product requirements of the camera module. For example, in the case that the volume of the camera module is expected to be as small as possible in actual product requirements, the preset value may be 1.
该摄像模组可以在补光灯开启的情况下采集被检测对象的图像。该摄像模组可以设置在各种环境中,被检测对象可以是实体对象,也可以是一个空间区域。例如,当该摄像模组设置在车辆中时,被检测对象可以是车辆的乘员、或者车辆的驾驶员区域、副驾驶区域、前排座位区域、后排座位区域、后备箱区域等中的至少一个,摄像模组可以采集乘员或上述至少一个区域的图像。The camera module can collect the image of the detected object when the fill light is turned on. The camera module can be set in various environments, and the detected object can be a solid object or a spatial area. For example, when the camera module is installed in the vehicle, the detected object may be the occupant of the vehicle, or at least one of the driver area, the passenger area, the front seat area, the rear seat area, the trunk area, and the like of the vehicle. One, the camera module can capture images of the occupant or at least one of the above-mentioned areas.
该摄像模组中的处理器11可以是设置在摄像模组内部的PCB主板上的芯片或者处理电路。该处理器11可以检测摄像模组采集的图像的图像亮度,并根据该图像亮度调节摄像模组的拍摄参数。The processor 11 in the camera module may be a chip or a processing circuit disposed on a PCB mainboard inside the camera module. The processor 11 can detect the image brightness of the image collected by the camera module, and adjust the shooting parameters of the camera module according to the image brightness.
例如,处理器11根据图像亮度调整摄像模组的拍摄参数时,其中一种方式可以是将图像亮度与参考亮度做比较,并根据比较结果来调整拍摄参数。其中,该参考亮度可以是用于作为摄像模组采集的图像的图像亮度是否合适的一个判断基准,如果图像亮度能够达到参考亮度,表明摄像模组采集的图像的图像亮度是符合要求的,否则,表明图像亮度不符合要求,摄像模组可以重新采集图像。该参考亮度可以根据一个先验的产品经验来定,比如,根据经验来说图像的图像亮度需要达到某个数值才可以满足检测需求,那么该数值就可以作为参考亮度。示例性的,在对车辆驾驶员进行成像的应用场景中,该参考亮度可以是可清楚识别出驾驶员脸部状态的亮度。该参考亮度可以预设在摄像模组内。如果该图像亮度未达到预设的参考亮度,则处理器11可以调节摄像模组的拍摄参数,以使得摄像模组在根据调整后的拍摄参数采集图像时,图像亮度达到所述的参考 亮度。其中,拍摄参数是摄像模组的可调参数。示例性的,该摄像模组的拍摄参数可以包括但不限于以下至少一项:曝光时间、模拟增益或数字增益。For example, when the processor 11 adjusts the shooting parameters of the camera module according to the image brightness, one way may be to compare the image brightness with the reference brightness, and adjust the shooting parameters according to the comparison result. The reference brightness can be used as a criterion for determining whether the image brightness of the image collected by the camera module is suitable. If the image brightness can reach the reference brightness, it means that the image brightness of the image collected by the camera module meets the requirements, otherwise , indicating that the image brightness does not meet the requirements, and the camera module can re-collect the image. The reference brightness can be determined according to a priori product experience. For example, according to experience, the image brightness of the image needs to reach a certain value to meet the detection requirements, then the value can be used as the reference brightness. Exemplarily, in an application scenario of imaging a driver of a vehicle, the reference brightness may be a brightness that can clearly identify the state of the driver's face. The reference brightness can be preset in the camera module. If the image brightness does not reach the preset reference brightness, the processor 11 can adjust the shooting parameters of the camera module, so that when the camera module collects images according to the adjusted shooting parameters, the image brightness reaches the reference brightness. The shooting parameters are adjustable parameters of the camera module. Exemplarily, the shooting parameters of the camera module may include, but are not limited to, at least one of the following: exposure time, analog gain or digital gain.
此外,依据参考亮度来调整摄像模组的拍摄参数只是一种示例,实际实施中,处理器11可以采用依据参考亮度之外的其他方式来控制摄像模组的拍摄参数。示例性的,处理器11可以预先设置图像亮度与拍摄参数之间的映射关系,当检测到摄像模组采集的图像的图像亮度在某个亮度范围时,确定与该亮度范围对应的拍摄参数,该拍摄参数可以是预设的适合于在检测到该图像亮度时采用的参数。又例如,还可以预先设置当检测到的图像的图像亮度处于某个亮度数值时,对应的模组拍摄参数的参数调整量。比如,图像亮度是S1时,对应将曝光时间增加T1,或者对应将模拟增益提高M1;当图像亮度是S2时,对应将曝光时间增加T2,等。可以设置图像亮度与上述的S1/S2等调整量之间的对应关系。In addition, adjusting the shooting parameters of the camera module according to the reference brightness is only an example. In actual implementation, the processor 11 may control the shooting parameters of the camera module in other ways than according to the reference brightness. Exemplarily, the processor 11 may preset the mapping relationship between the image brightness and the shooting parameters, and when detecting that the image brightness of the image collected by the camera module is within a certain brightness range, determine the shooting parameters corresponding to the brightness range, The shooting parameters may be preset parameters suitable for use when the brightness of the image is detected. For another example, when the image brightness of the detected image is at a certain brightness value, the parameter adjustment amount of the corresponding module shooting parameter may also be preset. For example, when the image brightness is S1, the exposure time is correspondingly increased by T1, or the analog gain is correspondingly increased by M1; when the image brightness is S2, the exposure time is correspondingly increased by T2, and so on. The corresponding relationship between the image brightness and the above-mentioned adjustment amounts such as S1/S2 can be set.
对应于图1,图2示例了一种摄像模组的控制方法。该控制方法描述了图1所示的摄像模组的成像流程。该控制方法的执行主体可以是图1中的处理器,也可以是外接的处理器或者其他电子设备。不论是摄像模组内部还是外部的处理器,只要该处理器与摄像模组建立通信连接,使得处理器能够检测摄像模组的图像,并且可以通过执行自动曝光算法对摄像模组的拍摄参数进行控制即可。例如,外接的处理器可以与摄像模组中的电路板通过IIC总线(Inter-Integrated Circuit Bus,集成电路总线)的方式建立通信通道,并控制摄像模组中的传感器的拍摄参数。以处理器在摄像模组内部为例进行说明,如图2所示,该控制方法可以包括步骤200和202。Corresponding to FIG. 1 , FIG. 2 illustrates a control method of a camera module. The control method describes the imaging process of the camera module shown in FIG. 1 . The execution body of the control method may be the processor in FIG. 1 , or may be an external processor or other electronic device. Whether it is an internal or external processor of the camera module, as long as the processor establishes a communication connection with the camera module, the processor can detect the image of the camera module, and the shooting parameters of the camera module can be processed by executing the automatic exposure algorithm. Control it. For example, the external processor can establish a communication channel with the circuit board in the camera module through an IIC bus (Inter-Integrated Circuit Bus, integrated circuit bus), and control the shooting parameters of the sensor in the camera module. Taking the processor inside the camera module as an example for illustration, as shown in FIG. 2 , the control method may include steps 200 and 202 .
在步骤200中,在补光灯开启的情况下,检测摄像模组采集的图像的图像亮度。In step 200, when the fill light is turned on, the image brightness of the image captured by the camera module is detected.
本实施例中,摄像模组可以包括补光灯和处理器,其中,补光灯的数量小于或等于预设值。本步骤中,摄像模组可以在补光灯开启的情况下采集被检测对象的图像。例如,该被检测对象可以是人脸,图像中可以包括人脸。处理器可以检测摄像模组采集的上述图像的图像亮度。In this embodiment, the camera module may include a fill light and a processor, wherein the number of the fill light is less than or equal to a preset value. In this step, the camera module can collect the image of the detected object when the fill light is turned on. For example, the detected object may be a human face, and the image may include a human face. The processor can detect the image brightness of the above-mentioned images collected by the camera module.
在步骤202中,根据摄像模组采集的图像的图像亮度,调节摄像模组的拍摄参数。In step 202, the shooting parameters of the camera module are adjusted according to the image brightness of the image collected by the camera module.
本步骤中,处理器可以根据摄像模组采集的图像的图像亮度,调节摄像模组的拍摄参数。例如,其中一种根据图像亮度调节拍摄参数的方式可以是依据参考亮度。可以判断图像的图像亮度是否达到预设的参考亮度,如果图像亮度达到参考亮度,则可以对该图像进行下一步图像处理。例如,在车辆DMS的应用中,可以根据该图像中的驾驶员 人脸进行驾驶员疲劳或分心检测。而如果图像亮度未达到参考亮度,则处理器可以调整摄像模组的拍摄参数,例如可以调整曝光时间、增益。In this step, the processor may adjust the shooting parameters of the camera module according to the image brightness of the image collected by the camera module. For example, one of the ways to adjust the shooting parameters according to the image brightness may be according to the reference brightness. It can be determined whether the image brightness of the image reaches the preset reference brightness, and if the image brightness reaches the reference brightness, the next image processing can be performed on the image. For example, in the application of vehicle DMS, driver fatigue or distraction detection can be performed based on the driver's face in the image. And if the image brightness does not reach the reference brightness, the processor can adjust the shooting parameters of the camera module, for example, the exposure time and the gain can be adjusted.
在处理器调整拍摄参数之后,摄像模组将使用该调整后的拍摄参数继续采集被检测对象的图像,同样的,处理器也会检测采集的该图像的图像亮度是否达到参考亮度。如果图像亮度仍然未达到参考亮度,则处理器可以继续调节拍摄参数,比如,继续增大曝光时间或者数字增益,并返回步骤200中继续由摄像模组根据新调整后的拍摄参数进行图像采集。因此,本实施例中的步骤200和步骤202可以循环执行,直至获得的图像的图像亮度足够。After the processor adjusts the shooting parameters, the camera module will continue to collect the image of the detected object using the adjusted shooting parameters, and similarly, the processor will also detect whether the image brightness of the collected image reaches the reference brightness. If the image brightness still does not reach the reference brightness, the processor may continue to adjust the shooting parameters, for example, continue to increase the exposure time or digital gain, and return to step 200 to continue image acquisition by the camera module according to the newly adjusted shooting parameters. Therefore, steps 200 and 202 in this embodiment can be performed cyclically until the image brightness of the obtained image is sufficient.
上述实施例提供的摄像模组,通过由摄像模组的处理器在响应于补光灯开启的情况下,根据摄像模组采集的图像的图像亮度调节摄像模组的拍摄参数,使得可以更灵活的设置摄像模组中补光灯的数量。In the camera module provided by the above-mentioned embodiment, when the processor of the camera module is turned on in response to the fill light, the shooting parameters of the camera module are adjusted according to the image brightness of the image collected by the camera module, so that the camera module can be more flexible. to set the number of fill lights in the camera module.
比如,可以设置数量较少的补光灯,在这种情况下,即使由于补光灯数量减少导致提供的光源照度降低,也能够通过处理器调节摄像模组的拍摄参数来弥补上述光源照度降低对图像亮度的影响;补光灯数量设置的灵活化也有助于降低摄像模组的安装难度和成本。例如,在一个示例中,摄像模组中可以只设置较少数量的补光灯,比如设置单个补光灯,从而使得摄像模组的体积减小,更加容易安装和集成,降低了整车成本。比如,减少摄像模组中的补光灯的数量后,能够使得摄像模组的体积减小,例如:摄像模组的横向总长度是30mm至45mm,所述摄像模组的纵向开窗尺寸是20mm至35mm,所述摄像模组的纵向总长度是30mm至45mm。For example, a small number of fill lights can be set. In this case, even if the illuminance of the provided light source is reduced due to the reduction of the number of fill lights, the processor can adjust the shooting parameters of the camera module to make up for the decrease in the illuminance of the light source. The impact on image brightness; the flexibility of the number of fill lights can also help reduce the installation difficulty and cost of the camera module. For example, in one example, only a small number of fill lights can be set in the camera module, such as a single fill light, thereby reducing the volume of the camera module, making it easier to install and integrate, and reducing the cost of the whole vehicle . For example, after reducing the number of fill lights in the camera module, the volume of the camera module can be reduced. For example, the total horizontal length of the camera module is 30mm to 45mm, and the vertical window size of the camera module is 20mm to 35mm, and the total longitudinal length of the camera module is 30mm to 45mm.
此外,还需要说明的是,这种通过调整摄像模组的拍摄参数来调整摄像模组采集图像的图像亮度的方式,相比于通过增大补光灯的功率的方式,能够更有效的解决补光灯散热的问题。如果通过增加补光灯的功率来提升图像亮度,将导致补光灯热量加大,由此带来散热问题。而本公开实施例的方案,在不会带来散热问题的基础上,能够允许灵活设置摄像模组中补光灯的数量,比如设置较少的补光灯,也同样能够保证采集的图像的图像亮度,兼顾了成本、亮度、集成难度和散热问题的考虑,从而在降低摄像模组体积和成本的同时保证了摄像模组采集图像的亮度要求,也不会带来散热问题。In addition, it should also be noted that this method of adjusting the image brightness of the image captured by the camera module by adjusting the shooting parameters of the camera module can be more effective than the method of increasing the power of the fill light. The problem of heat dissipation of the fill light. If the image brightness is improved by increasing the power of the fill light, the heat of the fill light will increase, resulting in heat dissipation problems. The solution of the embodiment of the present disclosure, on the basis of not causing the problem of heat dissipation, can allow flexible setting of the number of fill lights in the camera module. For example, setting fewer fill lights can also ensure the quality of the collected images. The image brightness takes into account the considerations of cost, brightness, integration difficulty and heat dissipation, thereby reducing the volume and cost of the camera module while ensuring the brightness requirements of the image captured by the camera module without causing heat dissipation problems.
请参见图3所示的摄像模组,该摄像模组可以包括补光灯31、灯板32、盖板33、镜头34和电路板35。Please refer to the camera module shown in FIG. 3 , the camera module may include a fill light 31 , a light plate 32 , a cover plate 33 , a lens 34 and a circuit board 35 .
补光灯31固定设置在灯板32上,该灯板32可以用于向补光灯31提供补光控制信 号,该灯板32的材质可以是铝基板。该补光灯31的补光波长可以是850nm至1000nm。The fill light 31 is fixedly arranged on the light board 32, the light board 32 can be used to provide fill light control signals to the fill light 31, and the material of the light board 32 can be an aluminum substrate. The supplementary light wavelength of the supplementary light 31 may be 850 nm to 1000 nm.
盖板33例如可以采用PMMA(polymethyl methacrylate,聚甲基丙烯酸甲酯)材质。如图3所示,该盖板33相当于摄像模组的保护罩,可以罩住摄像模组内部的补光灯31和其他组件。The cover plate 33 can be made of PMMA (polymethyl methacrylate, polymethyl methacrylate) material, for example. As shown in FIG. 3 , the cover plate 33 is equivalent to a protective cover of the camera module, and can cover the fill light 31 and other components inside the camera module.
镜头34中包括红外滤光片(IR filter,图示在后续的图7中)。其中,图7所示的即为图3中的镜头34的结构示意图。图7中,镜头的左侧可以是接收由盖板33透过的光线,该光线沿着镜头的光轴方向一直入射到镜头右侧的红外滤光片,光线经过红外滤光片的滤波后,进入到传感器的感光面上。此外,由图3也可以看到,盖板33可以盖设于镜头34和补光灯31上,补光灯31和镜头34沿摄像模组的口径方向平行设置。该镜头34可以是可见光-红外一体的镜头,或者也可以是单红外镜头。Included in the lens 34 is an infrared filter (IR filter, illustrated in the subsequent FIG. 7 ). 7 is a schematic structural diagram of the lens 34 in FIG. 3 . In Fig. 7, the left side of the lens can receive the light transmitted by the cover plate 33, and the light is incident along the optical axis of the lens to the infrared filter on the right side of the lens, and the light is filtered by the infrared filter. , into the photosensitive surface of the sensor. In addition, it can also be seen from FIG. 3 that the cover plate 33 can be covered on the lens 34 and the fill light 31, and the fill light 31 and the lens 34 are arranged in parallel along the aperture direction of the camera module. The lens 34 may be a visible light-infrared integrated lens, or may also be a single infrared lens.
电路板35上可以设置有传感器,该传感器设置于镜头34沿光轴方向的一端,用于感测经过镜头进入摄像模组的光线。并且,在进行图像采集时,光线可以经由上述的盖板33、镜头34中的红外滤光片,到达电路板35上的传感器。该传感器可以将接收的光线的光子转换为电子,接着将电子转换为模拟信号,并通过模拟增益的处理进行模拟信号放大。然后,对放大后的模拟信号进行模数转换得到数字信号,并进行数字增益的处理放大数字信号后,再通过图像处理系统对数字信号进行图像处理得到最终的图像,该图像中包括上述的被检测对象,例如,该被检测对象可以是汽车驾驶员的人脸。A sensor may be provided on the circuit board 35, and the sensor is provided at one end of the lens 34 along the optical axis direction, and is used for sensing the light entering the camera module through the lens. Moreover, when the image is captured, the light can reach the sensor on the circuit board 35 through the above-mentioned cover plate 33 and the infrared filter in the lens 34 . The sensor can convert the photons of the received light into electrons, and then convert the electrons into analog signals, and the analog signals are amplified by the processing of analog gain. Then, perform analog-to-digital conversion on the amplified analog signal to obtain a digital signal, and perform digital gain processing to amplify the digital signal, and then perform image processing on the digital signal through an image processing system to obtain a final image, which includes the above-mentioned The detected object, for example, the detected object may be the human face of a car driver.
此外,摄像模组中的处理器例如可以是电路板35上的芯片或者处理电路。In addition, the processor in the camera module may be, for example, a chip or a processing circuit on the circuit board 35 .
在本公开实施例的摄像模组中,可以由处理器执行自动曝光算法,对摄像模组进行曝光控制,具体可以是对摄像模组中电路板上的传感器进行曝光控制,以保证摄像模组生成的图像的亮度能够稳定达到预设的参考亮度,例如图像亮度达到DMS(Driver Monitoring System,驾驶员监控系统)的图像检测要求。例如,在通过DMS系统对驾驶员进行疲劳检测或者危险动作检测时,对驾驶员的图像要求达到足够的图像亮度,以获得更为准确的检测结果。In the camera module of the embodiment of the present disclosure, an automatic exposure algorithm may be executed by the processor to control the exposure of the camera module, specifically, the exposure control may be performed on the sensor on the circuit board in the camera module to ensure that the camera module The brightness of the generated image can stably reach the preset reference brightness, for example, the image brightness meets the image detection requirements of the DMS (Driver Monitoring System, driver monitoring system). For example, when fatigue detection or dangerous action detection is performed on the driver through the DMS system, the driver's image is required to have sufficient image brightness to obtain a more accurate detection result.
需要说明的是,在本公开任一实施例描述的控制方法中,控制方法的执行主体都可以是摄像模组内部的处理器或者外接的处理器或其他电子控制设备,描述中以摄像模组内部的处理器为例。图4示例了当摄像模组是车载摄像模组时,该车载摄像模组中的处理器对摄像模组的曝光控制方法的流程。如图4所示,该方法可以包括步骤400和402。It should be noted that, in the control method described in any embodiment of the present disclosure, the execution subject of the control method may be a processor inside the camera module or an external processor or other electronic control equipment, and the camera module is used in the description. Take the internal processor as an example. FIG. 4 illustrates a flow of a method for controlling exposure of a camera module by a processor in the vehicle-mounted camera module when the camera module is a vehicle-mounted camera module. As shown in FIG. 4 , the method may include steps 400 and 402 .
在步骤400中,在补光灯开启的情况下,检测车载摄像模组采集的图像的图像亮度。In step 400, when the fill light is turned on, the image brightness of the image collected by the vehicle-mounted camera module is detected.
例如,如上所述的,车载摄像模组可以采集图像。其中,车载摄像模组可以将入射的光线转换为电子,并将电子数字化后进行图像处理,得到被检测对象的图像。For example, as described above, the vehicle camera module can capture images. Among them, the vehicle camera module can convert the incident light into electrons, and digitize the electrons for image processing to obtain the image of the detected object.
本步骤中,处理器可以获取图像的图像亮度。在一个示例性的实现方式中,处理器可以获取图像中预定区域的图像亮度,并将所述图像中预定区域的图像亮度作为所述图像的图像亮度,所述预定区域包括图像中的预定对象所在的区域。In this step, the processor may acquire the image brightness of the image. In an exemplary implementation, the processor may acquire the image brightness of a predetermined area in the image, and use the image brightness of the predetermined area in the image as the image brightness of the image, where the predetermined area includes a predetermined object in the image the area in which it is located.
例如,假设预定对象是驾驶员的人脸,以通过人脸检测识别驾驶员是否出现疲劳状态。那么,所述的预定对象所在的区域可以是包括驾驶员人脸的图像区域。具体实施时,可以将图像按不同区域划分成多个子图像,然后获取中心区域的部分子图像作为预定对象所在的区域,并确定该区域的图像亮度。中心区域的具体范围可以自主界定,只要能覆盖到预定对象即可。For example, it is assumed that the predetermined object is the driver's face, so as to identify whether the driver is in a fatigued state through face detection. Then, the area where the predetermined object is located may be an image area including the driver's face. In specific implementation, the image may be divided into multiple sub-images according to different regions, and then some sub-images in the central region are acquired as the region where the predetermined object is located, and the image brightness of the region is determined. The specific scope of the central area can be defined independently, as long as it can cover the predetermined object.
在步骤402中,若所述图像亮度低于预设的参考亮度,则调整所述车载摄像模组中传感器的拍摄参数,以获得达到参考亮度的图像。In step 402, if the brightness of the image is lower than the preset reference brightness, the shooting parameters of the sensors in the vehicle-mounted camera module are adjusted to obtain an image with the reference brightness.
本步骤中,所述的预设的参考亮度可以是预先设置的一个图像亮度值,该图像亮度值可以满足DMS检测的亮度要求。当然在DMS检测之外的其他应用场景中可以设置该场景所需的亮度值作为参考亮度。In this step, the preset reference brightness may be a preset image brightness value, and the image brightness value can meet the brightness requirement of DMS detection. Of course, in other application scenarios other than DMS detection, the brightness value required by the scene can be set as the reference brightness.
若图像亮度低于预设的参考亮度,则可以调整车载摄像模组中传感器的拍摄参数。该拍摄参数包括如下至少一项:曝光时间、模拟增益或数字增益。If the image brightness is lower than the preset reference brightness, the shooting parameters of the sensor in the vehicle camera module can be adjusted. The shooting parameters include at least one of the following: exposure time, analog gain or digital gain.
在一个例子中,处理器调整传感器的曝光时间即可以使得车载摄像模组根据调整后的参数获得达到所述参考亮度的图像。In one example, the processor may adjust the exposure time of the sensor to enable the vehicle-mounted camera module to obtain an image with the reference brightness according to the adjusted parameters.
在另一个例子中,处理器调整传感器的曝光时间不能使得图像亮度达到参考亮度,在这种情况下,还需要调整曝光时间、以及模拟增益和数字增益中的至少一项,来使得车载摄像模组根据调整后的参数获得达到所述参考亮度的图像。In another example, the processor cannot adjust the exposure time of the sensor to make the image brightness reach the reference brightness. In this case, the exposure time and at least one of the analog gain and the digital gain need to be adjusted to make the vehicle camera model The group obtains an image that reaches the reference brightness according to the adjusted parameters.
图5示例了一种处理器通过调整曝光时间、模拟增益和数字增益三者,来使得摄像模组获得参考亮度的图像的曝光控制方法。可以理解的是,实际实施中,不一定对这三种参数都调整,可能只需要调整其中的部分参数。FIG. 5 illustrates an exposure control method in which the processor adjusts the exposure time, the analog gain and the digital gain, so that the camera module obtains an image with a reference brightness. It can be understood that, in actual implementation, it is not necessary to adjust all the three parameters, and only some of the parameters may need to be adjusted.
在步骤500中,在确定车载摄像模组的图像的图像亮度未达到参考亮度的情况下,调整车载摄像模组中的传感器的曝光时间。In step 500, when it is determined that the image brightness of the image of the vehicle-mounted camera module does not reach the reference brightness, the exposure time of the sensor in the vehicle-mounted camera module is adjusted.
本实施例中,可以优先调整曝光时间,曝光时间越长,进入的光线就越多,越有助 于提高图像的图像亮度。本实施例还设置了最大曝光时间,例如,最大曝光时间可以设置为6ms,以避免曝光时间过长对图像质量带来的负面影响。In this embodiment, the exposure time can be adjusted preferentially. The longer the exposure time is, the more light enters, which is more helpful to improve the image brightness of the image. This embodiment also sets a maximum exposure time, for example, the maximum exposure time may be set to 6ms, so as to avoid the negative impact on image quality caused by too long exposure time.
此外,本实施例所述的调整传感器的曝光时间,实际上是调整传感器中的快门的曝光时间。In addition, the adjustment of the exposure time of the sensor in this embodiment is actually the adjustment of the exposure time of the shutter in the sensor.
本步骤中,处理器可以重复执行第一调整操作,直到摄像模组的曝光时间达到预设的最大曝光时间或者摄像模组采集的图像的图像亮度达到参考亮度。其中,所述第一调整操作包括:增大摄像模组的曝光时间并利用所述摄像模组采集图像。In this step, the processor may repeatedly perform the first adjustment operation until the exposure time of the camera module reaches the preset maximum exposure time or the image brightness of the image collected by the camera module reaches the reference brightness. Wherein, the first adjustment operation includes: increasing the exposure time of the camera module and using the camera module to capture images.
比如,处理器可以先增大曝光时间一定数值,然后摄像模组根据增大后的曝光时间来采集图像。如果处理器发现此时获得的图像的图像亮度仍然不能达到参考亮度,则可以继续增大曝光时间,直至图像亮度满足要求。For example, the processor can first increase the exposure time by a certain value, and then the camera module can collect images according to the increased exposure time. If the processor finds that the image brightness of the image obtained at this time still cannot reach the reference brightness, it can continue to increase the exposure time until the image brightness meets the requirements.
如果在所述摄像模组的曝光时间达到最大曝光时间的情况下,摄像模组采集的图像的图像亮度仍然未达到参考亮度,则处理器可以重复执行第二调整操作直到所述图像亮度达到参考亮度。其中,该第二调整操作可以包括:调整所述摄像模组的模拟增益和数字增益中的至少一项,并利用所述摄像模组采集图像。If the image brightness of the image captured by the camera module still does not reach the reference brightness when the exposure time of the camera module reaches the maximum exposure time, the processor may repeat the second adjustment operation until the image brightness reaches the reference brightness brightness. The second adjustment operation may include: adjusting at least one of an analog gain and a digital gain of the camera module, and using the camera module to capture images.
如下以步骤502和504为例,示例一个调整模拟增益和数字增益的流程。The following takes steps 502 and 504 as examples to illustrate a process of adjusting the analog gain and the digital gain.
在步骤502中,在所述曝光时间达到预设的最大曝光时间的情况下,所述图像亮度低于预设的参考亮度,则继续调整模拟增益。In step 502, when the exposure time reaches a preset maximum exposure time and the image brightness is lower than a preset reference brightness, the analog gain is continued to be adjusted.
假设所述曝光时间已经达到最大曝光时间,可以获取调整曝光时间后生成的图像,判断该图像的图像亮度是否达到参考亮度。若判断结果为是,则获得图像。若判断结果为否,则可以继续调整增益。Assuming that the exposure time has reached the maximum exposure time, an image generated after adjusting the exposure time can be obtained, and it can be determined whether the image brightness of the image reaches the reference brightness. If the judgment result is YES, an image is obtained. If the judgment result is no, you can continue to adjust the gain.
本实施例以优先调整模拟增益为例。This embodiment takes the priority adjustment of the analog gain as an example.
在步骤504中,在模拟增益达到最大模拟增益的情况下,所述图像亮度低于预设的参考亮度,则继续调整数字增益,直至获得达到参考亮度的图像。In step 504, when the analog gain reaches the maximum analog gain, and the image brightness is lower than the preset reference brightness, the digital gain is continuously adjusted until an image that reaches the reference brightness is obtained.
通常增益也会有调整的最大值,若模拟增益调整达到最大模拟增益后,图像亮度仍然低于预设的参考亮度,则继续调整数字增益,直至获得达到参考亮度的图像。Usually, the gain will also have an adjusted maximum value. If the image brightness is still lower than the preset reference brightness after the analog gain adjustment reaches the maximum analog gain, continue to adjust the digital gain until the image with the reference brightness is obtained.
本实施例的曝光控制方法,通过在检测到图像亮度未达到参考亮度时,调整拍摄参数,使得调整后的车载摄像模组能够获得达到参考亮度的图像。这种方式使得摄像模组能够设置数量较少的补光灯,并结合曝光控制来获得足够的图像亮度。In the exposure control method of this embodiment, when it is detected that the brightness of the image does not reach the reference brightness, the shooting parameters are adjusted, so that the adjusted vehicle-mounted camera module can obtain an image that reaches the reference brightness. This method enables the camera module to set up a small number of fill lights, combined with exposure control to obtain sufficient image brightness.
正是由于上述的曝光控制方法,使得摄像模组能够设置数量较少的补光灯,比如,车载摄像模组可以设置一颗补光灯。尽管设置了一颗补光灯,但是由于处理器可以通过图4或图5所示的曝光控制方法来调整摄像模组的拍摄参数,使得在一颗补光灯的情况下也依然能够提高摄像模组的图像的图像亮度。It is precisely because of the above exposure control method that the camera module can be provided with a small number of supplementary lights. For example, a vehicle camera module can be provided with one supplementary light. Although a fill light is set, because the processor can adjust the shooting parameters of the camera module through the exposure control method shown in FIG. 4 or FIG. 5 , the camera can still be improved even with one fill light. The image brightness of the mod's image.
例如,在夜晚的情况下,可以开启一颗补光灯,此时车载摄像模组的图像的图像亮度较低,尚未达到DMS检测的亮度要求。那么,处理器在确定图像亮度低于参考亮度时,可以加大摄像模组中的传感器的曝光时间,或者提高传感器的模拟增益或数字增益的数值,通过调整这些拍摄参数,就可以使得在一颗补光灯的情况下图像仍然达到了足够的图像亮度。而对于整车来说,一颗补光灯的设置使得摄像模组成本降低,并且还降低了补光灯的集成难度。此外,一颗补光灯的设计缩小了摄像模组的体积,在将摄像模组应用于车内的DMS时,有利于减小摄像模组对驾驶员的影响。For example, at night, a fill light can be turned on. At this time, the image brightness of the image of the vehicle camera module is low and has not yet reached the brightness requirement for DMS detection. Then, when the processor determines that the image brightness is lower than the reference brightness, it can increase the exposure time of the sensor in the camera module, or increase the value of the analog gain or digital gain of the sensor. The image still achieves sufficient image brightness in the case of a fill light. For the whole vehicle, the setting of a fill light reduces the cost of the camera module, and also reduces the integration difficulty of the fill light. In addition, the design of a fill light reduces the size of the camera module, which is beneficial to reduce the impact of the camera module on the driver when the camera module is applied to the DMS in the car.
在又一个实施例中,为了节省补光灯的消耗,提高补光灯的使用寿命,进而提高整个车载摄像模组的可靠性和耐久度,本实施例还可以对车载摄像模组进行如下的改进:In yet another embodiment, in order to save the consumption of the fill light, improve the service life of the fill light, and further improve the reliability and durability of the entire vehicle-mounted camera module, in this embodiment, the vehicle-mounted camera module can also be performed as follows: Improve:
可以设置盖板33、以及镜头34中的红外滤光片,使得盖板33和红外滤光片能够透射过更多的近红外光。例如,可以通过调整盖板33中的PMMA等原料的混合比例,设置盖板的截止波长小于第一波长阈值,示例性的,该第一波长阈值可以是750nm,使得盖板透过的光线中包括750nm波段以上的近红外光。透过的光线越多,传感器对应转换得到的电子越多,最终图像的亮度就越大。同理,还可以设置镜头中的红外滤光片的截止波长小于第二波长阈值,示例性的,该第二波长阈值可以与第一波长阈值相同,比如设置为750nm,以透过更多的近红外光。The cover plate 33 and the infrared filter in the lens 34 can be provided, so that the cover plate 33 and the infrared filter can transmit more near-infrared light. For example, by adjusting the mixing ratio of raw materials such as PMMA in the cover plate 33, the cut-off wavelength of the cover plate can be set to be smaller than the first wavelength threshold. Exemplarily, the first wavelength threshold can be 750 nm, so that the light transmitted by the cover plate is in the Including near-infrared light above the 750nm band. The more light that passes through, the more electrons the sensor converts, and the brighter the final image. In the same way, the cutoff wavelength of the infrared filter in the lens can also be set to be smaller than the second wavelength threshold. Exemplarily, the second wavelength threshold can be the same as the first wavelength threshold, for example, set to 750nm, so as to transmit more near infrared light.
此外,电路板上的传感器的其中一个性能衡量指标可以是QE(Photodiode quantum efficiency,光电二极管量子效率),量子效率是指转换的电子数量与入射的光子数量的比值。通常来说,转换的电子越多,越有助于增强图像亮度,图像的质量将更好。此外,上述的在将电子进行数字化转换的过程中,增益(Gain)的作用是放大图像信号,使图像画面亮度增强。增益的单位通常可以用“倍数”表示,比如1x,2x,3x等。In addition, one of the performance metrics of the sensor on the circuit board can be QE (Photodiode quantum efficiency, photodiode quantum efficiency), which refers to the ratio of the number of converted electrons to the number of incident photons. Generally speaking, the more electrons that are converted, the more it helps to brighten the image, and the quality of the image will be better. In addition, in the above-mentioned process of digital conversion of electrons, the function of gain is to amplify the image signal, so as to enhance the brightness of the image picture. The unit of gain can usually be expressed in "multiples", such as 1x, 2x, 3x, etc.
本公开实施例还可以进一步的对电路板上的传感器进行调整,选择QE性能较高的传感器。例如,可以设置传感器在第一波长的量子效率不低于第一预设效率值,其中,第一波长可以不超过750nm,第一预设效率值可以不低于50%;并设置传感器在第二波长的量子效率不低于第二预设效率值,其中,第二波长可以是不小于950nm,第二预设效率值可以是不低于10%。In the embodiment of the present disclosure, the sensors on the circuit board can be further adjusted, and a sensor with higher QE performance can be selected. For example, the quantum efficiency of the sensor at the first wavelength may not be lower than the first preset efficiency value, wherein the first wavelength may not exceed 750 nm, and the first preset efficiency value may not be lower than 50%; and the sensor may be set at the first wavelength. The quantum efficiency of the two wavelengths is not lower than the second preset efficiency value, wherein the second wavelength may be not less than 950 nm, and the second preset efficiency value may be not lower than 10%.
示例性的,可以参见图6,图6示例了本实施例所选择的一种传感器的QE曲线,根据该QE曲线可以看到,该传感器对在750nm波段的光线的量子效率不低于50%,即可以将750nm波段的光线中的至少一半的光子转换为电子;对在950nm波段的光线的量子效率不低于10%,即可以将950nm波段的光线中的至少十分之一的光子转换为电子。并且,图6中的虚线曲线是调整前使用的传感器的QE性能曲线,实线曲线是调整后使用的传感器的QE性能曲线,可以看出,本实施例所选择的传感器相比调整前使用的传感器的QE值提高了。传感器的QE性能的提高,将使得转换得到的电子更多,更有助于提升成像质量。For example, see FIG. 6 , which illustrates the QE curve of a sensor selected in this embodiment. According to the QE curve, it can be seen that the quantum efficiency of the sensor for light in the 750 nm band is not lower than 50%. , that is, at least half of the photons in the light in the 750nm band can be converted into electrons; the quantum efficiency for the light in the 950nm band is not less than 10%, that is, at least one tenth of the photons in the light in the 950nm band can be converted. for electrons. In addition, the dotted curve in FIG. 6 is the QE performance curve of the sensor used before adjustment, and the solid line curve is the QE performance curve of the sensor used after adjustment. It can be seen that the sensor selected in this embodiment is better than the sensor used before adjustment. The QE value of the sensor has been increased. The improvement of the QE performance of the sensor will allow more electrons to be converted, which will help improve the image quality.
在对摄像模组的盖板、镜头、传感器等进行了上述增多透过的近红外光或者提高QE的措施改进后,传感器可以接收到更多的光线或者将更多的光子转换为电子,从而可以得到更多的电子,进而根据电子数字化后的信号处理生成的图像的亮度和质量就会更高。After the above-mentioned measures to increase the transmitted near-infrared light or improve the QE are carried out on the cover plate, lens, sensor, etc. of the camera module, the sensor can receive more light or convert more photons into electrons, thereby More electrons are available, and the resulting images will be brighter and of higher quality based on signal processing after the electrons are digitized.
由于盖板、红外滤光片和传感器的上述设置,也使得补光灯可以得到节省。例如,在白天的场景中,太阳会产生相当部分的近红外光,这部分光经过盖板、镜头,到达传感器成像,如果这部分环境光足够强,那么也可能摄像模组最后得到的图像亮度能够达到参考亮度,补光灯可以不开。这样就可以节省补光灯的消耗。在摄像模组中的补光灯未开启的情况下,处理器可以响应于摄像模组采集的图像的图像亮度未达到参考亮度,调节摄像模组的拍摄参数,比如调整摄像模组中传感器的曝光时间、数字增益或模拟增益中的至少一项。Due to the above arrangement of the cover plate, the infrared filter and the sensor, the supplementary light can also be saved. For example, in a daytime scene, the sun will generate a considerable amount of near-infrared light. This part of the light passes through the cover plate and the lens to reach the sensor for imaging. If this part of the ambient light is strong enough, the final image brightness obtained by the camera module may also be The reference brightness can be achieved, and the fill light can be turned off. In this way, the consumption of fill light can be saved. When the fill light in the camera module is not turned on, the processor can adjust the shooting parameters of the camera module in response to the image brightness of the image collected by the camera module not reaching the reference brightness, such as adjusting the sensor in the camera module. At least one of exposure time, digital gain, or analog gain.
当然,不论补光灯是否开启,处理器可以持续执行曝光控制,实时监控图像亮度,并且可以根据检测的图像亮度对摄像模组进行控制。如下示例两种控制方式,处理器可以执行如下两个例子中的至少一个:其中,在一个例子中,在补光灯未开启的情况下,如果发现摄像模组采集的图像的图像亮度未达到预设的参考亮度,则可以调节摄像模组的拍摄参数。例如,若图像的图像亮度比参考亮度低,就增加摄像模组的曝光时间,以使得摄像模组采集的图像的亮度提高。在又一个例子中,在补光灯未开启的情况下,若已经将摄像模组的拍摄参数调整至预设的门限值,比如,曝光时间已经达到了最大曝光时间,而摄像模组采集的图像的图像亮度仍未达到参考亮度,就可以开启摄像模组中的补光灯。比如,如果处理器将摄像模组的拍摄参数调整至预设的门限值,例如,曝光时间达到了最大曝光时间,增益也调整到了对应的最大增益,但是所述摄像模组采集的图像的图像亮度仍未达到参考亮度,则处理器可以控制摄像模组中的补光灯开启。Of course, no matter whether the fill light is turned on or not, the processor can continuously perform exposure control, monitor the image brightness in real time, and can control the camera module according to the detected image brightness. The following examples of two control methods, the processor can execute at least one of the following two examples: wherein, in an example, in the case that the fill light is not turned on, if it is found that the image brightness of the image collected by the camera module does not reach The preset reference brightness can adjust the shooting parameters of the camera module. For example, if the image brightness of the image is lower than the reference brightness, the exposure time of the camera module is increased to increase the brightness of the image captured by the camera module. In another example, when the fill light is not turned on, if the shooting parameters of the camera module have been adjusted to the preset threshold, for example, the exposure time has reached the maximum exposure time, and the camera module captures If the image brightness of the image has not yet reached the reference brightness, the fill light in the camera module can be turned on. For example, if the processor adjusts the shooting parameters of the camera module to a preset threshold, for example, the exposure time reaches the maximum exposure time, and the gain is also adjusted to the corresponding maximum gain, but the image captured by the camera module has If the image brightness has not yet reached the reference brightness, the processor can control the fill light in the camera module to turn on.
在夜晚的场景中,环境中的近红外光能减弱,成像所需的光照主要来源于摄像模组 自身的补光灯。同样,处理器将监控图像的图像亮度是否能够达到参考亮度,如果不能达到,就可以通过执行曝光控制,例如,调整曝光时间、模拟增益或者数字增益中的至少一项,使得最终图像达到期望的质量。In the night scene, the near-infrared light energy in the environment is weakened, and the illumination required for imaging mainly comes from the fill light of the camera module itself. Likewise, the processor will monitor whether the image brightness of the image can reach the reference brightness, and if not, it can perform exposure control, such as adjusting at least one of exposure time, analog gain or digital gain, so that the final image reaches the desired level quality.
由上述说明可以看到,本公开实施例的摄像模组,可以设置较少数量的补光灯。通过配合处理器的曝光控制策略,就可以使得较少数量的补光灯(例如,单个补光灯)也能够达到预设的图像参考亮度,从而使得摄像模组的成本降低,减小了摄像模组体积,也降低了摄像模组的集成难度。It can be seen from the above description that the camera module according to the embodiment of the present disclosure can be provided with a small number of supplementary lights. By cooperating with the exposure control strategy of the processor, a smaller number of fill lights (for example, a single fill light) can also achieve the preset image reference brightness, thereby reducing the cost of the camera module and reducing the number of cameras. The module volume also reduces the integration difficulty of the camera module.
图8提供了一种摄像模组的控制装置,该装置可以应用于对摄像模组进行控制的设备,比如,摄像模组内部的处理器或者外接的控制设备,使得该设备能够执行本公开任一实施例所述的对摄像模组的控制方法。其中,该摄像模组包括补光灯和处理器,补光灯的数量小于或等于预设值。如图8所示,该装置可以包括图像检测模块81和参数调整模块82。FIG. 8 provides a control device for a camera module, which can be applied to a device that controls the camera module, such as a processor inside the camera module or an external control device, so that the device can perform any of the tasks of the present disclosure. A method for controlling a camera module according to an embodiment. Wherein, the camera module includes a fill light and a processor, and the number of fill lights is less than or equal to a preset value. As shown in FIG. 8 , the apparatus may include an image detection module 81 and a parameter adjustment module 82 .
图像检测模块81,用于在所述补光灯开启的情况下,检测摄像模组采集的图像的图像亮度。The image detection module 81 is configured to detect the image brightness of the image collected by the camera module when the fill light is turned on.
参数调整模块82,用于根据所述摄像模组采集的图像的图像亮度调节所述摄像模组的拍摄参数。The parameter adjustment module 82 is configured to adjust the shooting parameters of the camera module according to the image brightness of the image collected by the camera module.
在一个例子中,图像检测模块81,具体用于获取所述图像中预定区域的图像亮度,并将所述图像中预定区域的图像亮度作为所述图像的图像亮度,所述预定区域包括所述图像中的预定对象所在的区域。In an example, the image detection module 81 is specifically configured to acquire the image brightness of a predetermined area in the image, and use the image brightness of the predetermined area in the image as the image brightness of the image, where the predetermined area includes the The area in the image where the predetermined object is located.
如图8所示,该装置还可以包括:灯控模块83,用于响应于在所述补光灯未开启的情况下,将所述摄像模组的拍摄参数调整至预设的门限值时所述摄像模组采集的图像的图像亮度未达到参考亮度,控制所述摄像模组中的补光灯开启。As shown in FIG. 8 , the device may further include: a light control module 83 for adjusting the shooting parameters of the camera module to a preset threshold value in response to the fact that the fill light is not turned on When the image brightness of the image collected by the camera module does not reach the reference brightness, the fill light in the camera module is controlled to be turned on.
在一些实施例中,上述装置可以用于执行上文所述的对应任意方法,为了简洁,这里不再赘述。In some embodiments, the foregoing apparatus may be configured to execute any corresponding method described above, which is not repeated here for brevity.
本公开实施例还提供了一种车辆,该车辆包括了本公开任一实施例所述的摄像模组。具体的摄像模组的结构可以参见前述实施例,不再详述。该摄像模组可以安装在车辆内驾驶员侧的A柱位置、或者安装在驾驶员侧前挡风玻璃的下方。An embodiment of the present disclosure further provides a vehicle, and the vehicle includes the camera module described in any embodiment of the present disclosure. For the specific structure of the camera module, reference may be made to the foregoing embodiments, which will not be described in detail. The camera module can be installed at the position of the A-pillar on the driver's side in the vehicle, or installed under the front windshield on the driver's side.
本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现本公开任一实施例的方法,该方法能够执行对摄像模组的 控制。Embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, implements the method of any embodiment of the present disclosure, and the method can perform a procedure on a camera module. control.
本领域技术人员应明白,本公开一个或多个实施例可提供为方法、系统或计算机程序产品。因此,本公开一个或多个实施例可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本公开一个或多个实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, one or more embodiments of the present disclosure may be provided as a method, system or computer program product. Accordingly, one or more embodiments of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present disclosure may employ a computer program implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein form of the product.
其中,本公开实施例所述的“和/或”表示至少具有两者中的其中一个,例如,“A和/或B”包括三种方案:A、B、以及“A和B”。Wherein, "and/or" in the embodiments of the present disclosure means at least one of the two. For example, "A and/or B" includes three schemes: A, B, and "A and B".
本公开中的各个实施例均采用递进的方式描述,各个实施例之间相同或相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于数据处理设备实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the present disclosure are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the data processing device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the partial description of the method embodiment.
上述对本公开特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的行为或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
本公开中描述的主题及功能操作的实施例可以在以下中实现:数字电子电路、有形体现的计算机软件或固件、包括本公开中公开的结构及其结构性等同物的计算机硬件、或者它们中的一个或多个的组合。本公开中描述的主题的实施例可以实现为一个或多个计算机程序,即编码在有形非暂时性程序载体上以被数据处理装置执行或控制数据处理装置的操作的计算机程序指令中的一个或多个模块。可替代地或附加地,程序指令可以被编码在人工生成的传播信号上,例如机器生成的电、光或电磁信号,该信号被生成以将信息编码并传输到合适的接收机装置以由数据处理装置执行。计算机存储介质可以是机器可读存储设备、机器可读存储基板、随机或串行存取存储器设备、或它们中的一个或多个的组合。Embodiments of the subject matter and functional operations described in this disclosure can be implemented in digital electronic circuitry, in tangible embodied computer software or firmware, in computer hardware including the structures disclosed in this disclosure and their structural equivalents, or in a combination of one or more. Embodiments of the subject matter described in this disclosure may be implemented as one or more computer programs, ie, one or more of computer program instructions encoded on a tangible, non-transitory program carrier for execution by, or to control the operation of, data processing apparatus. multiple modules. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagating signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode and transmit information to a suitable receiver device for interpretation by the data. The processing device executes. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of these.
本公开中描述的处理及逻辑流程可以由执行一个或多个计算机程序的一个或多个可编程计算机执行,以通过根据输入数据进行操作并生成输出来执行相应的功能。所述处理及逻辑流程还可以由专用逻辑电路—例如FPGA(现场可编程门阵列)或ASIC(专 用集成电路)来执行,并且装置也可以实现为专用逻辑电路。The processes and logic flows described in this disclosure can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
适合用于执行计算机程序的计算机包括,例如通用和/或专用微处理器,或任何其他类型的中央处理单元。通常,中央处理单元将从只读存储器和/或随机存取存储器接收指令和数据。计算机的基本组件包括用于实施或执行指令的中央处理单元以及用于存储指令和数据的一个或多个存储器设备。通常,计算机还将包括用于存储数据的一个或多个大容量存储设备,例如磁盘、磁光盘或光盘等,或者计算机将可操作地与此大容量存储设备耦接以从其接收数据或向其传送数据,抑或两种情况兼而有之。然而,计算机不是必须具有这样的设备。此外,计算机可以嵌入在另一设备中,例如移动电话、个人数字助理(PDA)、移动音频或视频播放器、游戏操纵台、全球定位系统(GPS)接收机、或例如通用串行总线(USB)闪存驱动器的便携式存储设备,仅举几例。Computers suitable for the execution of a computer program include, for example, general and/or special purpose microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from read only memory and/or random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include, or be operatively coupled to, one or more mass storage devices for storing data, such as magnetic, magneto-optical or optical disks, to receive data therefrom or to It transmits data, or both. However, the computer does not have to have such a device. Additionally, the computer may be embedded in another device, such as a mobile phone, personal digital assistant (PDA), mobile audio or video player, game console, global positioning system (GPS) receiver, or a universal serial bus (USB) ) flash drives for portable storage devices, to name a few.
适合于存储计算机程序指令和数据的计算机可读介质包括所有形式的非易失性存储器、媒介和存储器设备,例如包括半导体存储器设备(例如EPROM、EEPROM和闪存设备)、磁盘(例如内部硬盘或可移动盘)、磁光盘以及CD ROM和DVD-ROM盘。处理器和存储器可由专用逻辑电路补充或并入专用逻辑电路中。Computer-readable media suitable for storage of computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices (eg, EPROM, EEPROM, and flash memory devices), magnetic disks (eg, internal hard disks or flash memory devices). removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by or incorporated in special purpose logic circuitry.
虽然本公开包含许多具体实施细节,但是这些不应被解释为限制任何公开的范围或所要求保护的范围,而是主要用于描述特定公开的具体实施例的特征。本公开内在多个实施例中描述的某些特征也可以在单个实施例中被组合实施。另一方面,在单个实施例中描述的各种特征也可以在多个实施例中分开实施或以任何合适的子组合来实施。此外,虽然特征可以如上所述在某些组合中起作用并且甚至最初如此要求保护,但是来自所要求保护的组合中的一个或多个特征在一些情况下可以从该组合中去除,并且所要求保护的组合可以指向子组合或子组合的变型。Although this disclosure contains many specific implementation details, these should not be construed as limiting the scope of any disclosed or claimed, but rather as describing features of particular embodiments of particular disclosure. Certain features that are described in this disclosure in multiple embodiments can also be implemented in combination in a single embodiment. On the other hand, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may function as described above in certain combinations and even be originally claimed as such, one or more features from a claimed combination may in some cases be removed from the combination and the claimed A protected combination may point to a subcombination or a variation of a subcombination.
类似地,虽然在附图中以特定顺序描绘了操作,但是这不应被理解为要求这些操作以所示的特定顺序执行或顺次执行、或者要求所有例示的操作被执行,以实现期望的结果。在某些情况下,多任务和并行处理可能是有利的。此外,上述实施例中的各种系统模块和组件的分离不应被理解为在所有实施例中均需要这样的分离,并且应当理解,所描述的程序组件和系统通常可以一起集成在单个软件产品中,或者封装成多个软件产品。Similarly, although operations are depicted in the figures in a particular order, this should not be construed as requiring the operations to be performed in the particular order shown or sequentially, or that all illustrated operations be performed, to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. Furthermore, the separation of the various system modules and components in the above-described embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems may generally be integrated together in a single software product , or packaged into multiple software products.
以上所述仅为本公开一个或多个实施例的一些实施例而已,并不用以限制本公开一个或多个实施例,凡在本公开一个或多个实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开一个或多个实施例保护的范围之内。The above descriptions are only some examples of one or more embodiments of the present disclosure, and are not intended to limit the one or more embodiments of the present disclosure. All within the spirit and principles of the one or more embodiments of the present disclosure, all Any modification, equivalent replacement, improvement, etc. made should be included within the protection scope of one or more embodiments of the present disclosure.

Claims (20)

  1. 一种摄像模组,所述摄像模组包括:A camera module, the camera module comprises:
    补光灯,所述补光灯的数量小于或等于预设值;fill light, the number of the fill light is less than or equal to a preset value;
    处理器,所述处理器用于在所述补光灯开启的情况下,检测所述摄像模组采集的图像的图像亮度,并根据所述摄像模组采集的图像的图像亮度,调节所述摄像模组的拍摄参数。a processor, which is configured to detect the image brightness of the image collected by the camera module when the fill light is turned on, and adjust the camera according to the image brightness of the image collected by the camera module The shooting parameters of the module.
  2. 根据权利要求1所述的摄像模组,其中,The camera module according to claim 1, wherein,
    所述摄像模组还包括镜头和盖板,所述盖板盖设于所述镜头和所述补光灯上;The camera module further includes a lens and a cover, and the cover is covered on the lens and the fill light;
    所述盖板的截止波长小于第一波长阈值;和/或the cut-off wavelength of the cover plate is less than the first wavelength threshold; and/or
    所述镜头包括红外滤光片,所述红外滤光片的截止波长小于第二波长阈值。The lens includes an infrared filter, and the cutoff wavelength of the infrared filter is smaller than the second wavelength threshold.
  3. 根据权利要求1或2所述的摄像模组,所述摄像模组还包括传感器,所述传感器设置于所述摄像模组的镜头沿光轴方向的一端,用于感测经过所述镜头进入所述摄像模组的光线;The camera module according to claim 1 or 2, further comprising a sensor, the sensor is arranged at one end of the lens of the camera module along the optical axis direction, and is used for sensing the entering through the lens. the light of the camera module;
    所述传感器在第一波长的量子效率不低于第一预设效率值,在第二波长的量子效率不低于第二预设效率值;The quantum efficiency of the sensor at the first wavelength is not lower than the first preset efficiency value, and the quantum efficiency at the second wavelength is not lower than the second preset efficiency value;
    所述第一波长不超过750nm,所述第二波长不小于950nm,所述第一预设效率值不低于50%,所述第二预设效率值不低于10%。The first wavelength is not more than 750 nm, the second wavelength is not less than 950 nm, the first preset efficiency value is not less than 50%, and the second preset efficiency value is not less than 10%.
  4. 根据权利要求1-3任一所述的摄像模组,所述摄像模组还包括用于向所述补光灯提供补光控制信号的灯板,所述补光灯固定在所述灯板上。The camera module according to any one of claims 1-3, further comprising a lamp board for providing a fill light control signal to the fill light, and the fill light is fixed on the light board superior.
  5. 根据权利要求1-4任一所述的摄像模组,其中,所述摄像模组包括单个补光灯。The camera module according to any one of claims 1-4, wherein the camera module comprises a single fill light.
  6. 根据权利要求1-5任一所述的摄像模组,其中,The camera module according to any one of claims 1-5, wherein,
    所述处理器用于:响应于所述摄像模组在所述补光灯开启的情况下采集的图像的图像亮度未达到参考亮度,调节所述摄像模组的以下至少一个拍摄参数:曝光时间、模拟增益、数字增益。The processor is configured to adjust at least one of the following shooting parameters of the camera module: exposure time, Analog gain, digital gain.
  7. 根据权利要求1-6任一所述的摄像模组,其中,The camera module according to any one of claims 1-6, wherein,
    所述处理器用于:响应于所述摄像模组在所述补光灯开启的情况下采集的图像的图像亮度未达到参考亮度,按照如下方式调节所述摄像模组的拍摄参数:The processor is configured to adjust the shooting parameters of the camera module in the following manner in response to the image brightness of the image collected by the camera module when the fill light is turned on does not reach the reference brightness:
    重复执行第一调整操作直到所述摄像模组的曝光时间达到预设的最大曝光时间或所述摄像模组采集的图像的图像亮度达到所述参考亮度;所述第一调整操作包括:增大所述摄像模组的曝光时间并利用所述摄像模组采集图像;The first adjustment operation is repeatedly performed until the exposure time of the camera module reaches a preset maximum exposure time or the image brightness of the image collected by the camera module reaches the reference brightness; the first adjustment operation includes: increasing the exposure time of the camera module and use the camera module to capture images;
    响应于在所述摄像模组的曝光时间达到最大曝光时间的情况下所述摄像模组采集 的图像的图像亮度未达到参考亮度,重复执行第二调整操作直到所述摄像模组采集的图像的图像亮度达到参考亮度;所述第二调整操作包括:调整所述摄像模组的模拟增益和数字增益中的至少一项,并利用所述摄像模组采集图像。In response to the image brightness of the image captured by the camera module not reaching the reference brightness when the exposure time of the camera module reaches the maximum exposure time, the second adjustment operation is repeatedly performed until the image captured by the camera module is The image brightness reaches the reference brightness; the second adjustment operation includes: adjusting at least one of the analog gain and the digital gain of the camera module, and using the camera module to capture images.
  8. 根据权利要求1-7任一所述的摄像模组,其中,The camera module according to any one of claims 1-7, wherein,
    所述处理器,还用于获取所述图像中预定区域的图像亮度,并将所述图像中预定区域的图像亮度作为所述图像的图像亮度,所述预定区域包括所述图像中的预定对象所在的区域。The processor is further configured to acquire the image brightness of a predetermined area in the image, and use the image brightness of the predetermined area in the image as the image brightness of the image, where the predetermined area includes predetermined objects in the image the area in which it is located.
  9. 根据权利要求1-8任一所述的摄像模组,其中,The camera module according to any one of claims 1-8, wherein,
    所述处理器,还用于:The processor is also used to:
    响应于在所述补光灯未开启的情况下,所述摄像模组采集的图像的图像亮度未达到参考亮度,调节所述摄像模组的拍摄参数;和/或,In response to the fact that the image brightness of the image collected by the camera module does not reach the reference brightness when the fill light is not turned on, adjusting the shooting parameters of the camera module; and/or,
    响应于在所述补光灯未开启的情况下,将所述摄像模组的拍摄参数调整至预设的门限值时所述摄像模组采集的图像的图像亮度未达到参考亮度,控制所述摄像模组中的补光灯开启。In response to the fact that when the fill light is not turned on, the image brightness of the image collected by the camera module when the shooting parameters of the camera module are adjusted to the preset threshold value does not reach the reference brightness, the control system is controlled. The fill light in the camera module is turned on.
  10. 根据权利要求1-9任一所述的摄像模组,其中,所述补光灯和所述摄像模组的镜头沿所述摄像模组的口径方向平行设置;和/或The camera module according to any one of claims 1-9, wherein the fill light and the lens of the camera module are arranged in parallel along the aperture direction of the camera module; and/or
    所述补光灯的补光波长是850nm至1000nm;和/或The fill light wavelength of the fill light is 850nm to 1000nm; and/or
    所述摄像模组的横向总长度是30mm至45mm,所述摄像模组的纵向开窗尺寸是20mm至35mm,所述摄像模组的纵向总长度是30mm至45mm;和/或The total horizontal length of the camera module is 30mm to 45mm, the vertical window size of the camera module is 20mm to 35mm, and the total vertical length of the camera module is 30mm to 45mm; and/or
    所述摄像模组包括车载摄像模组。The camera module includes a vehicle-mounted camera module.
  11. 一种车辆,所述车辆包括权利要求1~10任一所述的摄像模组。A vehicle comprising the camera module according to any one of claims 1 to 10.
  12. 一种摄像模组的控制方法,其中,所述摄像模组包括补光灯和处理器,所述补光灯的数量小于或等于预设值;A control method for a camera module, wherein the camera module includes a fill light and a processor, and the number of the fill light is less than or equal to a preset value;
    所述控制方法包括:The control method includes:
    在所述补光灯开启的情况下,检测所述摄像模组采集的图像的图像亮度;When the fill light is turned on, detecting the image brightness of the image collected by the camera module;
    根据所述摄像模组采集的图像的图像亮度,调节所述摄像模组的拍摄参数。According to the image brightness of the image collected by the camera module, the shooting parameters of the camera module are adjusted.
  13. 根据权利要求12所述的方法,其中,所述根据所述摄像模组采集的图像的图像亮度,调节所述摄像模组的拍摄参数,包括:The method according to claim 12, wherein the adjusting the shooting parameters of the camera module according to the image brightness of the image collected by the camera module comprises:
    响应于检测到所述摄像模组在所述补光灯开启的情况下采集的图像的图像亮度未达到参考亮度,调节所述摄像模组的以下至少一个拍摄参数:曝光时间、模拟增益、数字增益。In response to detecting that the image brightness of the image collected by the camera module when the fill light is turned on does not reach the reference brightness, adjust at least one of the following shooting parameters of the camera module: exposure time, analog gain, digital gain.
  14. 根据权利要求12或13所述的方法,其中,所述根据所述摄像模组采集的图像的图像亮度,调节所述摄像模组的拍摄参数,包括:The method according to claim 12 or 13, wherein the adjusting the shooting parameters of the camera module according to the image brightness of the image collected by the camera module comprises:
    响应于检测到所述摄像模组在所述补光灯开启的情况下采集的图像的图像亮度未达到参考亮度,按照如下方式调节所述摄像模组的拍摄参数:In response to detecting that the image brightness of the image collected by the camera module when the fill light is turned on does not reach the reference brightness, the shooting parameters of the camera module are adjusted as follows:
    重复执行第一调整操作直到所述摄像模组的曝光时间达到预设的最大曝光时间或所述摄像模组采集的图像的图像亮度达到所述参考亮度;所述第一调整操作包括:增大所述摄像模组的曝光时间并利用所述摄像模组采集图像;The first adjustment operation is repeatedly performed until the exposure time of the camera module reaches a preset maximum exposure time or the image brightness of the image collected by the camera module reaches the reference brightness; the first adjustment operation includes: increasing the exposure time of the camera module and use the camera module to capture images;
    响应于在所述摄像模组的曝光时间达到最大曝光时间的情况下所述摄像模组采集的图像的图像亮度未达到参考亮度,重复执行第二调整操作直到所述摄像模组采集的图像的图像亮度达到参考亮度;所述第二调整操作包括:调整所述摄像模组的模拟增益和数字增益中的至少一项,并利用所述摄像模组采集图像。In response to the image brightness of the image captured by the camera module not reaching the reference brightness when the exposure time of the camera module reaches the maximum exposure time, the second adjustment operation is repeatedly performed until the image captured by the camera module is The image brightness reaches the reference brightness; the second adjustment operation includes: adjusting at least one of the analog gain and the digital gain of the camera module, and using the camera module to capture images.
  15. 根据权利要求12至14任一所述的方法,其中,所述检测所述摄像模组采集的图像的图像亮度,包括:The method according to any one of claims 12 to 14, wherein the detecting the image brightness of the image collected by the camera module comprises:
    获取所述图像中预定区域的图像亮度,并将所述图像中预定区域的图像亮度作为所述图像的图像亮度,所述预定区域包括所述图像中的预定对象所在的区域。The image brightness of the predetermined area in the image is acquired, and the image brightness of the predetermined area in the image is used as the image brightness of the image, and the predetermined area includes the area where the predetermined object in the image is located.
  16. 根据权利要求12至15任一所述的方法,其中,The method of any one of claims 12 to 15, wherein,
    所述方法还包括:The method also includes:
    响应于在所述补光灯未开启的情况下,所述摄像模组采集的图像的图像亮度未达到参考亮度,调节所述摄像模组的拍摄参数;和/或In response to the fact that the image brightness of the image collected by the camera module does not reach the reference brightness when the fill light is not turned on, adjusting the shooting parameters of the camera module; and/or
    响应于在所述补光灯未开启的情况下,将所述摄像模组的拍摄参数调整至预设的门限值时所述摄像模组采集的图像的图像亮度未达到参考亮度,控制所述摄像模组中的补光灯开启。In response to the fact that when the fill light is not turned on, the image brightness of the image collected by the camera module when the shooting parameters of the camera module are adjusted to the preset threshold value does not reach the reference brightness, the control system is controlled. The fill light in the camera module is turned on.
  17. 一种摄像模组的控制装置,其中,所述摄像模组包括补光灯和处理器,所述补光灯的数量小于或等于预设值;A control device for a camera module, wherein the camera module includes a fill light and a processor, and the number of the fill light is less than or equal to a preset value;
    所述控制装置包括:The control device includes:
    图像检测模块,用于在所述补光灯开启的情况下,检测所述摄像模组采集的图像的图像亮度;an image detection module, configured to detect the image brightness of the image collected by the camera module when the fill light is turned on;
    参数调整模块,用于根据所述摄像模组采集的图像的图像亮度调节所述摄像模组的拍摄参数。The parameter adjustment module is configured to adjust the shooting parameters of the camera module according to the image brightness of the image collected by the camera module.
  18. 根据权利要求17所述的装置,其中,The apparatus of claim 17, wherein,
    所述图像检测模块,用于获取所述图像中预定区域的图像亮度,并将所述图像中预 定区域的图像亮度作为所述图像的图像亮度,所述预定区域包括所述图像中的预定对象所在的区域。The image detection module is configured to acquire the image brightness of a predetermined area in the image, and use the image brightness of the predetermined area in the image as the image brightness of the image, where the predetermined area includes predetermined objects in the image the area in which it is located.
  19. 根据权利要求17或18所述的装置,所述装置还包括:The apparatus of claim 17 or 18, further comprising:
    灯控模块,用于响应于在所述补光灯未开启的情况下,将所述摄像模组的拍摄参数调整至预设的门限值时所述摄像模组采集的图像的图像亮度未达到参考亮度,控制所述摄像模组中的补光灯开启。The light control module is used to respond that the image brightness of the image collected by the camera module is not changed when the shooting parameters of the camera module are adjusted to a preset threshold value when the fill light is not turned on. When the reference brightness is reached, the fill light in the camera module is controlled to be turned on.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求12-16任一所述的方法。A computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method according to any one of claims 12-16.
PCT/CN2021/113601 2020-12-24 2021-08-19 Camera module and control method and apparatus therefor, vehicle, and storage medium WO2022134630A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011553948.1A CN112702489B (en) 2020-12-24 2020-12-24 Camera module, control method and device thereof, vehicle and storage medium
CN202011553948.1 2020-12-24

Publications (1)

Publication Number Publication Date
WO2022134630A1 true WO2022134630A1 (en) 2022-06-30

Family

ID=75509917

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/113601 WO2022134630A1 (en) 2020-12-24 2021-08-19 Camera module and control method and apparatus therefor, vehicle, and storage medium

Country Status (2)

Country Link
CN (1) CN112702489B (en)
WO (1) WO2022134630A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702489B (en) * 2020-12-24 2022-12-23 上海商汤临港智能科技有限公司 Camera module, control method and device thereof, vehicle and storage medium
CN113542557B (en) * 2021-06-29 2023-11-28 北京瞰瞰智能科技有限公司 Shooting light filling adjusting method, system and device for vehicle
CN113507569A (en) * 2021-06-30 2021-10-15 上海商汤临港智能科技有限公司 Control method and device of vehicle-mounted camera, equipment and medium
CN113691776B (en) * 2021-08-18 2024-02-09 南京领行科技股份有限公司 In-vehicle camera system and light supplementing method
CN113747012B (en) * 2021-08-31 2023-03-24 浙江大华技术股份有限公司 Camera device, light supplementing method and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469301A (en) * 2016-08-31 2017-03-01 北京天诚盛业科技有限公司 The adjustable face identification method of self adaptation and device
CN106534712A (en) * 2016-10-24 2017-03-22 北京旷视科技有限公司 Control method, image processing unit, light-filling and camera device
CN111447374A (en) * 2020-05-13 2020-07-24 重庆紫光华山智安科技有限公司 Light supplement adjusting method and device, electronic equipment and storage medium
CN112702489A (en) * 2020-12-24 2021-04-23 上海商汤临港智能科技有限公司 Camera module, control method and device thereof, vehicle and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10529206B2 (en) * 2017-05-08 2020-01-07 Amazon Technologies, Inc. Security devices and associated audio/video communication methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469301A (en) * 2016-08-31 2017-03-01 北京天诚盛业科技有限公司 The adjustable face identification method of self adaptation and device
CN106534712A (en) * 2016-10-24 2017-03-22 北京旷视科技有限公司 Control method, image processing unit, light-filling and camera device
CN111447374A (en) * 2020-05-13 2020-07-24 重庆紫光华山智安科技有限公司 Light supplement adjusting method and device, electronic equipment and storage medium
CN112702489A (en) * 2020-12-24 2021-04-23 上海商汤临港智能科技有限公司 Camera module, control method and device thereof, vehicle and storage medium

Also Published As

Publication number Publication date
CN112702489B (en) 2022-12-23
CN112702489A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
WO2022134630A1 (en) Camera module and control method and apparatus therefor, vehicle, and storage medium
CN109691079B (en) Imaging device and electronic apparatus
US20210218877A1 (en) Wdr imaging with led flicker mitigation
TWI516116B (en) System and method for automatic image capture control in digital imaging
WO2017036270A1 (en) Image signal processing method and system
US20210152757A1 (en) Solid-state imaging device, signal processing chip, and electronic apparatus
US9307207B2 (en) Glaring reduction for dynamic rearview mirror
JP2009171122A (en) Optical source color temperature estimation method, white balance adjustment apparatus, and image recognition apparatus
CN109672827B (en) Electronic device for combining multiple images and method thereof
US9842284B2 (en) Image processing apparatus and method, and program
CN113826105A (en) Image recognition apparatus and image recognition method
JP4400512B2 (en) In-vehicle camera control device
US9077909B2 (en) Strobe device, image photographing apparatus having the same, and method thereof
JP2006311031A (en) Imaging apparatus for moving body
US11012632B2 (en) Vehicular image pickup device and method of configuring same
JP2008230464A (en) Automatic exposure device for on-vehicle camera
CN113785560A (en) Imaging system
US10864854B2 (en) Vehicle camera device and method for setting the same
JP6525723B2 (en) Imaging device, control method therefor, program, and storage medium
US10841495B2 (en) Vehicle camera device and exposure parameter setting method thereof
US20100123795A1 (en) Image pickup apparatus and control method of the same
KR101244353B1 (en) Lane recognition device using reverse direction camera
JP2011228856A (en) On-vehicle camera system, image processing apparatus, image processing method, and program
KR102472629B1 (en) Image sensor for detecting infrared multi-band and electronic device using the same
CN110581955B (en) Image capturing device for vehicle and setting method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21908635

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/11/2023)