CN116886880A - Method, device, equipment and computer program product for adjusting surveillance video - Google Patents

Method, device, equipment and computer program product for adjusting surveillance video Download PDF

Info

Publication number
CN116886880A
CN116886880A CN202311156357.4A CN202311156357A CN116886880A CN 116886880 A CN116886880 A CN 116886880A CN 202311156357 A CN202311156357 A CN 202311156357A CN 116886880 A CN116886880 A CN 116886880A
Authority
CN
China
Prior art keywords
consumption value
power consumption
value
resolution
monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311156357.4A
Other languages
Chinese (zh)
Other versions
CN116886880B (en
Inventor
屈跃强
程宝平
周骏华
张螣英
陶晓明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
Tsinghua University
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua University, China Mobile Hangzhou Information Technology Co Ltd filed Critical Tsinghua University
Priority to CN202311156357.4A priority Critical patent/CN116886880B/en
Publication of CN116886880A publication Critical patent/CN116886880A/en
Application granted granted Critical
Publication of CN116886880B publication Critical patent/CN116886880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The application relates to the field of Internet of things, and provides a method, a device, equipment and a computer program product for adjusting a monitoring video, wherein the method comprises the following steps: acquiring a first calculation power consumption value of a display terminal and a second calculation power consumption value of a monitoring terminal; and under the condition that the first calculated force consumption value is larger than a preset threshold value, adjusting the resolution of each monitoring terminal based on the second calculated force consumption value of each monitoring terminal so as to update the first calculated force consumption value until the updated first calculated force consumption value after adjustment is smaller than or equal to the preset threshold value. Under the condition that the monitoring video cannot be normally played, the method and the device comprehensively judge the calculation power consumption of the monitoring terminal and the calculation power consumption of the display terminal, realize that the video resolution of the monitoring terminal in the video monitoring system is automatically adjusted without the participation of a user, and enable the monitoring video to be normally played.

Description

Method, device, equipment and computer program product for adjusting surveillance video
Technical Field
The present application relates to the field of internet of things, and in particular, to a method, apparatus, device and computer program product for adjusting surveillance video.
Background
Currently, a set of intelligent security monitoring system generally comprises a plurality of intelligent monitoring terminals, and a user can view monitoring pictures of the monitoring terminals in real time through a display terminal. In order to ensure that a user can view monitoring pictures of a plurality of monitoring terminals in real time, a display terminal generally plays a plurality of video monitoring pictures at the same time. In different application scenes (such as communities, villages, campuses and the like), the performance of various display terminals is different, and the situation of insufficient performance of the display terminals is frequently encountered during multi-screen playing.
The main problems existing in the current scheme include: 1. when the user reduces the video resolution through the configuration page, the video resolution is possibly reduced to the minimum directly, and the video resolution which is most suitable for the current situation is not selected, so that the monitoring quality is reduced although the display terminal can normally play the video; 2. the user manually reduces the resolution of the video through the configuration page, so that the user is not intelligent enough; 3. the current scheme requires user participation and has high learning cost.
Disclosure of Invention
The application provides a method, a device, equipment and a computer program product for adjusting a monitoring video, which are used for solving the technical problems existing in the current scheme for adjusting the monitoring video.
In a first aspect, an embodiment of the present application provides a method for adjusting a surveillance video, including:
acquiring a first calculation power consumption value of a display terminal and a second calculation power consumption value of a monitoring terminal;
and under the condition that the first calculated force consumption value is larger than a preset threshold value, adjusting the resolution of each monitoring terminal based on the second calculated force consumption value of each monitoring terminal so as to update the first calculated force consumption value until the updated first calculated force consumption value after adjustment is smaller than or equal to the preset threshold value.
According to the method for adjusting the monitoring video provided by the application, the step of obtaining the first calculation power consumption value of the display terminal comprises the following steps:
acquiring operation resource consumption data and decoding delay data of a display terminal;
and determining a first computational effort consumption value of the display terminal based on the computational resource consumption data and the decoding delay data.
According to the method for adjusting the monitoring video provided by the application, the obtaining of the second calculation power consumption value of the monitoring terminal comprises the following steps:
acquiring macro block high-frequency component statistic values, video global motion vectors and encoding duration change data generated by a monitoring terminal based on video encoding;
and determining a second calculation power consumption value of the monitoring terminal according to the macro block high-frequency component statistic value, the video global motion vector and the coding duration change data.
According to the method for adjusting the surveillance video provided by the application, when the first power consumption value is greater than a preset threshold value, adjusting the resolution of each surveillance terminal based on the second power consumption value of each surveillance terminal until the updated first power consumption value after adjustment is less than or equal to the preset threshold value comprises:
sorting the second power consumption values of the monitoring terminals based on the numerical values under the condition that the first power consumption values are larger than a preset threshold value to obtain a power consumption value sequence;
determining a target calculated force consumption value with the largest numerical value in the calculated force consumption value sequence;
and under the condition that the resolution of the monitoring terminal corresponding to the target calculated force consumption value does not reach the preset lowest gear, adjusting the resolution of each monitoring terminal based on the second calculated force consumption value of each monitoring terminal until the updated first calculated force consumption value after adjustment is smaller than or equal to the preset threshold value.
According to the method for adjusting the surveillance video provided by the application, after the target power consumption value with the largest numerical value in the power consumption value sequence is determined, the method further comprises the following steps:
and generating early warning information under the condition that the resolution of the monitoring terminal corresponding to the maximum target calculation power consumption value reaches the preset minimum gear.
According to the method for adjusting the surveillance video provided by the application, the adjusting the resolution of each surveillance terminal based on the second power consumption value of each surveillance terminal until the updated first power consumption value is smaller than or equal to the preset threshold value comprises:
determining a calculated force consumption value with the smallest numerical value in the calculated force consumption value sequence;
and under the condition that the resolution of the monitoring terminal corresponding to the calculated force consumption value with the minimum value does not reach the preset lowest gear, reducing the resolution of the monitoring terminal corresponding to the calculated force consumption value with the minimum value so as to update the first calculated force consumption value, and under the condition that the updated first calculated force consumption value is smaller than or equal to the preset threshold value, stopping adjusting the resolution.
According to the method for adjusting the surveillance video provided by the application, the determining the calculated power consumption value with the smallest numerical value in the calculated power consumption value sequence comprises the following steps:
and under the condition that the resolution of the monitoring terminal corresponding to the calculated force consumption value with the minimum value reaches the preset minimum gear, adjusting the resolution of the target monitoring terminal to update the first calculated force consumption value, and under the condition that the updated first calculated force consumption value is smaller than or equal to the preset threshold value, stopping adjusting the resolution, wherein in the calculated force consumption value sequence, the calculated force consumption value of the target monitoring terminal is only larger than the calculated force consumption value with the minimum value.
In a second aspect, an embodiment of the present application provides a monitoring video adjusting apparatus, including:
the power consumption value acquisition module is used for acquiring a first power consumption value of the display terminal and a second power consumption value of the monitoring terminal;
and the resolution adjustment module is used for adjusting the resolution of each monitoring terminal based on the second power consumption value of each monitoring terminal under the condition that the first power consumption value is larger than a preset threshold value, so as to update the first power consumption value until the updated first power consumption value after adjustment is smaller than or equal to the preset threshold value.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements any one of the above-mentioned surveillance video adjustment methods when executing the program.
In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, where the computer program when executed by a processor implements the steps of the surveillance video adjustment method according to the first aspect.
The application provides a monitoring video adjusting method, a device, equipment and a computer program product, wherein a first calculation power consumption value of a display terminal is obtained, a second calculation power consumption value of the monitoring terminal is obtained, the first calculation power consumption value is judged, under the condition that the first calculation power consumption value is larger than a preset threshold value, the resolution of each monitoring terminal is adjusted based on the second calculation power consumption value of each monitoring terminal, the resolution of each monitoring terminal is adjusted, meanwhile, the first calculation power consumption value of the display terminal is updated, and if the updated first calculation power consumption value is still larger than the preset threshold value, the resolution of each monitoring terminal is continuously adjusted until the updated first calculation power consumption value is smaller than or equal to the preset threshold value. Under the condition that the monitoring video cannot be normally played, the calculation power consumption of the monitoring terminal and the calculation power consumption of the display terminal are comprehensively judged, and the purpose that the video resolution of the monitoring terminal in the video monitoring system is automatically adjusted without participation of a user is achieved, so that the monitoring video can be normally played.
Drawings
In order to more clearly illustrate the application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a surveillance video adjustment method according to the present application;
FIG. 2 is a second flow chart of the method for adjusting surveillance video according to the present application;
fig. 3 is a schematic structural diagram of a monitoring video adjusting device provided by the application;
fig. 4 is a schematic structural diagram of an electronic device provided by the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, the present application provides a method for adjusting a surveillance video, including:
step 100, obtaining a first calculation power consumption value of a display terminal and a second calculation power consumption value of a monitoring terminal;
specifically, the architecture of multi-terminal video monitoring mainly comprises a monitoring terminal, a video monitoring cloud platform and a display terminal. The monitoring terminal uploads the collected video pictures to the video monitoring cloud platform through the communication network, and the video monitoring cloud platform distributes the monitoring video to the corresponding display terminal according to the request of the display terminal. The main functions of each module in the multi-terminal video monitoring system are as follows:
and (3) monitoring the terminal: the intelligent door lock mainly comprises terminal equipment with video acquisition functions, such as an intelligent camera, an intelligent door bell and the like, and is responsible for acquisition, processing, transmission and the like of audio and video data;
video monitoring cloud platform: the main functions comprise terminal equipment access management, audio and video data scheduling management, terminal computing power monitoring management and the like, and the main modules comprise a terminal access module, a computing power monitoring module, a terminal control module, a media service module and the like. The terminal access module is mainly responsible for the access management of the terminal equipment; the calculation power monitoring module is mainly responsible for calculating and monitoring the calculation power consumption of the terminal equipment; the terminal control module is mainly responsible for storing and issuing configuration parameters of the terminal equipment; the media service module is mainly responsible for processing, storing and forwarding media data;
and (3) a display terminal: the system mainly comprises a computer, a large monitoring screen, a smart phone and other terminal equipment with a video playing function, and is responsible for video data display.
When the monitoring video is played, and the monitoring video cannot be played normally due to insufficient performance of the display terminal, the calculation power consumption of the monitoring terminal, namely the second calculation power consumption value in the embodiment, is obtained, and the calculation power consumption of the display terminal, namely the first calculation power consumption value in the embodiment, is obtained.
And 200, adjusting the resolution of each monitoring terminal based on the second power consumption value of each monitoring terminal under the condition that the first power consumption value is larger than a preset threshold value so as to update the first power consumption value until the updated first power consumption value after adjustment is smaller than or equal to the preset threshold value.
Specifically, the flow of the monitoring video adjustment method provided in this embodiment is as follows: 1. starting video monitoring, uploading parameters for calculating a second calculation force consumption value by a monitoring terminal, and uploading parameters for calculating a first calculation force consumption value by a display terminal; 2. the calculation power monitoring module calculates a second calculation power consumption value of the monitoring terminal and a first calculation power consumption value of the display terminal; 3. the power calculation monitoring module calculates whether the first power consumption value exceeds a preset threshold value or not, and the preset threshold value can be set by a user through a system configuration page; 4. if the first calculated force consumption value exceeds a preset threshold value, the calculated force monitoring module ranks the second calculated force consumption values of all the monitoring terminals from small to large to obtain a calculated force consumption value sequence SH [ n ], wherein n is the total number of the monitoring terminals; 5. taking SH [ i ], setting i equal to 0; 6. judging whether the resolution of monitoring terminal correspondent to SH [ i ] reached the lowest gear; 7. if the resolution of the monitoring terminal corresponding to SH [ i ] reaches the lowest gear, taking i=i+1, judging whether i is smaller than n, if i is smaller than n, repeating the step 6; if i is greater than or equal to n, sending early warning information to the monitoring terminal, wherein the early warning information indicates that normal playing of the monitoring video cannot be realized by a method for automatically reducing the resolution of the monitoring terminal; 8. if the resolution of the monitoring terminal corresponding to SH [ i ] does not reach the lowest gear, repeating step 2 after reducing the resolution of the monitoring terminal corresponding to SH [ i ] by the gear; 9. if the monitoring video display is stopped during this period, the flow ends.
The purpose of adjusting the resolution of the monitor terminal is to reduce the first power consumption value of the display terminal. It is known that, while adjusting the resolution of the monitor terminal, the first power consumption value of the display terminal changes accordingly and is proportional, i.e. the resolution of the monitor terminal is reduced, and the first power consumption value of the display terminal is reduced accordingly. Therefore, the flag to stop reducing the resolution of the monitor terminal is that the first power consumption value is less than or equal to the preset threshold value. And under the condition that the first calculated force consumption value is smaller than or equal to a preset threshold value, the monitoring video can be normally displayed.
In this embodiment, the first power consumption value of the display terminal is obtained, the second power consumption value of the monitor terminal is obtained, the first power consumption value is determined, when the first power consumption value is greater than the preset threshold, the resolution of each monitor terminal is adjusted based on the magnitude of the second power consumption value of each monitor terminal, the resolution of each monitor terminal is adjusted, and meanwhile, the first power consumption value of the display terminal is updated, and if the updated first power consumption value is still greater than the preset threshold, the resolution of each monitor terminal is continuously adjusted until the first power consumption value is greater than or equal to the preset threshold. Under the condition that the monitoring video cannot be normally played, the calculation power consumption of the monitoring terminal and the calculation power consumption of the display terminal are comprehensively judged, and the purpose that the video resolution of the monitoring terminal in the video monitoring system is automatically adjusted without participation of a user is achieved, so that the monitoring video can be normally played.
In one embodiment, the method for adjusting the surveillance video provided by the embodiment of the application may further include:
step 110, acquiring operation resource consumption data and decoding delay data of a display terminal;
step 120, determining a first computational effort consumption value of the display terminal based on the computational resource consumption data and the decoding delay data.
Specifically, the performance of the display terminal is mainly determined by the terminal power consumption RH value (i.e., the first power consumption value in the present embodiment). The RH value is mainly related to the terminal CPU (Central Processing Unit ) consumption CR (i.e., the operation resource consumption data in this embodiment), and the decoding delay time TR (i.e., the decoding delay data in this embodiment). The first calculation method of the force consumption value is as shown in the formula rh=f (CR, TR), the RH value is proportional to CR, and the RH value is proportional to TR. The higher the RH value, the larger the performance consumption of the display terminal is, and the display of the monitoring video is not facilitated.
According to the embodiment, the computing power consumption of the display terminal is accurately calculated through the computing resource consumption data and the decoding delay data of the display terminal.
In one embodiment, the method for adjusting the surveillance video provided by the embodiment of the application may further include:
step 130, acquiring a macro block high-frequency component statistic value, a video global motion vector and coding duration change data generated by a monitoring terminal based on video coding;
and 140, determining a second calculation power consumption value of the monitoring terminal according to the macro block high-frequency component statistic value, the video global motion vector and the coding duration change data.
Specifically, the power consumption of the monitoring terminal refers to the content picture quality gradient of the monitoring video, and is mainly obtained by calculating static and dynamic two parts of content. The static portion sh_static is calculated based on the macroblock high frequency component statistics GHf at the time of the surveillance video encoding, and the video global motion vector GMv. As shown by the formula sh_static=f (GHf, GMv) (0 < sh_static < 16);
the Dynamic portion sh_dynamic is calculated mainly by monitoring video encoding duration change data DEt (i.e., encoding duration change data in this embodiment), as shown by the formula sh_dynamic=f (DEt) (1 < sh_dynamic < 2). The lower the SH_static value, the lower the relative complexity of the content of the monitoring video picture, in this case, the lower the influence of the resolution reduction in the monitoring video picture is compared with other contents, and the less the reduction of the visibility is. Meanwhile, real-time content change of the monitored video picture is also considered, scene change can bring about change of video coding time length, and at the moment, the picture quality gradient grade is required to be improved.
The final video picture content quality gradient SH value calculation is shown as the formula sh=sh_static×sh_dynamic. In summary, the lower the SH value, the lower the relative complexity of the video picture content, and the lower the computational effort consumption of the monitoring terminal.
According to the embodiment, the computing power consumption of the monitoring terminal is accurately calculated through the macro block high-frequency component statistic value, the video global motion vector and the coding duration change data.
Referring to fig. 2, in an embodiment, the method for adjusting a surveillance video according to the embodiment of the present application may further include:
step 210, sorting the second power consumption values of the monitoring terminals based on the value sizes under the condition that the first power consumption values are larger than a preset threshold value, so as to obtain a power consumption value sequence;
step 220, determining a target power consumption value with the largest value in the power consumption value sequence;
step 230, under the condition that the resolution of the monitoring terminal corresponding to the target power consumption value does not reach the preset lowest gear, adjusting the resolution of each monitoring terminal based on the second power consumption value of each monitoring terminal until the updated first power consumption value after adjustment is smaller than or equal to the preset threshold value;
and step 240, generating early warning information under the condition that the resolution of the monitoring terminal corresponding to the maximum target power consumption value reaches the preset minimum gear.
Specifically, in the case where the first calculated force consumption value is greater than the preset threshold value, the respective values are sequentially sorted from small to large based on the magnitude of the valueSequencing the second power consumption values of the monitoring terminal to obtain a power consumption value sequenceWherein n is the total number of monitoring terminals, SH 1]SH [ n ] for the smallest value of the sequence of values]The maximum value of the sequence of calculated force consumption values is the target calculated force consumption value in this embodiment. And under the condition that the resolution of the monitoring terminal corresponding to the target power consumption value with the largest value in the power consumption value sequence does not reach the preset lowest gear, the resolution of the monitoring terminal can be adjusted. In this case, the resolution of each monitor terminal is adjusted based on the second calculated power consumption value of each monitor terminal to update the first calculated power consumption value until the first calculated power consumption value is less than or equal to the preset threshold value.
Under the condition that the resolution of the monitoring terminal corresponding to the target power consumption value with the largest value in the power consumption value sequence reaches the preset lowest gear, the normal play of the monitoring video cannot be realized by a method for automatically reducing the resolution of the monitoring terminal.
The second power consumption values of the monitoring terminals are sequenced to sequentially adjust the resolution of the monitoring terminals.
In one embodiment, the method for adjusting the surveillance video provided by the embodiment of the application may further include:
step 250, determining the calculated power consumption value with the smallest value in the calculated power consumption value sequence;
step 260, when the resolution of the monitor terminal corresponding to the value of the calculated power consumption with the smallest value does not reach the preset lowest gear, the resolution of the monitor terminal corresponding to the value of the calculated power consumption with the smallest value is reduced so as to update the first calculated power consumption value, and when the updated first calculated power consumption value is smaller than or equal to the preset threshold value, the resolution adjustment is stopped.
Specifically, in the case where the first calculation power consumption value is greater than the preset threshold value, the second calculation for each monitor terminal is performed in order from small to large based on the magnitude of the valueThe force consumption values are sequenced to obtain a sequence of calculated force consumption valuesWherein n is the total number of monitoring terminals, SH 1]The smallest value of the sequence of calculated force consumption values. Under the condition that the resolution of the monitoring terminal corresponding to the calculated power consumption value with the minimum value does not reach the preset lowest gear, the normal play of the monitoring video can be realized by a method for automatically reducing the resolution of the monitoring terminal corresponding to the calculated power consumption value with the minimum value. And reducing the resolution of the monitoring terminal corresponding to the calculated power consumption value with the minimum value so as to update the first calculated power consumption value until the first calculated power consumption value is smaller than or equal to a preset threshold value.
According to the embodiment, through the sequencing result of the second calculation power consumption values of the monitoring terminals, the resolution of the monitoring terminals is sequentially adjusted from the lowest value of the second calculation power consumption value to the increasing direction of the value, so that the normal playing of the monitoring video is realized.
In one embodiment, the method for adjusting the surveillance video provided by the embodiment of the application may further include:
step 270, adjusting the resolution of the target monitoring terminal to update the first power consumption value when the resolution of the monitoring terminal corresponding to the power consumption value with the smallest value reaches the preset lowest gear, and stopping adjusting the resolution when the updated first power consumption value is smaller than or equal to the preset threshold value, wherein in the power consumption value sequence, the power consumption value of the target monitoring terminal is only larger than the power consumption value with the smallest value.
Specifically, under the condition that the first calculated power consumption value is larger than a preset threshold value, sorting the second calculated power consumption values of all the monitoring terminals according to the order from small to large based on the numerical values to obtain a calculated power consumption value sequenceWherein n is the total number of monitoring terminals, SH 1]The smallest value of the sequence of calculated force consumption values. Monitoring corresponding to the smallest value of the calculated force consumptionUnder the condition that the resolution of the terminal reaches the preset lowest gear, the normal playing of the monitoring video cannot be realized by a method for automatically reducing the resolution of the monitoring terminal corresponding to the calculation power consumption value with the minimum value. In this case, the target monitoring terminal that is greater than only the value of the smallest value of the power consumption is determined in accordance with the direction in which the value increases. Under the condition that the resolution of the target monitoring terminal is not reduced to the preset lowest gear, the normal playing of the monitoring video can be realized by the method for automatically reducing the resolution of the target monitoring terminal. In this case, the resolution of the target monitor terminal is reduced to update the first power consumption value until the first power consumption value is less than or equal to the preset threshold value.
According to the embodiment, through the sequencing result of the second calculation power consumption values of the monitoring terminals, the resolution of the monitoring terminals is sequentially adjusted from the lowest value of the second calculation power consumption value to the increasing direction of the value, so that the normal playing of the monitoring video is realized.
The following describes the surveillance video adjustment device provided by the present application, and the surveillance video adjustment device described below and the surveillance video adjustment method described above may be referred to correspondingly.
Referring to fig. 3, the present application further provides a monitoring video adjusting device, including:
the computing power consumption value obtaining module 301 is configured to obtain a first computing power consumption value of the display terminal, and obtain a second computing power consumption value of the monitor terminal;
and the resolution adjustment module 302 is configured to adjust, based on the second power consumption value of each monitoring terminal, the resolution of each monitoring terminal when the first power consumption value is greater than a preset threshold, so as to update the first power consumption value until the updated first power consumption value after adjustment is less than or equal to the preset threshold.
Optionally, the computing power consumption value acquisition module includes:
the first acquisition unit is used for acquiring the operation resource consumption data and the decoding delay data of the display terminal;
and the first calculation power consumption value determining unit is used for determining the first calculation power consumption value of the display terminal based on the calculation resource consumption data and the decoding delay data.
Optionally, the computing power consumption value acquisition module further includes:
the second acquisition unit is used for acquiring a macro block high-frequency component statistic value, a video global motion vector and coding duration change data generated by the monitoring terminal based on video coding;
and the second calculation power consumption value determining unit is used for determining the second calculation power consumption value of the monitoring terminal according to the macro block high-frequency component statistic value, the video global motion vector and the coding duration change data.
Optionally, the resolution adjustment module includes:
the power consumption value sorting unit is used for sorting the second power consumption values of the monitoring terminals based on the numerical values under the condition that the first power consumption values are larger than a preset threshold value to obtain a power consumption value sequence;
a target calculation force consumption value determining unit, configured to determine a target calculation force consumption value with a maximum value in the calculation force consumption value sequence;
and the resolution adjustment unit is used for adjusting the resolution of each monitoring terminal based on the second power consumption value of each monitoring terminal under the condition that the resolution of the monitoring terminal corresponding to the target power consumption value does not reach the preset minimum gear, until the updated first power consumption value after adjustment is smaller than or equal to the preset threshold value.
Optionally, the monitoring video adjusting device further includes:
and the early warning information generation module is used for generating early warning information under the condition that the resolution of the monitoring terminal corresponding to the maximum target power consumption value reaches a preset minimum gear.
Optionally, the resolution adjustment unit includes:
a calculation force consumption value determining unit, configured to determine a calculation force consumption value with the smallest value in the calculation force consumption value sequence;
the first calculation power consumption value updating unit is used for adjusting the resolution of the monitoring terminal corresponding to the calculation power consumption value with the smallest value to update the first calculation power consumption value under the condition that the resolution of the monitoring terminal corresponding to the calculation power consumption value with the smallest value does not reach the preset minimum gear, and stopping adjusting the resolution under the condition that the updated first calculation power consumption value is smaller than or equal to the preset threshold value.
Optionally, the monitoring video adjusting device further includes:
the adjusting module is configured to adjust the resolution of the target monitoring terminal when the resolution of the monitoring terminal corresponding to the calculated power consumption value with the smallest value reaches the preset lowest gear, so as to update the first calculated power consumption value, and stop adjusting the resolution when the updated first calculated power consumption value is smaller than or equal to the preset threshold value, wherein in the calculated power consumption value sequence, the calculated power consumption value of the target monitoring terminal is only larger than the calculated power consumption value with the smallest value.
Fig. 4 illustrates a physical schematic diagram of an electronic device, as shown in fig. 4, which may include: processor 410, communication interface (Communications Interface) 420, memory 430 and communication bus 440, wherein processor 410, communication interface 420 and memory 430 communicate with each other via communication bus 440. The processor 410 may invoke logic instructions in the memory 430 to perform the surveillance video adjustment method.
Further, the logic instructions in the memory 430 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In yet another aspect, the present application further provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the surveillance video adjustment method provided by the above methods.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (9)

1. The method for adjusting the monitoring video is characterized by comprising the following steps of:
acquiring a first calculation power consumption value of a display terminal and a second calculation power consumption value of a monitoring terminal;
sorting the second power consumption values of the monitoring terminals based on the numerical values under the condition that the first power consumption values are larger than a preset threshold value to obtain a power consumption value sequence;
determining a target calculated force consumption value with the largest numerical value in the calculated force consumption value sequence;
and under the condition that the resolution of the monitoring terminal corresponding to the target calculated force consumption value does not reach the preset lowest gear, adjusting the resolution of each monitoring terminal based on the second calculated force consumption value of each monitoring terminal until the updated first calculated force consumption value after adjustment is smaller than or equal to the preset threshold value.
2. The method for adjusting a surveillance video according to claim 1, wherein the obtaining a first power consumption value of a display terminal comprises:
acquiring operation resource consumption data and decoding delay data of a display terminal;
and determining a first computational effort consumption value of the display terminal based on the computational resource consumption data and the decoding delay data.
3. The method for adjusting a surveillance video according to claim 1, wherein the obtaining the second calculated power consumption value of the surveillance terminal comprises:
acquiring macro block high-frequency component statistic values, video global motion vectors and encoding duration change data generated by a monitoring terminal based on video encoding;
and determining a second calculation power consumption value of the monitoring terminal according to the macro block high-frequency component statistic value, the video global motion vector and the coding duration change data.
4. The surveillance video adjustment method according to claim 1, wherein after determining the target power consumption value with the largest value in the power consumption value sequence, the method further comprises:
and generating early warning information under the condition that the resolution of the monitoring terminal corresponding to the maximum target calculation power consumption value reaches the preset minimum gear.
5. The surveillance video adjustment method according to claim 1, wherein adjusting the resolution of each of the surveillance terminals based on the second calculated power consumption value of each of the surveillance terminals until the updated first calculated power consumption value after adjustment is less than or equal to the preset threshold value comprises:
determining a calculated force consumption value with the smallest numerical value in the calculated force consumption value sequence;
and under the condition that the resolution of the monitoring terminal corresponding to the calculated force consumption value with the minimum value does not reach the preset lowest gear, reducing the resolution of the monitoring terminal corresponding to the calculated force consumption value with the minimum value so as to update the first calculated force consumption value, and under the condition that the updated first calculated force consumption value is smaller than or equal to the preset threshold value, stopping adjusting the resolution.
6. The surveillance video adjustment method according to claim 5, wherein the determining the value of the least numerical value of the sequence of values of the calculated power consumption comprises:
and under the condition that the resolution of the monitoring terminal corresponding to the calculated force consumption value with the minimum value reaches the preset minimum gear, adjusting the resolution of the target monitoring terminal to update the first calculated force consumption value, and under the condition that the updated first calculated force consumption value is smaller than or equal to the preset threshold value, stopping adjusting the resolution, wherein in the calculated force consumption value sequence, the calculated force consumption value of the target monitoring terminal is only larger than the calculated force consumption value with the minimum value.
7. A surveillance video adjustment apparatus, comprising:
the power consumption value acquisition module is used for acquiring a first power consumption value of the display terminal and a second power consumption value of the monitoring terminal;
the power consumption value sorting unit is used for sorting the second power consumption values of the monitoring terminals based on the numerical values under the condition that the first power consumption values are larger than a preset threshold value to obtain a power consumption value sequence;
a target calculation force consumption value determining unit, configured to determine a target calculation force consumption value with a maximum value in the calculation force consumption value sequence;
and the resolution adjustment unit is used for adjusting the resolution of each monitoring terminal based on the second power consumption value of each monitoring terminal under the condition that the resolution of the monitoring terminal corresponding to the target power consumption value does not reach the preset minimum gear, until the updated first power consumption value after adjustment is smaller than or equal to the preset threshold value.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the surveillance video adjustment method according to any one of claims 1 to 6 when executing the program.
9. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the surveillance video adjustment method of any of claims 1 to 6.
CN202311156357.4A 2023-09-08 2023-09-08 Method, device, equipment and computer program product for adjusting surveillance video Active CN116886880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311156357.4A CN116886880B (en) 2023-09-08 2023-09-08 Method, device, equipment and computer program product for adjusting surveillance video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311156357.4A CN116886880B (en) 2023-09-08 2023-09-08 Method, device, equipment and computer program product for adjusting surveillance video

Publications (2)

Publication Number Publication Date
CN116886880A true CN116886880A (en) 2023-10-13
CN116886880B CN116886880B (en) 2023-12-26

Family

ID=88257293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311156357.4A Active CN116886880B (en) 2023-09-08 2023-09-08 Method, device, equipment and computer program product for adjusting surveillance video

Country Status (1)

Country Link
CN (1) CN116886880B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120133774A1 (en) * 2009-06-09 2012-05-31 Wayne State University Automated video surveillance systems
US20160330533A1 (en) * 2014-01-06 2016-11-10 Piq Device for creating enhanced videos
CN106856573A (en) * 2016-11-29 2017-06-16 福建天泉教育科技有限公司 The optimization method and system of a kind of video playback power consumption
KR102263071B1 (en) * 2019-12-06 2021-06-08 이정무 Method for video monitoring, Apparatus for video monitoring and Computer program for the same
CN114694007A (en) * 2020-12-25 2022-07-01 深圳云天励飞技术股份有限公司 Video structuring processing method and video structuring engine
WO2023279978A1 (en) * 2021-07-09 2023-01-12 百果园技术(新加坡)有限公司 Video encoding method and apparatus, device, and storage medium
WO2023051383A1 (en) * 2021-09-30 2023-04-06 华为技术有限公司 Device positioning method, device and system
CN116089043A (en) * 2023-01-13 2023-05-09 鹏城实验室 Heterogeneous application system video analysis task scheduling method, device, terminal and medium
CN116129316A (en) * 2023-01-17 2023-05-16 浙江大华技术股份有限公司 Image processing method, device, computer equipment and storage medium
CN116204308A (en) * 2023-02-16 2023-06-02 北京贝思科技术有限公司 Dynamic adjusting method and device for audio and video computing power and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120133774A1 (en) * 2009-06-09 2012-05-31 Wayne State University Automated video surveillance systems
US20160330533A1 (en) * 2014-01-06 2016-11-10 Piq Device for creating enhanced videos
CN106856573A (en) * 2016-11-29 2017-06-16 福建天泉教育科技有限公司 The optimization method and system of a kind of video playback power consumption
KR102263071B1 (en) * 2019-12-06 2021-06-08 이정무 Method for video monitoring, Apparatus for video monitoring and Computer program for the same
CN114694007A (en) * 2020-12-25 2022-07-01 深圳云天励飞技术股份有限公司 Video structuring processing method and video structuring engine
WO2023279978A1 (en) * 2021-07-09 2023-01-12 百果园技术(新加坡)有限公司 Video encoding method and apparatus, device, and storage medium
WO2023051383A1 (en) * 2021-09-30 2023-04-06 华为技术有限公司 Device positioning method, device and system
CN116089043A (en) * 2023-01-13 2023-05-09 鹏城实验室 Heterogeneous application system video analysis task scheduling method, device, terminal and medium
CN116129316A (en) * 2023-01-17 2023-05-16 浙江大华技术股份有限公司 Image processing method, device, computer equipment and storage medium
CN116204308A (en) * 2023-02-16 2023-06-02 北京贝思科技术有限公司 Dynamic adjusting method and device for audio and video computing power and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ZHENYU WANG: "Joint User Grouping and Power Control of Virtual MIMO in Fog Computing", IEEE *
程宝平: "视联算力网络关键技术研究与应用", 电信工程技术与标准化 *
金哲彦;徐之海;冯华君;李奇;: "基于对焦清晰度的双分辨相机变焦算法研究", 红外与激光工程, no. 05 *

Also Published As

Publication number Publication date
CN116886880B (en) 2023-12-26

Similar Documents

Publication Publication Date Title
CN111193923B (en) Video quality evaluation method and device, electronic equipment and computer storage medium
US20200374526A1 (en) Method, device, apparatus for predicting video coding complexity and storage medium
CN110677718B (en) Video identification method and device
CN114679607B (en) Video frame rate control method and device, electronic equipment and storage medium
GB2560548A (en) Video data processing system
CN108737818B (en) Frame loss method and device under congestion network and terminal equipment
CN112584030B (en) Driving video recording method and electronic equipment
CN106603885B (en) Method of video image processing and device
CN113286146B (en) Media data processing method, device, equipment and storage medium
CN110853272A (en) Bus safety monitoring method, device, equipment and storage medium
CN116886880B (en) Method, device, equipment and computer program product for adjusting surveillance video
CN111954034B (en) Video coding method and system based on terminal equipment parameters
CN113645477A (en) Live broadcast data processing method and device, live broadcast client equipment and storage medium
CN115243073B (en) Video processing method, device, equipment and storage medium
CN108668166B (en) Coding method, device and terminal equipment
CN114913471B (en) Image processing method, device and readable storage medium
CN114827617B (en) Video coding and decoding method and system based on perception model
CN113808157B (en) Image processing method and device and computer equipment
CN115314717A (en) Video transmission method, video transmission device, electronic equipment and computer-readable storage medium
CN115103156A (en) Dynamic video stream transmission method
CN114422866A (en) Video processing method and device, electronic equipment and storage medium
CN108024121B (en) Voice barrage synchronization method and system
JP2002536764A (en) Classification adaptive multiprocessor
US20240137619A1 (en) Bullet-screen comment display
CN111629261B (en) Information processing method, information processing device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant