Video code rate control method, electronic equipment and program product

By using the motion mode of the target camera and the balanced bit rate in the historical period in a multi-eye camera, dynamically adjusting the bit rate, the problem of insufficient bit rate caused by camera movement is solved, and the quality and storage efficiency of the monitoring picture are improved.

CN119788804AActive Publication Date: 2025-04-08HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510293955.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-13
Publication Date
2025-04-08
Estimated Expiration
2045-03-13

AI Technical Summary

Technical Problem

Because a camera may turn on all-round motion, there is not enough code rate to encode the details of the motion tracking target, and there are motion mosaics, smears and magnification blurs, resulting in poor quality of the monitoring screen.

Method used

The monitoring area is monitored through the target camera, its motion mode is determined, and the target camera's code rate is dynamically adjusted according to the balanced code rate of the multi-eye camera in the historical period to ensure the quality of the monitoring picture.

Benefits of technology

Through dynamic adjustment of the bit rate, appropriate bit rate compensation is achieved for the target cameras in different sports modes, improving the quality of the monitoring picture, and ensuring that the video storage size is controllable and the picture quality is balanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788804A_ABST
    Figure CN119788804A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a video code rate control method, electronic equipment and a program product, and the method comprises the steps that a target camera monitors a monitoring region to obtain a real-time monitoring image, and the target camera is any one of a plurality of cameras; determining a motion mode of the target camera according to the real-time monitoring picture; determining a balance code rate of the multi-view camera in the historical time period, wherein the balance code rate is a difference value between a code rate allocated for the multi-view camera in the historical time period and a use code rate of the multi-view camera; and determining the target code rate of the target camera according to the motion mode and the balance code rate, so that the target camera monitors the monitoring area according to the target code rate, and the quality of the monitoring image is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data processing, and in particular to a video bit rate control method, electronic equipment and program product. Background Art

[0002] A multi-camera can be a multi-channel, multi-viewing angle monitoring device that combines panoramic monitoring and detailed monitoring. For example, a multi-camera can include a first camera and a second camera. The first camera can be used for panoramic monitoring. The second camera can be used for target tracking or fixed-point cruising to provide a flexible monitoring range.

[0003] Multi-camera can realize simultaneous monitoring of multiple cameras through linkage technology, and output images with different field of view angles. Multi-camera can configure independent rated bit rate for each camera's monitoring channel. The video encoding corresponding to each camera's monitoring channel is independently controlled.

[0004] In the above monitoring process, since a certain camera may start all-round movement, there is not enough bit rate to encode the details of the motion tracking target, resulting in motion mosaic, ghosting and zoom blur, resulting in poor quality of the monitoring picture. Summary of the invention

[0005] The embodiments of the present application provide a video bit rate control method, an electronic device and a program product to solve the defect in the prior art that, because a certain camera may start all-round movement, there is not enough bit rate to encode the details of the motion tracking target, resulting in motion mosaic, ghosting and zoom blur, resulting in poor quality of the monitoring image.

[0006] In a first aspect, the present application provides a video bit rate control method, which is applied to a multi-eye camera, wherein the multi-eye camera includes a plurality of cameras, and the method includes:

[0007] The monitoring area is monitored by a target camera to obtain a real-time monitoring picture, wherein the target camera is any one of the multiple cameras;

[0008] Determine the motion mode of the target camera according to the real-time monitoring picture;

[0009] Determine a surplus bitrate of the multi-eye camera in a historical period, where the surplus bitrate is a difference between a preset bitrate allocated to the multi-eye camera in the historical period and a used bitrate of the multi-eye camera;

[0010] The target bit rate of the target camera is determined according to the motion mode and the surplus bit rate, so that the target camera monitors the monitoring area according to the target bit rate.

[0011] In a possible implementation manner, the surplus code rate includes:

[0012] A first surplus code rate, where the first surplus code rate is a surplus code rate corresponding to the target camera;

[0013] A second surplus code rate, wherein the second surplus code rate is a surplus code rate commonly corresponding to the multiple cameras, the sum of the surplus code rates respectively corresponding to the multiple cameras is periodically added to the second surplus code rate, and the surplus code rates respectively corresponding to the multiple cameras are set to zero.

[0014] In a possible implementation manner, determining the target bit rate of the target camera according to the motion mode and the surplus bit rate includes:

[0015] Determine whether the motion mode of the target camera is a preset mode;

[0016] If yes, determining the target bit rate of the target camera according to the second surplus bit rate and the third surplus bit rate, wherein the surplus bit rate also includes the third surplus bit rate, and the third surplus bit rate is a surplus bit rate dedicated to the preset mode;

[0017] If not, determine the target bit rate of the target camera according to the second surplus bit rate.

[0018] In a possible implementation manner, determining the target bit rate of the target camera according to the second surplus bit rate and the third surplus bit rate includes:

[0019] Determining whether the second surplus code rate is greater than a first preset value;

[0020] If so, when the third surplus bit rate is greater than the first preset value, determine a first coefficient, and determine the product of the preset bit rate and the first coefficient as the target bit rate of the target camera; when the third surplus bit rate is less than or equal to the first preset value, determine a second coefficient, and determine the product of the preset bit rate and the second coefficient as the target bit rate of the target camera, wherein the first coefficient is greater than the second coefficient, and the second coefficient is greater than 1;

[0021] If not, when the third surplus code rate is greater than the first preset value, the product of the preset code rate and the second coefficient is determined as the target code rate; when the third surplus code rate is less than or equal to the first preset value, the preset code rate is determined as the target code rate.

[0022] In a possible implementation manner, determining the target bit rate of the target camera according to the second surplus bit rate includes:

[0023] Determining whether the second surplus code rate is greater than a first preset value;

[0024] If so, determining the product of the preset bit rate and the first coefficient as the target bit rate of the target camera;

[0025] If not, when the first surplus bit rate is greater than the first preset value, the product of the preset bit rate and the first coefficient is determined as the target bit rate of the target camera; when the first surplus bit rate is less than or equal to the first preset value, the preset bit rate is determined as the target bit rate.

[0026] In a possible implementation manner, after determining the target bit rate of the target camera according to the monitoring type and the surplus bit rate so that the target camera monitors the monitoring area according to the target bit rate, the method further includes:

[0027] Determine the current bit rate used by the target camera;

[0028] Determine the difference between the target bit rate and the used bit rate as the instantaneous surplus bit rate;

[0029] Determine whether the multi-camera is in a preset mode;

[0030] If yes, when the target camera is a preset camera, determine the preset proportion corresponding to the preset mode, and update the first surplus rate and the third surplus rate of the target camera according to the instantaneous surplus rate and the preset proportion; when the target camera is not the preset camera, update the first surplus rate of the target camera according to the instantaneous surplus rate;

[0031] If not, the first surplus bit rate of the target camera is updated according to the instantaneous surplus bit rate.

[0032] In a possible implementation manner, updating the first surplus bit rate and the third surplus bit rate of the target camera according to the instantaneous surplus bit rate and the preset proportion includes:

[0033] According to the preset proportion, the instantaneous surplus bit rate is divided into a first instantaneous bit rate and a second instantaneous bit rate;

[0034] According to the first instantaneous bit rate, updating a first surplus bit rate of the target camera;

[0035] According to the second instantaneous bit rate, a third surplus bit rate of the target camera is updated.

[0036] In a possible implementation manner, after updating the first surplus bit rate of the target camera, the method further includes:

[0037] The current first surplus code rate is determined at each interval of a preset duration;

[0038] Determine a surplus code rate to be deleted from the second surplus code rate, where the surplus code rate to be deleted is the surplus code rate of the multi-eye camera in a first historical period, and the duration between each moment in the first historical period and the current moment is greater than or equal to the cycle duration;

[0039] subtracting the to-be-deleted surplus code rate from the current second surplus code rate, and adding the current first surplus code rate to obtain an updated second surplus code rate;

[0040] The current first surplus code rate is set to zero.

[0041] In a second aspect, the present application provides a video bit rate control device, which is applied to a multi-eye camera, wherein the multi-eye camera includes a plurality of cameras, and the device includes:

[0042] A monitoring module, used to monitor the monitoring area through a target camera to obtain a real-time monitoring picture, wherein the target camera is any one of the multiple cameras;

[0043] A first determination module is used to determine the motion mode of the target camera according to the real-time monitoring picture;

[0044] A second determination module is used to determine a surplus bit rate of the multi-eye camera in a historical period, where the surplus bit rate is a difference between a preset bit rate allocated to the multi-eye camera in the historical period and a used bit rate of the multi-eye camera;

[0045] The third determination module is used to determine the target bit rate of the target camera according to the motion mode and the surplus bit rate, so that the target camera monitors the monitoring area according to the target bit rate.

[0046] In a possible implementation manner, the surplus code rate includes:

[0047] A first surplus code rate, where the first surplus code rate is a surplus code rate corresponding to the target camera;

[0048] A second surplus code rate, wherein the second surplus code rate is a surplus code rate commonly corresponding to the multiple cameras, the sum of the surplus code rates respectively corresponding to the multiple cameras is periodically added to the second surplus code rate, and the surplus code rates respectively corresponding to the multiple cameras are set to zero.

[0049] In a possible implementation manner, the third determining module is specifically configured to:

[0050] Determine whether the motion mode of the target camera is a preset mode;

[0051] If yes, determining the target bit rate of the target camera according to the second surplus bit rate and the third surplus bit rate, wherein the surplus bit rate also includes the third surplus bit rate, and the third surplus bit rate is a surplus bit rate dedicated to the preset mode;

[0052] If not, determine the target bit rate of the target camera according to the second surplus bit rate.

[0053] In a possible implementation manner, the third determining module is specifically configured to:

[0054] Determining whether the second surplus code rate is greater than a first preset value;

[0055] If so, when the third surplus bit rate is greater than the first preset value, determine a first coefficient, and determine the product of the preset bit rate and the first coefficient as the target bit rate of the target camera; when the third surplus bit rate is less than or equal to the first preset value, determine a second coefficient, and determine the product of the preset bit rate and the second coefficient as the target bit rate of the target camera, wherein the first coefficient is greater than the second coefficient, and the second coefficient is greater than 1;

[0056] If not, when the third surplus code rate is greater than the first preset value, the product of the preset code rate and the second coefficient is determined as the target code rate; when the third surplus code rate is less than or equal to the first preset value, the preset code rate is determined as the target code rate.

[0057] In a possible implementation manner, the third determining module is specifically configured to:

[0058] Determining whether the second surplus code rate is greater than a first preset value;

[0059] If so, determining the product of the preset bit rate and the first coefficient as the target bit rate of the target camera;

[0060] If not, when the first surplus bit rate is greater than the first preset value, the product of the preset bit rate and the first coefficient is determined as the target bit rate of the target camera; when the first surplus bit rate is less than or equal to the first preset value, the preset bit rate is determined as the target bit rate.

[0061] In a possible implementation, after determining the target bit rate of the target camera according to the monitoring type and the surplus bit rate so that the target camera monitors the monitoring area according to the target bit rate, the device further includes an updating module, the updating module being used to:

[0062] Determine the current bit rate used by the target camera;

[0063] Determine the difference between the target bit rate and the used bit rate as the instantaneous surplus bit rate;

[0064] Determine whether the multi-camera is in a preset mode;

[0065] If yes, when the target camera is a preset camera, determine the preset proportion corresponding to the preset mode, and update the first surplus rate and the third surplus rate of the target camera according to the instantaneous surplus rate and the preset proportion; when the target camera is not the preset camera, update the first surplus rate of the target camera according to the instantaneous surplus rate;

[0066] If not, the first surplus bit rate of the target camera is updated according to the instantaneous surplus bit rate.

[0067] In a possible implementation, the update module is used to:

[0068] According to the preset proportion, the instantaneous surplus bit rate is divided into a first instantaneous bit rate and a second instantaneous bit rate;

[0069] According to the first instantaneous bit rate, updating a first surplus bit rate of the target camera;

[0070] According to the second instantaneous bit rate, a third surplus bit rate of the target camera is updated.

[0071] In a possible implementation, the update module is used to:

[0072] The current first surplus code rate is determined at each interval of a preset duration;

[0073] Determine a surplus code rate to be deleted from the second surplus code rate, where the surplus code rate to be deleted is the surplus code rate of the multi-eye camera in a first historical period, and the duration between each moment in the first historical period and the current moment is greater than or equal to the cycle duration;

[0074] subtracting the to-be-deleted surplus code rate from the current second surplus code rate, and adding the current first surplus code rate to obtain an updated second surplus code rate;

[0075] The current first surplus code rate is set to zero.

[0076] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0077] The memory stores computer-executable instructions;

[0078] The processor executes the computer-executable instructions stored in the memory to implement the method described in any one of the first aspects.

[0079] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.

[0080] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method as described in any one of the first aspects when executed by a computer.

[0081] A video bit rate control method, electronic device and program product provided by the embodiment of the present application are applied to a multi-eye camera, wherein the multi-eye camera includes multiple cameras, and the monitoring area is monitored by a target camera to obtain a real-time monitoring picture, and the target camera is any one of the multiple cameras; according to the real-time monitoring picture, the motion mode of the target camera is determined; the surplus bit rate of the multi-eye camera in the historical period is determined, and the surplus bit rate is the difference between the bit rate allocated to the multi-eye camera in the historical period and the bit rate used by the multi-eye camera; according to the motion mode and the surplus bit rate, the target bit rate of the target camera is determined, so that the target camera monitors the monitoring area according to the target bit rate. In this way, the difference between the actual bit rate used by different cameras during monitoring and the allocated bit rate, that is, the surplus bit rate, can be used to perform different bit rate compensation on the target cameras under different motion modes, so as to achieve controllable video storage size and balanced image quality, thereby improving the quality of the monitoring picture. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0083] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0084] Figure 2 A schematic diagram of a flow chart of a video bit rate control method provided in an embodiment of the present application;

[0085] Figure 3 A schematic diagram of a video bit rate control process provided in an embodiment of the present application;

[0086] Figure 4A flowchart of another video bit rate control method provided in an embodiment of the present application;

[0087] Figure 5 A flowchart of another video bit rate control method provided in an embodiment of the present application;

[0088] Figure 6 A schematic diagram of the structure of a video bit rate control device provided in an embodiment of the present application;

[0089] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0090] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0091] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0092] It should be noted that, although the terms "first", "second", etc. are used to describe various information in the embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. Optionally, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.

[0093] It should be understood that the terms "comprises" and "includes" indicate the presence of the previously mentioned features, steps, operations, but do not exclude the presence, occurrence or addition of one or at least one other feature, step, operation. The terms "and / or" and the like used in this application may be interpreted as inclusive, or mean any one or any combination. Optionally, "A and / or B" means "any of the following: A; B; A and B". In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship.

[0094] A multi-camera can be a multi-channel, multi-viewing angle monitoring device that combines panoramic monitoring and detailed monitoring. For example, a multi-camera can include a first camera and a second camera. The first camera can be used for panoramic monitoring. The second camera can be used for target tracking or fixed-point cruising to provide a flexible monitoring range.

[0095] Multi-camera can realize simultaneous monitoring of multiple cameras through linkage technology, and output images with different field of view angles. Multi-camera can configure independent rated bit rate for each camera's monitoring channel. The video encoding corresponding to each camera's monitoring channel is independently controlled.

[0096] In the above monitoring process, since a certain camera may start all-round movement, there is not enough bit rate to encode the details of the motion tracking target, resulting in motion mosaic, ghosting and zoom blur, resulting in poor quality of the monitoring picture.

[0097] In order to solve the above technical problems, the embodiment of the present application provides a video bit rate control method, which is applied to a multi-eye camera, wherein the multi-eye camera includes multiple cameras, and the monitoring area is monitored through a target camera, and the motion mode of the target camera is determined. The target camera is any one of the multiple cameras, and the surplus bit rate of the multi-eye camera in the historical period is determined. The surplus bit rate is the difference between the bit rate allocated to the multi-eye camera in the historical period and the bit rate used by the multi-eye camera. According to the motion mode and the surplus bit rate, the target bit rate of the target camera is determined, so that the target camera monitors the monitoring area according to the target bit rate. In this way, the difference between the actual bit rate used by different cameras during monitoring and the allocated bit rate, that is, the surplus bit rate, can be used to perform different bit rate compensation on target cameras under different motion modes, so as to achieve controllable video storage size and balanced image quality, thereby improving the quality of the monitoring picture.

[0098] Next, combine Figure 1 , an example is given for multi-camera.

[0099] Figure 1 This is a schematic diagram of an application scenario provided by the embodiment of this application. Figure 1 , Figure 1 A multi-camera may be included, and the multi-camera may include a first camera, a second camera, and a processor.

[0100] The first camera is connected to the processor, and the second camera is connected to the processor.

[0101] The first camera can be used for panoramic monitoring. For example, the first camera can be a camera corresponding to a gun camera.

[0102] The second camera can be used for target tracking or fixed-point cruising to provide a flexible monitoring range. For example, the second camera can be a camera corresponding to a ball camera.

[0103] The processor may include a bit rate control module, which may be used to determine the surplus bit rate of the multi-eye camera in a historical period and perform bit rate compensation on the target camera according to the surplus bit rate.

[0104] The technical solution shown in the present application is described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.

[0105] Figure 2 The flowchart of a video bit rate control method provided by the embodiment of the present application is shown in FIG. The execution subject of the embodiment of the present application may be a processor or a bit rate control module in the processor. Figure 2 , the method comprising:

[0106] S201. Monitor the monitoring area through the target camera to obtain a real-time monitoring image.

[0107] The target camera is any one of the multiple cameras.

[0108] For example, the target camera is the first camera, and the first camera can be used for panoramic monitoring.

[0109] The target camera is the second camera, and the first camera can be used for target tracking or fixed-point cruising to provide a flexible monitoring range.

[0110] The monitoring area may be a preset monitoring area.

[0111] The real-time monitoring picture can be a monitoring picture obtained by shooting the monitoring area in real time through a target camera.

[0112] The real-time monitoring screen changes in real time and can be a static scene or a moving scene.

[0113] A static scene may be a scene without moving objects in the real-time monitoring picture.

[0114] The motion scene may be a scene in which there are moving objects in the real-time monitoring picture.

[0115] The current bit rate of the target camera can be determined, and the monitoring area can be monitored through the target camera according to the bit rate to obtain a real-time monitoring image.

[0116] The currently used bit rate may be the most recently determined target bit rate.

[0117] S202: Determine the motion mode of the target camera according to the real-time monitoring image.

[0118] The motion mode may include a preset mode and a non-preset mode.

[0119] The preset modes may include pan-tilt all-round (up and down, left and right) movement and lens zoom (Pan-Tilt-Zoom, PTZ) motion mode (hereinafter referred to as PTZ motion mode) and region of interest (Region of Interest, ROI) tracking motion mode (hereinafter referred to as ROI motion mode), etc., which are not limited here.

[0120] The non-preset modes may include normal motion modes, etc., which are not limited here.

[0121] Optionally, it is possible to determine whether it is a motion scene based on the real-time monitoring screen. If so, the configuration information of the target camera is obtained, and the motion mode of the target camera is determined based on the configuration information.

[0122] When a static scene is determined based on the real-time monitoring screen, the encoding bit rate can be reduced by the following methods: reducing the encoding frame rate, reducing the prediction frames, reducing the number of encoding frames and long group of pictures (GOP) encoding, etc.

[0123] In sports scenes, the target bit rate can be increased to increase the details of the monitoring screen and improve the quality of the monitoring screen.

[0124] Optionally, the configuration information of the target camera may be obtained, and whether to turn on the preset mode may be determined based on the configuration information. If so, the motion mode of the target camera may be determined based on the real-time monitoring image.

[0125] It should be noted that the motion mode of the target camera can be determined according to any feasible implementation method, and the embodiments of the present application are not limited to this.

[0126] S203: Determine the surplus bit rate of the multi-camera in the historical period.

[0127] The surplus bitrate is the difference between the preset bitrate allocated to the multi-camera in the historical period and the used bitrate of the multi-camera.

[0128] The surplus coding rate may include at least one of a first surplus coding rate, a second surplus coding rate, and a third surplus coding rate.

[0129] The first surplus code rate is a surplus code rate corresponding to a target camera, and the target camera may be any one of multiple cameras.

[0130] For example, the target camera is the first camera, and the remaining bit rate corresponding to the first camera may be the difference between the preset bit rate allocated to the first camera within the preset time period and the bit rate used by the first camera.

[0131] The surplus bit rate corresponding to the first camera can be used to provide bit rate compensation for the first camera.

[0132] The preset bit rate allocated to the first camera may be a pre-configured fixed bit rate.

[0133] For example, assuming that the preset duration is 1 hour, the surplus bitrate corresponding to the first camera can be expressed by the following formula:

[0134]

[0135] in, It can represent the surplus bit rate corresponding to the first camera. It can represent the preset bit rate assigned to the first camera. It can indicate the bit rate used by the first camera. It can indicate the starting time. It can indicate the end time, and the duration between the end time and the start time is the preset duration of 1 hour.

[0136] For example, the target camera is the second camera, and the remaining bit rate corresponding to the second camera may be the difference or partial difference between the preset bit rate allocated to the second camera within the preset time period and the bit rate used by the second camera.

[0137] The surplus bit rate corresponding to the second camera can be used to provide bit rate compensation for the second camera.

[0138] The preset bit rate allocated to the second camera may be a pre-configured fixed bit rate.

[0139] The third surplus bit rate is a surplus bit rate that is preset for a camera in the preset mode.

[0140] The preset camera may be a camera capable of opening a preset mode.

[0141] The third surplus bit rate may be used to provide bit rate compensation for a preset camera in a preset mode.

[0142] The third surplus bit rate may be a partial difference between the preset bit rate allocated to the preset camera within the preset time period and the bit rate used by the preset camera.

[0143] For example, assuming that the preset duration is 1 hour, the second camera is the preset camera, and the second camera is not in the preset mode, the remaining bit rate corresponding to the second camera can be expressed by the following formula:

[0144]

[0145] in, It can indicate the surplus bit rate corresponding to the second camera. It can indicate the preset bit rate assigned to the second camera. It can indicate the bit rate used by the second camera. It can indicate the starting time. It can indicate the end time, and the duration between the end time and the start time is the preset duration of 1 hour.

[0146] For example, assuming that the preset duration is 1 hour, the second camera is the preset camera, and the second camera is turned on in the preset mode, the corresponding surplus bit rate of the second camera can be expressed by the following formula:

[0147]

[0148] in, can represent the surplus bit rate corresponding to the second camera, k can represent the preset coefficient corresponding to the preset mode, k<1, It can indicate the preset bit rate assigned to the second camera. It can indicate the bit rate used by the second camera. It can indicate the starting time. It can indicate the end time, and the duration between the end time and the start time is the preset duration of 1 hour.

[0149] For example, assuming that the preset duration is 1 hour, the second camera is the preset camera, and the second camera is turned on in the preset mode, the third surplus bit rate can be expressed by the following formula:

[0150]

[0151] in, may represent the third surplus code rate, k may represent a preset coefficient corresponding to the preset mode, k<1, It can indicate the preset bit rate assigned to the second camera. It can indicate the bit rate used by the second camera. It can indicate the starting time. It can indicate the end time, and the duration between the end time and the start time is the preset duration of 1 hour.

[0152] The second camera is a preset camera. After the preset mode is turned on, the difference between the preset bit rate assigned to the second camera within the preset time period and the bit rate used by the second camera needs to be allocated to the surplus bit rate and the third surplus bit rate corresponding to the second camera according to the preset coefficient.

[0153] The second surplus code rate is a surplus code rate commonly corresponding to multiple cameras.

[0154] The sum of the surplus code rates respectively corresponding to the multiple cameras is periodically accumulated to the second surplus code rate, and the surplus code rates respectively corresponding to the multiple cameras are set to zero.

[0155] For example, every hour, the sum of the surplus code rates corresponding to multiple cameras is added to the second surplus code rate, the first surplus code rate corresponding to the earliest hour of the historical period is deleted from the second surplus code rate, and the surplus code rates corresponding to multiple cameras are set to zero.

[0156] The second surplus code rate can be expressed by the following formula:

[0157]

[0158] in, It can represent the second surplus code rate, T can represent the length of the statistical cycle, It can represent the surplus bit rate corresponding to the i-th camera, and n is the number of cameras corresponding to the multiple cameras.

[0159] The surplus bitrate of the multi-camera in the historical period can be determined in the storage space.

[0160] S204: Determine a target bit rate of the target camera according to the motion pattern and the surplus bit rate, so that the target camera monitors the monitoring area according to the target bit rate.

[0161] The target bitrate may be a bitrate adjusted according to the motion mode and the surplus bitrate.

[0162] The target bit rate may be greater than or equal to the preset bit rate.

[0163] Optionally, it can be determined whether the surplus bitrate is greater than a preset threshold. If so, a preset mapping relationship is obtained, which includes multiple motion modes and the bitrate corresponding to each motion mode. The target bitrate of the target camera is determined based on the preset mapping relationship and the motion mode.

[0164] Optionally, it can be determined whether the second surplus bitrate is greater than a first threshold value. If so, a first mapping relationship is obtained, the first mapping relationship includes multiple motion modes and a first bitrate corresponding to each motion mode, and the target bitrate of the target camera is determined based on the first mapping relationship and the motion mode; if not, when the first surplus bitrate is greater than a second threshold value, a second mapping relationship is obtained, the second mapping relationship includes multiple motion modes and a second bitrate corresponding to each motion mode, and the target bitrate of the target camera is determined based on the second mapping relationship and the motion mode.

[0165] The first bit rate corresponding to each motion mode is less than or equal to the corresponding second bit rate.

[0166] Optionally, it can be determined whether the motion mode of the target camera is a preset mode; if so, determine the target bit rate of the target camera according to the second surplus bit rate and the third surplus bit rate; if not, determine the target bit rate of the target camera according to the second surplus bit rate.

[0167] The surplus code rate also includes a third surplus code rate, and the third surplus code rate is a surplus code rate dedicated in the preset mode.

[0168] The third surplus bitrate may be used to provide bitrate compensation for a target camera in a preset mode.

[0169] It should be noted that the target bit rate of the target camera can be determined according to any feasible implementation method, and the embodiments of the present application are not limited to this.

[0170] Next, combine Figure 3 , the above process is illustrated with an example.

[0171] Figure 3 A schematic diagram of a video bit rate control process provided by an embodiment of the present application. Figure 3 , Figure 3 The bit rate control module may include a multi-camera, wherein the multi-camera includes a first camera and a second camera. The bit rate control module may include a bit rate surplus management unit, a motion detection unit, a bit rate allocation management unit, and a coding strategy control unit.

[0172] According to the configuration information, the monitoring area can be monitored through the target camera to obtain a real-time monitoring picture, and the target camera is the first camera or the second camera;

[0173] The configuration information may include turning on or off a preset mode, a preset bit rate, and a statistical cycle duration.

[0174] During a statistical cycle, the first camera and the second camera perform monitoring using corresponding target bit rates respectively, and the size of the obtained monitoring video will not exceed the total expected storage size.

[0175] For example, the first camera is a gun camera, and the second camera is a ball camera. If the surveillance image corresponding to the gun camera is always a static scene, the average target bit rate of the gun camera during the statistical cycle is less than the preset bit rate. If the surveillance image corresponding to the ball camera is always a moving scene, the average target bit rate of the ball camera during the statistical cycle is greater than the preset bit rate. During the statistical cycle, the size of the surveillance video of the gun camera and the ball camera is less than or equal to the total expected storage size.

[0176] According to the real-time monitoring screen, the motion mode of the target camera is determined through the motion detection unit;

[0177] Determine the surplus bitrate of the multi-camera in the historical period through the bitrate surplus management unit;

[0178] Among them, the surplus code rate may include the first camera surplus code rate, the second camera surplus code rate, the second surplus code rate and the third surplus code rate.

[0179] Before determining the surplus bitrate of the multi-camera in the historical period through the bitrate surplus management unit, the bitrate surplus management unit may be initialized according to the configuration information.

[0180] According to the motion mode and the surplus bitrate, the target bitrate of the target camera is determined through the bitrate allocation management unit;

[0181] The monitoring area is monitored according to the target bit rate through the encoding strategy control unit.

[0182] The video bit rate control method provided in this embodiment monitors the monitoring area through the target camera to obtain a real-time monitoring picture; determines the motion mode of the target camera according to the real-time monitoring picture; determines the surplus bit rate of the multi-eye camera in the historical period, and the surplus bit rate is the difference between the bit rate allocated to the multi-eye camera in the historical period and the bit rate used by the multi-eye camera; determines the target bit rate of the target camera according to the motion mode and the surplus bit rate, so that the target camera monitors the monitoring area according to the target bit rate. In this way, the difference between the actual bit rate used by different cameras during monitoring and the allocated bit rate, that is, the surplus bit rate, can be used to perform different bit rate compensation on the target cameras under different motion modes, so as to achieve controllable video storage size and balanced image quality, thereby improving the quality of the monitoring picture.

[0183] Next, combine Figure 4 , the process (S204) of determining the target bit rate of the target camera according to the motion mode and the surplus bit rate is explained.

[0184] Figure 4 A flow chart of another video bit rate control method provided in an embodiment of the present application. Based on the above embodiment, see Figure 4 , the method is described in detail. The method comprises:

[0185] S401, determining whether the motion mode of the target camera is a preset mode.

[0186] If yes, execute S402;

[0187] If not, execute S403.

[0188] The preset modes may include PTZ motion mode and ROI motion mode, etc., which are not limited here.

[0189] When the preset mode is the ROI motion mode, the monitoring area can be monitored by means of the encoding method of the target ROI encoding.

[0190] The motion mode of the target camera can be obtained to determine whether the motion mode of the target camera is a preset mode.

[0191] S402: Determine a target bit rate of a target camera according to the second surplus bit rate and the third surplus bit rate.

[0192] Optionally, the sum of the second surplus bit rate and the third surplus bit rate can be determined to obtain a third mapping relationship. The third mapping relationship may include multiple bit rate ranges and third bit rates corresponding to the bit rate ranges. The target bit rate range is determined based on the sum of the second surplus bit rate and the third surplus bit rate and the third mapping relationship. The target bit rate of the target camera is determined based on the target bit rate range.

[0193] Optionally, determine whether the second surplus bit rate is greater than a first preset value; if so, when the third surplus bit rate is greater than the first preset value, determine the first coefficient, and determine the product of the preset bit rate and the first coefficient as the target bit rate of the target camera; when the third surplus bit rate is less than or equal to the first preset value, determine the second coefficient, and determine the product of the preset bit rate and the second coefficient as the target bit rate of the target camera; if not, when the third surplus bit rate is greater than the first preset value, determine the product of the preset bit rate and the second coefficient as the target bit rate; when the third surplus bit rate is less than or equal to the first preset value, determine the preset bit rate as the target bit rate.

[0194] The first preset value is a preset value. The first coefficient is greater than the second coefficient, and the second coefficient is greater than 1.

[0195] For example, assuming that the first coefficient is 3, the second coefficient is 2, and the second camera turns on the preset mode, if the second surplus code rate is greater than the first preset value, and the third surplus code rate is greater than the first preset value, then the target code rate is 3 times the preset code rate; if the second surplus code rate is greater than the first preset value, and the third surplus code rate is less than or equal to the first preset value, then the target code rate is 2 times the preset code rate; if the second surplus code rate is less than or equal to the first preset value, and the third surplus code rate is greater than the first preset value, then the target code rate is 2 times the preset code rate; if the second surplus code rate is less than or equal to the first preset value, and the third surplus code rate is less than or equal to the first preset value, then the target code rate is the preset code rate.

[0196] It should be noted that the target bit rate of the target camera can be determined according to the second surplus bit rate and the third surplus bit rate according to any feasible implementation method, and the embodiment of the present application is not limited to this.

[0197] S403: Determine a target bit rate of the target camera according to the second surplus bit rate.

[0198] Optionally, a fourth mapping relationship can be obtained, which may include multiple bit rate ranges and a fourth bit rate corresponding to the bit rate range. The target bit rate range is determined based on the second surplus bit rate and the fourth mapping relationship, and the target bit rate of the target camera is determined based on the target bit rate range.

[0199] Optionally, determine whether the second surplus bit rate is greater than a first preset value; if so, determine the product of the preset bit rate and the first coefficient as the target bit rate of the target camera; if not, when the first surplus bit rate is greater than the first preset value, determine the product of the preset bit rate and the first coefficient as the target bit rate of the target camera; when the first surplus bit rate is less than or equal to the first preset value, determine the preset bit rate as the target bit rate.

[0200] For example, assuming that the second coefficient is 2 and the preset mode is not turned on for the second camera, if the second surplus bit rate is greater than the first preset value, the target bit rate is twice the preset bit rate; if the second surplus bit rate is less than or equal to the first preset value and the first surplus bit rate is greater than the first preset value, the target bit rate is twice the preset bit rate; if the second surplus bit rate is less than or equal to the first preset value and the first surplus bit rate is less than or equal to the first preset value, the target bit rate is the preset bit rate.

[0201] It should be noted that the target bit rate of the target camera can be determined according to the second surplus bit rate in any feasible implementation manner, and the embodiment of the present application is not limited to this.

[0202] The implementation content of each step in the embodiment of the present application can refer to the description of the corresponding steps or operations in the above method embodiment, and repeated content will not be repeated.

[0203] The present embodiment provides a video bit rate control method, which determines whether the motion mode of the target camera is a preset mode; if so, determines the target bit rate of the target camera according to the second surplus bit rate and the third surplus bit rate; if not, determines the target bit rate of the target camera according to the second surplus bit rate. In this way, different bit rate compensations can be performed on target cameras in different motion modes according to the specific conditions of multiple surplus bit rates, so that the video storage size can be controlled and the image quality is balanced, thereby improving the quality of the monitoring image.

[0204] In a possible implementation, after determining the target bit rate of the target camera according to the monitoring type and the surplus bit rate so that the target camera monitors the monitoring area according to the target bit rate, the method further includes updating the surplus bit rate of the target camera.

[0205] Next, combine Figure 5 , the process of updating the surplus bit rate of the target camera is explained.

[0206] Figure 5 A flowchart of another video bit rate control method provided in an embodiment of the present application. Based on the above embodiment, see Figure 5 , the method comprising:

[0207] S501: Determine the current bit rate used by the target camera.

[0208] The target camera can be monitored by variable bit rate code control encoding. The actual bit rate used can be based on the target bit rate, but it does not necessarily reach the target bit rate. At this time, there is still a surplus bit rate.

[0209] The current bit rate used by the target camera can be determined according to the encoding strategy control unit.

[0210] S502: Determine the difference between the target bit rate and the used bit rate as the instantaneous surplus bit rate.

[0211] The instantaneous surplus bitrate is the difference between the target bitrate allocated to the target camera and the actual bitrate used within a unit time.

[0212] The difference between the target bit rate and the used bit rate may be determined, and the difference may be determined as the instantaneous surplus bit rate.

[0213] S503: Determine whether the multi-camera is in a preset mode.

[0214] If yes, execute S504;

[0215] If not, execute S505.

[0216] The configuration information can be obtained, and according to the configuration information, it can be determined whether the multi-eye camera is in preset mode.

[0217] If the preset mode is enabled, the third surplus code rate exists. If the preset mode is not enabled, the third surplus code rate does not exist.

[0218] S504. When the target camera is a preset camera, determine the preset proportion corresponding to the preset mode, and update the first surplus bit rate and the third surplus bit rate of the target camera according to the instantaneous surplus bit rate and the preset proportion; when the target camera is not a preset camera, update the first surplus bit rate of the target camera according to the instantaneous surplus bit rate.

[0219] The preset camera may be a camera capable of opening a preset mode.

[0220] For example, the preset camera is the second camera.

[0221] Different preset modes may correspond to different preset proportions.

[0222] It can be determined whether the target camera is a preset camera. If so, determine the preset proportion corresponding to the preset mode. According to the preset proportion, divide the instantaneous surplus bit rate into two instantaneous bit rates. According to the two instantaneous bit rates, update the first surplus bit rate and the third surplus bit rate of the target camera. If not, update the first surplus bit rate of the target camera according to the instantaneous surplus bit rate.

[0223] Optionally, the first surplus bit rate and the third surplus bit rate of the target camera can be updated according to the instantaneous surplus bit rate and the preset ratio in the following manner: according to the preset ratio, the instantaneous surplus bit rate is divided into a first instantaneous bit rate and a second instantaneous bit rate; according to the first instantaneous bit rate, the first surplus bit rate of the target camera is updated; according to the second instantaneous bit rate, the third surplus bit rate of the target camera is updated.

[0224] For example, assuming the preset ratio is k, the instantaneous surplus code rate is , the first instantaneous code rate is (1-k) , the second instantaneous code rate is k .

[0225] S505: Update the first surplus bit rate of the target camera according to the instantaneous surplus bit rate.

[0226] The instantaneous surplus bitrate may be accumulated into the first surplus bitrate of the target camera.

[0227] Optionally, after updating the first balance code rate of the target camera, the method also includes updating the second balance code rate, and the second balance code rate can be updated in the following manner: determine the current first balance code rate at each preset interval; determine the balance code rate to be deleted in the second balance code rate, the balance code rate to be deleted is the balance code rate of the multi-eye camera in the first historical period, and the duration between each moment in the first historical period and the current moment is greater than or equal to the cycle duration; subtract the balance code rate to be deleted from the current second balance code rate, and add the current first balance code rate to obtain an updated second balance code rate; set the current first balance code rate to zero.

[0228] The implementation content of each step in the embodiment of the present application can refer to the description of the corresponding steps or operations in the above method embodiment, and repeated content will not be repeated.

[0229] The video bit rate control method provided in this embodiment determines the current usage bit rate of the target camera; determines the difference between the target bit rate and the usage bit rate as the instantaneous surplus bit rate; determines whether the multi-eye camera is in the preset mode; if so, when the target camera is the preset camera, determines the preset proportion corresponding to the preset mode, and updates the first surplus bit rate and the third surplus bit rate of the target camera according to the instantaneous surplus bit rate and the preset proportion; when the target camera is not the preset camera, updates the first surplus bit rate of the target camera according to the instantaneous surplus bit rate; if not, updates the first surplus bit rate of the target camera according to the instantaneous surplus bit rate. In this way, the target bit rate of the target camera under different motion modes can be determined according to the specific conditions of multiple surplus bit rates, and the surplus bit rate can be continuously updated according to the actual usage bit rate and the target bit rate, so as to achieve controllable video storage size and balanced image quality, thereby improving the quality of the monitoring image.

[0230] Figure 6 This is a schematic diagram of the structure of a video bit rate control device provided in an embodiment of the present application. Figure 6 The video bit rate control device 600 is applied to a multi-camera, the multi-camera includes a plurality of cameras, the video bit rate control device 600 includes a monitoring module 601, a first determination module 602, a second determination module 603 and a third determination module 604, wherein,

[0231] A monitoring module 601 is used to monitor the monitoring area through a target camera to obtain a real-time monitoring picture, wherein the target camera is any one of the multiple cameras;

[0232] A first determination module 602 is used to determine the motion mode of the target camera according to the real-time monitoring picture;

[0233] A second determination module 603 is used to determine a surplus bit rate of the multi-eye camera in a historical period, where the surplus bit rate is a difference between a preset bit rate allocated to the multi-eye camera in the historical period and a used bit rate of the multi-eye camera;

[0234] The third determination module 604 is used to determine the target bit rate of the target camera according to the motion mode and the surplus bit rate, so that the target camera monitors the monitoring area according to the target bit rate.

[0235] In a possible implementation manner, the surplus code rate includes:

[0236] A first surplus code rate, where the first surplus code rate is a surplus code rate corresponding to the target camera;

[0237] A second surplus code rate, wherein the second surplus code rate is a surplus code rate commonly corresponding to the multiple cameras, the sum of the surplus code rates respectively corresponding to the multiple cameras is periodically added to the second surplus code rate, and the surplus code rates respectively corresponding to the multiple cameras are set to zero.

[0238] In a possible implementation manner, the third determining module 604 is specifically configured to:

[0239] Determine whether the motion mode of the target camera is a preset mode;

[0240] If yes, determining the target bit rate of the target camera according to the second surplus bit rate and the third surplus bit rate, wherein the surplus bit rate also includes the third surplus bit rate, and the third surplus bit rate is a surplus bit rate dedicated to the preset mode;

[0241] If not, determine the target bit rate of the target camera according to the second surplus bit rate.

[0242] In a possible implementation manner, the third determining module 604 is specifically configured to:

[0243] Determining whether the second surplus code rate is greater than a first preset value;

[0244] If so, when the third surplus bit rate is greater than the first preset value, determine a first coefficient, and determine the product of the preset bit rate and the first coefficient as the target bit rate of the target camera; when the third surplus bit rate is less than or equal to the first preset value, determine a second coefficient, and determine the product of the preset bit rate and the second coefficient as the target bit rate of the target camera, wherein the first coefficient is greater than the second coefficient, and the second coefficient is greater than 1;

[0245] If not, when the third surplus code rate is greater than the first preset value, the product of the preset code rate and the second coefficient is determined as the target code rate; when the third surplus code rate is less than or equal to the first preset value, the preset code rate is determined as the target code rate.

[0246] In a possible implementation manner, the third determining module 604 is specifically configured to:

[0247] Determining whether the second surplus code rate is greater than a first preset value;

[0248] If so, determining the product of the preset bit rate and the first coefficient as the target bit rate of the target camera;

[0249] If not, when the first surplus bit rate is greater than the first preset value, the product of the preset bit rate and the first coefficient is determined as the target bit rate of the target camera; when the first surplus bit rate is less than or equal to the first preset value, the preset bit rate is determined as the target bit rate.

[0250] In a possible implementation manner, after determining the target bit rate of the target camera according to the monitoring type and the surplus bit rate so that the target camera monitors the monitoring area according to the target bit rate, the device further includes an updating module 605, and the updating module 605 is used to:

[0251] Determine the current bit rate used by the target camera;

[0252] Determine the difference between the target bit rate and the used bit rate as the instantaneous surplus bit rate;

[0253] Determine whether the multi-camera is in a preset mode;

[0254] If yes, when the target camera is a preset camera, determine the preset proportion corresponding to the preset mode, and update the first surplus rate and the third surplus rate of the target camera according to the instantaneous surplus rate and the preset proportion; when the target camera is not the preset camera, update the first surplus rate of the target camera according to the instantaneous surplus rate;

[0255] If not, the first surplus bit rate of the target camera is updated according to the instantaneous surplus bit rate.

[0256] In a possible implementation, the updating module 605 is used to:

[0257] According to the preset proportion, the instantaneous surplus bit rate is divided into a first instantaneous bit rate and a second instantaneous bit rate;

[0258] According to the first instantaneous bit rate, updating a first surplus bit rate of the target camera;

[0259] According to the second instantaneous bit rate, a third surplus bit rate of the target camera is updated.

[0260] In a possible implementation, the updating module 605 is used to:

[0261] The current first surplus code rate is determined at each interval of a preset duration;

[0262] Determine a surplus code rate to be deleted from the second surplus code rate, where the surplus code rate to be deleted is the surplus code rate of the multi-eye camera in a first historical period, and the duration between each moment in the first historical period and the current moment is greater than or equal to the cycle duration;

[0263] subtracting the to-be-deleted surplus code rate from the current second surplus code rate, and adding the current first surplus code rate to obtain an updated second surplus code rate;

[0264] The current first surplus code rate is set to zero.

[0265] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 , the electronic device 700 may include: a memory 701 , a processor 702 , and a transceiver 703 .

[0266] The memory 701 is used to store program instructions;

[0267] The processor 702 is used to execute the program instructions stored in the memory, so as to enable the electronic device 700 to execute the above method.

[0268] The transceiver 703 may include: a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, a transmitter, a transmission port, a transmission interface, or the like, and the receiver may also be referred to as a receiver, a reception port, a reception interface, or the like. Exemplarily, the memory 701, the processor 702, and the transceiver 703 are interconnected via a bus 704.

[0269] The embodiment of the present application also provides a computer program product, which can be executed by a processor. When the computer program product is executed, the above method can be implemented.

[0270] The video bit rate control device, electronic device, computer-readable storage medium and computer program product of the embodiments of the present application can execute the technical solution shown in the above-mentioned video bit rate control method embodiment. The implementation principles and beneficial effects are similar and will not be repeated here.

[0271] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The above-mentioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the above-mentioned memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.

[0272] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable video rate control device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable video rate control device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0273] These computer executable instructions may also be stored in a computer readable memory capable of directing a computer or other programmable video bit rate control device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0274] These computer executable instructions may also be loaded onto a computer or other programmable video bit rate control device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0275] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A video bit rate control method, characterized in that: Applied to a multi-eye camera, the multi-eye camera includes a plurality of cameras, and the method includes: The monitoring area is monitored by a target camera to obtain a real-time monitoring picture, wherein the target camera is any one of the multiple cameras; Determine the motion mode of the target camera according to the real-time monitoring picture; Determine a surplus bitrate of the multi-eye camera in a historical period, where the surplus bitrate is a difference between a preset bitrate allocated to the multi-eye camera in the historical period and a used bitrate of the multi-eye camera; The target bit rate of the target camera is determined according to the motion mode and the surplus bit rate, so that the target camera monitors the monitoring area according to the target bit rate.

2. The method according to claim 1, characterized in that: The surplus code rate includes: A first surplus code rate, where the first surplus code rate is a surplus code rate corresponding to the target camera; A second surplus code rate, wherein the second surplus code rate is a surplus code rate commonly corresponding to the multiple cameras, periodically adding the sum of the surplus code rates respectively corresponding to the multiple cameras to the second surplus code rate, and setting the surplus code rates respectively corresponding to the multiple cameras to zero.

3. The method according to claim 2, characterized in that Determining a target bit rate of the target camera according to the motion mode and the surplus bit rate includes: Determine whether the motion mode of the target camera is a preset mode; If yes, determining the target bit rate of the target camera according to the second surplus bit rate and the third surplus bit rate, wherein the surplus bit rate also includes the third surplus bit rate, and the third surplus bit rate is a surplus bit rate dedicated to the preset mode; If not, determine the target bit rate of the target camera according to the second surplus bit rate.

4. The method according to claim 3, characterized in that Determining a target bit rate of the target camera according to the second surplus bit rate and the third surplus bit rate includes: Determining whether the second surplus code rate is greater than a first preset value; If so, when the third surplus bit rate is greater than the first preset value, determine a first coefficient, and determine the product of the preset bit rate and the first coefficient as the target bit rate of the target camera; when the third surplus bit rate is less than or equal to the first preset value, determine a second coefficient, and determine the product of the preset bit rate and the second coefficient as the target bit rate of the target camera, wherein the first coefficient is greater than the second coefficient, and the second coefficient is greater than 1; If not, when the third surplus code rate is greater than the first preset value, the product of the preset code rate and the second coefficient is determined as the target code rate; when the third surplus code rate is less than or equal to the first preset value, the preset code rate is determined as the target code rate.

5. The method according to claim 3, characterized in that: Determining a target bit rate of the target camera according to the second surplus bit rate includes: Determining whether the second surplus code rate is greater than a first preset value; If so, determining the product of the preset bit rate and the first coefficient as the target bit rate of the target camera; If not, when the first surplus bit rate is greater than the first preset value, the product of the preset bit rate and the first coefficient is determined as the target bit rate of the target camera; when the first surplus bit rate is less than or equal to the first preset value, the preset bit rate is determined as the target bit rate.

6. The method according to any one of claims 2 to 5, characterized in that: After determining the target bit rate of the target camera according to the monitoring type and the surplus bit rate so that the target camera monitors the monitoring area according to the target bit rate, the method further includes: Determine the current bit rate used by the target camera; Determine the difference between the target bit rate and the used bit rate as the instantaneous surplus bit rate; Determine whether the multi-camera is in a preset mode; If so, when the target camera is a preset camera, determine the preset proportion corresponding to the preset mode, and update the first surplus rate and the third surplus rate of the target camera according to the instantaneous surplus rate and the preset proportion; when the target camera is not the preset camera, update the first surplus rate of the target camera according to the instantaneous surplus rate; If not, the first surplus bit rate of the target camera is updated according to the instantaneous surplus bit rate.

7. The method according to claim 6, characterized in that According to the instantaneous surplus bit rate and the preset proportion, updating the first surplus bit rate and the third surplus bit rate of the target camera includes: According to the preset proportion, the instantaneous surplus bit rate is divided into a first instantaneous bit rate and a second instantaneous bit rate; According to the first instantaneous bit rate, updating a first surplus bit rate of the target camera; According to the second instantaneous bit rate, a third surplus bit rate of the target camera is updated.

8. The method according to claim 6, characterized in that After updating the first surplus bit rate of the target camera, the method further includes: The current first surplus code rate is determined at each interval of a preset duration; Determine a surplus code rate to be deleted from the second surplus code rate, where the surplus code rate to be deleted is the surplus code rate of the multi-eye camera in a first historical period, and the duration between each moment in the first historical period and the current moment is greater than or equal to the cycle duration; subtracting the to-be-deleted surplus code rate from the current second surplus code rate, and adding the current first surplus code rate to obtain an updated second surplus code rate; The current first surplus code rate is set to zero.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.

Citation Information

Patent Citations

  • Vidicon parameter control method and device used in video monitoring system

    CN106162105A

  • Camera control method and device and electronic equipment

    CN111601040A

  • Code rate control method, electronic device, and computer-readable storage medium

    WO2018145561A1

  • Video data coding method and apparatus, and device

    WO2024140792A1