Shooting method and device and electronic equipment

By obtaining the combination of actual measured parameters of the shooting device, the power prediction of the strong light source and the critical shooting time prediction are solved, and the problem of damage to the shooting device under strong light is achieved, precise detection and protection are achieved, and the safety and service life of the device are improved.

CN120378733APending Publication Date: 2025-07-25BEIJING X RING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410606379.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, the shooting device is prone to damage under strong light conditions, making it difficult to perform accurate detection and effective protection, which affects the service life.

Method used

By obtaining the actual shooting parameter combination of the shooting device, the power prediction of the strong light source and the critical shooting time prediction are carried out, and the device is protected by the safe shooting parameter combination.

Benefits of technology

It realizes accurate detection and protection of the shooting device under strong light conditions, and improves the safety and service life of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120378733A_ABST
    Figure CN120378733A_ABST
Patent Text Reader

Abstract

The invention relates to a shooting method and device and electronic equipment, and relates to the technical field of image shooting. The method specifically comprises the following steps: acquiring a first shooting parameter combination actually measured by a shooting device; according to the first shooting parameter combination, performing power prediction on a strong light source of a first image currently shot by the shooting device to obtain predicted light source power of the first image; obtaining a predicted critical shooting duration of the shooting device under the first shooting parameter combination; and performing shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration, thereby performing power prediction on the hard light source of the first image currently shot by the shooting device through the first shooting parameter combination, performing accurate detection on the hard light under the shooting device, and performing accurate detection on the hard light under the shooting device through the safe shooting parameter combination. Shooting protection can be carried out on the shooting device, the safety of the shooting device in the shooting process is guaranteed, and the service life of the shooting device can be prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of image capture, and particularly to a capture method, apparatus, and electronic device. Background Art

[0002] When a capture device (such as a mobile phone) captures an image, it focuses on improving the imaging quality. In related technologies, in order to improve the imaging quality, technologies such as multi-camera fusion, artificial intelligence (AI), multi-frame fusion, and high dynamic range (HDR) can be adopted. As the specifications of capture devices become higher and higher, the light input of capture devices has been significantly improved. However, strong light is more likely to damage the complementary metal oxide semiconductor (CMOS) of the capture device. Therefore, how to accurately detect strong light under the capture device and protect the capture device during capture in the presence of strong light has become an urgent problem to be solved. Summary of the Invention

[0003] The present disclosure provides a capture method, apparatus, and electronic device. Thus, the present disclosure can perform power prediction on the strong light source of the first image currently captured by the capture device through the first capture parameter combination, can accurately detect strong light under the capture device, and can protect the capture device through a safe capture parameter combination, ensuring the safety of the capture device during the capture process and being beneficial to improving the service life of the capture device.

[0004] The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a capture method is provided. The method includes: obtaining a first capture parameter combination actually measured by a capture device; according to the first capture parameter combination, performing power prediction on the strong light source of the first image currently captured by the capture device to obtain the predicted light source power of the first image; obtaining a predicted critical capture duration of the capture device under the first capture parameter combination; and performing capture protection on the capture device according to the predicted light source power and the predicted critical capture duration.

[0006] According to a second aspect of the embodiments of the present disclosure, a photographing device is provided. The device includes: a first acquisition module, configured to acquire a first combination of measured photographing parameters of the photographing device; a prediction module, configured to predict the power of a strong light source in a first image currently captured by the photographing device according to the first combination of photographing parameters, so as to obtain a predicted light source power of the first image; a second acquisition module, configured to acquire a predicted critical photographing duration of the photographing device under the first combination of photographing parameters; and a protection module, configured to perform photographing protection on the photographing device according to the predicted light source power and the predicted critical photographing duration.

[0007] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including: a processor; and a memory for storing instructions executable by the processor. Wherein, the processor is configured to execute the instructions to implement the photographing method provided in the first aspect embodiment of the present disclosure.

[0008] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the photographing method provided in the first aspect embodiment of the present disclosure.

[0009] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, including a computer program, characterized in that when the computer program is executed by a processor, the photographing method provided in the first aspect of the present disclosure is implemented.

[0010] The technical solutions provided by the embodiments of the present disclosure at least bring the following beneficial effects:

[0011] In a photographing method according to an embodiment of the present disclosure, by acquiring a first combination of measured photographing parameters of a photographing device; predicting the power of a strong light source in a first image currently captured by the photographing device according to the first combination of photographing parameters to obtain a predicted light source power of the first image, acquiring a predicted critical photographing duration of the photographing device under the first combination of photographing parameters, and performing photographing protection on the photographing device according to the predicted light source power and the predicted critical photographing duration. Thus, the present disclosure predicts the power of the strong light source in the first image currently captured by the photographing device through the first combination of photographing parameters, can accurately detect the strong light under the photographing device, and can perform photographing protection on the photographing device through a safe combination of photographing parameters, ensuring the safety of the photographing device during the photographing process and being beneficial to improving the service life of the photographing device.

[0012] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.

[0014] Figure 1 It is a schematic flowchart of a shooting method shown according to an exemplary embodiment.

[0015] Figure 2 It is a schematic flowchart of a shooting method shown according to an exemplary embodiment.

[0016] Figure 3 It is a schematic diagram of a shooting method shown according to an exemplary embodiment.

[0017] Figure 4 A schematic flowchart of a shooting method shown according to an exemplary embodiment.

[0018] Figure 5 A schematic diagram of a scene of a shooting method shown according to an exemplary embodiment.

[0019] Figure 6 A block diagram of a shooting device shown according to an exemplary embodiment.

[0020] Figure 7 A block diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners

[0021] In order to enable those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above accompanying drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described here can be implemented in an order different from those illustrated or described here. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0023] Figure 1 It is a schematic flowchart of a shooting method provided for an embodiment of the present disclosure.

[0024] As Figure 1 shown, the shooting method includes the following steps:

[0025] S101. Obtain the first set of shooting parameters actually measured by the shooting device.

[0026] It should be noted that the present disclosure does not limit the specific method for obtaining the first set of shooting parameters actually measured by the shooting device, and it can be selected according to the actual situation.

[0027] Optionally, the first set of shooting parameters actually measured by the shooting device can be determined according to the type of the shooting device.

[0028] For example, for a conventional type of shooting device, the first set of shooting parameters actually measured by this type of shooting device includes, but is not limited to, the light source power P, the aperture size O, the exposure time E, and the sensitivity G; for a variable focal length type of shooting device, the first set of shooting parameters actually measured by this type of shooting device includes, but is not limited to, the light source power P, the aperture size O, the exposure time E, the sensitivity G, and the focal length F; for a shooting device that supports shooting frame rate adjustment, the first set of shooting parameters actually measured by this type of shooting device includes, but is not limited to, the light source power P, the aperture size O, the exposure time E, and the frame rate S.

[0029] S102. Predict the power of the strong light source in the first image currently captured by the shooting device according to the first set of shooting parameters, and obtain the predicted light source power of the first image.

[0030] It should be noted that the present disclosure does not limit the specific method for predicting the power of the strong light source in the first image currently captured by the shooting device according to the first set of shooting parameters and obtaining the predicted light source power of the first image, and it can be selected according to the actual situation.

[0031] Optionally, according to the first set of shooting parameters {O x , E x , D x}, the power of the strong light source in the first image currently captured by the shooting device can be predicted by means of fitting and interpolation to obtain the predicted light source power of the first image.

[0032] For example, the first calibration value and the second calibration value of the shooting parameters in the first set of shooting parameters {O x , E x , D x} can be obtained, and multiple basic combinations of the shooting parameters can be obtained according to the first calibration value and the second calibration value of the shooting parameters, where each basic combination includes the calibration value of the shooting parameters and the calibration value of the predicted light source power. Determine the number of shooting parameters in the first set of shooting parameters, and use the number of shooting parameters as the iteration times of the linear fitting of the predicted light source power. Starting from the basic combination, the predicted light source power is linearly fitted according to the iteration times to obtain the predicted light source power that matches the measured value of the shooting parameters.

[0033] S103. Obtain the predicted critical shooting duration of the shooting device under the first shooting parameter combination.

[0034] It should be noted that the present disclosure does not limit the specific method for obtaining the predicted critical shooting duration of the shooting device under the first shooting parameter combination, and it can be selected according to the actual situation.

[0035] Optionally, according to the first shooting parameter combination {O x , E x , D x}, the predicted critical shooting duration of the shooting device under the first shooting parameter combination can be obtained by means of fitting and interpolation.

[0036] For example, the first calibration value and the second calibration value of the shooting parameters in the first shooting parameter combination {O x , E x , D x} can be obtained, and according to the first calibration value and the second calibration value of the shooting parameters, multiple basic combinations of the shooting parameters are obtained, where each basic combination includes the calibration value of the shooting parameters and the calibration value of the predicted critical shooting duration. Determine the number of shooting parameters in the first shooting parameter combination, and use the number of shooting parameters as the iteration times of the linear fitting of the predicted critical shooting duration. Starting from the basic combination, the predicted critical shooting duration is linearly fitted according to the iteration times to obtain the predicted critical shooting duration.

[0037] S104. Perform shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration.

[0038] In the embodiment of the present disclosure, after obtaining the predicted light source power P x and the predicted critical shooting duration T x , shooting protection can be performed on the shooting device.

[0039] Optionally, the first calibrated light source power and the second calibrated light source power corresponding to the predicted light source power can be obtained. According to the aperture size and exposure time in the first shooting parameter combination, as well as the first calibrated light source power and the second calibrated light source power, the first candidate shooting duration of the shooting device is determined, and the cumulative shooting duration of the shooting device is obtained. And according to the cumulative shooting duration, the first candidate shooting duration and the predicted critical shooting duration, it is judged whether the first shooting parameter combination is a safe shooting configuration. If the first shooting parameter combination is not a safe shooting configuration, shooting protection is performed on the shooting device.

[0040] Optionally, if it is determined that the first shooting parameter combination is not a safe shooting configuration, various forms of safety notifications can be generated, such as short message prompts (Toast) and pop-up windows (Alert), etc., to remind the user. Among them, the safety notification is used to remind the user that the shooting device has detected a strong light source in the current environment. Accordingly, the user can choose whether to continue the shooting based on the safety notification.

[0041] According to a shooting method of an embodiment of the present disclosure, by obtaining the first shooting parameter combination actually measured by the shooting device; according to the first shooting parameter combination, predicting the power of the strong light source in the first image currently captured by the shooting device to obtain the predicted light source power of the first image, obtaining the predicted critical shooting duration of the shooting device under the first shooting parameter combination, and performing shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration. Thus, the present disclosure predicts the power of the strong light source in the first image currently captured by the shooting device through the first shooting parameter combination, can accurately detect the strong light under the shooting device, and according to the predicted light source power and the predicted critical shooting duration, can obtain a safe shooting parameter combination for the shooting device. Through the safe shooting parameter combination, shooting protection can be performed on the shooting device, ensuring the safety of the shooting device during the shooting process and being beneficial to improving the service life of the shooting device.

[0042] Figure 2 is a schematic flowchart of a shooting method according to an embodiment of the present disclosure. On the basis of the above embodiment, further combined with Figure 2 , the specific process of performing shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration is explained, including the following steps:

[0043] S201, obtain the first calibrated light source power and the second calibrated light source power corresponding to the predicted light source power.

[0044] Optionally, after obtaining the predicted light source power P x , the first calibrated light source power P s1 and the second calibrated light source power P s2 corresponding to the predicted light source power can be determined according to the calibration gear.

[0045] For example, the first calibrated light source power and the second calibrated light source power can be selected from the calibration gears. Among them, the first calibrated light source power P s1 is the maximum gear less than or equal to the predicted light source power P x , and the second calibrated light source power P s2 is the minimum gear greater than or equal to the predicted light source power P x , that is, P s1 ≤P x ≤P s2 .

[0046] S202. Determine the first candidate shooting duration of the shooting device according to the aperture size and exposure time in the first shooting parameter combination, and the first calibrated light source power and the second calibrated light source power.

[0047] In the embodiments of the present disclosure, based on the predicted light source power, the first calibrated light source power, and the second calibrated light source power, the second candidate shooting duration and the third candidate shooting duration of the shooting device are determined according to the aperture size and exposure time in the first shooting parameter combination, and a linear fit is performed on the second candidate shooting duration and the third candidate shooting duration to obtain the first candidate shooting duration.

[0048] For example, through fitting and interpolation, according to the aperture size {O ro , exposure time E re and the first calibrated light source power P s1 , determine the second candidate shooting duration T oe1 of the shooting device, that is, determine the second candidate shooting duration T according to {O ro , E re , P s1}, oe1 According to the aperture size {O ro , exposure time E re and the second calibrated light source power P s2 , determine the second candidate shooting duration T oe2 of the shooting device, that is, determine the second candidate shooting duration T according to {O ro , E re , P s2}, oe2 .

[0049] In the embodiments of the present disclosure, after obtaining the second candidate shooting duration T oe1 and the third candidate shooting duration T oe2 , a linear fit can be performed on the second candidate shooting duration and the third candidate shooting duration to obtain the first candidate shooting duration T oex .

[0050] For example, the following formula can be used to perform a linear fit on the second candidate shooting duration and the third candidate shooting duration to obtain the first candidate shooting duration T oex :

[0051]

[0052] Where T oex is the first candidate shooting duration, P s1 is the first calibrated light source power, Px For predicting the light source power, P s2 For the second calibrated light source power, T oe1 For the second candidate shooting duration, T oe2 For the third candidate shooting duration.

[0053] S203. Obtain the cumulative shooting duration of the shooting device, and determine whether the first shooting parameter combination is a safe shooting configuration according to the cumulative shooting duration, the first candidate shooting duration, and the predicted critical shooting duration.

[0054] In the embodiment of the present disclosure, after obtaining the cumulative shooting duration T N , the first candidate shooting duration T oex , and the predicted critical shooting duration T s , it is possible to determine whether the first shooting parameter combination is a safe shooting configuration according to the cumulative shooting duration, the first candidate shooting duration, and the predicted critical shooting duration.

[0055] For example, after obtaining the cumulative shooting duration T N , the first candidate shooting duration T oex , and the predicted critical shooting duration T s , if (1 - T N ) * T oex > T s , it is determined that the first shooting parameter combination is a safe shooting configuration; if (1 - T N ) * T oex ≤ T s , it is determined that the first shooting parameter combination is not a safe shooting configuration.

[0056] S204. If the first shooting parameter combination is not a safe shooting configuration, perform shooting protection on the shooting device.

[0057] In the embodiment of the present disclosure, if the first shooting parameter combination is not a safe shooting configuration, that is, when (1 - T N ) * T oex ≤ T s , shooting protection is performed on the shooting device.

[0058] In the embodiment of the present disclosure, after performing shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration, the predicted light source power of the third image can be predicted based on the predicted light source power of the first image and the predicted light source power of the second image, where the second image is the previous frame image adjacent to the first image, and the third image is the next frame image adjacent to the first image. Based on the predicted light source power of the third image, it is pre - judged whether the first shooting parameter combination is a safe shooting configuration for the third image.

[0059] For example, after obtaining the predicted light source power P of the first imagex and the predicted light source power of the second image After that, based on the predicted light source power P of the first image x and the predicted light source power of the second image predict the predicted light source power of the third image That is, the predicted light source power of the third image

[0060] In an embodiment of the present disclosure, after obtaining the predicted light source power of the third image it is possible to obtain the corresponding third calibrated light source power and fourth calibrated light source power of the predicted light source power of the third image. For the subsequent specific process of pre-judging whether the first shooting parameter combination is a safe shooting configuration for the third image, reference can be made to the above embodiments, and details will not be described here.

[0061] Optionally, if it is determined that the first shooting parameter combination is not a safe shooting configuration, various forms of safety notifications can be generated, such as: short message prompts Toast and pop-up windows Alert, etc., to remind the user. Among them, the safety notification is used to remind the user that the shooting device has detected a strong light source in the current environment. Accordingly, the user can choose whether to continue shooting based on the safety notification.

[0062] According to a shooting method of an embodiment of the present disclosure, by obtaining the first calibrated light source power and the second calibrated light source power corresponding to the predicted light source power, and according to the aperture size and exposure time in the first shooting parameter combination, as well as the first calibrated light source power and the second calibrated light source power, determine the first candidate shooting duration of the shooting device, obtain the cumulative shooting duration of the shooting device, and according to the cumulative shooting duration, the first candidate shooting duration and the predicted critical shooting duration, judge whether the first shooting parameter combination is a safe shooting configuration. If the first shooting parameter combination is not a safe shooting configuration, perform shooting protection on the shooting device. Thus, the present disclosure judges whether the first shooting parameter combination is a safe shooting configuration according to the cumulative shooting duration, the first candidate shooting duration and the predicted critical shooting duration. If it is determined that the first shooting parameter combination is not a safe shooting configuration, perform shooting protection on the shooting device, which ensures the safety of the shooting device during the shooting process, is beneficial to improving the service life of the shooting device, and can generate various forms of safety notifications when it is determined that the first shooting parameter combination is not a safe shooting configuration, improving the user experience.

[0063] ​In an embodiment of the present disclosure, before predicting the power of the strong light source in the first image currently captured by the imaging device according to the first shooting parameter combination, the detected light intensity value of the pixel points can be determined from the first shooting parameter combination, the first pixel points with the detected light intensity value greater than the light intensity threshold are determined, and the first pixel points are set with marks to determine at least one connected region of the first image. For each connected region, the number of pixel points in the connected region is obtained, and the light source corresponding to the first connected region with the number of pixel points greater than the preset number threshold is determined as a strong light source.

[0064] For example, if the detected light intensity value of the pixel point is D x , and the light intensity threshold is D T , if it is determined that the detected light intensity value is greater than the light intensity threshold, i.e., D x > D T for the first pixel points, and the first pixel points are set with marks, at least one connected region of the first image can be determined by means of the connected domain. For each connected region, the number of pixel points N x in the connected region is obtained, and the light source corresponding to the first connected region with the number of pixel points greater than the preset number threshold N T is determined as a strong light source, that is, when D x > D T and N x > N T , it is determined as a strong light source.

[0065] It should be noted that after determining the strong light source, the power of the strong light source in the first image currently captured by the imaging device can be predicted according to the first shooting parameter combination.

[0066] In an embodiment of the present disclosure, based on the strong light source corresponding to the first connected region, the first strong light set of the first image can be determined, the second strong light set of the second image can be obtained, and the light source tracking is performed on the first strong light set of the first image and the second strong light set of the second image to determine the matching relationship between the light sources in the first light source set and the second light source set.

[0067] Figure 3 is a schematic flowchart of a shooting method according to an embodiment of the present disclosure. On the basis of the above embodiment, further combined with Figure 3 , the specific process of performing light source tracking on the first strong light set of the first image and the second strong light set of the second image to determine the matching relationship between the light sources in the first light source set and the second light source set is explained, including the following steps:

[0068] S301, based on the strong light source corresponding to the first connected region, determine the first strong light set of the first image.

[0069] In the embodiment of the present disclosure, the number of pixel points in the connected region can be obtained, and the light source corresponding to the first connected region where the number of pixel points is greater than a preset number threshold is determined as a strong light source q1. Then, the first strong light set of the first image is {Q i} = {q1, …, q n}.

[0070] S302. Obtain the second strong light set of the second image.

[0071] In the embodiment of the present disclosure, at least one connected region of the second image can be determined. For each connected region, the number of pixel points in the connected region is obtained, and the light source corresponding to the second connected region where the number of pixel points is greater than a preset number threshold is determined as a strong light source q′1. Then, the second strong light set of the second image is {Q′ i} = {q′1, …, q′ n}.

[0072] S303. Perform light source tracking on the first strong light set of the first image and the second strong light set of the second image to determine the matching relationship between the light sources in the first light source set and the second light source set.

[0073] In the embodiment of the present disclosure, the matching weight between the strong light source i in the first strong light set and the strong light source j in the second strong light set can be obtained. Based on the first strong light set and the second strong light set, a bipartite graph is constructed. Based on the bipartite graph and the matching weight between the strong light source i and the strong light source j, Hungarian matching is performed to determine the matching relationship between the light sources in the first light source set and the second light source set.

[0074] Optionally, the number of overlapping points between the first connected regions corresponding to the strong light source i and the strong light source j can be obtained. The first pixel point in the first connected region corresponding to the strong light source i and the second pixel point in the first connected region corresponding to the strong light source j are obtained. According to the distance between the first pixel point and the second pixel point, the minimum distance is determined therefrom. According to the number of overlapping points, the minimum distance, and a preset weight bias, the matching weight between the strong light source i and the strong light source j is determined.

[0075] It should be noted that for the coordinate point (x i , y i ) of the first pixel point and the coordinate point (x′ i , y′ i ) of the second pixel point, where (x i , y i ) ∈ q i , (x′ j , y′ j ) ∈ q′ i , the distance between the first pixel point and the second pixel point is abs(x i - x′j ) + abs(y i -y' j ), then the minimum distance dist = min i,j (abs(x i -x' j ) + abs(y i -y' j ))

[0076] For example, after obtaining the minimum distance, according to the number of overlapping points, the minimum distance, and the preset weight bias, the matching weight between the strong light source i and the strong light source j can be determined according to the following formula:

[0077] w ij = area IOU -dist + dist0

[0078] where w ij is the matching weight between the strong light source i and the strong light source j, area IOU is the number of overlapping points, dist is the minimum distance, and dist0 is the preset weight bias.

[0079] Optionally, based on the first strong light set and the second strong light set, the positions of the strong light sources in the first strong light set and the second strong light set can be marked as 1, and the positions of the non-strong light sources in the first strong light set and the second strong light set can be marked as 0 to construct a bipartite graph (0-1 image).

[0080] In the embodiments of the present disclosure, after obtaining the bipartite graph and the matching weight between the strong light source i and the strong light source j, the Hungarian matching can be performed based on the bipartite graph and the matching weight between the strong light source i and the strong light source j to determine the matching relationship between the light sources in the first light source set and the second light source set. For example: q i and the optimal match q' i correspond to the same strong light source.

[0081] According to a shooting method of the embodiments of the present disclosure, the first strong light set of the first image is determined through the strong light source corresponding to the first connected region, the second strong light set of the second image is obtained, and the light source tracking is performed on the first strong light set of the first image and the second strong light set of the second image to determine the matching relationship between the light sources in the first light source set and the second light source set. Thus, the present disclosure determines the matching relationship between the light sources in the first light source set and the second light source set by performing light source tracking on the first strong light set of the first image and the second strong light set of the second image, and determines whether the strong light source is still within the shooting range of the shooting device, which is beneficial to improving the safety of the shooting device during the shooting process and extending the service life of the shooting device.

[0082] The specific process of obtaining any one of the predicted light source power and the predicted critical shooting duration will be explained below.

[0083] Obtain the predicted critical shooting duration of the shooting device under the first shooting parameter combination;

[0084] Figure 4 It is a flowchart of a shooting method according to an embodiment of the present disclosure. On the basis of the above embodiment, further combined with Figure 4 , the specific process of any one of the predicted light source power and the predicted critical shooting duration will be explained, including the following steps:

[0085] S401. Obtain the first calibration value and the second calibration value of the shooting parameters in the first shooting parameter combination, and obtain a plurality of basic combinations of the shooting parameters according to the first calibration value and the second calibration value of the shooting parameters, wherein each basic combination includes the calibration value of the shooting parameters and the calibration value of any one of the predicted parameters.

[0086] Optionally, a plurality of test shooting parameter combinations can be obtained. The test shooting parameter combinations at least include the calibrated light source power, the calibrated aperture size, and the calibrated exposure time. Configure the test shooting device based on the test shooting parameter combinations, and control the test shooting device to shoot. Record the critical shooting duration and the detected light intensity value when the test shooting device starts to be damaged. Generate the calibration result corresponding to the test shooting parameter combination according to the test shooting parameter combination, the critical shooting duration, and the detected light intensity value, and store it.

[0087] For example, for the calibrated light source power P i , the calibrated aperture size O i , and the calibrated exposure time E i , configure the test shooting device based on the test shooting parameter combination, record the critical shooting duration T i when the test shooting device starts to be damaged and the detected light intensity value D i , generate the calibration result {O i , E i , D i , P i , T i} corresponding to the test shooting parameter combination, and save the calibration result in the memory.

[0088] It should be noted that for the detection of shooting device damage, there is a point where the detected value D i is greater than the weak detected value D dark in a scene with extremely weak light, indicating that the camera module of the shooting device is damaged. A scene with extremely weak light can be constructed by blocking the lens. In a scene with sufficient light, when the shooting device shoots a high-reflection target, there is a detected value D i less than the strong detected value Dlight The points indicate that the camera module of the photographing device is damaged. Therefore, the scenarios for the damage test need to be consistent.

[0089] In the embodiments of the present disclosure, during the process of traversing and testing multiple combinations of test photographing parameters, based on the detected light intensity value and / or the strong light response duration of the currently traversed combination of test photographing parameters, a second combination of test photographing parameters that can be skipped for testing is determined from the remaining non-traversed first combinations of test photographing parameters among the multiple combinations of test photographing parameters, and the second combination of test photographing parameters is skipped during subsequent traversal.

[0090] Optionally, compare the detected light intensity value of the currently traversed combination of test photographing parameters l with the light intensity threshold. If the detected light intensity value of the combination of test photographing parameters l is less than or equal to the light intensity threshold, a combination in which the calibration value of each photographing parameter is less than the calibration value of each photographing parameter within the combination of test photographing parameters l is determined from the first combinations of test photographing parameters as the second combination of test photographing parameters.

[0091] Among them, the light intensity threshold D T , D T is the minimum value of D i in all results that satisfy T u ≥T i . T u is the shooting duration threshold. Optionally, the present disclosure does not limit the setting of the shooting duration threshold. For example, the shooting duration threshold can be 300 minutes.

[0092] For example, if the detected light intensity value D l of the combination of test photographing parameters l is less than or equal to the light intensity threshold D T , that is, D l ≤D T , if the combination of test photographing parameters is {O l , E l , P l}, O x ≤O l , E x ≤E l , P x ≤P l , then {O x , E x , P x} is used as the second combination of test photographing parameters, and it is not necessary to test {O x , E x , P x}.

[0093] In an embodiment of the present disclosure, according to the calibration values of each shooting parameter in the second test shooting parameter combination, as well as the critical shooting duration and detection light intensity value of the test shooting parameter combination l, a calibration result {O x ,E x ,D l ,P x ,T l} corresponding to the second test shooting parameter combination is stored.

[0094] In an embodiment of the present disclosure, the strong light response time of the currently traversed test shooting parameter combination g can be compared with the strong light response time threshold, where the test shooting parameter combination g is {O g ,E g ,P g}. If the strong light response time of the test shooting parameter combination g is less than or equal to the strong light response time threshold, a combination in which the calibration value of each shooting parameter is greater than the calibration value of each shooting parameter in the test shooting parameter combination g is determined from the first test shooting parameter combination as the second test shooting parameter combination.

[0095] For example, if the test shooting parameter combination g is {O g ,E g ,P g}, if the strong light response time T g of the test shooting parameter combination g is less than or equal to the strong light response time threshold T s , that is, T g <T s , the strong light response time threshold T s can be set to 5 seconds, and O x >O g ,E x >E g ,P x >P g , then {O x ,E x ,P x} is used as the second test shooting parameter combination, and {O x ,E x ,P x} does not need to be tested.

[0096] In an embodiment of the present disclosure, according to the calibration values of each shooting parameter in the second test shooting parameter combination, as well as the detection light intensity value and strong light response time of the test shooting parameter combination g, a calibration result {O x ,E x ,D g ,P x ,T g} corresponding to the second test shooting parameter combination is stored.

[0097] For example, for the aperture size O, the first calibration value and the second calibration value can be selected from the calibration levels, where the first calibration value O s1 is the largest level less than or equal to the measured value of the aperture size O x , and the second calibration value O s2 is the smallest level greater than or equal to the measured value of the predicted aperture size O x , that is, O s1 ≤O x ≤O s2 ; for the exposure time E, the first calibration value and the second calibration value can be selected from the calibration levels, where the first calibration value E s1 is the largest level less than or equal to the measured value of the exposure time E x , and the second calibration value E s2 is the smallest level greater than or equal to the measured value of the exposure time E x , that is, E s1 ≤E x ≤E s2 .

[0098] For example, for the light source power P, the first calibration value P s11 is the largest level where the detection value D s1 under {O s1 , E s111 is less than or equal to the detected light intensity value D x , and the second calibration value P s112 is the smallest level where the detection value D s1 under {O s1 , E s112 is greater than or equal to the detected light intensity value D x . The first calibration value P s1 and the second calibration value P s2 are determined in the same way under {O s121 , E s122 , and the first calibration value P s2 and the second calibration value P s1 are determined under {O s211 , E s212 , and the first calibration value P s2 and the second calibration value P s2 are determined under {O s221 , E s222 .

[0099] In the embodiments of the present disclosure, after obtaining the first calibration value and the second calibration value of the shooting parameters, multiple basic combinations of the shooting parameters can be obtained. For example: {O s1 , E s1 , P s111 , Ds111}, {O s1 , E s1 , P s112 , D s112}, etc.

[0100] S402. Determine the number of shooting parameters in the first shooting parameter combination, and use the number of shooting parameters as the number of iterations for the linear fitting of any prediction parameter.

[0101] S403. Starting from the basic combination, perform linear fitting on any prediction parameter according to the number of iterations to obtain the final predicted value of any prediction parameter that matches the measured value of the shooting parameter.

[0102] Optionally, starting from the basic combination, traverse the shooting parameters in the first shooting parameter combination in order. For the currently traversed shooting parameter k, pair up the candidate combinations of the shooting parameters iterated in the (k - 1)th iteration to obtain at least one candidate combination pair required for the kth linear fitting. Perform linear fitting on the candidate parameter combination pairs to obtain at least one candidate combination iterated in the kth iteration until the iteration ends. Among them, the two candidate combinations in the candidate combination pair include the same calibration values for shooting parameters 1 to shooting parameter (k - 1), different fitting values for any prediction parameter, and the measured values for shooting parameter k to the last shooting parameter.

[0103] For example, for the basic combinations {O s1 , E s1 , P s111 , D s111} and {O s1 , E s1 , P s112 , D s112}, it is possible to traverse the shooting parameters in the first shooting parameter combination in order to obtain at least one candidate combination pair {O s1 , E s1 , P x11 , D x} required for the kth linear fitting, and perform linear fitting on the candidate parameter combination pairs to obtain {O s1 , E s1 , P x11 , D x} in Obtain at least one candidate combination {O s1 , E x , P x1 , D x} iterated in the kth iteration. For the basic combinations {O s1 , E s2 , P s121 , D s121} and {O s1 , Es2 , P s122 , D s122}, the shooting parameters in the first shooting parameter combination can be traversed in sequence to obtain at least one candidate combination pair {O s1 , E s2 , P x12 , D x} required for the k-th linear fitting, and linear fitting is performed on the candidate parameter combination pairs to obtain {O s1 , E s2 , P x12 , D x} in Similarly, obtain P x21 , P x22 .

[0104] For example, for the basic combinations {O s1 , E s1 , P x11 , D x} and {O s1 , E s2 , P x12 , D x}, the shooting parameters in the first shooting parameter combination can be traversed in sequence to obtain at least one candidate combination pair {O s1 , E x , P x1 , D x} required for the k-th linear fitting, and linear fitting is performed on the candidate parameter combination pairs to obtain {O s1 , E x , P x1 , D x} in For the basic combinations {O s2 , E s1 , P x21 , D x} and {O s2 , E s2 , P x22 , D x}, the shooting parameters in the first shooting parameter combination can be traversed in sequence to obtain at least one candidate combination pair {O s1 , E x , P x2 , D x} in

[0105] Furthermore, for {O s1 , E x , P x1 , D x} and {O s2 , Ex , P x2 , D x} Perform linear fitting to obtain the final predicted value of any predicted parameter that matches the measured value of the shooting parameter {O x , E x , P x , D x} in Regarding the specific process of obtaining T x is the same as that of P x and will not be elaborated here.

[0106] According to a shooting method of an embodiment of the present disclosure, by obtaining the first calibration value and the second calibration value of the shooting parameters in the first shooting parameter combination, and based on the first calibration value and the second calibration value of the shooting parameters, obtaining a plurality of basic combinations of the shooting parameters, where each basic combination includes the calibration value of the shooting parameters and the calibration value of any predicted parameter, determining the number of the shooting parameters in the first shooting parameter combination, and using the number of the shooting parameters as the iteration times of the linear fitting of any predicted parameter, starting from the basic combination, performing linear fitting on any predicted parameter according to the iteration times to obtain the final predicted value of any predicted parameter that matches the measured value of the shooting parameters. Thus, the present disclosure ensures the accuracy and reliability of obtaining the final predicted value of any predicted parameter that matches the measured value of the shooting parameters by obtaining the final predicted value of any predicted parameter that matches the measured value of the shooting parameters, laying a foundation for subsequent shooting protection of the shooting device.

[0107] The following explains the specific application scenarios of the shooting method proposed in the embodiment of the present disclosure.

[0108] For example, as Figure 5 shown, if the shooting device is pre-configured with a shooting parameter set, the power of the strong light source in the image captured by the image sensor of the shooting device (camera terminal device) can be predicted to obtain the predicted light source power of the image frame, and the predicted critical shooting duration of the camera terminal device under the shooting parameter combination can be obtained. According to the predicted light source power and the predicted critical shooting duration, shooting protection can be performed on the shooting device, and it can be determined whether the shooting parameter combination is a safe shooting configuration. If the shooting parameter combination is not a safe shooting configuration, shooting protection is performed on the camera terminal device, the safe shooting configuration parameter range is determined in real time, and the user is reminded.

[0109] In summary, according to the shooting method of the present disclosure embodiment, through complete calibration data and high-dynamic detection values, the strong light sources of the image frames captured under any combination of shooting parameters can be predicted, and through the complete calibration data, the safe shooting parameter configuration range can be accurately divided, and the shooting device can be accurately protected during strong light scenes, reducing the user perception and improving the user experience.

[0110] Figure 6 It is a block diagram of a shooting device shown according to an exemplary embodiment.

[0111] As Figure 6 shown, the shooting device 1000 includes: an acquisition module 110, a prediction module 120, a second acquisition module 130, and a protection module 140.

[0112] The first acquisition module 110 is configured to acquire the first combination of shooting parameters actually measured by the shooting device;

[0113] The prediction module 120 is configured to predict the power of the strong light source of the first image currently captured by the shooting device according to the first combination of shooting parameters, and obtain the predicted light source power of the first image;

[0114] The second acquisition module 130 is configured to acquire the predicted critical shooting duration of the shooting device under the first combination of shooting parameters;

[0115] The protection module 140 is configured to perform shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration.

[0116] Further, the protection module 140 is further configured to: acquire the first calibrated light source power and the second calibrated light source power corresponding to the predicted light source power; determine the first candidate shooting duration of the shooting device according to the aperture size and exposure time in the first combination of shooting parameters, and the first calibrated light source power and the second calibrated light source power; acquire the cumulative shooting duration of the shooting device, and judge whether the first combination of shooting parameters is a safe shooting configuration according to the cumulative shooting duration, the first candidate shooting duration, and the predicted critical shooting duration; if the first combination of shooting parameters is not a safe shooting configuration, perform shooting protection on the shooting device.

[0117] Further, the protection module 140 is further configured to: determine a second candidate shooting duration and a third candidate shooting duration of the shooting device according to the aperture size and exposure time in the first shooting parameter combination, and the first calibrated light source power and the second calibrated light source power; perform linear fitting on the second candidate shooting duration and the third candidate shooting duration based on the predicted light source power, the first calibrated light source power, and the second calibrated light source power to obtain the first candidate shooting duration.

[0118] Further, the device 1000 is further configured to: predict the predicted light source power of a third image based on the predicted light source power of the first image and the predicted light source power of the second image, where the second image is the previous frame image adjacent to the first image, and the third image is the next frame image adjacent to the first image; pre-judge whether the first shooting parameter combination is a safe shooting configuration for the third image based on the predicted light source power of the third image.

[0119] Further, the device 1000 is further configured to: determine the detected light intensity value of a pixel point from the first shooting parameter combination; determine the first pixel points whose detected light intensity value is greater than the light intensity threshold, and set a mark for the first pixel points to determine at least one connected region of the first image; for each connected region, obtain the number of pixel points in the connected region, and determine the light source corresponding to the first connected region whose number of pixel points is greater than a preset number threshold as a strong light source.

[0120] Further, the device 1000 is further configured to: determine a first strong light set of the first image based on the strong light source corresponding to the first connected region; obtain a second strong light set of the second image; perform light source tracking on the first strong light set of the first image and the second strong light set of the second image to determine the matching relationship between the light sources in the first light source set and the second light source set.

[0121] Further, the device 1000 is further configured to: obtain the matching weight between the strong light source i in the first strong light set and the strong light source j in the second strong light set; construct a bipartite graph based on the first strong light set and the second strong light set; perform Hungarian matching based on the bipartite graph and the matching weight between the strong light source i and the strong light source j to determine the matching relationship between the light sources in the first light source set and the second light source set.

[0122] Further, the device 1000 is further configured to: obtain the number of overlapping points between the first connected regions corresponding to the strong light sources i and j respectively; obtain the first pixel points in the first connected region corresponding to the strong light source i and the second pixel points in the first connected region corresponding to the strong light source j; determine the minimum distance according to the distances between the first pixel points and the second pixel points; and determine the matching weights of the strong light sources i and j according to the number of overlapping points, the minimum distance, and a preset weight bias.

[0123] Further, for any one of the predicted light source power and the predicted critical shooting duration, the device 1000 is further configured to: obtain the first calibration value and the second calibration value of the shooting parameters in the first shooting parameter combination, and obtain multiple basic combinations of the shooting parameters according to the first calibration value and the second calibration value of the shooting parameters, where each basic combination includes the calibration value of the shooting parameters and the calibration value of any one of the predicted parameters; determine the number of the shooting parameters in the first shooting parameter combination, and use the number of the shooting parameters as the iteration number of the linear fitting of any one of the predicted parameters; start from the basic combination, perform linear fitting on any one of the predicted parameters according to the iteration number, and obtain the final predicted value of any one of the predicted parameters that matches the measured value of the shooting parameters.

[0124] Further, the device 1000 is further configured to: start from the basic combination, traverse the shooting parameters in the first shooting parameter combination in order. For the currently traversed shooting parameter k, pair up the candidate combinations of the shooting parameters iterated in the (k - 1)th iteration to obtain at least one candidate combination pair required for the kth linear fitting, perform linear fitting on the candidate parameter combination pairs, and obtain at least one candidate combination iterated in the kth iteration until the iteration ends; where the two candidate combinations in the candidate combination pair include the same calibration values for the shooting parameters 1 to the shooting parameter k - 1, different fitting values for any one of the predicted parameters, and the measured values for the shooting parameters k to the last shooting parameter.

[0125] Further, the device 1000 is further configured to: obtain multiple test shooting parameter combinations, where the test shooting parameter combinations at least include the calibrated light source power, the calibrated aperture size, and the calibrated exposure time; configure a test shooting device based on the test shooting parameter combinations, control the test shooting device to shoot, and record the critical shooting duration and the detected light intensity value when the test shooting device starts to be damaged; and generate and store the calibration results corresponding to the test shooting parameter combinations according to the test shooting parameter combinations, the critical shooting duration, and the detected light intensity value.

[0126] Further, the device 1000 is further configured to: during the process of traversing and testing the multiple combinations of test shooting parameters, based on the detected light intensity value and / or the strong light response duration of the currently traversed combination of test shooting parameters, determine, from the remaining first combinations of test shooting parameters that have not been traversed among the multiple combinations of test shooting parameters, a second combination of test shooting parameters that can be skipped for testing; and skip the testing of the second combination of test shooting parameters during subsequent traversal.

[0127] Further, the device 1000 is further configured to: compare the detected light intensity value of the currently traversed combination of test shooting parameters l with the light intensity threshold; if the detected light intensity value of the combination of test shooting parameters l is less than or equal to the light intensity threshold, determine, from the first combinations of test shooting parameters, a combination in which the calibration value of each shooting parameter is less than the calibration value of each shooting parameter within the combination of test shooting parameters l as the second combination of test shooting parameters.

[0128] Further, the device 1000 is further configured to: generate and store a calibration result corresponding to the second combination of test shooting parameters according to the calibration value of each shooting parameter in the second combination of test shooting parameters, and the critical shooting duration and the detected light intensity value of the combination of test shooting parameters l.

[0129] Further, the device 1000 is further configured to: compare the strong light reaction time of the currently traversed combination of test shooting parameters g with the strong light reaction time threshold; if the strong light reaction time of the combination of test shooting parameters g is less than or equal to the strong light reaction time threshold, determine, from the first combinations of test shooting parameters, a combination in which the calibration value of each shooting parameter is greater than the calibration value of each shooting parameter within the combination of test shooting parameters g as the second combination of test shooting parameters.

[0130] Further, the device 1000 is further configured to: generate and store a calibration result corresponding to the second combination of test shooting parameters according to the calibration value of each shooting parameter in the second combination of test shooting parameters, and the detected light intensity value and the strong light reaction time of the combination of test shooting parameters g.

[0131] A photographing device according to an embodiment of the present disclosure obtains a first combination of measured photographing parameters of the photographing device; based on the first combination of photographing parameters, predicts the power of the strong light source in the first image currently captured by the photographing device to obtain the predicted light source power of the first image, obtains the predicted critical photographing duration of the photographing device under the first combination of photographing parameters, and performs photographing protection on the photographing device according to the predicted light source power and the predicted critical photographing duration. Thus, the present disclosure predicts the power of the strong light source in the first image currently captured by the photographing device through the first combination of photographing parameters, can accurately detect strong light under the photographing device, and can perform photographing protection on the photographing device through a safe combination of photographing parameters, ensuring the safety of the photographing device during the photographing process and being beneficial to improving the service life of the photographing device.

[0132] To implement the above embodiments, the present disclosure also provides an electronic device, as Figure 7 shown. The electronic device 2000 includes: a processor 201; one or more memories 202 for storing executable instructions of the processor 201; wherein, the processor 201 is configured to execute the photographing method described in the above embodiments. The processor 201 and the memory 202 are connected through a communication bus.

[0133] To implement the above embodiments, the present disclosure also provides a computer-readable storage medium including instructions, such as the memory 202 including instructions, and the above instructions can be executed by the processor 201 of the device 1000 to complete the above method. Optionally, the computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0134] To implement the above embodiments, the present disclosure also provides a computer program product including a computer program, characterized in that the computer program, when executed by a processor, implements the photographing method described in the above embodiments.

[0135] Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

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

Claims

1. A shooting method, characterized in that, The method includes: Obtaining a first set of shooting parameters measured by a shooting device; Predicting the power of the strong light source in the first image currently captured by the shooting device according to the first set of shooting parameters to obtain the predicted light source power of the first image; Obtaining the predicted critical shooting duration of the shooting device under the first set of shooting parameters; Performing shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration.

2. The method according to claim 1, wherein The performing shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration includes: Obtaining a first calibrated light source power and a second calibrated light source power corresponding to the predicted light source power; Determining a first candidate shooting duration of the shooting device according to the aperture size and exposure time in the first set of shooting parameters, and the first calibrated light source power and the second calibrated light source power; Obtaining the cumulative shooting duration of the shooting device, and judging whether the first set of shooting parameters is a safe shooting configuration according to the cumulative shooting duration, the first candidate shooting duration and the predicted critical shooting duration; If the first set of shooting parameters is not a safe shooting configuration, performing shooting protection on the shooting device.

3. The method according to claim 2, characterized in that, The determining the first candidate shooting duration of the shooting device according to the aperture size and exposure time in the first set of shooting parameters, and the first calibrated light source power and the second calibrated light source power includes: Determining a second candidate shooting duration and a third candidate shooting duration of the shooting device according to the aperture size and exposure time in the first set of shooting parameters, and the first calibrated light source power and the second calibrated light source power; Performing linear fitting on the second candidate shooting duration and the third candidate shooting duration based on the predicted light source power, the first calibrated light source power and the second calibrated light source power to obtain the first candidate shooting duration.

4. The method according to claim 1, wherein After performing shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration, it further includes: Predicting the predicted light source power of a third image based on the predicted light source power of the first image and the predicted light source power of a second image, where the second image is the previous frame image adjacent to the first image, and the third image is the next frame image adjacent to the first image; Pre-judging whether the first set of shooting parameters is a safe shooting configuration for the third image based on the predicted light source power of the third image.

5. The method according to claim 1, wherein Before predicting the power of the strong light source in the first image currently captured by the shooting device according to the first set of shooting parameters, it further includes: Determining the detected light intensity value of a pixel point from the first set of shooting parameters; Determining the first pixel points whose detected light intensity values are greater than the light intensity threshold, and setting marks on the first pixel points to determine at least one connected region of the first image; For each connected region, obtaining the number of pixel points in the connected region, and determining the light source corresponding to the first connected region whose number of pixel points is greater than a preset number threshold as a strong light source.

6. The method according to claim 5, characterized in that, The method further includes: Determine a first strong light set of the first image based on the strong light source corresponding to the first connected region; Obtain a second strong light set of the second image; Perform light source tracking on the first strong light set of the first image and the second strong light set of the second image to determine the matching relationship between the light sources in the first light source set and the second light source set.

7. The method according to claim 6, wherein The performing light source tracking on the first strong light set of the first image and the second strong light set of the second image to determine the matching relationship between the light sources in the first light source set and the second light source set includes: Obtain the matching weight between the strong light source i in the first strong light set and the strong light source j in the second strong light set; Construct a bipartite graph based on the first strong light set and the second strong light set; Perform Hungarian matching based on the bipartite graph and the matching weight between the strong light source i and the strong light source j to determine the matching relationship between the light sources in the first light source set and the second light source set.

8. The method according to claim 7, wherein The obtaining the matching weight between the light source i and the light source j includes: Obtain the number of overlapping points between the first connected regions corresponding to the strong light source i and the strong light source j respectively; Obtain a first pixel point in the first connected region corresponding to the strong light source i and a second pixel point in the first connected region corresponding to the strong light source j; Determine the minimum distance according to the distance between the first pixel point and the second pixel point; Determine the matching weight between the strong light source i and the strong light source j according to the number of overlapping points, the minimum distance and a preset weight bias.

9. The method according to any one of claims 1 - 8, characterized in that, For any one of the predicted light source power and the predicted critical shooting duration, the method further includes: Obtain a first calibration value and a second calibration value of the shooting parameters in the first shooting parameter combination, and obtain a plurality of basic combinations of the shooting parameters according to the first calibration value and the second calibration value of the shooting parameters, wherein each basic combination includes the calibration value of the shooting parameters and the calibration value of any one of the predicted parameters; Determine the number of the shooting parameters in the first shooting parameter combination, and use the number of the shooting parameters as the number of iterations for linear fitting of any one of the predicted parameters; Starting from the basic combination, perform linear fitting on any one of the predicted parameters according to the number of iterations to obtain the final predicted value of any one of the predicted parameters that matches the measured value of the shooting parameters.

10. The method according to claim 9, characterized in that, The performing linear fitting on the light source power starting from the basic combination to obtain the predicted light source power that matches the measured value of the shooting parameters: Starting from the basic combination, traverse the shooting parameters in the first shooting parameter combination in order. For the currently traversed shooting parameter k, pair up the candidate combinations of the shooting parameters iterated in the (k - 1)th iteration to obtain at least one candidate combination pair required for the kth linear fitting. Perform linear fitting on the candidate parameter combination pairs to obtain at least one candidate combination iterated in the kth iteration until the iteration ends; Among the two candidate combinations within the candidate combination pair, the calibration values of shooting parameters 1 to k-1 included in the two candidate combinations are the same, the fitting values of any prediction parameter are different, and the measured values are configured for shooting parameters k to the last shooting parameter.

11. The method according to claim 9, wherein The method further includes: Obtaining a plurality of test shooting parameter combinations, where the test shooting parameter combinations at least include a calibrated light source power, a calibrated aperture size, and a calibrated exposure time; Configuring a test shooting device based on the test shooting parameter combinations, and controlling the test shooting device to take pictures, and recording the critical shooting duration and the detected light intensity value when the test shooting device starts to be damaged; Generating a calibration result corresponding to the test shooting parameter combination according to the test shooting parameter combination, the critical shooting duration, and the detected light intensity value, and storing it.

12. The method according to claim 11, wherein The method further includes: During the process of traversing and testing the plurality of test shooting parameter combinations, based on the detected light intensity value and / or the strong light reaction duration of the currently traversed test shooting parameter combination, determining a second test shooting parameter combination that can skip the test from the remaining un-traversed first test shooting parameter combinations among the plurality of test shooting parameter combinations; Skipping the test of the second test shooting parameter combination during subsequent traversal.

13. The method according to claim 12, characterized in that, The method further includes: Comparing the detected light intensity value of the currently traversed test shooting parameter combination l with a light intensity threshold; If the detected light intensity value of the test shooting parameter combination l is less than or equal to the light intensity threshold, determining, from the first test shooting parameter combinations, a combination in which the calibration value of each shooting parameter is less than the calibration value of each shooting parameter within the test shooting parameter combination l as the second test shooting parameter combination.

14. The method according to claim 13, wherein The method further includes: Generating a calibration result corresponding to the second test shooting parameter combination according to the calibration value of each shooting parameter in the second test shooting parameter combination, the critical shooting duration, and the detected light intensity value of the test shooting parameter combination l, and storing it.

15. The method according to claim 12, characterized in that, The method further includes: Comparing the strong light reaction time of the currently traversed test shooting parameter combination g with a strong light reaction time threshold; If the strong light reaction time of the test shooting parameter combination g is less than or equal to the strong light reaction time threshold, determining, from the first test shooting parameter combinations, a combination in which the calibration value of each shooting parameter is greater than the calibration value of each shooting parameter within the test shooting parameter combination g as the second test shooting parameter combination.

16. The method according to claim 15, wherein The method further includes: Generating a calibration result corresponding to the second test shooting parameter combination according to the calibration value of each shooting parameter in the second test shooting parameter combination, the detected light intensity value of the test shooting parameter combination g, and the strong light reaction time, and storing it.

17. A photographing device, characterized in that, The device includes: A first acquisition module, configured to acquire a first shooting parameter combination actually measured by a shooting device; A prediction module, configured to predict the power of a strong light source in a first image currently taken by the shooting device according to the first shooting parameter combination, and obtain a predicted light source power of the first image; A second acquisition module, configured to acquire a predicted critical shooting duration of the shooting device under the first shooting parameter combination; A protection module, configured to perform shooting protection on the shooting device according to the predicted light source power and the predicted critical shooting duration.

18. An electronic device, characterized in that, Comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the shooting method according to any one of claims 1-16 is implemented.

19. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, the shooting method according to any one of claims 1-16 is implemented.