Cabin camera control method and device, electronic equipment and medium

By adjusting the gain of the camera in real time, the problem of image failure of the camera in the cockpit under high temperature is solved, ensuring the normal operation and image quality of the intelligent driving monitoring system.

CN118748745APending Publication Date: 2024-10-08FULSCIENCE AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410891585.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

The camera in the cockpit is prone to image failure in high temperature environments, which affects the normal operation of the intelligent driving monitoring system.

Method used

By collecting the camera temperature in real time, when it reaches the preset temperature upper limit, the gain of the photosensitive chip is reduced and the gain of the image signal processor is increased to reduce the camera temperature and improve image quality; when the temperature drops to the preset temperature lower limit, , restore the initial gain to restore image quality.

Benefits of technology

It effectively avoids image failure caused by high temperature and ensures the normal operation and image quality of the camera in high temperature environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748745A_ABST
    Figure CN118748745A_ABST
Patent Text Reader

Abstract

The invention provides a control method and device of a cabin camera, electronic equipment and a medium. The camera comprises a photosensitive chip and an image signal processor. The control method comprises the steps that the temperature of a camera in a vehicle cabin is collected in real time; when the temperature of the camera reaches a preset temperature upper limit value, reducing the gain of the photosensitive chip from a first initial gain to a first gain so as to reduce the temperature of the photosensitive chip; and increasing the gain of the image signal processor from the second initial gain to the second gain so as to improve the image quality of the image collected by the camera. Therefore, when the temperature of the camera in the cabin reaches the preset temperature upper limit value, the temperature of the camera is reduced by reducing the gain of the photosensitive chip; and meanwhile, the gain of the image signal processor is improved to improve the image quality of the photosensitive chip in a low-gain state, so that the situation that the camera in the cabin has image failure at a high temperature can be avoided, and the image quality is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a control method, a control device, an electronic device and a medium for a cockpit camera. Background Art

[0002] At present, new energy vehicles are developing rapidly in the direction of intelligent driving. The surveillance cameras inside the smart cockpit play an important role in the safety configuration of intelligent driving. They can be used to monitor the facial expressions, mental states, body movements, and information such as children and items left behind by the main driver, co-driver, and rear passengers, and provide monitoring information for the driver and the driving system. At present, the in-cabin monitoring system is divided into DMS and OMS. DMS monitors the driver's information, and OMS monitors the co-driver and rear passenger information. However, due to the particularity of the driving environment, the camera in the cockpit needs to continue to operate for a long time in the working environment to collect data for algorithm recognition, and it is easy to have image failure due to high temperature. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a control method, a control device, an electronic device and a medium for a cockpit camera, so as to solve the problem in the prior art that the camera in the cockpit is prone to image failure due to high temperature.

[0004] The embodiment of the present application provides a control method for a cockpit camera, wherein the camera includes a photosensitive chip and an image signal processor; the control method includes:

[0005] Real-time collection of temperature from the camera in the vehicle cabin;

[0006] When the temperature of the camera reaches a preset upper temperature limit, reducing the gain of the photosensitive chip from a first initial gain to a first gain to reduce the temperature of the photosensitive chip;

[0007] The gain of the image signal processor is increased from the second initial gain to the second gain to improve the image quality of the image captured by the camera.

[0008] Furthermore, after the gain of the image signal processor is increased to a second gain, the control method further includes:

[0009] When the temperature of the camera reaches a preset lower temperature limit, increasing the gain of the photosensitive chip from the first gain to the first initial gain;

[0010] The gain of the image signal processor is reduced from the second gain to the second initial gain.

[0011] Furthermore, the photosensitive chip generates a photocurrent based on a photoelectric effect, the photocurrent forms a charging effect on the internal capacitor of the photosensitive chip for discharge, and the discharge current is amplified by a simulator and an A / D converter to obtain a digital signal; the gain of the photosensitive chip is reduced from a first initial gain to a first gain to reduce the temperature of the photosensitive chip, including:

[0012] The gain of the photosensitive chip is reduced from a first initial gain to a first gain, and the photocurrent and the discharge current are reduced to reduce exposure, thereby reducing the temperature of the photosensitive chip.

[0013] Further, the first gain and the second gain are determined by:

[0014] A pre-calibrated temperature-gain mapping relationship table is searched according to the temperature of the camera to determine the first gain and the second gain.

[0015] Furthermore, the temperature-gain mapping relationship table is calibrated in the following manner:

[0016] Under experimental conditions, when the camera of the same model is at the operating temperature, an original picture collected by the camera of the same model is obtained, and the gain of the photosensitive chip in the camera of the same model is determined as the first original gain, and the gain of the image signal processor in the camera of the same model is determined as the second original gain;

[0017] Heating the camera of the same model to a heating temperature, and reducing the gain of the image signal processor in the camera of the same model from the first original gain to a plurality of first experimental gains;

[0018] Under each first experimental gain, respectively increasing the gain of the image signal processor in the camera of the same model from the second original gain to multiple second experimental gains;

[0019] Under each gain condition combination of the first experimental gain and the second experimental gain, determining the temperature change trend of the camera of the same model and the image quality of the image captured by the camera of the same model;

[0020] Based on the temperature change trend and the image quality, the first gain and the second gain corresponding to the heating temperature are determined from the gain condition combinations of each first experimental gain and each second experimental gain, and the gain mapping relationship corresponding to the heating temperature in the temperature-gain mapping relationship table is obtained.

[0021] Furthermore, the camera is provided with a fill light; the control method further includes:

[0022] Collecting the brightness of the vehicle cabin in real time, and turning on the fill light according to the brightness to supplement infrared light into the vehicle cabin under dark light conditions;

[0023] Predicting a temperature change trend of the camera according to the brightness;

[0024] When it is predicted according to the temperature change trend that the temperature of the camera will reach a preset temperature upper limit after a first preset period of time, the gain of the photosensitive chip is reduced in advance and the gain of the image signal processor is increased.

[0025] Furthermore, the preset temperature upper limit is set according to the junction temperature of the photosensitive chip.

[0026] The present application also provides a control device for a cockpit camera, the control device comprising:

[0027] The acquisition module is used to collect the temperature of the camera in the vehicle cabin in real time;

[0028] A first control module, configured to reduce the gain of the photosensitive chip from a first initial gain to a first gain when the temperature of the camera reaches a preset upper temperature limit, so as to reduce the temperature of the photosensitive chip;

[0029] The second control module is used to increase the gain of the image signal processor from the second initial gain to the second gain, so as to improve the image quality of the image captured by the camera.

[0030] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of a method for controlling a cockpit camera as described above are performed.

[0031] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for controlling a cockpit camera as described above are executed.

[0032] The embodiments of the present application provide a control method, a control device, an electronic device and a medium for a cockpit camera. When the temperature of the camera in the cockpit reaches a preset temperature upper limit, the camera temperature is lowered by reducing the gain of a photosensitive chip. At the same time, the gain of an image signal processor is increased to improve the image quality of the photosensitive chip in a low gain state, thereby avoiding image failure of the camera in the cockpit at high temperatures while ensuring image quality.

[0033] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A flow chart showing a method for controlling a cockpit camera provided in an embodiment of the present application is shown;

[0036] Figure 2 A schematic diagram showing the structure of a control device for a cockpit camera provided in an embodiment of the present application is shown;

[0037] Figure 3 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0038] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0039] According to research, new energy vehicles are developing rapidly in the direction of intelligent driving. The surveillance cameras inside the smart cockpit play an important role in the safety configuration of intelligent driving. They can be used to monitor the facial expressions, mental state, body movements, and information such as children and items left behind by the main driver, co-driver, and rear passengers, and provide monitoring information for the driver and the driving system. At present, the in-cabin monitoring system is divided into DMS and OMS. DMS monitors the driver's information, and OMS monitors the co-driver and rear passenger information. Although the existing cockpit cameras have adopted a certain heat dissipation structure, such as adding heat dissipation fishtail fins inside the camera, upper and lower shells of thermal conductive materials, or using thermal conductive plates and silicone grease to conduct heat. However, due to the particularity of the driving environment, the camera in the cockpit needs to continue to operate for a long time in the working environment to collect data for algorithm recognition, and it is still easy to have image failure due to high temperature.

[0040] Based on this, an embodiment of the present application provides a control method for a cockpit camera to solve the problem in the prior art that the camera in the cockpit is prone to image failure due to high temperature.

[0041] See also Figure 1 , Figure 1 This is a flow chart of a method for controlling a cockpit camera provided in an embodiment of the present application. Figure 1 As shown in , the control method provided by the embodiment of the present application includes:

[0042] S101. Collect the temperature of a camera in a vehicle cabin in real time.

[0043] In this step, when the camera installed in the vehicle cabin is operating in a working environment, the temperature of the camera in the cabin can be collected in real time through devices such as temperature sensors.

[0044] S102. When the temperature of the camera reaches a preset upper temperature limit, the gain of the photosensitive chip is reduced from a first initial gain to a first gain to reduce the temperature of the photosensitive chip.

[0045] In this step, when it is determined that the temperature of the camera reaches a preset upper temperature limit, in order to prevent the temperature from continuing to rise and causing the camera to fail to collect images, a high temperature protection strategy is activated to control the temperature of the camera. The preset upper temperature limit can be set according to the junction temperature of the photosensitive chip, for example, set to a temperature value that is a certain temperature lower than the junction temperature of the photosensitive chip.

[0046] The following will specifically introduce the camera high temperature protection principle in the embodiment of the present application.

[0047] The photosensitive chip sensor internal diode applies reverse voltage to charge and react with photons to generate photoelectric effect, generating photocurrent; the photocurrent forms a charging effect on the MOS capacitor inside the photosensitive chip and discharges, and the discharge current is amplified by the simulator and converted into a digital signal by the A / D converter. Then step S102 may include:

[0048] The gain of the photosensitive chip is reduced from a first initial gain to a first gain, and the photocurrent and the discharge current are reduced to reduce exposure, thereby reducing the temperature of the photosensitive chip.

[0049] Gain directly affects the exposure level of the chip. Exposure is caused by photons stimulating the chip's photodiode to produce electrons. The number of excited electrons determines the size of the discharge current. When the discharge current changes, the image's signal-to-noise ratio, dynamic range and other related optical indicators will change accordingly, thereby changing the image quality.

[0050] S103: Increase the gain of the image signal processor from the second initial gain to the second gain, so as to improve the image quality of the image captured by the camera.

[0051] In step S102, by reducing the gain of the photosensitive chip, the temperature of the chip can be reduced to protect the camera from high temperature. However, as the gain of the photosensitive chip decreases, the quality of the image finally collected by the camera decreases, which may also affect the normal operation of the camera.

[0052] Therefore, in step S103, the embodiment of the present application simultaneously increases the gain of the image signal processor (ISP) to improve the image quality of the camera when the photosensitive chip is in a low gain state. By sacrificing part of the image quality, the high temperature is avoided so that the photosensitive chip reaches the junction temperature and fails, that is, it is ensured that the quality of the image collected by the camera remains as consistent as possible before and after the high temperature protection strategy is used.

[0053] In a specific implementation, the first gain and the second gain are determined by:

[0054] A pre-calibrated temperature-gain mapping relationship table is searched according to the temperature of the camera to determine the first gain and the second gain.

[0055] Here, the embodiment of the present application pre-calibrates the first gain and the second gain corresponding to different temperatures under laboratory conditions to form a temperature-gain mapping relationship table. In this way, in the application stage, the gain can be determined by looking up the temperature table, and the camera can be controlled according to the gain.

[0056] Specifically, the temperature-gain mapping relationship table is calibrated in the following way:

[0057] Under experimental conditions, when a camera of the same model is at an operating temperature, an original picture collected by the camera of the same model is obtained, and the gain of the photosensitive chip in the camera of the same model is determined as a first original gain, and the gain of the image signal processor in the camera of the same model is determined as a second original gain; the camera of the same model is heated to a heating temperature, and the gain of the image signal processor in the camera of the same model is reduced from the first original gain to a plurality of first experimental gains; under each first experimental gain, the gain of the image signal processor in the camera of the same model is increased from the second original gain to a plurality of second experimental gains; under each combination of gain conditions of the first experimental gain and the second experimental gain, the temperature change trend of the camera of the same model and the image quality of the image collected by the camera of the same model are determined;

[0058] Based on the temperature change trend and the image quality, the first gain and the second gain corresponding to the heating temperature are determined from the gain condition combination of each first experimental gain and each second experimental gain, that is, the optimal gain condition combination. This gain condition combination must ensure that the camera temperature can be effectively reduced and that the image collected by the camera has sufficient image quality, so as to obtain the gain mapping relationship corresponding to the heating temperature in the temperature-gain mapping relationship table. Repeating this experimental process can obtain the gain mapping relationships corresponding to multiple heating temperatures, thereby forming a temperature-gain mapping relationship table.

[0059] Furthermore, the camera is provided with a fill light; the fill light can supplement infrared light to the cabin environment under low brightness dark conditions to ensure image clarity. However, turning on the fill light may further increase the camera temperature, so accordingly, the control method further includes:

[0060] The brightness in the vehicle cabin is collected in real time, and the fill light is turned on according to the brightness to supplement infrared light into the vehicle cabin under dark light conditions; the temperature change trend of the camera is predicted according to the brightness; when it is predicted according to the temperature change trend that the temperature of the camera will reach a preset temperature upper limit after a first preset time period, the gain of the photosensitive chip is reduced in advance and the gain of the image signal processor is increased.

[0061] Here, when the temperature of the camera is predicted to reach the preset temperature upper limit within the first preset time according to the brightness, the gain of the photosensitive chip can be reduced in advance, and the gain of the image signal processor can be increased at the same time, so as to avoid the hysteresis effect caused by reducing the gain of the photosensitive chip after the temperature of the camera rises rapidly as the fill light is performed and exceeds the preset temperature upper limit. At this time, the gain of the photosensitive chip can be reduced to the first gain, or it can be set according to the first gain, such as a smaller reduction compared to the first gain; the gain of the image signal processor can be increased to the second gain, or it can be set according to the second gain, such as a smaller increase compared to the second gain. The first preset time can be set as needed.

[0062] Furthermore, after step S103, the control method further includes:

[0063] S104: When the temperature of the camera reaches a preset temperature lower limit, increasing the gain of the photosensitive chip from the first gain to the first initial gain.

[0064] S105: Reduce the gain of the image signal processor from the second gain to the second initial gain.

[0065] Here, after adopting the high temperature protection strategy, the temperature of the camera will gradually decrease. When the temperature of the camera drops to the preset temperature lower limit, the photosensitive chip and the image signal processor can be restored to the initial state, thereby restoring the image quality to the same as the initial state. The preset temperature lower limit can be set according to the preset temperature upper limit, for example, set to a temperature value that is a certain temperature lower than the preset temperature upper limit.

[0066] In one example, when the camera temperature reaches a preset upper temperature limit, the gain of the photosensitive chip can be set to 1X and the gain of the image signal processor can be set to 10X; when the camera temperature reaches a preset lower temperature limit, the gain of the photosensitive chip can be set to 15.5X and the gain of the image signal processor can be set to 1X.

[0067] An embodiment of the present application provides a control method for a cockpit camera, wherein the camera includes a photosensitive chip and an image signal processor; the control method includes: collecting the temperature of the camera in the vehicle cabin in real time; when the temperature of the camera reaches a preset temperature upper limit, reducing the gain of the photosensitive chip from a first initial gain to a first gain to reduce the temperature of the photosensitive chip; and increasing the gain of the image signal processor from a second initial gain to a second gain to improve the image quality of the image collected by the camera.

[0068] In this way, when the temperature of the camera in the cockpit reaches the preset upper temperature limit, the camera temperature is lowered by reducing the gain of the photosensitive chip; at the same time, the gain of the image signal processor is increased to improve the image quality of the photosensitive chip in the low gain state, thereby avoiding image failure of the camera in the cockpit at high temperature while ensuring image quality.

[0069] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of a control device for a cockpit camera provided in an embodiment of the present application. Figure 2 As shown in , the control device 200 includes:

[0070] The acquisition module 210 is used to acquire the temperature of the camera in the vehicle cabin in real time;

[0071] The first control module 220 is used to reduce the gain of the photosensitive chip from the first initial gain to the first gain when the temperature of the camera reaches a preset upper temperature limit, so as to reduce the temperature of the photosensitive chip;

[0072] The second control module 230 is used to increase the gain of the image signal processor from the second initial gain to the second gain, so as to improve the image quality of the image captured by the camera.

[0073] Further, after the gain of the image signal processor is increased to the second gain, when the temperature of the camera reaches a preset temperature lower limit, the first control module 220 is further configured to increase the gain of the photosensitive chip from the first gain to the first initial gain;

[0074] The second control module 230 is further configured to reduce the gain of the image signal processor from the second gain to the second initial gain.

[0075] Further, the photosensitive chip generates a photocurrent based on the photoelectric effect, and the photocurrent forms a charging effect on the internal capacitor of the photosensitive chip to discharge, and the discharge current is amplified by the simulator and the A / D converter to obtain a digital signal; when the first control module 220 is used to reduce the gain of the photosensitive chip from the first initial gain to the first gain to reduce the temperature of the photosensitive chip, the first control module 220 is used to:

[0076] The gain of the photosensitive chip is reduced from a first initial gain to a first gain, and the photocurrent and the discharge current are reduced to reduce exposure, thereby reducing the temperature of the photosensitive chip.

[0077] Furthermore, the second control module 230 is further configured to determine the first gain and the second gain in the following manner:

[0078] A pre-calibrated temperature-gain mapping relationship table is searched according to the temperature of the camera to determine the first gain and the second gain.

[0079] Furthermore, the control device 200 further includes a calibration module; the calibration module is used to calibrate the temperature-gain mapping relationship table in the following manner:

[0080] Under experimental conditions, when the camera of the same model is at the operating temperature, an original picture collected by the camera of the same model is obtained, and the gain of the photosensitive chip in the camera of the same model is determined as the first original gain, and the gain of the image signal processor in the camera of the same model is determined as the second original gain;

[0081] Heating the camera of the same model to a heating temperature, and reducing the gain of the image signal processor in the camera of the same model from the first original gain to a plurality of first experimental gains;

[0082] Under each first experimental gain, respectively increasing the gain of the image signal processor in the camera of the same model from the second original gain to multiple second experimental gains;

[0083] Under each gain condition combination of the first experimental gain and the second experimental gain, determining the temperature change trend of the camera of the same model and the image quality of the image captured by the camera of the same model;

[0084] Based on the temperature change trend and the image quality, the first gain and the second gain corresponding to the heating temperature are determined from the gain condition combinations of each first experimental gain and each second experimental gain, and the gain mapping relationship corresponding to the heating temperature in the temperature-gain mapping relationship table is obtained.

[0085] Furthermore, the camera is provided with a fill light; the control device 200 further includes: a third control module; the third control module is used for:

[0086] Collecting the brightness of the vehicle cabin in real time, and turning on the fill light according to the brightness to supplement infrared light into the vehicle cabin under dark light conditions;

[0087] Predicting a temperature change trend of the camera according to the brightness;

[0088] When it is predicted according to the temperature change trend that the temperature of the camera will reach a preset temperature upper limit after a first preset period of time, the gain of the photosensitive chip is reduced in advance and the gain of the image signal processor is increased.

[0089] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 3 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0090] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The steps of a method for controlling a cockpit camera in the method embodiment shown are specifically implemented in accordance with the method embodiment and will not be described in detail here.

[0091] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The steps of a method for controlling a cockpit camera in the method embodiment shown are specifically implemented in accordance with the method embodiment and will not be described in detail here.

[0092] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0093] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0095] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0096] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0097] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for controlling a cockpit camera, characterized in that: The camera includes a photosensitive chip and an image signal processor; the control method includes: Real-time collection of temperature from the camera in the vehicle cabin; When the temperature of the camera reaches a preset upper temperature limit, reducing the gain of the photosensitive chip from a first initial gain to a first gain to reduce the temperature of the photosensitive chip; The gain of the image signal processor is increased from the second initial gain to the second gain to improve the image quality of the image captured by the camera.

2. The control method according to claim 1, characterized in that: After increasing the gain of the image signal processor to a second gain, the control method further includes: When the temperature of the camera reaches a preset lower temperature limit, increasing the gain of the photosensitive chip from the first gain to the first initial gain; The gain of the image signal processor is reduced from the second gain to the second initial gain.

3. The control method according to claim 1, characterized in that: The photosensitive chip generates a photocurrent based on the photoelectric effect, the photocurrent forms a charging effect on the internal capacitor of the photosensitive chip to discharge, and the discharge current is amplified by a simulator and an A / D converter to obtain a digital signal; the gain of the photosensitive chip is reduced from a first initial gain to a first gain to reduce the temperature of the photosensitive chip, including: The gain of the photosensitive chip is reduced from a first initial gain to a first gain, and the photocurrent and the discharge current are reduced to reduce exposure, thereby reducing the temperature of the photosensitive chip.

4. The control method according to claim 1, characterized in that: The first gain and the second gain are determined by: A pre-calibrated temperature-gain mapping relationship table is searched according to the temperature of the camera to determine the first gain and the second gain.

5. The control method according to claim 1, characterized in that: The temperature-gain mapping relationship table is calibrated in the following manner: Under experimental conditions, when the camera of the same model is at the operating temperature, an original picture collected by the camera of the same model is obtained, and the gain of the photosensitive chip in the camera of the same model is determined as the first original gain, and the gain of the image signal processor in the camera of the same model is determined as the second original gain; Heating the camera of the same model to a heating temperature, and reducing the gain of the image signal processor in the camera of the same model from the first original gain to a plurality of first experimental gains; Under each first experimental gain, respectively increasing the gain of the image signal processor in the camera of the same model from the second original gain to multiple second experimental gains; Under each gain condition combination of the first experimental gain and the second experimental gain, determining the temperature change trend of the camera of the same model and the image quality of the image captured by the camera of the same model; Based on the temperature change trend and the image quality, the first gain and the second gain corresponding to the heating temperature are determined from the gain condition combinations of each first experimental gain and each second experimental gain, and the gain mapping relationship corresponding to the heating temperature in the temperature-gain mapping relationship table is obtained.

6. The control method according to claim 1, characterized in that: The camera is provided with a fill light; the control method further comprises: Collecting the brightness of the vehicle cabin in real time, and turning on the fill light according to the brightness to supplement infrared light into the vehicle cabin under dark light conditions; Predicting a temperature change trend of the camera according to the brightness; When it is predicted according to the temperature change trend that the temperature of the camera will reach a preset temperature upper limit after a first preset period of time, the gain of the photosensitive chip is reduced in advance and the gain of the image signal processor is increased.

7. The method according to claim 1, characterized in that The preset temperature upper limit value is set according to the junction temperature of the photosensitive chip.

8. A control device for a cockpit camera, characterized in that: The camera includes a photosensitive chip and an image signal processor; the control device includes: The acquisition module is used to collect the temperature of the camera in the vehicle cabin in real time; A first control module, configured to reduce the gain of the photosensitive chip from a first initial gain to a first gain when the temperature of the camera reaches a preset upper temperature limit, so as to reduce the temperature of the photosensitive chip; The second control module is used to increase the gain of the image signal processor from the second initial gain to the second gain, so as to improve the image quality of the image captured by the camera.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of a method for controlling a cockpit camera as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for controlling a cockpit camera according to any one of claims 1 to 7 are executed.