Shooting module protection method and device, computer readable medium and electronic device

By monitoring and analyzing light types and automatically adjusting the light intensity of the camera module, it solves the accuracy and efficiency problems of camera module protection in laser scenarios in the existing technology, extends the service life of the equipment and reduces costs.

CN115103131BActive Publication Date: 2024-09-06GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210680398.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2024-09-06
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

The existing technology cannot effectively judge and protect the camera module in a timely manner in laser scenarios, causing the image sensor to be easily damaged, and the manual judgment method has low accuracy and efficiency, which increases hardware costs and reduces service life.

Method used

By monitoring the light irradiating the camera module, a monitoring image is generated, the type of light is determined, and a protection control instruction is generated according to the type to drive the shading component to adjust the light intensity to protect the camera module.

Benefits of technology

It improves the accuracy and response efficiency of laser scene judgment, reduces hardware costs, extends the service life of the image sensor, avoids misidentification and battery life issues, and improves the shooting experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115103131B
    Figure CN115103131B
Patent Text Reader

Abstract

The present disclosure provides a shooting module protection method and device, a computer-readable medium and an electronic device, and relates to the field of data processing technology. The method includes: monitoring the light irradiated to the shooting module, and obtaining a monitoring image generated when the light is monitored; determining the light type corresponding to the light according to the monitoring image; generating a protection control instruction in response to determining that the light type is a target light type; and driving the shading component associated with the shooting module through the protection control instruction to adjust the light intensity of the light incident on the shooting module according to the shading component. The present disclosure can monitor the light of the target light type through images, which is simple to implement and does not require additional hardware, thereby reducing costs; at the same time, when light such as laser that may damage the image sensor is detected, the shading component is driven to avoid burns to the image sensor, thereby protecting the safety of the shooting module and improving the service life of the shooting module.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] The camera relies on the principle of pinhole imaging and lens imaging, and uses an optical lens to focus the incident light on the CMOS (Complementary Metal-Oxide-Semiconductor) sensor. The CMOS sensor is extremely sensitive to light, thus forming an image. Laser, also known as laser light, has the characteristics of high energy and precise focusing. It has a very strong directionality, so the energy emitted from a single point is also extremely high. Therefore, the laser emits a concentrated beam, which can heat sensitive surfaces and cause damage. Therefore, materials that are naturally sensitive to light, such as CMOS or CCD (Charge Coupled Device) or film, are more likely to be burned under direct laser light, causing damage to the camera.

[0003] At present, in the relevant schemes, it is usually through manual judgment. After judging that there is laser in the scene, the light-diffusing film is manually installed in front of the camera lens to reduce the light intensity of the laser light entering the imaging system. However, since the time for laser to cause burns is relatively short, the manual judgment method cannot cover all laser scenes. For example, when the user is holding a mobile phone and talking on the phone, although the camera is not used, the image sensor of the camera may still be damaged in the laser scene. Therefore, the manual judgment method has a low accuracy rate, and the manual installation of the light-diffusing film has delays and low efficiency, which is more likely to cause damage to the image sensor in the shooting module and reduce the service life of the image sensor. Summary of the invention

[0004] The purpose of the present disclosure is to provide a shooting module protection method, a shooting module protection device, a computer-readable medium and an electronic device, thereby improving the accuracy of laser scene judgment and the response efficiency of protection measures for the shooting module at least to a certain extent, reducing hardware costs, ensuring the safety of the shooting module, and improving the service life of the image sensor.

[0005] According to a first aspect of the present disclosure, a method for protecting a shooting module is provided, comprising:

[0006] Monitoring the light irradiated to the camera module, and acquiring a monitoring image generated when the light is monitored;

[0007] Determining the light type corresponding to the light according to the monitoring image;

[0008] In response to determining that the light type is a target light type, generating a protection control instruction;

[0009] The shading component associated with the shooting module is driven by the protection control instruction to adjust the light intensity of the light incident on the shooting module according to the shading component.

[0010] According to a second aspect of the present disclosure, there is provided a camera module protection device, comprising:

[0011] A light monitoring module, used to monitor the light irradiated to the shooting module and obtain a monitoring image generated when the light is monitored;

[0012] A light type determination module, used to determine the light type corresponding to the light according to the monitoring image;

[0013] A protection instruction generating module, configured to generate a protection control instruction in response to determining that the light type is a target light type;

[0014] The shading component driving module is used to drive the shading component associated with the shooting module through the protection control instruction, so as to adjust the light intensity of the light incident on the shooting module according to the shading component.

[0015] According to a third aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.

[0016] According to a fourth aspect of the present disclosure, there is provided an electronic device, characterized in that it includes:

[0017] Processor; and

[0018] The memory is used to store one or more programs. When the one or more programs are executed by one or more processors, the one or more processors implement the above method.

[0019] The shooting module protection method provided by an embodiment of the present disclosure can monitor the light irradiated to the shooting module and obtain the monitoring image generated when the light is monitored, and then the light type corresponding to the light can be determined according to the monitoring image. When the light type is determined to be the target light type, the shading component associated with the shooting module is driven by generating a protection control instruction, and then the light intensity of the light incident on the shooting module can be adjusted by the shading component. On the one hand, the light monitoring is realized by shooting images by the shooting module of the terminal device itself, and no additional hardware is required for light monitoring, which effectively reduces the hardware cost; on the other hand, the light monitoring is realized by shooting images, which is more accurate and efficient than the form of manual judgment, and based on the low-power consumption always-on function of the shooting module, it can realize real-time continuous monitoring, effectively cover most of the light monitoring scenes, improve the comprehensiveness of light monitoring, and further ensure the accuracy of light monitoring in each scene; on the other hand, protection is only performed when it is determined that the light is the target light type that may damage the shooting module, which can effectively improve the judgment accuracy of the current scene, avoid frequent misidentification leading to interruption of shooting and reduce the endurance of the terminal device, and improve the shooting experience.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0022] Figure 1 A schematic diagram showing an exemplary system architecture to which the embodiments of the present disclosure may be applied;

[0023] Figure 2 A schematic diagram schematically illustrates a flow chart of a method for protecting a shooting module in an exemplary embodiment of the present disclosure;

[0024] Figure 3 A schematic diagram schematically shows a principle of protecting a shooting module in an exemplary embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram of a process for determining a light type in an exemplary embodiment of the present disclosure is schematically shown;

[0026] Figure 5A schematic diagram schematically shows a principle of protecting a shooting module by a light shielding plate in an exemplary embodiment of the present disclosure;

[0027] Figure 6 A schematic diagram schematically shows a principle diagram of protecting a shooting module by an electrochromic lens in an exemplary embodiment of the present disclosure;

[0028] Figure 7 A schematic diagram schematically shows the composition of an electrochromic lens in an exemplary embodiment of the present disclosure;

[0029] Figure 8 A schematic diagram schematically shows a principle diagram of protecting a shooting module by a variable aperture structure in an exemplary embodiment of the present disclosure;

[0030] Fig. 9 A schematic diagram schematically shows the composition of a shooting module protection device in an exemplary embodiment of the present disclosure;

[0031] Fig.10 A schematic diagram of an electronic device to which the embodiments of the present disclosure can be applied is shown. DETAILED DESCRIPTION

[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0033] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0034] Figure 1 A schematic diagram of a system architecture of an exemplary application environment in which a method and device for protecting a shooting module according to an embodiment of the present disclosure can be applied is shown.

[0035] like Figure 1As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with image processing functions, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.

[0036] The shooting module protection method provided in the embodiment of the present disclosure is generally executed by the terminal devices 101, 102, and 103, and accordingly, the shooting module protection device is generally disposed in the terminal devices 101, 102, and 103. However, it is easy for those skilled in the art to understand that the shooting module protection method provided in the embodiment of the present disclosure can also be executed by the server 105, and accordingly, the shooting module protection device can also be disposed in the server 105, which is not particularly limited in this exemplary embodiment.

[0037] For example, in an exemplary embodiment, a user may collect light information in the current scene through the shooting module included in the terminal devices 101, 102, and 103 to generate an original image, and then upload the original image to the server 105. After the server generates a protection control instruction through the shooting module protection method provided by the embodiment of the present disclosure, the protection control instruction is transmitted to the terminal devices 101, 102, 103, etc. The terminal devices 101, 102, and 103 drive the shading component related to the shooting module to reduce the intensity of the incident light according to the protection control instruction.

[0038] In the related art, in order to prevent laser damage to the shooting module, the laser scene is generally determined by manual judgment, and the intensity of light incident on the photosensitive element (such as CMOS sensor) in the shooting module is reduced by manually installing a neutral density film. However, this protection scheme has failure scenarios. For example, when a user is exposed to a laser environment and makes a call without starting the shooting module, the user may not "notice" it, but the laser will still burn the CMOS sensor. At the same time, the laser damage time is very short, often only less than 5 seconds, to destroy the CMOS sensor in the shooting module or the microlens on the surface of the CMOS sensor. The manual judgment method has a certain delay, and the judgment accuracy for each scene is low. In addition, the installation of the neutral density film also requires manual operation, which may lead to the scene where the neutral density film is not installed properly but the CMOS sensor is already damaged.

[0039] Based on one or more problems in the related art, the present disclosure first provides a shooting module protection method. The following takes the execution of the method by a terminal device as an example to specifically illustrate the shooting module protection method of an exemplary embodiment of the present disclosure.

[0040] Figure 2 A schematic flow chart of a method for protecting a shooting module in this exemplary embodiment is shown, which may include the following steps S210 to S240:

[0041] In step S210, the light irradiated to the shooting module is monitored, and a monitoring image generated when the light is monitored is acquired.

[0042] In an exemplary embodiment, the shooting module refers to a module in a terminal device for capturing images. For example, the shooting module may be a front camera module and / or a rear camera module of a smartphone, or a surveillance camera in a monitoring system, or an image acquisition device configured on an intelligent robot for real-time mapping and navigation. Of course, the shooting module may also be other modules for capturing images in any form, and this exemplary embodiment does not specifically limit this.

[0043] The light irradiating the shooting module refers to any type of light beam irradiating the shooting module in the current scene. For example, the light can be laser light that is directly irradiated to the shooting module by a laser device or directly irradiated to the shooting module through other protective devices. It can also be ambient light that is irradiated to the shooting module through mirror reflection or diffuse reflection in the current scene. Of course, it can also be light that is irradiated to the shooting module in any other way and contains energy greater than a preset energy threshold. This example embodiment is not limited to this.

[0044] It should be noted that the light mentioned in this embodiment generally refers to visible light with a wavelength in the band of 380nm-750nm.

[0045] The monitoring image refers to the image data generated when the light irradiating the shooting module is detected. Specifically, the monitoring image can be the original image output by the image sensor, that is, the Raw image. The purpose of the Raw image format is to capture the shooting characteristics of the scene as much as possible (that is, the best performance of a specific sensor), that is, it contains physical information such as the light intensity and color of the current scene. Compared with the image displayed to the user after processing, it can contain more raw data that can be used for analysis, such as image sensor metadata (which may include sensor size, color filter matrix (Color Filter Array) properties and color profiles, etc.), image metadata (which may include exposure parameters, camera / lens model, shooting date, etc.), image data (which may include brightness, white balance, hue, saturation, etc.), etc. This example embodiment does not make any special limitations on this.

[0046] The current scene can be continuously monitored through the low-power always-on camera (AON) function. The essence of the low-power always-on camera function is to use a low frame rate and low pixel mode when outputting images. For example, the original image can be output at a frame rate of 640*480 pixels and 5FPS (Frames Per Second), which can achieve low power consumption, small data volume and fast processing speed.

[0047] The collected original image can be sent to a relevant computing unit for analysis and processing, for example, it can be sent to a central processing unit (CPU) for analysis and processing, or it can be sent to an embedded neural network processor (NPU) for analysis and processing. This example embodiment does not specifically limit the processing unit for processing the original image. When the computing unit determines that there is an abnormal brightness area in the original image, it can be considered that the light irradiating the shooting module is monitored, and the original image is used as the monitoring image generated when the light is monitored.

[0048] In step S220, the light type corresponding to the light is determined according to the monitoring image.

[0049] In an exemplary embodiment, the light type refers to a pre-set parameter that can be used to determine the classification of light in different scenarios. For example, the light type can be a laser light type, a high-energy light type, a low-energy light type, etc. The specific light type can be customized according to different application scenarios, and this exemplary embodiment does not specifically limit this.

[0050] The type of light corresponding to the light can be determined based on the distribution characteristics of the brightness value in the abnormal brightness area of ​​the monitoring image. For example, the abnormal brightness area generated when the laser light is irradiated on the image sensor has a relatively concentrated distribution area of ​​larger brightness values, that is, the area of ​​the highlight spot is relatively small, while the abnormal brightness area generated when the ordinary incandescent light is irradiated on the image sensor has a uniform distribution of brightness values ​​and no relatively concentrated highlight spot area. Of course, the infrared radiation (IR) component corresponding to the light can also be extracted based on the monitoring image, and the type of light corresponding to the light can be determined based on the IR component. This exemplary embodiment does not specifically limit the method of determining the type of light based on the monitoring image.

[0051] In step S230, in response to determining that the light type is the target light type, a protection control instruction is generated.

[0052] In an exemplary embodiment, the target light type refers to the light type that may cause damage to the shooting module. For example, assuming that the target light types set include laser light type, high-energy light type and weak-energy light type, the test light of the laser light type and the high-energy light type may cause burns to the photosensitive elements in the shooting module (such as CMOS sensors). Therefore, the laser light type and the high-energy light type can be set as the target light type.

[0053] The protection control instruction refers to an instruction generated based on the light data obtained from the monitoring image and the determined target light type, which is used to drive the shading component to adjust the light intensity of the light incident on the shooting module. The protection control instruction may include but is not limited to the target light type corresponding to the light, IR component data, light intensity data, and light wavelength data.

[0054] In step S240, the shading component associated with the shooting module is driven by the protection control instruction to adjust the light intensity of the light incident on the shooting module according to the shading component.

[0055] In an exemplary embodiment, the shading component refers to a component used to block the light path or weaken the light intensity / light energy. For example, the shading component can be a light blocking plate made of opaque material, or an electrochromic lens with the function of adjusting the light transmittance, or a variable aperture structure that can reduce the amount of incident light. Of course, the shading component can also be any other type of component that can block the light path or weaken the light intensity / light energy, and this exemplary embodiment does not specifically limit this.

[0056] The shading component can be integrated in the terminal device. For example, the shading component can be integrated in the shooting module, such as being arranged between the optical lens and the image sensor in the shooting module. The shading component can also be integrated on the mainboard of the terminal device, such as being arranged between the shooting module and the terminal device housing. Of course, the shading component can also be used as an external device and be arranged on the terminal device housing through a wired connection or a wireless connection, such as being arranged at the light inlet of the shooting module on the terminal device housing. This example embodiment does not specifically limit the arrangement of the shading component.

[0057] The shading assembly may be composed of only one component. For example, the shading assembly may be composed of a light blocking plate, an electrochromic lens, or a variable aperture structure. Of course, the shading assembly may also be composed of any two components of the light blocking plate, the electrochromic lens, and the variable aperture structure, or may be composed of three components of the light blocking plate, the electrochromic lens, and the variable aperture structure. This example embodiment does not make any special limitation on the composition of the shading assembly.

[0058] Steps S210 to S240 are described in detail below.

[0059] In an exemplary embodiment, the shooting module can be controlled to continuously output the original image at a low frame rate. In response to detecting the presence of a target brightness area in the current original image, it is determined that light irradiating the shooting module is monitored, and the current original image is used as the monitoring image generated when the light is monitored.

[0060] The target brightness area refers to an area in the current original image where light is irradiated. For example, the target brightness area may be an area where the brightness values ​​are concentrated, or an area where the peak brightness value is greater than a preset brightness value. This exemplary embodiment does not specifically limit this. When the target brightness area is detected in the current original image, it can be considered that abnormal light is detected in the current scene, and further detection and analysis are required, and the current original image is used as a monitoring image corresponding to the monitored light.

[0061] Specifically, the low-power always-on camera (AON) function can be turned on, and the function logic can be used to control the shooting module to continuously output the corresponding original image in the current scene in a low frame rate and low pixel manner. For example, the original image can be output at a frame rate of 640*480 pixels and 5FPS (Frames Per Second), or at a frame rate of 240*160 pixels and 20FPS. The specific settings can be customized according to the actual application scenario, and the present example embodiment is not limited to this.

[0062] When it is determined that the target brightness area exists in the output current original image, it can be considered that the light irradiating the shooting module is monitored at the current moment, and the current original image is used as the monitoring image generated when the light is monitored.

[0063] Figure 3 A schematic diagram schematically illustrates a principle of protecting a shooting module in an exemplary embodiment of the present disclosure.

[0064] refer to Figure 3 As shown, the terminal device may be a smart phone 301, and the shooting module 302 may be a rear camera module of the smart phone 301. Specifically, the rear camera module may include a shooting module 302 for collecting image data and a shading component 303 associated with the shooting module 302. The shading component 303 may be arranged near the shooting module 302. For example, the shading component 303 may be arranged between the optical lens and the image sensor in the shooting module 302, or between the shooting module 302 and the terminal device housing. Of course, the shading component may also be arranged on the terminal device housing, such as at the light inlet of the shooting module 302 on the terminal device housing, but this embodiment is not limited thereto. For ease of explanation, Figure 3 The light inlet of the shooting module 302 disposed on the housing of the terminal device is used as an example for drawing, which should not impose any special limitations on this embodiment.

[0065] In the laser irradiation scene, the laser beam emitted by the laser device 304 irradiates the shooting module 302 during scanning. When the laser beam irradiates the shooting module 302, the terminal device can turn on the AON function, control the image sensor 305 of the shooting module 302 to output the original image 306 in the form of low frame rate and low pixels, and transmit the original image 306 to the computing unit for analysis and processing. When the target brightness area 307 is detected in the original image 306, it can be determined that there is abnormal light in the current scene, and the abnormal light irradiates the shooting module 302, and the original image 306 is used as the monitoring image generated when the light is monitored, and subsequent processing is performed.

[0066] Through the low-power always-on camera function, the light irradiating the shooting module can be continuously monitored in real time in the form of output monitoring images. Not only does it not require additional hardware-assisted monitoring, effectively reducing the manufacturing cost of the shooting module or terminal equipment, but it can also continuously monitor the light in the scene, effectively covering most laser irradiation scenes that are not easily perceived by users, effectively improving the detection accuracy of laser scenes or strong light scenes, and improving the safety of the shooting module.

[0067] In an exemplary embodiment, the Figure 4 Determine the type of light that the light corresponds to by following the steps in Figure 4As shown, it may specifically include:

[0068] Step S410, determining the infrared light component corresponding to the light according to the monitoring image;

[0069] Step S420: determining the light type corresponding to the light based on the infrared light component.

[0070] Among them, the infrared light component refers to the image data with spectral characteristics generated after the light is received by the image sensor. Since laser or high-energy light has the characteristics of high energy and single wavelength, the infrared light component reflected in the detected image is different from the spectral characteristics of conventional light.

[0071] The infrared light component corresponding to the light can be calculated by monitoring the image data in the image, and a pre-set infrared light component interval table corresponding to each light beam can be obtained. The infrared light component interval table can include the relationship between the light type and the infrared light component distribution interval; the infrared light component corresponding to the calculated light beam is compared with the infrared light component interval table to determine the light type corresponding to the light beam.

[0072] By monitoring the image to determine the infrared light component corresponding to the light, and then determining the light type corresponding to the light through the infrared light component, not only the amount of calculation is small, the detection efficiency is high, the accuracy of the obtained light type is high, but also no other hardware equipment is required to assist, effectively reducing the hardware cost of the terminal equipment.

[0073] In an exemplary embodiment, a pre-trained light recognition model may be obtained, the monitoring image may be input into the light recognition model, and the light type corresponding to the light may be output.

[0074] Among them, the light recognition model refers to a pre-trained deep learning model that can classify the monitoring images generated when light is monitored and determine the type of light. For example, the light recognition model can be an AlexNet model or a VGG network model. Of course, it can also be any other deep learning model that can realize image classification, such as a ResNet model. This example embodiment is not limited to this.

[0075] Before use, training images generated when light of different light types is irradiated onto the image sensor can be collected in advance, and the corresponding light type can be used as the training label of the training image. A training set is formed by the training images and the training labels, and the pre-built light recognition model is iteratively trained through the training set until the loss function of the light recognition model converges, and the recognition accuracy of the light recognition model is verified by the test set to reach the accuracy threshold (for example, the accuracy threshold can be set to 99.7%). It can be considered that a pre-trained light recognition model is obtained.

[0076] The monitoring image can be input into the light recognition model. At this time, the light recognition model can directly output the light type corresponding to the light. The light recognition model can effectively improve the recognition efficiency of the light type. In addition, since most of the current terminal devices are equipped with artificial intelligence processors, identifying the light type through the light recognition model can effectively reduce the CPU's computing power and improve system performance.

[0077] Optionally, sample original images generated when light of different light types is irradiated onto the image sensor can be pre-stored. When in use, image features in the monitoring image generated when the light is monitored can be extracted and matched with the sample original image for similarity, and the light type corresponding to the sample original image with the greatest similarity can be used as the light type corresponding to the light.

[0078] By pre-setting the sample original images generated when light of different light types is irradiated onto the image sensor, when in use, the computing unit only needs to match the image features in the monitoring image with the image features in the sample original image to determine the light type of the current light, which can further reduce the amount of calculation of the computing unit and improve the efficiency of light type detection.

[0079] In an exemplary embodiment, the shading component may include any one or a combination of a light shield, an electrochromic lens, and a variable aperture structure. Of course, the shading component may also be any other type of component that can block the light path or reduce the light intensity / light energy, and this exemplary embodiment does not specifically limit this.

[0080] The light shield may be a component made of an opaque material, for example, the opaque material may be black reflective plastic or black light-absorbing velvet cloth, and this exemplary embodiment does not specifically limit the type of opaque material. The light shield may be of any geometric shape, for example, the light shield may be circular or square, and the specific shape of the light shield may be determined according to the actual application scenario, and this exemplary embodiment is not limited thereto.

[0081] Figure 5 The schematic diagram schematically shows a principle of protecting a shooting module by a shading plate in an exemplary embodiment of the present disclosure.

[0082] refer to Figure 5As shown, taking the shading component as a light baffle as an example, the terminal device can control the shooting module 501 to output the original image in a low frame rate and low pixel manner through the AON function. When it is determined that there is a target brightness area in the original image, it is determined that the light 502 irradiated to the shooting module 501 is monitored, and a protection control instruction is generated. The protection control instruction drives the light baffle 503 in the first state to be adjusted to the light baffle 504 in the second state, and the light baffle 504 in the second state blocks the light 502 from being incident on the image sensor of the shooting module 501.

[0083] The electrochromic lens may include a transparent electrode and an electrochromic material layer, wherein the electrochromic material layer may be made of an inorganic electrochromic material, and the inorganic electrochromic material may be a transition metal oxide or a derivative of a transition metal oxide. For example, the electrochromic material may be tungsten trioxide (WO 3 ); Of course, the electrochromic material layer can be made of organic electrochromic materials, and the organic electrochromic materials can be organic small molecule electrochromic materials or conductive polymer electrochromic materials. For example, the electrochromic materials can be polythiophenes and their derivatives, viologens, tetrathiafulvalene, metal phthalocyanine compounds, etc. This exemplary embodiment does not impose any special restrictions on the electrochromic materials constituting the electrochromic material layer. The electrochromic lens can be used as a protective lens of the shooting module to form an imaging system, or it can exist as a separate component. This embodiment does not impose any special restrictions on the arrangement of the electrochromic lens.

[0084] Figure 6 The schematic diagram schematically shows a principle diagram of protecting a shooting module by an electrochromic lens in an exemplary embodiment of the present disclosure.

[0085] refer to Figure 6 As shown, taking the shading component as an electrochromic lens as an example, the terminal device can control the shooting module 601 to output the original image in a low frame rate and low pixel manner through the AON function. When it is determined that there is a target brightness area in the original image, it is determined that the light 602 irradiated to the shooting module 601 is monitored, and a protection control instruction is generated. The electrochromic lens 603 with a first light transmittance is driven to adjust to an electrochromic lens 604 with a second light transmittance through the protection control instruction, and the transmittance of the light 602 incident on the image sensor of the shooting module 601 is adjusted through the electrochromic lens 604 with the second light transmittance, thereby achieving a weakening of the light intensity / light energy of the light 602.

[0086] Figure 7 The schematic diagram of the structure of an electrochromic lens in an exemplary embodiment of the present disclosure is schematically shown.

[0087] refer to Figure 7As shown, the shooting module may include a camera 701 and an electrochromic lens 703 disposed on the optical path of a light 702 incident on the camera 701. Specifically, the electrochromic lens 703 may include a first transparent electrode 704 and a second transparent electrode 705, and an electrochromic material layer 706 between the first transparent electrode 704 and the second transparent electrode 705. The shooting module may flexibly adjust the oxidation degree of the electrochromic material layer 706 by controlling the output voltage of the power supply 707 to the first transparent electrode 704 and the second transparent electrode 705, thereby realizing the adjustment and control of the light transmittance of the electrochromic lens.

[0088] The variable aperture structure generally includes a fixed part, a movable part, a driving part and a blade assembly. The movable part is sleeved on the fixed part and can rotate around the fixed part under the action of the driving part. The blade assembly is arranged on the movable part, and the blade assembly is formed with a light inlet hole. The movable part can drive the blade assembly to rotate to adjust the aperture of the light inlet hole. When the target light type is irradiated to the shooting module, the movable part can be driven to rotate by the driving part, so that the movable part can drive the blades to rotate to adjust the aperture of the light inlet hole, thereby adjusting the amount of light entering, reducing the light path of the light incident on the image sensor, and reducing the light energy / light intensity of the light irradiated on the image sensor to a certain extent.

[0089] Figure 8 The schematic diagram schematically shows a principle of protecting a shooting module by a variable aperture structure in an exemplary embodiment of the present disclosure.

[0090] refer to Figure 8 As shown, taking the shading component as a variable aperture structure as an example, the terminal device can control the shooting module 801 to output the original image in a low frame rate and low pixel manner through the AON function. When it is determined that there is a target brightness area in the original image, it is determined to monitor the light 802 irradiated to the shooting module 801, and generate a protection control instruction. The protection control instruction drives the variable aperture structure 803 in the first aperture size to adjust to the variable aperture structure 804 in the second aperture size, and reduces the number of optical paths of the light 802 incident on the image sensor of the shooting module 801 through the variable aperture structure 804 in the second aperture size, so as to reduce the light intensity / light energy of the light 602.

[0091] The shading component can be integrated in the terminal device. For example, the shading component can be integrated in the shooting module, such as being arranged between the optical lens and the image sensor in the shooting module. The shading component can also be integrated on the mainboard of the terminal device, such as being arranged between the shooting module and the terminal device housing. Of course, the shading component can also be used as an external device and be arranged on the terminal device housing through a wired connection or a wireless connection, such as being arranged at the light inlet of the shooting module on the terminal device housing. This example embodiment does not specifically limit the arrangement of the shading component.

[0092] The shading assembly may be composed of only one component. For example, the shading assembly may be composed of a light blocking plate, an electrochromic lens, or a variable aperture structure. Of course, the shading assembly may also be composed of any two components of the light blocking plate, the electrochromic lens, and the variable aperture structure, or may be composed of three components of the light blocking plate, the electrochromic lens, and the variable aperture structure. This example embodiment does not make any special limitation on the composition of the shading assembly.

[0093] In an optional exemplary embodiment, the light intensity corresponding to the light can be obtained based on the protection control instruction, and in response to the light intensity being in a preset first intensity range, the variable aperture structure is driven to perform structural adjustment according to the light intensity, so as to reduce the light path of the light incident to the shooting module through the variable aperture structure; and / or in response to the light intensity being in a preset second intensity range, the control voltage is determined according to the light intensity, and the electrochromic lens is adjusted by the control voltage to change the light transmittance of the shooting module through the adjusted electrochromic lens; and / or in response to the light intensity being in a preset third intensity range, the light baffle is driven to block the light path of the light incident to the shooting module through the light baffle.

[0094] In an exemplary embodiment, if the light irradiating the shooting module is monitored to be the target light type, while the shading component associated with the shooting module is driven by a protection control instruction, if it is detected that the shooting module is currently in an on state, the shooting module is directly turned off to further ensure the safety of the shooting module; and a warning message is output through the terminal device to remind the user to move the terminal device away from the light scene. For example, the warning message can be a voice prompt that a laser is detected, or a warning message that the screen flashes, or a message that the terminal device vibrates to remind. This exemplary embodiment does not impose any special limitation on the form of the output warning message.

[0095] When monitoring that the light irradiating the shooting module is the target light type, not only the shading component associated with the shooting module is driven by the protection control instruction to protect the shooting module, but also the shooting module is actively shut down and a warning message is output. Through multi-layer measures, the safety of the shooting module is further improved and the service life of the shooting module is increased.

[0096] In summary, in this exemplary embodiment, the light irradiated to the shooting module can be monitored, and the monitoring image generated when the light is monitored can be obtained. Then, the light type corresponding to the light can be determined according to the monitoring image. When the light type is determined to be the target light type, the shading component associated with the shooting module is driven by generating a protection control instruction, and then the light intensity of the light incident on the shooting module can be adjusted by the shading component. On the one hand, the monitoring of light is achieved by shooting images by the shooting module of the terminal device itself, and no additional hardware is required for light monitoring, which effectively reduces the hardware cost; on the other hand, the light monitoring is achieved by shooting images, which is more accurate and efficient than manual judgment, and based on the low-power consumption always-on function of the shooting module, it can achieve real-time continuous monitoring, effectively cover most of the light monitoring scenes, improve the comprehensiveness of light monitoring, and further ensure the accuracy of light monitoring in each scene; on the other hand, protection is only performed when it is determined that the light is the target light type that may damage the shooting module, which can effectively improve the judgment accuracy of the current scene, avoid frequent misidentification leading to interruption of shooting and reduce the endurance of the terminal device, and improve the shooting experience.

[0097] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0098] For further reference, Fig. 9 As shown, in the embodiment of this example, a shooting module protection device 900 is also provided, including a light monitoring module 910, a light type determination module 920, a protection instruction generation module 930 and a light shielding component driving module 940. Among them:

[0099] The light monitoring module 910 is used to monitor the light irradiated to the shooting module and obtain a monitoring image generated when the light is monitored;

[0100] The light type determination module 920 is used to determine the light type corresponding to the light according to the monitoring image;

[0101] The protection instruction generation module 930 is used to generate a protection control instruction in response to determining that the light type is a target light type;

[0102] The shading component driving module 940 is used to drive the shading component associated with the shooting module through the protection control instruction, so as to adjust the light intensity of the light incident on the shooting module according to the shading component.

[0103] In an exemplary embodiment, the light monitoring module 910 may be used to:

[0104] Controlling the shooting module to continuously output original images at a low frame rate;

[0105] In response to detecting that there is a target brightness area in the current original image, it is determined that light irradiating the shooting module is monitored, and the current original image is used as a monitoring image generated when the light is monitored.

[0106] In an exemplary embodiment, the light type determination module 920 may be used to:

[0107] Determining the infrared light component corresponding to the light according to the monitoring image;

[0108] The light type corresponding to the light is determined based on the infrared light component.

[0109] In an exemplary embodiment, the light type determination module 920 may be used to:

[0110] Get the pre-trained light recognition model;

[0111] The monitoring image is input into the light recognition model, and the light type corresponding to the light is output.

[0112] In an exemplary embodiment, the light shielding component may include any one or a combination of a light shield, an electrochromic lens, and a variable aperture structure.

[0113] In an exemplary embodiment, the shading assembly driving module 940 may be used to:

[0114] Acquire the light intensity corresponding to the light based on the protection control instruction;

[0115] In response to the light intensity being in a preset first intensity range, driving the variable aperture structure to perform structural adjustment according to the light intensity, so as to reduce the light path of the light incident on the shooting module through the variable aperture structure; and / or

[0116] In response to the light intensity being in a preset second intensity range, determining a control voltage according to the light intensity, and adjusting the electrochromic lens by the control voltage, so as to change the light transmittance of the shooting module by the adjusted electrochromic lens; and / or

[0117] In response to the light intensity being in a preset third intensity range, the light blocking plate is driven to block the light path of the light incident on the shooting module through the light blocking plate.

[0118] In an exemplary embodiment, the shooting module protection device 900 further includes a warning module, which can be used to:

[0119] In response to detecting that the shooting module is currently in an on state, shutting down the shooting module; and

[0120] Output warning information.

[0121] The specific details of each module in the above device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.

[0122] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0123] The exemplary embodiment of the present disclosure also provides an electronic device. The electronic device may be the above-mentioned terminal devices 101, 102, 103 and server 105. Generally, the electronic device may include a processor and a memory, the memory is used to store executable instructions of the processor, and the processor is configured to execute the above-mentioned shooting module protection method by executing the executable instructions.

[0124] Below Fig.10 The mobile terminal 1000 in FIG. 1 is taken as an example to exemplify the structure of the electronic device. It should be understood by those skilled in the art that, in addition to the components specifically used for mobile purposes, Fig.10 The construction in can also be applied to fixed type equipment.

[0125] like Fig.10 As shown, the mobile terminal 1000 may specifically include: a processor 1001, a memory 1002, a bus 1003, a mobile communication module 1004, an antenna 1, a wireless communication module 1005, an antenna 2, a display screen 1006, a camera module 1007, an audio module 1008, a power module 1009 and a sensor module 1010.

[0126] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc. The shooting module protection method in this exemplary embodiment may be executed by an AP, a GPU or a DSP. When the method involves processing related to a neural network, it may be executed by an NPU, for example, the NPU may load neural network parameters and execute algorithm instructions related to the neural network.

[0127] The encoder can encode (i.e. compress) an image or video to reduce the data size for easy storage or transmission. The decoder can decode (i.e. decompress) the encoded data of an image or video to restore the image or video data. The mobile terminal 1000 can support one or more encoders and decoders, such as: image formats such as JPEG (Joint Photographic Experts Group), PNG (Portable Network Graphics), BMP (Bitmap), and video formats such as MPEG (Moving Picture Experts Group) 1, MPEG10, H.1063, H.1064, and HEVC (High Efficiency Video Coding).

[0128] The processor 1001 may be connected to the memory 1002 or other components via a bus 1003 .

[0129] The memory 1002 may be used to store computer executable program codes, which may include instructions. The processor 1001 executes various functional applications and data processing of the mobile terminal 1000 by running the instructions stored in the memory 1002. The memory 1002 may also store application data, such as images, videos, and other files.

[0130] The communication function of the mobile terminal 1000 can be implemented by the mobile communication module 1004, antenna 1, wireless communication module 1005, antenna 2, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 1004 can provide 3G, 4G, 5G and other mobile communication solutions applied to the mobile terminal 1000. The wireless communication module 1005 can provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. applied to the mobile terminal 1000.

[0131] The display screen 1006 is used to implement display functions, such as displaying a user interface, images, videos, etc. The camera module 1007 is used to implement shooting functions, such as shooting images, videos, etc. The camera module 1007 may include an associated light shielding component. The audio module 1008 is used to implement audio functions, such as playing audio, collecting voice, etc. The power module 1009 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc.

[0132] The sensor module 1010 may include one or more sensors for implementing corresponding sensing detection functions. For example, the sensor module 1010 may include an inertial sensor for detecting the motion posture of the mobile terminal 1000 and outputting inertial sensing data.

[0133] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.

[0134] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0135] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0136] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0137] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0138] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for protecting a shooting module, characterized in that: include: Monitor the light irradiating the shooting module, and control the shooting module to continuously output the original image at a low frame rate, in response to detecting the existence of a target brightness area in the current original image, determine that the light irradiating the shooting module is monitored, and use the current original image as the monitoring image generated when the light is monitored; wherein the target brightness area is an area where the brightness values ​​are concentrated or an area where the peak brightness value is greater than a preset brightness value; Determining the light type corresponding to the light according to the monitoring image; In response to determining that the light type is a target light type, generating a protection control instruction; driving a shading component associated with the shooting module through the protection control instruction, so as to adjust the light intensity of the light incident on the shooting module according to the shading component; Wherein, pre-storing sample original images generated when light of different light types irradiates the image sensor; and determining the light type corresponding to the light according to the monitoring image includes: Extracting image features from the monitoring image and performing similarity matching with the sample original image, so as to determine the light type corresponding to the light according to the light type corresponding to the sample original image with the greatest similarity matching; The method further comprises: When the shading component associated with the shooting module is driven by the protection control instruction, in response to detecting that the shooting module is currently in the turned-on state, the shooting module is turned off.

2. The method according to claim 1, characterized in that The determining the light type corresponding to the light according to the monitoring image includes: Determining the infrared light component corresponding to the light according to the monitoring image; The light type corresponding to the light is determined based on the infrared light component.

3. The method according to claim 1, characterized in that The determining the light type corresponding to the light according to the monitoring image includes: Get the pre-trained light recognition model; The monitoring image is input into the light recognition model, and the light type corresponding to the light is output.

4. The method according to claim 1, characterized in that: The shading component includes any one or a combination of a light blocking plate, an electrochromic lens and a variable aperture structure.

5. The method according to claim 4, characterized in that The step of driving the shading component associated with the shooting module through the protection control instruction includes: Acquire the light intensity corresponding to the light based on the protection control instruction; In response to the light intensity being in a preset first intensity range, driving the variable aperture structure to perform structural adjustment according to the light intensity, so as to reduce the light path of the light incident on the shooting module through the variable aperture structure; and / or In response to the light intensity being in a preset second intensity range, determining a control voltage according to the light intensity, and adjusting the electrochromic lens by the control voltage, so as to change the light transmittance of the shooting module by the adjusted electrochromic lens; and / or In response to the light intensity being in a preset third intensity range, the light blocking plate is driven to block the light path of the light incident on the shooting module through the light blocking plate.

6. The method according to claim 1, characterized in that In response to detecting that the shooting module is currently in an on state, closing the shooting module also includes: Output warning information.

7. A camera module protection device, characterized in that: include: A light monitoring module, used to monitor the light irradiating the shooting module, and control the shooting module to continuously output the original image at a low frame rate, in response to detecting the existence of a target brightness area in the current original image, determine that the light irradiating the shooting module is monitored, and use the current original image as the monitoring image generated when the light is monitored; wherein the target brightness area is an area with concentrated brightness values ​​or an area with a peak brightness value greater than a preset brightness value; A light type determination module, used to determine the light type corresponding to the light according to the monitoring image; A protection instruction generating module, configured to generate a protection control instruction in response to determining that the light type is a target light type; A shading component driving module, used to drive the shading component associated with the shooting module through the protection control instruction, so as to adjust the light intensity of the light incident on the shooting module according to the shading component; Wherein, pre-storing sample original images generated when light of different light types irradiates the image sensor; and determining the light type corresponding to the light according to the monitoring image includes: Extracting image features from the monitoring image and performing similarity matching with the sample original image, so as to determine the light type corresponding to the light according to the light type corresponding to the sample original image with the greatest similarity matching; The shooting module protection device also includes a warning module, which is used to close the shooting module in response to detecting that the shooting module is currently in an open state when the shading component associated with the shooting module is driven by the protection control instruction.

8. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: include: Shooting module; processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 6 by executing the executable instructions.