Disclosure of Invention
In view of the above, it is desirable to provide a monitoring control method, a monitoring control apparatus, an electronic device, and a computer-readable storage medium that can achieve both low power consumption and monitoring timeliness.
In a first aspect, the present application provides a monitoring control method. The method comprises the following steps:
shooting a monitoring image through monitoring equipment;
carrying out hidden danger identification on the monitored image to obtain a monitored result, and adding a table entry corresponding to the monitored result in a monitored record table; the monitoring result comprises that hidden dangers are identified and hidden dangers are not identified;
acquiring the number of the monitoring results with the monitoring results of the identified hidden dangers from the monitoring record table to obtain the target number;
determining a target dormancy duration according to the target number and the current electric quantity of the monitoring equipment;
and switching the state of the monitoring equipment into a dormant state, and re-executing the step of shooting the monitoring image through the monitoring equipment when the duration of the dormant state reaches the target dormant duration.
In one embodiment, the obtaining, in the monitoring record table, the number of monitoring results of which the monitoring results are the number of identified hidden dangers to obtain the target number includes:
according to the shooting time of the monitored image, acquiring the monitoring result in a preset time period before the shooting time in the monitoring record table to obtain a target monitoring result;
and determining the number of the target monitoring results with the hidden danger identified as the target monitoring results to obtain the number of targets.
In one embodiment, the determining a target sleep duration according to the target number and the current electric quantity of the monitoring device includes:
under the condition that the target number is smaller than or equal to a first preset threshold value, prolonging the sleep duration determined last time according to the first preset duration to obtain a target sleep duration;
and under the condition that the target number is larger than the first preset threshold, determining the target dormancy time length according to the current electric quantity of the monitoring equipment and a preset time length shortening strategy.
In one embodiment, the determining a target sleep duration according to the current electric quantity of the monitoring device and a preset duration shortening strategy includes:
determining the sleep duration determined last time as the target sleep duration when the current electric quantity of the monitoring equipment is smaller than a first preset electric quantity;
determining a target shortening time length corresponding to the current electric quantity according to the corresponding relation between the electric quantity and the shortening time length under the condition that the current electric quantity is greater than or equal to the first preset electric quantity; and determining the target dormancy duration according to the target shortened duration and the dormancy duration determined last time.
In one embodiment, the determining the target sleep duration according to the current electric quantity of the monitoring device and a preset duration shortening strategy when the target number is greater than the first preset threshold includes:
determining a target dormancy time length according to the current electric quantity of the monitoring equipment and a preset time length shortening strategy under the condition that the target quantity is greater than the first preset threshold and less than or equal to a second preset threshold;
the method further comprises the following steps:
and starting a continuous monitoring function under the condition that the target quantity is greater than the second preset threshold value and the current electric quantity is greater than or equal to the second preset electric quantity until the current electric quantity is less than the second preset electric quantity.
In one embodiment, the step of extending the sleep duration determined last time according to a first preset duration to obtain a target sleep duration includes:
prolonging the sleep time determined last time according to a first preset time;
and under the condition that the prolonged dormancy duration is greater than a preset dormancy duration threshold, determining the preset dormancy duration threshold as the target dormancy duration.
In a second aspect, the application further provides a monitoring control device. The device comprises:
the first acquisition module is used for shooting a monitoring image through monitoring equipment;
the identification module is used for identifying hidden danger of the monitored image to obtain a monitored result and adding a table entry corresponding to the monitored result into a monitored record table; the monitoring result comprises that hidden dangers are identified and hidden dangers are not identified;
the second acquisition module is used for acquiring the number of the monitoring results with the monitoring results of the identified hidden dangers from the monitoring record table to obtain the target number;
the determining module is used for determining the target dormancy duration according to the target number and the current electric quantity of the monitoring equipment;
and the switching module is used for switching the state of the monitoring equipment into a dormant state and re-executing the step of shooting the monitoring image through the monitoring equipment when the duration of the dormant state reaches the target dormant duration.
In a third aspect, the present application further provides an electronic device. The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
shooting a monitoring image through monitoring equipment;
carrying out hidden danger identification on the monitored image to obtain a monitored result, and adding a table entry corresponding to the monitored result in a monitored record table; the monitoring result comprises that hidden dangers are identified and hidden dangers are not identified;
acquiring the number of the monitoring results with the monitoring results of the identified hidden dangers from the monitoring record table to obtain the target number;
determining a target dormancy duration according to the target number and the current electric quantity of the monitoring equipment;
and switching the state of the monitoring equipment into a dormant state, and re-executing the step of shooting the monitoring image through the monitoring equipment when the duration of the dormant state reaches the target dormant duration.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
shooting a monitoring image through monitoring equipment;
carrying out hidden danger identification on the monitored image to obtain a monitored result, and adding a table entry corresponding to the monitored result in a monitored record table; the monitoring result comprises that hidden dangers are identified and hidden dangers are not identified;
acquiring the number of the monitoring results with the monitoring results of the identified hidden dangers from the monitoring record table to obtain the target number;
determining a target dormancy duration according to the target number and the current electric quantity of the monitoring equipment;
and switching the state of the monitoring equipment into a dormant state, and re-executing the step of shooting the monitoring image through the monitoring equipment when the duration of the dormant state reaches the target dormant duration.
According to the monitoring shooting control method, the monitoring shooting control device, the electronic equipment and the storage medium, the monitoring shooting equipment shoots the monitoring shooting image; hidden danger identification is carried out on the monitored image to obtain a monitored result, and a table entry corresponding to the monitored result is added into a monitored record table; the monitoring result comprises that hidden dangers are identified and hidden dangers are not identified; acquiring the number of monitoring results with the monitoring results of the identified hidden dangers in the monitoring record table to obtain the target number; determining the target dormancy duration according to the target number and the current electric quantity of the monitoring equipment; and switching the state of the monitoring equipment into a dormant state, and re-executing the step of shooting the monitoring image through the monitoring equipment when the duration of the dormant state reaches the target dormant duration. According to the method, a monitoring result is obtained by identifying the hidden danger of the monitored image, the monitoring result is stored in a monitoring record table, the monitoring result is obtained in the monitoring record table and is the number (namely the target number) of the monitoring results with the hidden danger, and further the target dormancy duration is determined according to the target number and the current electric quantity of the monitoring equipment, wherein the target dormancy duration is the dormancy duration after the monitoring equipment is switched to the dormancy state. The invention optimizes the dormancy duration in real time based on the number of the hidden dangers identified in the monitoring record of the monitoring equipment and the current electric quantity of the monitoring equipment, thereby more reasonably setting the monitoring frequency and taking low power consumption and monitoring timeliness into consideration.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
First, before specifically describing the technical solution of the embodiment of the present application, a technical background or a technical evolution context on which the embodiment of the present application is based is described. During the operation process of the overhead transmission line, the overhead transmission line is easily influenced by external forces such as natural disasters (such as icing, mountain fire and the like) or artificial damages (such as hanging of construction vehicles and stealing) and the like, so that short circuit or open circuit faults occur, and the safe and stable operation of a power system is further influenced. Therefore, it is necessary to monitor the transmission line and its surrounding environment so as to find and eliminate the potential safety hazard in time. With the development of computer technology, intelligent monitoring equipment for monitoring the running state of the power transmission line appears. The intelligent monitoring equipment shoots images of the power transmission line and the surrounding environment of the power transmission line, identifies potential safety hazards such as foreign matters, fire, smoke, construction machinery and abnormal behavior personnel of the shot images, uploads the shot images to a monitoring background if the potential safety hazards are identified, sends out early warning and informs operation and maintenance personnel to process the images in time. Because the working environment of the intelligent monitoring equipment generally has no external power supply, in order to reduce the power consumption of the intelligent monitoring equipment, the monitoring frequency and the dormancy duration are generally set, so that the built-in battery power can meet the requirement of monitoring operation for a long time. For example, the monitoring frequency may be set to be once in half an hour, that is, after each monitoring is finished, the monitoring is switched to a sleep state, and after the sleep state is performed for half an hour, the next monitoring is started. In the related art, the set monitoring frequency and the sleep time period are generally set to a fixed value empirically, for example, half an hour, and the like. However, because the probability or frequency of the potential safety hazard may change at any time along with the different environments, seasons, time periods and the like of the power transmission line, the fixed sleep duration set according to experience is easy to cause the situations of untimely monitoring and shooting or missing due to unreasonable setting, and further cause the faults due to untimely early warning. That is, the existing monitoring control method is difficult to consider both low power consumption and monitoring timeliness. Based on the background, the applicant provides the monitoring and shooting control method through long-term research and development and experimental verification, so that the monitoring and shooting frequency and the sleeping time can be set more reasonably, and low power consumption and monitoring and shooting timeliness can be considered. In addition, it should be noted that the applicant has paid a lot of creative efforts in finding the technical problems of the present application and the technical solutions described in the following embodiments.
The monitoring and photographing control method provided by the embodiment of the application can be applied to monitoring and photographing equipment. The monitoring device may be an electronic device having an image capturing function and an energy storage battery. The monitoring equipment can be arranged in a scene needing monitoring, so that the scene needing monitoring can be subjected to image acquisition. For example, the monitoring device may be disposed on a tower of the power transmission line, so that the monitoring device may perform image acquisition on the power transmission line and its surrounding environment.
In an embodiment, as shown in fig. 1, a monitoring control method is provided, which is described by taking a monitoring device disposed on a tower of a transmission line as an example, and includes the following steps:
step 101, shooting a monitoring image through monitoring equipment.
In implementation, the monitoring device can shoot images of the power transmission line and the surrounding environment thereof through the camera shooting component thereof, such as the camera shooting component with the daylight sensor and the night vision sensor, so as to obtain a monitoring image. The monitoring equipment can shoot an image and further take the image as a monitoring image, and also can shoot a video with a preset time length and further extract a video frame from the video as the monitoring image.
Step 102, carrying out hidden danger identification on the monitored image to obtain a monitored result, and adding a table entry corresponding to the monitored result in a monitored record table; the monitoring result comprises that the hidden danger is identified and the hidden danger is not identified.
In implementation, the monitoring device may adopt a pre-established hidden danger identification model to identify hidden dangers possibly included in the monitored image, so as to obtain a monitoring result. The monitoring result comprises that the hidden danger is identified and the hidden danger is not identified. The potential safety hazards include conductor icing, conductor galloping, fire, smoke, conductor foreign matter floating, construction around an iron tower, construction around a line, abnormal actors and the like. The hidden danger identification model can be obtained by training a large amount of image data containing the above potential safety hazards as a sample by adopting a model based on algorithms such as R-CNN (Region-based Convolutional Neural Networks), SSD (Single Shot Multi Box Detector), YOLO (You Only need to see Once), and the like. If the monitoring equipment identifies that the monitoring image contains any potential safety hazard, the monitoring result is that the potential safety hazard is identified, and if any potential safety hazard is not identified, the monitoring result is that the potential safety hazard is not identified. Optionally, the monitoring result may include the specific type of the identified hidden danger. Then, the monitoring device adds corresponding entries in the monitoring record table based on the monitoring result. The monitoring record table is used for recording the monitoring result of the monitoring device, for example, "1" may be used as the monitoring result as the unique identifier for identifying the hidden trouble, and "0" may be used as the unique identifier for not identifying the hidden trouble, and when the monitoring result is that the hidden trouble is identified, then "1" is added to the monitoring record table. The monitoring result stored in the monitoring record table may be a monitoring result of each monitoring recorded by the monitoring device from the first monitoring, or may be a monitoring result of a last preset number of times, for example, a monitoring result of a last 20 times, or may be a monitoring result of the monitoring device within a last preset time period, for example, a monitoring result of each monitoring within a last 24 hours.
And 103, acquiring the number of the monitoring results with the monitoring results of the identified hidden dangers in the monitoring record table to obtain the target number.
In implementation, the monitoring device may obtain, in the monitoring record table, the number of monitoring results in which the hidden danger is identified as the monitoring result. For example, when "1" is used as the unique identifier for identifying the hidden danger, the monitoring device may count the number of the identifiers "1" in the monitoring record table, that is, the target number.
And step 104, determining the target dormancy duration according to the target number and the current electric quantity of the monitoring equipment.
In implementation, the monitoring device may obtain a current electric quantity of its own energy storage battery, and the current electric quantity may be represented by a remaining electric quantity ratio. Then, the monitoring device may determine the target sleep duration according to the target number obtained in step 103 and the current electric quantity of the energy storage battery. The specific method for determining the target sleep duration may be determined according to a preset policy. For example, the number of the hidden dangers, the electric quantity of the energy storage battery, and the sleep duration may be previously associated, and then the sleep duration corresponding to the target number and the current electric quantity may be found in the association as the target sleep duration.
And 105, switching the state of the monitoring equipment to a dormant state, and re-executing the step of shooting the monitoring image through the monitoring equipment when the duration of the dormant state reaches the target dormant duration.
In implementation, the monitoring device may switch the state of the monitoring device to the sleep state after the current monitoring work is finished. For example, if the current monitoring result indicates that no hidden danger is identified, the monitoring device may switch its own state to the sleep state after executing step 104; if the current monitoring result is that a hidden danger is identified, the monitoring device may switch the state of the monitoring device to a dormant state after executing step 104 and sending the monitoring image, the monitoring result and the early warning information to the server of the monitoring background. Then, when the time length of the sleep state of the monitoring apparatus reaches the target sleep time length determined in step 104, the step of capturing the monitoring image by the monitoring apparatus (i.e., step 101) is executed again, and the next monitoring operation is started.
In the monitoring control method, the hidden danger identification is carried out on the monitored image to obtain the monitoring result, the monitoring result is stored in the monitoring record table, the monitoring result is obtained from the monitoring record table and is the number (namely the target number) of the monitoring results with the hidden danger identified, and further the target dormancy duration is determined according to the target number and the current electric quantity of the monitoring equipment, wherein the target dormancy duration is the dormancy duration after the monitoring equipment is switched to the dormancy state currently. According to the invention, the dormancy duration is optimized in real time based on the number of the hidden dangers identified in the monitoring record of the monitoring equipment and the current electric quantity of the monitoring equipment, instead of adopting a fixed value, so that the monitoring frequency can be set more reasonably, and low power consumption and monitoring timeliness can be taken into consideration.
In one embodiment, the process of obtaining the target number in step 103 specifically includes the following steps:
according to the shooting time of the monitored image, acquiring a corresponding monitoring result in a preset time period before the shooting time in a monitoring record table to obtain a target monitoring result; and determining the number of the target monitoring results with the hidden danger identified as the target monitoring results to obtain the number of the targets.
In an implementation, a monitoring time corresponding to the monitoring result may be recorded in the monitoring record table, for example, the shooting time of the monitoring image may be taken as the monitoring time, and then the monitoring time and the monitoring result may be added to the monitoring record table. Then, the monitoring device may obtain, in the monitoring record table, a monitoring result within a preset time period before (including) the shooting time according to the shooting time of the currently shot monitoring image, so as to obtain a target monitoring result. The preset time period is a preset value of one time period, and may be 48 hours, 24 hours, 12 hours, and the like. In one example, the preset time period is set to 24 hours, and the monitoring device may obtain a target monitoring result in the monitoring record table within 24 hours before (including) the shooting time of the shot image. Then, the monitoring device may count the number of target monitoring results in which the hidden danger is identified in the target monitoring results, as the target number.
In the embodiment, the monitoring result in the preset time period before the shooting time of the current monitoring image is taken as the target monitoring result, and the number of the target monitoring results with hidden dangers identified in the target monitoring result is taken as the target number, so that the sleeping time length is dynamically optimized based on the monitoring result in the recent preset time period of the monitoring device, the monitoring frequency can be set more reasonably, and low power consumption and monitoring timeliness are taken into consideration.
In an embodiment, the process of determining the target sleep duration in step 104 specifically includes the following steps:
under the condition that the target number is smaller than or equal to a first preset threshold value, prolonging the sleep time determined last time according to the first preset time to obtain target sleep time; and under the condition that the number of the targets is larger than a first preset threshold, determining the target dormancy time length according to the current electric quantity of the monitoring equipment and a preset time length shortening strategy.
In implementation, the monitoring device may determine whether the target number is greater than a first preset threshold, where the first preset threshold is a preset value and may be a smaller value such as 0, 1, or 2. If the target number is less than or equal to a first preset threshold, the monitoring equipment can prolong the sleep time determined last time according to the first preset time to obtain the target sleep time; if the number of the targets is larger than a first preset threshold, the monitoring equipment can determine the target dormancy time length according to the current electric quantity and a preset time length shortening strategy. The preset duration shortening strategy can be that a corresponding relation is established in advance with the proportion of shortening the electric quantity and the duration, the proportion of shortening the electric quantity and the duration can be in positive correlation, the larger the electric quantity is, the larger the proportion of shortening the corresponding duration is, or the corresponding relation is established with the electric quantity and the shortened duration value, the positive correlation can be established with the shortened duration value, the larger the electric quantity is, the larger the shortened duration value is, then in the corresponding relation, the shortened duration corresponding to the current electric quantity is determined, and further the corresponding shortened duration is shortened with the duration of the sleep determined last time, and the duration of the target sleep is obtained. The sleep duration determined last time can be the target sleep duration determined by the method after the monitoring device shoots the monitoring image last time. It can be understood that, if the monitoring result in the monitoring record table of the monitoring device is limited, for example, the first or first 10 times of monitoring of the monitoring device, or the first 24-hour monitoring, the sleep duration corresponding to the limited number of monitoring may be set as the preset sleep duration, until a certain number of monitoring results are accumulated, the target sleep duration is determined by using the method.
In this embodiment, by setting the preset threshold of the target number, when the target number is greater than the preset threshold, it is indicated that the frequency and probability of the potential hazards appearing in the near term on the power transmission line are higher, and therefore, on the premise of considering the current electric quantity, the sleeping time is shortened according to the preset strategy, that is, the monitoring and shooting frequency is increased, and the situation that the potential safety hazards are not monitored and shot in time or the monitoring and shooting omission is avoided. And when the target number is less than or equal to the preset threshold, the frequency and the probability of the potential hazards appearing in the near term of the power transmission line are low, and the dormancy duration is prolonged so as to reduce the power consumption of the monitoring equipment. Therefore, the monitoring equipment can be self-adaptive based on the number of the identified hidden dangers and the current electric quantity, and the monitoring frequency is set more reasonably so as to take low power consumption and monitoring timeliness into consideration.
In an embodiment, the process of determining the target sleep duration when the target number is greater than the first preset threshold in step 104 specifically includes:
determining the sleep duration determined last time as a target sleep duration under the condition that the current electric quantity of the monitoring equipment is smaller than a first preset electric quantity; under the condition that the current electric quantity is greater than or equal to a first preset electric quantity, determining a target shortening time length corresponding to the current electric quantity according to the corresponding relation between the electric quantity and the shortening time length; and determining the target dormancy duration according to the target shortened duration and the dormancy duration determined last time.
In implementation, the monitoring device may further determine whether the current electric quantity of the monitoring device is less than a first preset electric quantity when the target number is greater than a first preset threshold. The first predetermined amount of power is a value of a preselected setting, which may be, for example, 10%, 20%, 30%, 50%, etc. If the current electric quantity is less than the first preset electric quantity, the monitoring equipment can determine the sleep duration determined last time as the target sleep timeLength; if the current electric quantity is larger than or equal to the first preset electric quantity, the monitoring equipment can determine the target shortening time corresponding to the current electric quantity according to the corresponding relation between the electric quantity and the shortening time, and then the monitoring equipment can determine the target dormancy time according to the target shortening time and the dormancy time determined last time. The corresponding relation between the electric quantity and the shortened time is a pre-established corresponding relation, the electric quantity and the shortened time can be in positive correlation, and the longer the electric quantity is, the longer the shortened time is. The preset sleep duration may be set according to experience, for example, 30 minutes, 1 hour, and the like, and the preset sleep duration may be used as the sleep duration executed when the monitoring device performs monitoring for the first time. The shortened duration may be based on a preset sleep duration (which may be denoted as T)0) It is determined, for example, to shorten by 10% or 20% of the preset sleep duration. In a specific example, the first preset electric quantity may be set to be 20%, and the correspondence between the electric quantity and the shortened time period may be as shown in table 1. If the current electric quantity of the monitoring device is 30%, it can be determined in table 1 that the shortened duration corresponding to 30% of the current electric quantity is 10% of the preset sleep duration, and if the preset sleep duration is 30 minutes, the target shortened duration is 3 minutes. Then, the monitoring device can subtract the target shortened time length from the sleep time length determined last time, and the target sleep time length can be obtained.
TABLE 1
In this embodiment, when the number of targets is greater than the first preset threshold, it is further determined whether the current electric quantity of the monitoring device is less than the first preset electric quantity, if the current electric quantity is less than the first preset electric quantity, it is determined that the monitoring device is in a state with a lower electric quantity, the sleep duration determined last time is taken as the target sleep duration of the current sleep, thereby avoiding that the electric quantity cannot be supported to replace the battery after further shortening the sleep duration, and omitting more monitoring operations, if the current electric quantity is greater than or equal to the first preset electric quantity, it is determined that the electric quantity of the monitoring device is in a healthier state, and a specific shortened duration can be further determined according to the electric quantity value or the electric quantity range, so as to improve the monitoring frequency and ensure the timeliness of monitoring.
In another embodiment, the process of determining the target sleep duration when the target number is greater than the first preset threshold in step 104 specifically includes:
and under the condition that the target number is greater than a first preset threshold and less than or equal to a second preset threshold, determining the target dormancy time length according to the current electric quantity of the monitoring equipment and a preset time length shortening strategy.
Correspondingly, the method further comprises the following steps:
and starting the continuous monitoring function under the condition that the target quantity is greater than a second preset threshold and the current electric quantity is greater than or equal to a second preset electric quantity until the current electric quantity is less than the second preset electric quantity.
In implementation, when the number of targets is greater than a first preset threshold and less than or equal to a second preset threshold, the monitoring device may shorten the strategy according to the current electric quantity and a preset duration to determine the target sleep duration. The second preset threshold is a preset value larger than the first preset threshold, for example, the first preset threshold may be 0, and the second preset threshold may be 3. If the target number is greater than the first preset threshold and less than or equal to the second preset threshold, the monitoring device may determine the target sleep duration according to the current electric quantity and a preset duration shortening strategy. Optionally, when the target number is greater than the first preset threshold and less than or equal to the second preset threshold, a corresponding relationship between the number of the identified hidden dangers, the electric quantity, and the shortened duration may be established, as shown in an example in table 2, the shortened duration may be according to a preset sleep duration T0And calculating to obtain different quantity intervals for identifying the hidden danger, wherein the different quantity intervals can correspond to different time length shortening strategies, and for the same quantity interval, the larger the electric quantity is, the longer the corresponding time length is. Then, in the correspondence, a shortened time period corresponding to the current electric quantity and the target quantity is determined.
TABLE 2
If the target number is greater than a second preset threshold (3 in this example), the monitoring device may further start the continuous monitoring function when the current electric quantity is greater than or equal to the second preset electric quantity, until the current electric quantity is less than the second preset electric quantity. The second preset amount of power may be a preset value, and may be a larger one, such as 50%, 60%, etc. The continuous monitoring function can be continuously shooting the monitoring image or shooting the monitoring video for identification, and simultaneously sending the monitoring image or the monitoring video and the monitoring result to a server of a monitoring background and sending out early warning information. If the target number is greater than the second preset threshold and the current electric quantity is less than the second preset electric quantity, the monitoring equipment can shorten the strategy according to the current electric quantity and the preset duration to determine the target dormancy duration.
In this embodiment, a second preset threshold value of the target quantity is further set, and if the target quantity is greater than the second preset threshold value, it indicates that the frequency of the potential safety hazard occurring in the near term of the power transmission line is high, so that if the current electric quantity is greater than or equal to the second preset threshold value, that is, the electric quantity is in a relatively healthy state, the monitoring and photographing device can be set to continuously monitor and photograph, so that the operation and maintenance personnel can strengthen monitoring and timely processing, and the timeliness of monitoring and photographing is guaranteed.
This embodiment shows only one implementation of the present invention. It is understood that, in other implementation manners, preset thresholds of a plurality of target numbers may be set according to a monitoring condition of the monitoring device, and the preset thresholds of the plurality of target numbers may form a plurality of threshold intervals. For example, 3 preset thresholds, 1, 3, and 5, may be set, and the three thresholds may constitute 4 threshold intervals, which are less than or equal to 1, greater than 1 and less than or equal to 3, greater than 3 and less than or equal to 5, and greater than 5. Similarly, the preset electric quantity can also be set into a plurality of preset electric quantities, so that a plurality of electric quantity intervals are formed. Different threshold intervals and different electric quantity intervals can respectively correspond to different sleep duration shortening strategies, for example, the corresponding relation between the threshold interval, the electric quantity interval and the shortening duration can be established.
In an embodiment, the process of determining the target sleep duration when the target number is less than or equal to the first preset threshold in step 104 specifically includes:
prolonging the sleep time determined last time according to a first preset time; and under the condition that the prolonged dormancy time is greater than the preset dormancy time threshold, determining the preset dormancy time threshold as the target dormancy time.
In implementation, the monitoring device may extend the sleep duration determined last time according to a first preset duration when the target number is less than or equal to a first preset threshold, and determine the preset sleep duration threshold as the target sleep duration if the extended sleep duration is greater than the preset sleep duration threshold. The preset dormancy duration threshold is a preset upper limit value of the dormancy duration.
In this embodiment, by setting the upper limit value of the sleeping time (that is, presetting the sleeping time threshold), if the sleeping time is prolonged and the value is greater than the preset sleeping time threshold, the preset sleeping time threshold is used as the target sleeping time, so as to avoid that the monitoring equipment infinitely prolongs the sleeping time under the condition that the frequency of occurrence of the potential safety hazard is low, and the monitoring is not timely or omitted, thereby considering both low power consumption and monitoring timeliness.
In an example, a lower limit of the sleep duration may also be set, and if the shortened sleep duration is less than the lower limit of the sleep duration, the lower limit of the sleep duration is taken as the target sleep duration.
In a specific example, as shown in fig. 2, a monitoring control method is provided, in this example, the set target number has three preset thresholds, which are 0, 1 and 3 respectively, and the threshold interval is 0, 1, greater than 1, less than or equal to 3 and greater than 3.
The method comprises the following steps:
step 201, shooting a monitoring image through monitoring equipment.
Step 202, carrying out hidden danger identification on the monitored image to obtain a monitored result, and adding a table entry corresponding to the monitored result in a monitored record table; the monitoring result comprises that the hidden danger is identified and the hidden danger is not identified.
Step 203, according to the shooting time of the monitored image, obtaining the monitoring result in a preset time period before the shooting time in the monitoring record table to obtain a target monitoring result, and determining the target monitoring result as the number of the target monitoring results with the hidden danger identified to obtain the target number.
And step 204, judging the threshold interval where the target number is located.
In the case where the target number is equal to 0, step 205 is performed;
in the case where the target number is equal to 1, step 209 or step 210 is performed;
if the target number is greater than 1 and less than or equal to 3, executing step 211 or step 212;
in case the target number is larger than 3, step 213, step 214 or step 215 is performed.
Step 205, the sleep duration determined last time is extended according to a first preset duration, and step 206 is executed.
In step 206, it is determined whether the extended sleep duration is greater than a preset sleep duration threshold.
If the time duration is greater than the preset sleep time duration threshold, step 207 is executed, and if the time duration is less than or equal to the sleep time duration threshold, step 208 is executed.
Step 207, determining the preset sleep duration threshold as the target sleep duration, and executing step 216.
In step 208, the extended sleep duration is determined as the target sleep duration, and step 216 is executed.
And 209, determining the sleep duration determined last time as the target sleep duration under the condition that the current electric quantity is less than 50%.
Step 210, when the current electric quantity is greater than or equal to 50%, determining a target shortened time corresponding to the current electric quantity according to the first corresponding relation between the electric quantity and the shortened time, and determining a target sleep time according to the target shortened time and the sleep time determined last time.
The first correspondence is shown in table 3.
TABLE 3
And step 211, determining the sleep duration determined last time as the target sleep duration when the current electric quantity is less than 20%.
And 212, under the condition that the current electric quantity is greater than or equal to 20%, determining the target shortened time corresponding to the current electric quantity according to the second corresponding relation between the electric quantity and the shortened time, and determining the target sleep time according to the target shortened time and the sleep time determined last time.
The second correspondence is shown in table 4.
TABLE 4
And step 213, determining the sleep duration determined last time as the target sleep duration under the condition that the current electric quantity is less than 20%.
And 214, under the condition that the current electric quantity is greater than or equal to 20% and less than 50%, determining the target shortened time length corresponding to the current electric quantity according to the third corresponding relation between the electric quantity and the shortened time length, and determining the target sleep time length according to the target shortened time length and the sleep time length determined last time.
The third correspondence is shown in table 5.
TABLE 5
Step 215, when the current electric quantity is greater than or equal to 50%, the continuous monitoring function is started until the current electric quantity is less than 50%.
Step 216, switching the state of the monitoring device to a sleep state, and re-executing step 201 when the duration of the sleep state reaches the target sleep duration.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a monitoring control device for realizing the monitoring control method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the monitoring control device provided below can be referred to the limitations of the monitoring control method in the above, and details are not described here.
In one embodiment, as shown in fig. 3, there is provided a monitoring control apparatus 300 including: a first obtaining module 301, an identifying module 302, a second obtaining module 303, a determining module 304 and a switching module 305, wherein:
the first acquiring module 301 is configured to shoot a monitoring image through a monitoring device.
The identification module 302 is configured to identify hidden dangers of the monitored image to obtain a monitored result, and add a table entry corresponding to the monitored result in the monitored record table; the monitoring result comprises that the hidden danger is identified and the hidden danger is not identified.
The second obtaining module 303 is configured to obtain, in the monitoring record table, the number of monitoring results with the monitoring result of identifying the hidden danger, to obtain the target number.
The determining module 304 is configured to determine a target sleep duration according to the target number and the current electric quantity of the monitoring device.
A switching module 305, configured to switch the state of the monitoring device to a sleep state, and re-execute the step of shooting the monitoring image through the monitoring device when the duration of the sleep state reaches the target sleep duration.
In an embodiment, the second obtaining module 303 is specifically configured to:
according to the shooting time of the monitored image, acquiring a monitoring result in a preset time period before the shooting time in a monitoring record table to obtain a target monitoring result; and determining the number of the target monitoring results with the hidden danger identified as the target monitoring results to obtain the number of the targets.
In one embodiment, the determining module 304 is specifically configured to:
under the condition that the target number is smaller than or equal to a first preset threshold value, prolonging the sleep time determined last time according to the first preset time to obtain target sleep time; and under the condition that the number of the targets is larger than a first preset threshold, determining the target dormancy time length according to the current electric quantity of the monitoring equipment and a preset time length shortening strategy.
In one embodiment, the determining module 304 is specifically configured to:
determining the sleep duration determined last time as a target sleep duration under the condition that the current electric quantity of the monitoring equipment is smaller than a first preset electric quantity; under the condition that the current electric quantity is greater than or equal to a first preset electric quantity, determining a target shortening time length corresponding to the current electric quantity according to the corresponding relation between the electric quantity and the shortening time length; and determining the target dormancy duration according to the target shortened duration and the dormancy duration determined last time.
In one embodiment, the determining module 304 is specifically configured to:
and under the condition that the target number is greater than a first preset threshold and less than or equal to a second preset threshold, determining the target dormancy time length according to the current electric quantity of the monitoring equipment and a preset time length shortening strategy.
Correspondingly, the device further comprises a starting module for:
and starting the continuous monitoring function under the condition that the target quantity is greater than a second preset threshold and the current electric quantity is greater than or equal to a second preset electric quantity until the current electric quantity is less than the second preset electric quantity.
In one embodiment, the determining module 304 is specifically configured to:
prolonging the sleep time determined last time according to a first preset time; and under the condition that the prolonged dormancy time is greater than the preset dormancy time threshold, determining the preset dormancy time threshold as the target dormancy time.
The modules in the monitoring and controlling device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the electronic device, or can be stored in a memory in the electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an electronic device is provided, which may be a monitoring device, and the internal structure thereof may be as shown in fig. 4. The electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the electronic device is used for storing data required for executing the monitoring control method. The network interface of the electronic equipment is used for being connected and communicated with a server and the like of a monitoring background through a network. The computer program is executed by a processor to implement a monitoring control method.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.