White balance control method and device, camera and computer program product

By deploying multiple white balance algorithms and sub-strategy in the camera, combining the operation speed of the gimbal and the state of the zoom lens, flexible switching control of the dialogue balance processing is achieved, solving the scene changes brought by the gimbal and zoom lenses, and improving imaging quality.

CN120302171APending Publication Date: 2025-07-11TP-LINK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510389901.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

When existing cameras are equipped with gimbals and zoom lenses, the conventional white balance algorithm cannot adapt to the scene changes caused by gimbal rotation and lens zoom, resulting in inaccurate color temperature estimation, color temperature oscillation and non-smooth color.

Method used

The camera deploys at least two white balance algorithms, each of which includes multiple sub-strategies. By obtaining the gimbal operation speed and zoom state of the zoom lens, the current working state is determined, and flexible white balance processing and switching control is performed according to the algorithm switching control parameters.

Benefits of technology

It realizes that the camera can perform flexible white balance processing in the scene changes caused by the gimbal rotation and lens zoom, reducing the problem of inaccurate color temperature estimation and unsmooth color, and improving the imaging effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120302171A_ABST
    Figure CN120302171A_ABST
Patent Text Reader

Abstract

The invention discloses a white balance control method, a white balance control device, a camera and a computer program product. Wherein the camera is deployed with at least two white balance algorithms, each white balance algorithm comprises at least two sub-strategies, and the camera performs white balance processing by applying at least one non-conflicting sub-strategy in one white balance algorithm; the white balance control method comprises the following steps: acquiring operation parameters of a camera, wherein the operation parameters comprise the operation speed of a holder and the zoom state of a zoom lens; determining the current working state of the camera according to the operation parameters; updating algorithm switching control parameters according to the working state; and switching control is performed on white balance processing performed by the camera based on the algorithm switching control parameters. According to the scheme of the invention, the camera can adaptively adjust the algorithm to switch the control parameters based on the scene change caused by the rotation of the holder and the zooming of the lens, thereby achieving the flexible control of the white balance processing of the camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of image processing, and particularly relates to a white balance control method, a white balance control device, a camera, and a computer program product. Background Art

[0002] Since different light sources (including but not limited to sunlight, incandescent lamps, fluorescent lamps, etc.) have different color temperatures, it will cause the photographed pictures to have color cast phenomena. Therefore, during the imaging process of a camera, an Automatic White Balance (AWB) technology is applied for white balance processing. Among them, the main function of this automatic white balance technology is to correct the color deviation in the image, so that the images taken under different lighting conditions can present the true colors of objects. Generally speaking, the automatic white balance technology is realized through a white balance algorithm. Specifically: by adjusting the color channels of the image, the white object can be displayed as white under various lighting conditions, so as to achieve accurate color restoration.

[0003] Currently, some cameras, such as surveillance cameras, etc., are already equipped with a pan-tilt and a zoom lens, so as to better capture the regions of interest of users in the environment. However, conventional white balance algorithms cannot adapt to the scene changes brought by the rotation of the pan-tilt and the zoom of the lens, and may have problems such as inaccurate color temperature estimation, color temperature oscillation, and / or uneven color, resulting in poor imaging effects. Summary of the Invention

[0004] This application provides a white balance control method, a white balance control device, a camera, and a computer program product, which can enable the camera to adaptively adjust the algorithm switching control parameters based on the scene changes brought by the rotation of the pan-tilt and the zoom of the lens, so as to achieve flexible control of the white balance processing performed by the camera.

[0005] In a first aspect, this application provides a white balance control method. This white balance control method is applied to a camera equipped with a pan-tilt and a zoom lens. The camera is deployed with at least two white balance algorithms, and each white balance algorithm includes at least two sub-strategies; the camera performs white balance processing by applying at least one non-conflicting sub-strategy in a white balance algorithm; the white balance control method includes:

[0006] Obtain the operating parameters of the camera, where the operating parameters include: the rotation speed of the pan-tilt and the zoom state of the zoom lens;

[0007] Determine the current working state of the camera according to the operating parameters;

[0008] Update the algorithm switching control parameters according to the working state;

[0009] Switch control is performed on the white balance processing performed by the camera based on the algorithm switching control parameter.

[0010] In a second aspect, the present application provides a white balance control device, which is applied to a camera equipped with a pan-tilt and a zoom lens. The camera is deployed with at least two white balance algorithms, and each white balance algorithm includes at least two sub-strategies; the camera performs white balance processing using at least one non-conflicting sub-strategy in one white balance algorithm; the white balance control device includes:

[0011] An acquisition module for acquiring the operating parameters of the camera, where the operating parameters include: the rotation speed of the pan-tilt and the zoom state of the zoom lens;

[0012] A determination module for determining the current working state of the camera according to the operating parameters;

[0013] An update module for updating the algorithm switching control parameter according to the working state;

[0014] A control module for performing switch control on the white balance processing performed by the camera based on the algorithm switching control parameter.

[0015] In a third aspect, the present application provides a camera. The above camera includes a pan-tilt, a zoom lens, a memory, a processor, and a computer program stored in the above memory and executable on the above processor. When the above processor executes the above computer program, the steps of the method in the above first aspect are implemented.

[0016] In a fourth aspect, the present application provides a computer program product. The above computer program product includes a computer program. When the above computer program is executed by one or more processors, the steps of the method in the above first aspect are implemented.

[0017] The beneficial effects of the present application compared with the prior art are as follows: In the solution of the present application, the camera no longer deploys only a single white balance algorithm, but deploys at least two white balance algorithms; moreover, each white balance algorithm includes multiple sub-strategies. When the camera performs white balance processing, it only applies at least one non-conflicting sub-strategy in one white balance algorithm. In this way, the camera not only provides the possibility of switching between different white balance algorithms, but also provides the possibility of switching between different sub-strategies within the same white balance algorithm. Specifically, the switching between algorithms and the switching between sub-strategies within an algorithm are controlled by an algorithm switching control parameter, and this algorithm switching control parameter is not fixed, but changes adaptively to scene changes. The implementation process is as follows: Since the environmental images collected by the camera usually change due to the rotation of the pan-tilt and the zooming of the zoom lens, the solution of the present application also takes into account the operating parameters of the camera, that is, the rotation speed of the pan-tilt and the zoom state of the zoom lens. Based on these operating parameters, the camera can quickly determine its current working state, and according to this working state, update the algorithm switching control parameter, and finally, based on this algorithm switching control parameter, perform switching control on the white balance processing performed by the camera. In this way, the camera can adapt to the scene changes brought about by the rotation of the pan-tilt and the zooming of the lens, and achieve flexible control of the white balance processing performed by the camera.

[0018] It can be understood that the beneficial effects of the second to fourth aspects can be referred to the relevant descriptions in the first aspect above, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0020] Figure 1 is a schematic flowchart of the implementation of the white balance control method provided by the embodiment of the present application;

[0021] Figure 2 is a schematic diagram of the steady-state strategy provided by the embodiment of the present application;

[0022] Figure 3 is a schematic diagram of the values of the first quantity threshold and the second quantity threshold in the steady-state strategy provided by the embodiment of the present application;

[0023] Figure 4 is a structural block diagram of the white balance control device provided by the embodiment of the present application;

[0024] Figure 5It is a schematic structural diagram of a camera provided by an embodiment of the present application. Detailed implementation manners

[0025] The embodiments of the technical solution of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments are only used to illustrate the technical solution of the present application more clearly, and therefore are only examples and cannot be used to limit the protection scope of the present application.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above drawings are intended to cover non-exclusive inclusion.

[0027] In the description of the embodiments of the present application, technical terms such as "first" and "second" are only used to distinguish different objects and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity, specific order or primary-secondary relationship of the indicated technical features.

[0028] Referring to "embodiments" herein means that the specific features, structures or characteristics described in connection with the embodiments can be included in at least one embodiment of this application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0029] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.

[0030] In the description of the embodiments of the present application, the term "plurality" means two or more (including two), unless otherwise specifically defined.

[0031] An embodiment of the present application proposes a white balance control method. Among them, the white balance control method can be applied to a camera. The camera will be introduced first as follows:

[0032] From a hardware perspective, the camera is equipped with a pan-tilt and a zoom lens, which can specifically be an ordinary surveillance camera or an IP camera (IPC), etc. The embodiments of the present application do not limit the type of the camera.

[0033] From a software perspective, there are at least two white balance algorithms for camera deployment. By way of example only, the at least two white balance algorithms may include, but are not limited to, the white point clustering algorithm, the gray world algorithm, etc., and are not limited herein. Each white balance algorithm includes at least two sub-strategies. It can be understood that when the camera actually performs white balance processing, only at least one non-conflicting sub-strategy in one white balance algorithm will be applied. For example, in a certain white balance algorithm, there are four sub-strategies, namely: sub-strategy A, B, C, and D. Among them, sub-strategy A and sub-strategy B are mutually exclusive strategy pairs, that is, only one of them can take effect, so there is a possibility of mutual switching between the two; sub-strategy C and sub-strategy D are mutually exclusive strategy pairs, and only one of them can take effect between the two, and there is also a possibility of mutual switching between the two. However, sub-strategy A is not mutually exclusive with sub-strategy C and D, so the two non-conflicting sub-strategies of sub-strategy A and sub-strategy C can be executed simultaneously inside this white balance algorithm. It can be seen that through the above optimizations made from a software perspective in the embodiments of the present application, it is possible to switch between different white balance algorithms and between different sub-strategies in the same white balance algorithm.

[0034] Based on the camera proposed above, please refer to Figure 1 , Figure 1 which gives the implementation process of the white balance control method applied to this camera, and is specifically described in detail as follows:

[0035] Step 101, obtain the operating parameters of the camera.

[0036] When the captured image of the camera changes, in addition to being caused by the changes in the environment itself (such as day and night alternation and object movement, etc.), it will also be caused by the rotation of the camera's pan-tilt and the zoom of the zoom lens. Since the changes in the environment itself are uncontrollable, in the solution of the present application, the rotation of the pan-tilt and the zoom of the zoom lens are mainly concerned. Based on this, the camera can first obtain its own operating parameters, and the operating parameters include: the rotation speed of the pan-tilt and the zoom state of the zoom lens.

[0037] Among them, since the rotation of the pan-tilt is generally rotation, specifically, it supports rotation in the horizontal direction; in the case of an omnidirectional pan-tilt, it can also support rotation in the vertical direction and / or other directions; but at a single moment, the camera will only rotate in one direction (horizontal direction, vertical direction, and / or other directions). Based on this, the rotation speed can be expressed in the form of linear velocity, or it can also be expressed in the form of angular velocity, and the embodiments of the present application do not limit this.

[0038] Among them, the zoom state of the zoom lens includes a zoom state and a stationary state; among them, the zoom state includes: zoom in (Zoom In), that is, zooming in on the lens; and, zoom out (Zoom Out), that is, zooming out on the lens.

[0039] Step 102: Determine the current working state of the camera according to the operating parameters.

[0040] The camera can analyze the operating parameters to determine the current working state of the camera. In the embodiments of the present application, the working state can be divided into the following three categories: operating state, transition state, and stable state. The following is a specific introduction to these three working states.

[0041] The operating state means that the pan-tilt is operating and / or the zoom lens is zooming. Based on this, the camera can determine that it is in the operating state when the operating speed of the pan-tilt is non-zero and / or the zoom state of the zoom lens is the zoom state.

[0042] The stable state means that the pan-tilt and the zoom lens remain stationary for a period of time. Based on this, the camera can determine that it is in the stable state when the operating speed is zero, the zoom state is the stationary state, and it has not been in the moving state within the specified historical period. In other words, the camera can determine that it is in the stable state when the operating speed obtained within the historical period and currently is always zero, and the zoom state obtained within the historical period and currently is always the stationary state.

[0043] The transition state means the state when the camera transitions from the operating state to the stable state. The camera can determine that it is in the transition state when the operating speed is zero, the zoom state is the stationary state, and it has been in the moving state within the specified historical period.

[0044] To facilitate the understanding of the differences between the stable state and the transition state, the following is illustrated by a specific example:

[0045] Assume that the current time is time t2, and the operating speed obtained at this current time is zero, and the zoom state is the stationary state; pushing back a preset duration t' from this time t2 to time t1, then the period from t1 to t2 is the historical period. The camera traverses all the operating speeds and zoom states obtained within this historical period. For the convenience of distinction, the operating speeds obtained within this historical period are denoted as historical operating speeds, and the zoom states obtained within this historical period are denoted as historical zoom states. Then there are the following two situations:

[0046] Situation 1: All historical operating speeds are zero, and all historical zoom states are stationary states; that is, within the historical period and at the current moment, the pan-tilt has never operated, and the zoom lens has never zoomed. In this case, the camera is in the stable state.

[0047] Case 1: There is more than one historical operating speed that is not zero, and / or there is more than one historical zoom state that is a zoom state; that is, the pan-tilt head has operated during the historical period, and / or the zoom lens has zoomed during the historical period. In this case, the camera is in a transitional state.

[0048] Step 103, update the algorithm switching control parameters according to the working state;

[0049] Based on the above optimizations made by the camera from a software perspective described above, the embodiments of the present application propose algorithm switching control parameters, which are used to control the switching between different white balance algorithms and the switching between different sub-strategies in the same white balance algorithm, and the algorithm switching control parameters are affected by the working state of the camera. In some examples, the algorithm switching control parameters at least include one or more of the following: algorithm switching delay, sub-strategy switching threshold, and white balance gain switching speed.

[0050] The algorithm switching delay refers to the minimum duration that needs to be maintained to meet the corresponding switching conditions when switching between different white balance algorithms, and is statistically counted in terms of the number of frames. Exemplarily, when the camera switches the applied white balance algorithm from a certain deployed white balance algorithm to another deployed white balance algorithm, it needs to continuously meet the specified algorithm switching conditions for at least T frames for the switching behavior to actually occur, and the number of frames T is the algorithm switching delay.

[0051] The sub-strategy switching threshold refers to the sub-strategy switching conditions that need to be met when switching between different sub-strategies under the same white balance algorithm. Exemplarily, there are sub-strategies A and B under a certain deployed white balance algorithm. When the camera switches the applied sub-strategy from sub-strategy A to sub-strategy B, it needs to meet the sub-strategy switching condition X; correspondingly, when the camera switches the applied sub-strategy from sub-strategy B to sub-strategy A, it needs to meet the sub-strategy switching condition Y. Generally, the sub-strategy switching conditions X and Y are both defined in the form of numerical thresholds, and X and Y are the sub-strategy switching thresholds for this white balance algorithm. And if the number of sub-strategies under this white balance algorithm increases, the number of sub-strategy switching thresholds for this white balance algorithm will also increase accordingly. Similarly, for other deployed white balance algorithms, there are at least two sub-strategy switching thresholds, which will not be elaborated here.

[0052] The white balance gain switching speed refers to the speed S at which the camera calculates a new white balance gain based on the currently applied white balance algorithm and its sub-strategies, and when the new white balance gain is different from the old white balance gain (that is, the last calculated white balance gain), it switches from the old white balance gain to the new white balance gain.

[0053] After the camera is powered on, the switching control parameters of each algorithm can be initialized to default values first. After that, in different working states of the camera, different methods can be used to update the switching control parameters of the algorithm.

[0054] Step 104, perform switching control on the white balance processing performed by the camera based on the switching control parameters of the algorithm.

[0055] The camera can perform switching control on the white balance processing performed by the camera based on the updated switching control parameters of the algorithm. It can be understood that the switching control parameters of the algorithm proposed above can include both the switching control between different white balance algorithms, the switching control between different sub-strategies under the same white balance algorithm, and the switching control between new and old white balance gains, so that the camera can adapt to the changing scene conditions, perform flexible and appropriate white balance processing on the acquired images, and reduce possible problems such as inaccurate color temperature estimation, color temperature oscillation, and uneven color.

[0056] In an application scenario where the camera is in an operating state, the camera can update the switching control parameters of the algorithm in the following specific way: update the switching control parameters according to the shooting attribute information, operating speed, and zoom state of the camera.

[0057] Among them, the shooting attribute information includes: focal length f, the number of pixels hp of the image sensor in the operating direction, the size h of the image sensor in the operating direction, and exposure time t. Among them, the operating direction can be the horizontal direction, the vertical direction, and / or other directions, which are not limited here. The above shooting attribute information can be directly read from the image sensor of the camera, which will not be elaborated here.

[0058] Among them, if the operating speed of the pan-tilt is expressed by angular velocity, the operating speed can be denoted as w.

[0059] Among them, when the zoom state is zooming in, it can be expressed as ZI; when the zoom state is zooming out, it can be expressed as ZO.

[0060] Specifically, the first adjustment coefficient can be determined according to the operating speed, and the second adjustment coefficient can be determined according to the zoom state; after obtaining the first adjustment coefficient and the second adjustment coefficient, the first adjustment coefficient and the second adjustment coefficient can be fused by arithmetic operation to obtain the target adjustment coefficient; or the first adjustment coefficient and the second adjustment coefficient can be screened and retained based on logical operations to obtain the target adjustment coefficient, for example, the larger value of the first adjustment coefficient and the second adjustment coefficient is retained as the target adjustment coefficient; based on the target adjustment coefficient, the algorithm switching control parameter (or the default algorithm switching control parameter) that has not been updated is adjusted (for example, multiplied), and the updated algorithm switching control parameter can be obtained. Taking the algorithm switching control parameters including the algorithm switching delay T, the sub-strategy switching thresholds X and Y, and the white balance gain switching speed S as an example, in this application scenario, the updated algorithm switching control parameter is recorded as T 0 , X 0 , Y 0 and T 0 .

[0061] Specifically, the first adjustment coefficient can be obtained as follows:

[0062] When the operating speed is zero, the first adjustment coefficient is directly set to 0. When the operating speed is non-zero, the number of smear pixels can be calculated based on the shooting attribute information and the operating speed. The number of smear pixels refers to the number of pixels that the smear generated by the object imaging passes through during the exposure time. Then, the first adjustment coefficient is determined based on the number of smear pixels.

[0063] The derivation process of the calculation formula of the number of smear pixels N is as follows:

[0064] 1. First, during the exposure time, the angle θ that the camera passes through due to the operation of the pan / tilt can be calculated using the following formula: θ = w·t.

[0065] 2. Then, during the exposure time, due to the rotation of the camera, the image formed in the image sensor will move by an angle of θ. Therefore, the distance Δs that the image moves on the image sensor can be calculated by the following formula: Δs=f·θ.

[0066] 3. Next, in order to calculate the number of smear pixels, the moving distance Δs needs to be converted into the number of pixels. Assuming that the size of each pixel in the running direction is p, the size p can be calculated by the following formula: p = h / hp;

[0067] 4. So far, the calculation formula for the number of smear pixels N can be derived as follows:

[0068] N=Δs / p=f·θ / p=f·(w·t) / (h / hp)=f·w·t·hp / h

[0069] It can be understood that when the number of smear pixels N≥2, the human eye can perceive the existence of smear; and the larger N is, the more obvious the smear is. Based on this, the camera can set several pixel value intervals, and each pixel value interval corresponds to a different adjustment coefficient. In some examples, three smear pixel value thresholds can be pre-divided, which are N1, N2, and N3 respectively, where N1 < N2 < N3; then based on these three smear pixel value thresholds, there can be four pixel value intervals, and each pixel value interval corresponds to a different adjustment coefficient. Taking the algorithm switching control parameters including the algorithm switching delay T, the sub-strategy switching thresholds X and Y, and the white balance gain switching speed S as an example, the corresponding relationship can be:

[0070] For the pixel value interval where N≤N1, the corresponding adjustment coefficients are a11, a12, and a13, where a11 is used to update X and Y, a12 is used to update T, and a13 is used to update S;

[0071] For the pixel value interval where N1 < N≤N2, the corresponding adjustment coefficients are a21, a22, and a23, where a21 is used to update X and Y, a22 is used to update T, and a23 is used to update S;

[0072] For the pixel value interval where N2 < N≤N3, the corresponding adjustment coefficients are a31, a32, and a33, where a31 is used to update X and Y, a32 is used to update T, and a33 is used to update S;

[0073] For the pixel value interval where N > N3, the corresponding adjustment coefficients are a41, a42, and a43, where a41 is used to update X and Y, a42 is used to update T, and a43 is used to update S.

[0074] Therefore, the adjustment coefficient corresponding to the pixel value interval where the calculated number of smear pixels N is located can be determined as the first adjustment coefficient.

[0075] Specifically, the second adjustment coefficient can be obtained through the following method:

[0076] In the case where the zoom state is a stationary state, the second adjustment coefficient is directly set to 0. In the case where the zoom state is a zoom state, the second adjustment coefficient is determined according to this zoom state.

[0077] Among them, different zoom states Z can respectively correspond to different adjustment coefficients. Taking the algorithm switching control parameters including the algorithm switching delay T, the sub-strategy switching thresholds X and Y, and the white balance gain switching speed S as an example, the corresponding relationship can be:

[0078] The adjustment coefficients corresponding to Z = ZI (i.e., the zoom state is specifically zooming in) are b11, b12, and b13, where b11 is used to update X and Y, b12 is used to update T, and b13 is used to update S;

[0079] The adjustment coefficients corresponding to Z = ZO (i.e., the zoom state is specifically zooming out) are b21, b22, and b23, where b21 is used to update X and Y, b22 is used to update T, and b23 is used to update S.

[0080] Thus, the adjustment coefficients corresponding to the current zoom state can be determined as the second adjustment coefficients.

[0081] In the application scenario where the camera is in a transition state, the camera can update the algorithm switching control parameters in the following ways: update the algorithm switching control parameters according to the preset third adjustment coefficients; or update the algorithm switching control parameters to the preset first algorithm switching control parameters. That is, in this application scenario, the camera supports two possible update methods.

[0082] The first update method is: preset the third adjustment coefficients. Taking the algorithm switching control parameters including the algorithm switching delay T, the sub-strategy switching thresholds X, Y, and the white balance gain switching speed S as an example, the third adjustment coefficients can include: a`5x and b`5x; where a`5x includes: a`51 for updating X and Y, a`52 for updating T, and the coefficient a`53 for updating S; b`5x includes: b`51 for updating X and Y, b`52 for updating T, and the coefficient b`53 for updating S. It can be understood that when the historical operating speed of the pan-tilt is non-zero, a`5x is the target adjustment coefficient; when the historical zoom state of the zoom lens is the zoom state, b`5x is the target adjustment coefficient; and when the historical operating speed of the pan-tilt is non-zero and the historical zoom state of the zoom lens is the zoom state, the target adjustment coefficient can be obtained by fusing a`5x and b`5x through arithmetic operations or screening and retaining a`5x and b`5x based on logical operations. After multiplying the target adjustment coefficient by the algorithm switching control parameters that have not been updated (or the default algorithm switching control parameters), the updated algorithm switching control parameters can be obtained.

[0083] The second update method is: preset the first algorithm switching control parameters, and directly update the algorithm switching control parameters to the first algorithm switching control parameters. Taking the algorithm switching control parameters including the algorithm switching delay T, the sub-strategy switching thresholds X and Y, and the white balance gain switching speed S as an example, the first algorithm switching control parameters can include: the first algorithm switching delay T1, the first sub-strategy switching thresholds X1, Y1, and the first white balance gain switching speed S1.

[0084] Taking the algorithm switching control parameters including the algorithm switching delay T, the sub-policy switching thresholds X, Y, and the white balance gain switching speed S as an example, in this application scenario, the updated algorithm switching control parameters are denoted as T`, X`, Y`, and S`. Then, we have: X` > X 0 , Y` > Y 0 , T` > T 0 , S` < S 0 . Among them, X 0 , Y 0 , T 0 , and S 0 are respectively the updated algorithm switching control parameters in the application scenario where the camera is in the operating state, which have been described above and will not be defined here.

[0085] In the application scenario where the camera is in the stable state, the camera can update the algorithm switching control parameters in the following specific way: update the algorithm switching control parameters to the preset second algorithm switching control parameters. It can be understood that this method is similar to the second update method in the application scenario where the camera is in the transition state. The camera has pre-set the second algorithm switching control parameters and directly updates the algorithm switching control parameters to the second algorithm switching control parameters. Taking the algorithm switching control parameters including the algorithm switching delay T, the sub-policy switching thresholds X and Y, and the white balance gain switching speed S as an example, the second algorithm switching control parameters may include: the second algorithm switching delay T2, the second sub-policy switching thresholds X2, Y2, and the second white balance gain switching speed S2.

[0086] Taking the algorithm switching control parameters including the algorithm switching delay T, the sub-policy switching thresholds X, Y, and the white balance gain switching speed S as an example, in this application scenario, the updated algorithm switching control parameters are denoted as T``, X``, Y``, and S``. Then, we have: X`` > X` > X 0 , Y`` > Y` > Y 0 , T`` > T` > T 0 , S`` < S` < S 0 . Among them, X 0 , Y 0 , T 0 , and S 0 are respectively the updated algorithm switching control parameters in the application scenario where the camera is in the operating state, which have been described above and will not be elaborated here; similarly, X`, Y`, T`, and S` are respectively the updated algorithm switching control parameters in the application scenario where the camera is in the transition state, which have been described above and will not be elaborated here. It can be understood that compared with the operating stage and the transition stage, the algorithm switching control parameters in the stable state are the most conservative, which can make the white balance algorithm have a strong anti-interference ability.

[0087] In some embodiments, the white balance algorithm to be deployed can be selected based on the degree of dependence on the white point in the picture. Specifically, the number of the white balance algorithms can be two. For the convenience of distinction, they are respectively denoted as the first white balance algorithm and the second white balance algorithm, wherein the first white balance algorithm has a higher degree of dependence on the white point in the picture than the second white balance algorithm. Exemplarily, the first white balance algorithm can be the white point aggregation algorithm, and the second white balance algorithm can be the gray world algorithm. It can be understood that the first white balance gain can be calculated based on the first white balance algorithm, and the second white balance gain can be calculated based on the second white balance algorithm. However, as mentioned above, the camera will only apply one white balance algorithm. Based on this, the present application proposes a steady-state strategy based on a double-threshold hysteresis loop, which can determine the white balance algorithm to be applied currently according to the currently detected number of white points and the white balance algorithm applied in the past (equivalent to selecting a more reliable set of gains between the currently obtained first white balance gain and the second white balance gain as the current white balance gain, and performing white balance processing on the image based on this white balance gain).

[0088] Specifically, the implementation manner of the steady-state strategy proposed in the embodiments of the present application is as follows:

[0089] When the number of white points in the current frame of the picture is less than the preset first quantity threshold and the target white balance algorithm is the first white balance algorithm, switch the target white balance algorithm to the second white balance algorithm;

[0090] When the number of white points in the current frame of the picture is more than the preset second quantity threshold and the target white balance algorithm is the second white balance algorithm, switch the target white balance algorithm to the first white balance algorithm.

[0091] Among them, the target white balance algorithm refers to the white balance algorithm selected and applied by the camera, and the second quantity threshold is greater than the first quantity threshold. It can be understood that the first quantity threshold to the second quantity threshold form a buffer interval; when the target white balance algorithm is the first white balance algorithm, even if the number of white points in the current frame of the picture decreases to fall within this buffer interval, it is not considered to meet the switching condition of the target white balance algorithm, but only when the number of white points in the current frame of the picture is less than the first quantity threshold (that is, less than the minimum value of this buffer interval) later, it is considered to meet the switching condition of the target white balance algorithm; similarly, when the target white balance algorithm is the second white balance algorithm, even if the number of white points in the current frame of the picture increases to fall within this buffer interval, it is not considered to meet the switching condition of the target white balance algorithm, but only when the number of white points in the current frame of the picture is more than the second quantity threshold (that is, more than the maximum value of this buffer interval) later, it is considered to meet the switching condition of the target white balance algorithm.

[0092] Of course, to avoid color temperature oscillation caused by frequent switching of the target white balance algorithm and to improve the stability of color temperature switching, the embodiments of this application consider referring to more historical frame images to determine whether to switch the target white balance algorithm. Then, the implementation method of the steady-state strategy proposed by the embodiments of this application can be optimized as follows:

[0093] When the number of white points in the consecutive T frame images including the current frame image is less than a preset first quantity threshold and the target white balance algorithm is the first white balance algorithm, switch the target white balance algorithm to the second white balance algorithm;

[0094] When the number of white points in the consecutive T frame images including the current frame image is more than a preset second quantity threshold and the target white balance algorithm is the second white balance algorithm, switch the target white balance algorithm to the first white balance algorithm.

[0095] It can be understood that T is the algorithm switching delay described above, and its update method has been described above and will not be elaborated here.

[0096] In some embodiments, the first quantity threshold in the steady-state strategy can be determined by the gain difference, a preset first quantity upper limit value, a preset first quantity lower limit value, and a preset gain difference threshold; the second quantity threshold is determined by the gain difference, a preset second quantity upper limit value, a preset second quantity lower limit value, and this gain difference threshold. Among them, the gain difference is the difference between the first white balance gain and the second white balance gain.

[0097] Denote the gain difference as Dis, the first quantity upper limit value as Thre_low_max, the first quantity lower limit value as Thre_low_min, the second quantity upper limit value as Thre_high_max, the second quantity lower limit value as Thre_high_max, and the gain difference threshold as Dis_max. In some examples, the determination method of the first quantity threshold Thre_low can be:

[0098] When Dis≥Dis_max, directly determine Thre_low as Thre_low_min;

[0099] When Dis<Dis_max, Thre_low has a negative correlation with Dis, that is, the larger Dis is, the smaller Thre_low is.

[0100] In some other examples, the determination method of the second quantity threshold Thre_high can be:

[0101] When Dis≥Dis_max, directly determine Thre_high as Thre_high_max;

[0102] When Dis < Dis_max, Thre_high is positively correlated with Dis, that is, the larger Dis is, the larger Thre_low is.

[0103] Please refer to Figure 2 , Figure 2 which shows the schematic diagram of the steady-state strategy proposed in the embodiments of the present application.

[0104] Please refer to Figure 3 , Figure 3 which shows the value illustration of the first quantity threshold and the second quantity threshold in the steady-state strategy proposed in the embodiments of the present application.

[0105] Among them, Figure 2 for Figure 3 each character parameter in it has been illustrated above, and will not be elaborated here.

[0106] As can be seen from the above, in the embodiments of the present application, the camera no longer only deploys a single white balance algorithm, but will deploy at least two white balance algorithms; and each white balance algorithm includes multiple sub-strategies. When the camera performs white balance processing, it will only apply at least one non-conflicting sub-strategy in one white balance algorithm. In this way, the camera not only provides the possibility of switching between different white balance algorithms, but also provides the possibility of switching between different sub-strategies within the same white balance algorithm. Specifically, the switching between algorithms and the switching between sub-strategies within an algorithm are controlled by an algorithm switching control parameter, and this algorithm switching control parameter is not fixed, but will change according to the scene change. The implementation process is as follows: Since the environmental pictures collected by the camera usually change due to the rotation of the pan-tilt and the zoom of the zoom lens, the present application solution will also consider the operating parameters of the camera, that is, the rotation speed of the pan-tilt and the zoom state of the zoom lens. Based on this operating parameter, the camera can quickly determine its current working state, and according to this working state, update the algorithm switching control parameter, and finally based on this algorithm switching control parameter, perform switching control on the white balance processing performed by the camera. In this way, the camera can adapt to the scene changes brought by the rotation of the pan-tilt and the zoom of the lens, and realize flexible control of the white balance processing performed by the camera.

[0107] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0108] Corresponding to the white balance control method provided above, an embodiment of the present application further provides a white balance control device. The white balance control device is applied to a camera equipped with a gimbal and a zoom lens. The camera is deployed with at least two white balance algorithms, and each white balance algorithm includes at least two sub-strategies; the camera performs white balance processing by applying at least one non-conflicting sub-strategy in one white balance algorithm; please refer to Figure 4 , the white balance control device 4 in the embodiment of the present application includes:

[0109] An acquisition module 401, configured to acquire the operating parameters of the camera, where the operating parameters include: the rotation speed of the gimbal and the zoom state of the zoom lens;

[0110] A determination module 402, configured to determine the current working state of the camera according to the operating parameters;

[0111] An update module 403, configured to update the algorithm switching control parameters according to the working state;

[0112] A control module 404, configured to perform switching control on the white balance processing performed by the camera based on the algorithm switching control parameters.

[0113] In some embodiments, the determination module 402 includes:

[0114] A first determination unit, configured to determine that the camera is in an operating state when the rotation speed is a non-zero value and / or the zoom state is a zoom state;

[0115] Correspondingly, the update module 403 includes:

[0116] A first update unit, configured to update the algorithm switching control parameters according to the shooting attribute information, rotation speed, and zoom state of the camera when the camera is in an operating state.

[0117] In some embodiments, the first update unit includes:

[0118] A calculation sub-unit, configured to calculate the number of smear pixels according to the shooting attribute information and the rotation speed when the rotation speed is a non-zero value, where the number of smear pixels refers to: the number of pixels passed by the smear generated by the object imaging during the exposure time;

[0119] A first determination sub-unit, configured to determine a first adjustment coefficient according to the number of smear pixels;

[0120] A second determination sub-unit, configured to determine a second adjustment coefficient according to the zoom state when the zoom state is a zoom state;

[0121] A fusion sub-unit, configured to fuse the first adjustment coefficient and the second adjustment coefficient to obtain a target adjustment coefficient;

[0122] An update subunit, configured to update a control parameter according to a target adjustment coefficient update algorithm.

[0123] In some embodiments, the determination module 402 includes:

[0124] A second determination unit, configured to determine that the camera is in a transition state when the operating speed is zero, the zoom state is a stationary state, and the camera has been in a moving state within a specified historical period;

[0125] Correspondingly, the update module 403 includes:

[0126] A second update unit, configured to update the control parameter according to a preset third adjustment coefficient update algorithm or update the algorithm switching control parameter to a preset first algorithm switching control parameter when the camera is in a transition state.

[0127] In some embodiments, the determination module 402 includes:

[0128] A third determination unit, configured to determine that the camera is in a stable state when the operating speed is zero, the zoom state is a stationary state, and the camera has not been in a moving state within a specified historical period;

[0129] Correspondingly, the update module 403 includes:

[0130] A fourth update unit, configured to update the algorithm switching control parameter to a preset second algorithm switching control parameter when the camera is in a stable state.

[0131] In some embodiments, at least two white balance algorithms include a first white balance algorithm and a second white balance algorithm, wherein the first white balance algorithm has a higher dependence on white points in the picture than the second white balance algorithm; the white balance control device 4 further includes:

[0132] A first algorithm switching module, configured to switch the target white balance algorithm to the second white balance algorithm when the number of white points in the current frame picture is less than a preset first quantity threshold and the target white balance algorithm is the first white balance algorithm, wherein the target white balance algorithm is: the white balance algorithm selected and applied by the camera;

[0133] A second algorithm switching module, configured to switch the target white balance algorithm to the first white balance algorithm when the number of white points in the current frame picture is more than a preset second quantity threshold and the target white balance algorithm is the second white balance algorithm, wherein the second quantity threshold is greater than the first quantity threshold.

[0134] In some embodiments, the first quantity threshold is determined by a gain difference, a preset first quantity upper limit value, a preset first quantity lower limit value, and a preset gain difference threshold, where the gain difference is the difference between a first white balance gain and a second white balance gain, the first white balance gain is a white balance gain calculated based on a first white balance algorithm, and the second white balance gain is a white balance gain calculated based on a second white balance algorithm;

[0135] The second quantity threshold is determined by a gain difference, a preset second quantity upper limit value, a preset second quantity lower limit value, and a preset gain difference threshold.

[0136] As can be seen from the above, in the embodiments of the present application, the camera no longer only deploys a single white balance algorithm, but will deploy at least two white balance algorithms; and each white balance algorithm includes multiple sub-strategies. When the camera performs white balance processing, it will only apply at least one non-conflicting sub-strategy in one white balance algorithm. In this way, the camera not only provides the possibility of switching between different white balance algorithms, but also provides the possibility of switching between different sub-strategies within the same white balance algorithm. Specifically, the switching between algorithms and the switching of sub-strategies within an algorithm are controlled by an algorithm switching control parameter, and this algorithm switching control parameter is not fixed, but will change according to the scene change. The implementation process is as follows: Since the environmental images collected by the camera usually change due to the rotation of the pan-tilt and the zoom of the zoom lens, the present application solution also considers the operating parameters of the camera, that is, the rotation speed of the pan-tilt and the zoom state of the zoom lens. Based on this operating parameter, the camera can quickly determine its current working state, and according to this working state, update the algorithm switching control parameter, and finally control the switching of the white balance processing performed by the camera based on this algorithm switching control parameter. In this way, the camera can adapt to the scene changes brought about by the rotation of the pan-tilt and the zoom of the lens, and realize flexible control of the white balance processing performed by the camera.

[0137] Corresponding to the white balance control method provided above, the embodiments of the present application also provide a camera. Please refer to Figure 5 , the camera 5 in the embodiments of the present application includes: a pan-tilt ( Figure 5 not shown in Figure 5 ), a zoom lens ( Figure 5 not shown in

[0138] Among them, the memory 501 also stores at least one white balance algorithm, and each white balance algorithm includes at least two sub-strategies; the camera 5 performs white balance processing by applying at least one non-conflicting sub-strategy in a white balance algorithm. Specifically, when the processor 502 runs the above computer program stored in the memory 501, the following steps are implemented:

[0139] Obtain the operating parameters of the camera, where the operating parameters include: the rotation speed of the pan-tilt and the zoom state of the zoom lens;

[0140] Determine the current working state of the camera according to the operating parameters;

[0141] Update the algorithm switching control parameters according to the working state;

[0142] Perform switching control on the white balance processing performed by the camera based on the algorithm switching control parameters.

[0143] Assume the above is the first possible implementation manner. Then, in the second possible implementation manner provided based on the first possible implementation manner, determining the current working state of the camera according to the operating parameters includes:

[0144] When the rotation speed is a non-zero value and / or the zoom state is a zoom state, determine that the camera is in an operating state;

[0145] Correspondingly, updating the algorithm switching control parameters according to the working state includes:

[0146] When the camera is in an operating state, update the algorithm switching control parameters according to the shooting attribute information, rotation speed, and zoom state of the camera.

[0147] In the third possible implementation manner provided based on the second possible implementation manner, updating the algorithm switching control parameters according to the shooting attribute information, rotation speed, and zoom state of the camera includes:

[0148] When the rotation speed is a non-zero value, calculate the number of smear pixels according to the shooting attribute information and the rotation speed, where the number of smear pixels refers to: the number of pixels passed by the smear generated by the object imaging during the exposure time;

[0149] Determine the first adjustment coefficient according to the number of smear pixels;

[0150] When the zoom state is a zoom state, determine the second adjustment coefficient according to the zoom state;

[0151] Fuse the first adjustment coefficient and the second adjustment coefficient to obtain the target adjustment coefficient;

[0152] Update the algorithm switching control parameters according to the target adjustment coefficient.

[0153] In a fourth possible implementation provided based on the above first possible implementation, determining the current working state of the camera according to the operating parameters includes:

[0154] When the running speed is zero, the zoom state is a stationary state, and the camera was in a moving state during a specified historical period, it is determined that the camera is in a transition state;

[0155] Correspondingly, according to the working state, updating the algorithm switching control parameters includes:

[0156] When the camera is in a transition state, updating the algorithm switching control parameters according to a preset third adjustment coefficient, or updating the algorithm switching control parameters to a preset first algorithm switching control parameter.

[0157] In a fifth possible implementation provided based on the above first possible implementation, determining the current working state of the camera according to the operating parameters includes:

[0158] When the running speed is zero, the zoom state is a stationary state, and the camera was not in a moving state during a specified historical period, it is determined that the camera is in a stable state;

[0159] Correspondingly, according to the working state, updating the algorithm switching control parameters includes:

[0160] When the camera is in a stable state, updating the algorithm switching control parameters to a preset second algorithm switching control parameter.

[0161] In a sixth possible implementation provided based on the above first possible implementation, or the above second possible implementation, or the above third possible implementation, or the above fourth possible implementation, or the above fifth possible implementation, at least two white balance algorithms include a first white balance algorithm and a second white balance algorithm, wherein the first white balance algorithm has a higher dependence on the white point in the picture than the second white balance algorithm; when the processor 502 runs the above computer program stored in the memory 501, the following steps are further implemented:

[0162] When the number of white points in the current frame picture is less than a preset first quantity threshold and the target white balance algorithm is the first white balance algorithm, switching the target white balance algorithm to the second white balance algorithm, wherein the target white balance algorithm is: the white balance algorithm selected and applied by the camera;

[0163] When the number of white dots in the current frame image is greater than a preset second quantity threshold and the target white balance algorithm is the second white balance algorithm, switch the target white balance algorithm to the first white balance algorithm, where the second quantity threshold is greater than the first quantity threshold.

[0164] In a seventh possible implementation manner provided on the basis of the above sixth possible implementation manner, the first quantity threshold is determined by a gain difference, a preset first quantity upper limit value, a preset first quantity lower limit value, and a preset gain difference threshold, where the gain difference is: the difference between a first white balance gain and a second white balance gain, the first white balance gain is the white balance gain calculated based on the first white balance algorithm, and the second white balance gain is the white balance gain calculated based on the second white balance algorithm;

[0165] The second quantity threshold is determined by a gain difference, a preset second quantity upper limit value, a preset second quantity lower limit value, and a preset gain difference threshold.

[0166] It should be understood that in the embodiments of the present application, the so-called processor 502 may be a central processing unit (CPU), and this processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or this processor may also be any conventional processor, etc.

[0167] The memory 501 may include a read-only memory and a random access memory, and provide instructions and data to the processor 502. A part or all of the memory 501 may also include a non-volatile random access memory. For example, the memory 501 may also store information about the device type.

[0168] As can be seen from the above, in the embodiments of the present application, the camera no longer deploys only a single white balance algorithm, but deploys at least two white balance algorithms; moreover, each white balance algorithm includes multiple sub-strategies. When the camera performs white balance processing, it will only apply at least one non-conflicting sub-strategy in one white balance algorithm. In this way, the camera not only provides the possibility of switching between different white balance algorithms, but also provides the possibility of switching between different sub-strategies within the same white balance algorithm. Specifically, the switching between algorithms and the switching of sub-strategies within an algorithm are controlled by an algorithm switching control parameter, and this algorithm switching control parameter is not fixed, but will change according to the scene change. The implementation process is as follows: Since the environmental images collected by the camera usually change due to the rotation of the pan-tilt and the zoom of the zoom lens, the solution of the present application also takes into account the operating parameters of the camera, that is, the rotation speed of the pan-tilt and the zoom state of the zoom lens. Based on these operating parameters, the camera can quickly determine its current working state, and according to this working state, update the algorithm switching control parameter, and finally, based on this algorithm switching control parameter, perform switching control on the white balance processing performed by the camera. In this way, the camera can adapt to the scene changes brought about by the rotation of the pan-tilt and the zoom of the lens, and achieve flexible control of the white balance processing performed by the camera.

[0169] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used as an example. In actual applications, the above-mentioned functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the above-mentioned device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the foregoing method embodiments and will not be described in detail here.

[0170] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0171] Those of ordinary skill in the art will realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of external device software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.

[0172] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the above-mentioned division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.

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

[0174] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above embodiment methods of this application, it can also be completed by a computer program instructing the associated hardware. The above computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above various method embodiments can be implemented. Among them, the above computer program includes computer program code, and the above computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The above computer-readable storage medium can include: any entity or device capable of carrying the above computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the above computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.

[0175] The above embodiments are only used to illustrate the technical solutions of this application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of this application, and should all be included in the protection scope of this application.

Claims

1. A white balance control method, characterized in that, The white balance control method is applied to a camera equipped with a gimbal and a zoom lens. The camera deploys at least two white balance algorithms, and each white balance algorithm includes at least two sub-strategies; The camera performs white balance processing using at least one non-conflicting sub-strategy in one white balance algorithm; The white balance control method includes: Obtain the operating parameters of the camera, where the operating parameters include: the rotation speed of the gimbal and the zoom state of the zoom lens; Determine the current working state of the camera according to the operating parameters; Update the algorithm switching control parameters according to the working state; Perform switching control on the white balance processing performed by the camera based on the algorithm switching control parameters.

2. The white balance control method according to claim 1, characterized in that The determining the current working state of the camera according to the operating parameters includes: When the rotation speed is a non-zero value and / or the zoom state is a zoom state, it is determined that the camera is in an operating state; Correspondingly, the updating the algorithm switching control parameters according to the working state includes: When the camera is in the operating state, update the algorithm switching control parameters according to the shooting attribute information, the rotation speed and the zoom state of the camera.

3. The white balance control method according to claim 2, characterized in that The updating the algorithm switching control parameters according to the shooting attribute information, the rotation speed and the zoom state of the camera includes: When the rotation speed is a non-zero value, calculate the number of smear pixels according to the shooting attribute information and the rotation speed, where the number of smear pixels refers to: the number of pixels passed by the smear generated by the object imaging during the exposure time; Determine a first adjustment coefficient according to the number of smear pixels; When the zoom state is a zoom state, determine a second adjustment coefficient according to the zoom state; Fuse the first adjustment coefficient and the second adjustment coefficient to obtain a target adjustment coefficient; Update the algorithm switching control parameters according to the target adjustment coefficient.

4. The white balance control method according to claim 1, characterized in that, The determining the current working state of the camera according to the operating parameters includes: When the rotation speed is zero, the zoom state is a stationary state, and the camera was in a moving state during a specified historical period, it is determined that the camera is in a transition state; Correspondingly, the updating the algorithm switching control parameters according to the working state includes: When the camera is in the transition state, update the algorithm switching control parameters according to a preset third adjustment coefficient, or update the algorithm switching control parameters to a preset first algorithm switching control parameter.

5. The white balance control method according to claim 1, wherein The determining the current working state of the camera according to the operating parameters includes: When the rotation speed is zero, the zoom state is a stationary state, and the camera was not in a moving state during a specified historical period, it is determined that the camera is in a stable state; Correspondingly, the updating the algorithm switching control parameters according to the working state includes: When the camera is in the stable state, update the algorithm switching control parameter to a preset second algorithm switching control parameter.

6. The white balance control method according to any one of claims 1 to 5, characterized in that, The at least two white balance algorithms include a first white balance algorithm and a second white balance algorithm, wherein the first white balance algorithm has a higher dependence on white points in the picture than the second white balance algorithm; the white balance control method further includes: When the number of white points in the current frame picture is less than a preset first number threshold and the target white balance algorithm is the first white balance algorithm, switch the target white balance algorithm to the second white balance algorithm, wherein the target white balance algorithm is: the white balance algorithm selected and applied by the camera; When the number of white points in the current frame picture is more than a preset second number threshold and the target white balance algorithm is the second white balance algorithm, switch the target white balance algorithm to the first white balance algorithm, wherein the second number threshold is greater than the first number threshold.

7. The white balance control method according to claim 6, wherein The first number threshold is determined by a gain difference, a preset first number upper limit value, a preset first number lower limit value, and a preset gain difference threshold, wherein the gain difference is: the difference between a first white balance gain and a second white balance gain, the first white balance gain is the white balance gain calculated based on the first white balance algorithm, and the second white balance gain is the white balance gain calculated based on the second white balance algorithm; The second number threshold is determined by the gain difference, a preset second number upper limit value, a preset second number lower limit value, and a preset gain difference threshold.

8. A white balance control device, characterized in that, The white balance control device is applied to a camera equipped with a pan-tilt and a zoom lens, and the camera is deployed with at least two white balance algorithms, and each white balance algorithm includes at least two sub-strategies; The camera performs white balance processing by applying at least one non-conflicting sub-strategy in one white balance algorithm; The white balance control device includes: An acquisition module for acquiring the operating parameters of the camera, and the operating parameters include: the rotation speed of the pan-tilt and the zoom state of the zoom lens; A determination module for determining the current working state of the camera according to the operating parameters; An update module for updating the algorithm switching control parameter according to the working state; A control module for performing switching control on the white balance processing performed by the camera based on the algorithm switching control parameter.

9. A camera, comprising a pan-tilt head, a zoom lens, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer program product, characterized in that, The computer program product includes a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 7 is implemented.