On-line and off-line judgment method and device for distinguishing channels of visual monitoring device
By distinguishing the online status of the channel of the visual monitoring device, combined with the photosensitive sensor and the photo interval, the fine monitoring and classification of multi-channel status is realized, which solves the problem of being unable to accurately judge the online status of the camera channel in the existing technology and improves the accuracy of fault determination. and equipment maintenance efficiency.
Patent Information
- Application Number
- CN202410556764.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology cannot effectively distinguish and determine the status of multiple channels of the visual monitoring device, resulting in the inability to accurately determine whether the camera channel is online, and the real-time determination is prone to errors, which increases the maintenance workload of the monitoring equipment.
By obtaining the equipment model of the visual monitoring device, it is determined whether it is equipped with a photosensitive sensor. Based on the photo interval, the last photo time and the current time, the online status of each channel is determined, and the offline status is classified, including long-term offline, short-term offline, and fluctuating offline. and occasionally offline.
It realizes fine status monitoring of multi-channel visual monitoring devices, improves the accuracy of fault determination, can distinguish offline states caused by equipment damage or signal fluctuations, and reduces unnecessary maintenance work.
Smart Images

Figure CN118540462A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of online monitoring of power transmission lines, and in particular to an online and offline determination method and device for distinguishing channels by a visual monitoring device. Background Art
[0002] With the continuous evolution of visual online monitoring technology for transmission lines, the original single channel photography function has been gradually upgraded to a diversified multi-channel, multi-directional synchronous photography mechanism, which has greatly improved the monitoring coverage. At the same time, night vision cameras are added to ensure that image information can be effectively captured even in low light or night conditions. Some devices are equipped with advanced photosensitive components to achieve smooth switching between ordinary lighting cameras and night vision cameras according to changes in ambient light. In this development context, it is no longer possible to meet the requirements by simply evaluating the visual monitoring device as a whole, and it is particularly important to carry out refined management of the channel status of the visual monitoring device. This includes accurately judging whether each channel is online normally to prevent problems that are not detected in time due to the failure of a certain channel camera.
[0003] At present, the prior art only judges whether the device is offline based on whether the entire device is normal, and does not distinguish the camera channels. In this way, if a camera channel of the visual monitoring device is damaged, it is impossible to locate and judge the problem well. In addition, the prior art only judges the real-time offline status of the current device, that is, online and offline, without combining historical data for analysis, which easily leads to errors in the judgment results. Chinese patent CN110858813A discloses a network camera security detection method and device, which analyzes and judges the security status of the camera, and determines whether the camera is normal by sending a message to the device in the background. Chinese CN115550638A discloses a camera status detection system and method, which determines the offline status of the video device by interacting with the device through a protocol. Chinese patent CN117876923A discloses a camera abnormal state detection method, which analyzes the video monitoring device and determines whether the device is normal by analyzing the video stream. Since the above method is for ordinary surveillance cameras, there are essential differences between ordinary surveillance cameras and visual monitoring devices, and the above method detects abnormal state of cameras based on real-time acquired data, and cannot distinguish multiple camera channels, which does not meet the characteristics of visual monitoring devices used in the field of online monitoring of power transmission lines. In addition, the above method uses real-time acquired data to perform real-time abnormality detection on the camera, which belongs to real-time judgment. The judgment result is prone to deviation, which increases the workload of monitoring equipment maintenance.
[0004] Therefore, for the visual monitoring device, it is necessary to implement an online and offline determination method and device for distinguishing channels, so as to improve the accuracy of fault determination of the visual monitoring device. Summary of the invention
[0005] In order to solve the deficiencies in the prior art, the object of the present invention is to provide an offline determination method and device for distinguishing channels by a visual monitoring device.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] In a first aspect of the present invention, an online and offline determination method for distinguishing channels by a visual monitoring device is disclosed.
[0008] Specifically, the method comprises the following steps:
[0009] S1. Obtain the device model of the visual monitoring device, and determine whether the device is equipped with a photosensor according to the device model.
[0010] S2. If equipped with a photosensitive sensor, obtain the photographing interval P1, the last photographing time T1 and the current time D1 of the visual monitoring device, and determine the online and offline status of the device according to the relationship between P1, T1 and D1.
[0011] S3. If no photosensor is provided, the last photo taking time T2 and the current time D2 of the visual monitoring device are obtained, and according to the current time D2, the camera channel that needs to be operated currently and its photo taking interval P2 and the photo taking start time S are obtained, and according to the relationship among T2, D2, P2 and S, the online and offline status of the camera channel that needs to be operated currently is determined.
[0012] S4. If the device or the camera channel that currently needs to work is in an offline state, the offline type is determined based on the time interval between the current time and the last online time and the number of offline times within the set time interval.
[0013] As a further improvement of the above technical solution, determining the offline state of the device according to the relationship among P1, T1 and D1 includes:
[0014] If the difference between the current time D1 and the last photo taking time T1 is greater than the set multiple of the photo taking interval P1, it is determined that the visual monitoring device did not take photos in the last round of photo taking interval and the device is offline.
[0015] If the difference between the current time D1 and the last photographing time T1 is less than the set multiple of the photographing interval P1, it is determined that the visualization monitoring device uploaded images normally in the last round of image uploading interval and the device is online.
[0016] As a further improvement of the above technical solution, the method of determining the offline state of the camera channel currently to be operated according to the relationship among T2, D2, P2 and S includes:
[0017] S31. Determine the relationship between D2, T2 and P2. If the difference between the current time D2 and the last photo taking time T2 is less than the set multiple of the photo taking interval P2, it is determined that the camera channel that currently needs to work was normal in the last round of photo taking interval, and the camera channel that currently needs to work is online; if the difference between the current time D2 and the last photo taking time T2 is greater than the set multiple of the photo taking interval P2, execute step S32.
[0018] S32. Determine the relationship between D2, S and P2. If the difference between the current time D2 and the start time S of taking pictures is less than the set multiple of the picture interval P2, it is determined that the camera has not reached the set number of picture intervals after switching channels, and the camera channel that currently needs to work is online; if the difference between the current time D2 and the start time S of taking pictures is greater than the set multiple of the picture interval P2, it is determined that the camera channel that currently needs to work is offline.
[0019] As a further improvement of the above technical solution, if the device or the camera channel currently to be operated is in an offline state, the offline type is determined according to the time interval between the current time and the last online time and the number of offline times within the set time interval, including:
[0020] S41, obtaining the last online time T3 of the device or the camera channel that currently needs to work.
[0021] S42: Determine the offline status type according to the current time and the last online time T3; the offline status type includes long-term offline and short-term offline.
[0022] S43: If it is short-term offline, obtain the number of offline times within a set time interval threshold, and determine the type of short-term offline state according to the number of offline times; the type of short-term offline state includes fluctuating offline and occasional offline.
[0023] As a further improvement of the above technical solution, the offline state type is determined according to the current time and the last online time T3, including:
[0024] If the time interval between the current time and the last online time T3 is not less than the set time interval threshold, it is determined to be long-term offline;
[0025] If the time interval between the current time and the last online time T3 is less than the set time interval threshold, it is determined to be short-term offline.
[0026] As a further improvement of the above technical solution, if it is a short-term offline state, the number of offline times within a set time interval threshold is obtained, and the type of the short-term offline state is determined according to the number of offline times, including:
[0027] Get the number of offline times C within the set time interval threshold, and further judge the offline status based on the number of offline times C. Within the set time interval threshold, if the number of offline times C is greater than the set number threshold, it is judged as fluctuating offline; if the number of offline times C is not greater than the set number threshold, it is judged as occasional offline.
[0028] In a second aspect of the present invention, a device is disclosed for implementing the above-mentioned method for distinguishing channels by the visualization monitoring device. An executable computer program is stored on the device, and when the computer program is executed, the following corresponding tasks are completed: performing an offline determination on the visualization monitoring device to distinguish channels.
[0029] Compared with the prior art, the advantages of the present invention are:
[0030] (1) In view of the deficiencies in the prior art, the present invention proposes a precise channel online and offline status discrimination method for a multi-channel visual monitoring device, the core goal of which is to ensure accurate identification of the actual working status of each channel. Through this innovative method, not only can comprehensive status monitoring of a diversified, multi-channel visual monitoring system be performed, but the definition of the offline status is further refined, and for the first time, the offline status classification of occasional offline, fluctuating offline and long-term offline is incorporated. This method can not only identify whether each channel of the monitoring device is in a normal online state, but also can keenly distinguish between short-term and unstable offline caused by signals and other reasons, and continuous and lasting offline caused by equipment damage.
[0031] (2) The visual monitoring equipment targeted by the present invention and ordinary monitoring, as well as the application scenarios of the present invention and the application scenarios of the existing camera anomaly detection methods, are essentially different. The present invention uses periodically uploaded image data to perform offline judgments, and is suitable for fault detection of visual monitoring devices used for online monitoring of power transmission lines. According to the characteristics of the visual monitoring device used for online monitoring of power transmission lines, the present invention analyzes the historical data collected by the visual monitoring device, and judges and classifies the online, occasional offline, fluctuating offline and long-term offline states of each channel of the visual monitoring device equipped with a photosensitive sensor or the visual monitoring device not equipped with a photosensitive sensor. This can better distinguish and judge the equipment that needs to be replaced and repaired and the short-term fluctuating offline that does not require maintenance due to factors such as signal power, so as to more carefully judge the overall operating status of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1It is a method flow chart of an offline determination method for distinguishing channels by a visual monitoring device in the present invention;
[0033] Figure 2 The present invention is a schematic diagram of the application of the offline determination method and device for distinguishing channels by the visual monitoring device. Figure 1 ;
[0034] Figure 3 The present invention is a schematic diagram of the application of the offline determination method and device for distinguishing channels by the visual monitoring device. Figure 2 ;
[0035] Figure 4 The present invention is a schematic diagram of the application of the offline determination method and device for distinguishing channels by the visual monitoring device. Figure 3 ;
[0036] Figure 5 The present invention is a schematic diagram of the application of the offline determination method and device for distinguishing channels by the visual monitoring device. Figure 4 . DETAILED DESCRIPTION
[0037] The present invention will be further described below in conjunction with the accompanying drawings:
[0038] At present, the existing technology for determining the online and offline status of visual image monitoring devices only analyzes the entire device without distinguishing between each camera channel, which results in failure to detect damage to a single camera channel in a timely manner. In addition, only the current online and offline status of the device is analyzed, which results in failure to distinguish between damaged devices that need maintenance and devices that are offline and can recover on their own, which increases maintenance costs.
[0039] The visual monitoring device mentioned in the present invention is applied to the power transmission line monitoring industry. Since the visual monitoring device is powered by solar energy and uses a 4G traffic card, it is limited by power and traffic factors. The visual monitoring device does not support long connections and cannot obtain the operating status from the background in real time. The image data uploaded by the visual monitoring device is the only means to judge the device status of the visual monitoring device. The present invention can not only make judgments based on the time interval for uploading pictures, but also adapt to the offline judgment method corresponding to the equipment equipped with photosensitive sensors and multiple channels, and introduces two types of fluctuating offline and long-term offline for offline equipment, which provides a richer data basis for whether offline equipment or offline channels need maintenance, thereby improving the accuracy of the judgment results.
[0040] like Figure 1A visual monitoring device is shown to distinguish between channels online and offline judgment methods, which mainly include multi-channel online and offline judgment, fluctuating offline, and long-term offline judgment. Multi-channel offline judgment includes ordinary equipment and photosensitive switching equipment. Ordinary equipment needs to be judged according to the start and end time of shooting set by different channels, while photosensitive equipment only needs to judge whether the equipment is shooting normally throughout the day. Fluctuating offline and long-term offline are distinguished and judged by the offline duration and number of offline times.
[0041] Based on the original offline statistical function of the entire device, the present invention further refines and adds statistical judgments on the offline status of each channel, which can more accurately grasp and count the actual operating status of each channel of the device. The present invention has the ability to perform differentiated statistics based on various types of visual monitoring devices and their accessory models and functional characteristics, and realizes more refined and accurate status statistics customization services for different devices. For the offline device scenario, the present invention designs subdivided status categories such as long-term offline, short-term offline, intermittent fluctuation offline, and occasional offline, which can more accurately capture and reflect the statistical results of the actual operating status of the device.
[0042] Specifically, the visual monitoring device distinguishes the online and offline determination method of the channel, which specifically includes the following steps:
[0043] S1. Obtain the device model of the visual monitoring device, and determine whether the device is equipped with a photosensor according to the device model.
[0044] There are usually two types of visual monitoring devices used for power transmission lines, one is a monitoring device equipped with a photosensitive sensor, and the other is a monitoring device without a photosensitive sensor. The visual monitoring device includes multiple cameras, and one camera is a channel. Generally, the camera channels of the above two types of visual monitoring devices are set to two.
[0045] Conventional visual monitoring devices do not have photosensitive sensors and can be connected to other camera channels. Conventional visual monitoring devices require manual setting of the switching time of different channels, which requires frequent manual adjustments when the dark time is different in summer and winter. Devices that do not have photosensitive sensors require manual setting of the start and end times of different camera channels, so it is necessary to distinguish channels to avoid some channels not being displayed and not being discovered.
[0046] The visual monitoring device equipped with a photosensitive sensor includes two cameras, one is a normal light camera and the other is a night vision camera. By setting a photosensitive sensor, the visual monitoring device can automatically switch channels according to the light. The photosensitive device can automatically switch between the normal light channel and the night vision channel according to the bright light of the on-site operation. Therefore, there is no need to set the start and end time of different camera channels. Simply put, the device can be regarded as a whole. As long as the device is displayed, the device is normal. If the operating environment is also well lit at night, the ordinary channel may work all day, that is, even if no picture is displayed on the night vision channel, the normal light channel will be displayed and it is also online.
[0047] S2. If there is a photosensor, obtain the photographing interval P1, the last photographing time T1 and the current time D1 of the visual monitoring device, and use formula (1) to determine the relationship between P1, T1 and D1.
[0048] If the difference between the current time D1 and the last photo-taking time T1 is greater than twice the photo-taking interval P1, it means that the visualization monitoring device did not take photos during the last round of device photo-taking interval, and the device is offline. If the difference between the current time D1 and the last photo-taking time T1 is less than or equal to twice the photo-taking interval P1, it means that the visualization monitoring device took photos normally during the last round of device photo-taking interval, and the device is online.
[0049]
[0050] S3. If there is no photosensor, obtain the last photo taking time T2 and the current time D2 of the visual monitoring device, and obtain the camera channel that currently needs to work, the photo taking interval P2 of the camera channel that currently needs to work, the photo taking start time S of the camera channel that currently needs to work, and the photo taking end time E of the camera channel that currently needs to work according to the current time D2, and determine the relationship between them.
[0051] If the difference between the current time D2 and the last photo time T2 is less than twice the photo interval P2, it means that the last round of visual monitoring device images are normal and the visual monitoring device is online; if the difference between the current time D2 and the last photo time T2 is greater than twice the photo interval P2, further judgment is required and step S4 is executed. In this embodiment, the multiple is set to twice.
[0052] Since the end time of one channel is the start time of another channel by default, when judging the intersection of two channels, you only need to judge based on the start time of the next camera channel. The end time of one channel is the start time of another channel. In other words, the E of the previous camera channel is equal to the S of the next camera channel. Therefore, the online and offline status of the currently associated camera channel can be determined based on the relationship between T2, D2, P2 and S.
[0053] S4. If the device or the camera channel that needs to be operated is in offline state, the offline type is determined according to the time interval between the current time and the last online time and the number of offline times in the set time interval. In order to prevent the image from being misjudged as offline due to delayed uploading, it is considered that more than two images are not uploaded and the device is considered offline.
[0054] The following takes a visual monitoring device without a photosensor as an example to describe step S4 in detail.
[0055] First, use formula (2) to determine the relationship between the current time D2 and the channel photo start time S. If the difference between the current time D2 and the photo start time S is less than or equal to twice the photo interval P2, it means that the camera has not reached the interval between two rounds of photo shooting after switching channels, so it can be assumed to be online. If the difference between the current time D2 and the photo start time S is greater than twice the photo interval P2, it is determined that the camera channel that needs to be worked on is offline.
[0056]
[0057] Secondly, when it is determined that the camera channel that is currently required to work is offline, it is necessary to further determine the offline status based on the current time D2 and the last online time T3. Offline status exceeding 12 hours is considered long-term offline, and offline status less than 12 hours is considered short-term offline, as shown in formula (3).
[0058]
[0059] T3 is a time point. In this embodiment, the judgment logic is a timed judgment, which is judged every 5 minutes. T3 is the time point of the last online judgment found by querying historical data. In this embodiment, the time interval threshold is set to 12 hours.
[0060] Thirdly, for short-term offline devices, we need to obtain the number of offline times C within 12 hours and further judge the offline status based on C. If the number of offline times within 12 hours is greater than 3 times, it is considered as fluctuating offline, and if the number of offline times within 12 hours is less than or equal to 3 times, it is considered as occasional offline, as shown in formula (4).
[0061]
[0062] The judgment logic of the present invention is executed regularly. It only needs to judge the currently working channel and obtain the current status. In actual application, the judgment is made once every 5 minutes, and the judgment result is stored in the historical record. By analyzing the historical records of 12 hours, the number of times the last judgment was online and the next judgment was offline is counted. For example: in the judgment result "in in in away in in in away in in in", the number of offline times is 3. That is, in this embodiment, the number of offline times C within the time interval threshold is set to 3 times.
[0063] Example 1
[0064] A visual monitoring device equipped with a photosensitive sensor, which can automatically switch camera channels, and the process of online and offline judgment of the device is as follows:
[0065] a: Get the device model and determine whether the visual monitoring device is equipped with a photosensor based on the model.
[0066] b: Get the device's photo interval P1, last photo time T1, and current time D1, and determine the relationship between them. If the difference between the current time and the last photo time is greater than twice the photo interval, it means that no photos were taken during the last photo interval, and the device is offline; if the difference between the current time and the last photo time is less than twice the photo interval, the photo is normal and the device is online.
[0067] c: When the channel is determined to be offline, it is necessary to further determine the offline status based on the current time D1 and the last online time T3. Offline time exceeding 12 hours is considered long-term offline time, and offline time less than 12 hours is considered short-term offline time.
[0068] d: For short-term offline devices, it is necessary to obtain the number of offline times C within 12 hours and further determine the offline status based on C. If the number of offline times within 12 hours is greater than 3 times, it is considered fluctuating offline, and if the number of offline times within 12 hours is less than or equal to 3 times, it is considered occasional offline.
[0069] Take a device equipped with a photosensor as an example. The photo interval P1 is 15 minutes, the current time D1 for statistics is 17:00:00, and the last photo taking time T1 is 16:32:00.
[0070] Because D1-T1=28<2*P1, it means that the statistical device is online in this round. The statistical cycle is 5 minutes, so the current time D1 of the next round of statistics is 17:05:00. If the photo is still not uploaded, D1-T1=33>2*P1, and the statistical device is offline in this round.
[0071] Generate records for the data counted every 5 minutes, and obtain the last online record. If the last online time T3 is 05:00:00. Since D1-T3>12h, the device is determined to be offline for a long time and requires after-sales maintenance. If the last online time T3 is 15:00:00, then D1-T3<12h, and it is necessary to further count the number of offline times within 12 hours. If the number of offline times C is 5, it is a fluctuating offline, and currently no maintenance is required. It is necessary to continuously monitor whether it will be further extended to long-term offline; if the number of offline times C is 1, it means that it is an occasional offline and no attention is needed.
[0072] Example 2
[0073] A visual monitoring device without a photosensitive sensor installed needs to switch channels according to the configured channel photography start time and photography end time. The judgment process of the device in the offline state is as follows:
[0074] a: Get the device model and determine whether the visual monitoring device is equipped with a photosensor based on the model.
[0075] b: Get the last photo time T2, the current time D2, and according to the current time, get the camera channel, photo interval P2, photo start time S and photo end time E of the current photo, and judge the relationship between the parameters. If the difference between the current time and the last photo time is less than twice the photo interval, it is determined that the device is normal and the device is online; if the difference between the current time and the last photo time is greater than twice the photo interval, further judgment is required.
[0076] c: Determine the relationship between the current time D2 and the channel photo start time S. If the difference between the current time D2 and the photo start time S is less than twice the photo interval P2, it means that the camera has not reached the interval between two rounds of photos after switching channels, so the channel can be assumed to be online. If the difference between the current time D2 and the photo start time S is greater than twice the photo interval P2, the channel is determined to be offline.
[0077] d: When the channel is determined to be offline, it is necessary to further determine the offline status based on the current time D2 and the last online time T3. Offline time exceeding 12 hours is considered long-term offline time, and offline time less than 12 hours is considered short-term offline time.
[0078] e: For short-term offline devices, it is necessary to obtain the number of offline times C within 12 hours, and further judge the offline status of the device based on the number of offline times C. If the number of offline times within 12 hours is greater than 3 times, it is considered as fluctuating offline, and if the number of offline times within 12 hours is less than or equal to 3 times, it is considered as occasional offline.
[0079] For example, for a device without a photosensor, the photo interval P1 is 15 minutes. The photo taking start time of channel 1 is 06:00:00 and the photo taking end time is 18:00:00. The photo taking start time of channel 2 is 18:00:00 and the photo taking end time is 6:00:00.
[0080] If the current time D1 for statistics is 17:00:00, the current photo is taken at channel 1. The last photo time T1 is 16:32:00. Since D1-T1=28<2*P1, the device is online for this round of statistics. The statistical cycle is 5 minutes. When the current time D1 for the next round of statistics is 17:05:00, if the photo is still not uploaded, D1-T1=33>2*P1, and the device is offline for this round of statistics.
[0081] If the current time D1 for statistics is 18:14:00, and the last time to upload the picture is 17:35:00. Since D1-T1=39>2*P1, it is necessary to further determine the relationship between the current time D1 and the start time S of channel 2 photography; since D1-S=14<2*P2, it means that channel 1 missed a picture, and it switched to channel 2 before the second picture was uploaded. Therefore, channel 1 was finally determined to be online and not offline. After channel 2 switched, it was not yet the new round of picture upload cycle, so no pictures were taken, which is normal, so channel 2 is determined to be online.
[0082] Generate records for the data counted every 5 minutes, and obtain the last online record. If the last online time T3 is 05:00:00. Since D1-T3>12h, the device is judged to be offline for a long time and requires after-sales maintenance. If the last online time T3 is 15:00:00, then D1-T3<12h, and it is necessary to further count the number of offline times within 12h. If the number of offline times C is 5, it is judged to be fluctuating offline. No maintenance is currently required. Continuous monitoring is required to see if it will be further extended to long-term offline. If the number of offline times is 1, it means that it is an occasional offline and no attention is required.
[0083] Figure 2 to Figure 5 This is a schematic diagram of the offline determination method and device for distinguishing channels by the visual monitoring device of the present invention. The confidential data in the figure is blurred, which does not affect the expression of the content. Figure 2 It can be seen that the present invention can perform offline statistics on the visual online monitoring device and display the operating status of the equipment, such as online, fluctuating offline, occasional offline, and long-term offline, so as to provide data for customers to understand the operating status of the equipment more clearly and provide guidance for subsequent equipment maintenance plans. Figure 3 and Figure 4It can be seen that the visual monitoring device of the present invention can distinguish between the online and offline determination method and device of the channel, can perform historical online and offline statistics, can record the data of each statistical period, can query the historical operation status of the equipment and the online and offline fluctuation trajectory, so that the user can accurately grasp the operation status of the visual monitoring device and each channel. Figure 5 It can be seen that the visual monitoring device described in the present invention can frequently collect offline statistical data, and can display the number of times the equipment fluctuates offline and the current status, thereby providing data support for customers to continuously monitor fluctuating offline equipment.
[0084] To summarize, according to the characteristics of the visual monitoring device used in the field of online monitoring of power transmission lines, the present invention analyzes the historical data collected by the visual monitoring device, and can determine and classify the online, occasional offline, fluctuating offline and long-term offline states of each channel of the visual monitoring device equipped with a photosensitive sensor or a visual monitoring device not equipped with a photosensitive sensor, thereby better distinguishing and judging the equipment that needs to be replaced and repaired and the short-term fluctuating offline that does not require maintenance due to factors such as signal power, so as to more carefully judge the overall operating status of the device.
[0085] The above-described embodiments are merely descriptions of preferred implementations of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the scope of protection determined by the claims of the present invention.
Claims
1. A visual monitoring device for distinguishing channels on and off the line determination method, characterized in that: The method comprises the following steps: S1. Obtain the device model of the visual monitoring device, and determine whether the device is equipped with a photosensor according to the device model; S2. If equipped with a photosensitive sensor, obtain the photographing interval P1, the last photographing time T1 and the current time D1 of the visual monitoring device, and determine the online and offline status of the device according to the relationship between P1, T1 and D1; S3. If the photosensitive sensor is not equipped, the last photo taking time T2 and the current time D2 of the visual monitoring device are obtained, and according to the current time D2, the camera channel that needs to be currently operated and its photo taking interval P2 and the photo taking start time S are obtained, and according to the relationship among T2, D2, P2 and S, the online and offline status of the camera channel that needs to be currently operated is determined; S4. If the device or the camera channel that currently needs to work is in an offline state, the offline type is determined based on the time interval between the current time and the last online time and the number of offline times within the set time interval.
2. The method for distinguishing channels by a visual monitoring device according to claim 1, characterized in that: The determining the offline state of the device according to the relationship among P1, T1 and D1 includes: If the difference between the current time D1 and the last photo taking time T1 is greater than the set multiple of the photo taking interval P1, it is determined that the visual monitoring device did not take photos in the last round of photo taking interval and the device is offline; If the difference between the current time D1 and the last photographing time T1 is less than the set multiple of the photographing interval P1, it is determined that the visualization monitoring device uploaded images normally in the last round of image uploading interval and the device is online.
3. The online and offline determination method for distinguishing channels by a visual monitoring device according to claim 1, characterized in that: Determining the offline state of the camera channel currently to be operated according to the relationship among T2, D2, P2 and S includes: S31, determine the relationship between D2, T2 and P2. If the difference between the current time D2 and the last photo taking time T2 is less than the set multiple of the photo taking interval P2, it is determined that the camera channel currently to be operated has been normally uploaded in the last round of photo taking interval, and the camera channel currently to be operated is online; if the difference between the current time D2 and the last photo taking time T2 is greater than the set multiple of the photo taking interval P2, execute step S32; S32. Determine the relationship between D2, S and P2. If the difference between the current time D2 and the start time S of taking pictures is less than the set multiple of the picture interval P2, it is determined that the camera has not reached the set number of picture intervals after switching channels, and the camera channel that currently needs to work is online; if the difference between the current time D2 and the start time S of taking pictures is greater than the set multiple of the picture interval P2, it is determined that the camera channel that currently needs to work is offline.
4. The online and offline determination method for distinguishing channels by a visual monitoring device according to claim 1, characterized in that: If the device or the camera channel that is currently to be operated is in an offline state, the offline type is determined according to the time interval between the current time and the last online time and the number of offline times within the set time interval, including: S41, obtaining the last online time T3 of the device or the camera channel currently required to work; S42, determining the offline state type according to the current time and the last online time T3; the offline state type includes long-term offline and short-term offline; S43: If it is short-term offline, obtain the number of offline times within a set time interval threshold, and determine the type of short-term offline state according to the number of offline times; the type of short-term offline state includes fluctuating offline and occasional offline.
5. The online and offline determination method for distinguishing channels by a visual monitoring device according to claim 4, characterized in that: Determining the offline state type according to the current time and the last online time T3 includes: If the time interval between the current time and the last online time T3 is not less than the set time interval threshold, it is determined to be long-term offline; If the time interval between the current time and the last online time T3 is less than the set time interval threshold, it is determined to be short-term offline.
6. The online and offline determination method for distinguishing channels by a visual monitoring device according to claim 5, characterized in that: If it is a short-term offline state, the number of offline times within a set time interval threshold is obtained, and the type of the short-term offline state is determined according to the number of offline times, including: Get the number of offline times C within the set time interval threshold, and further judge the offline status based on the number of offline times C. Within the set time interval threshold, if the number of offline times C is greater than the set number threshold, it is judged as fluctuating offline; if the number of offline times C is not greater than the set number threshold, it is judged as occasional offline.
7. A device for implementing the method for distinguishing channels on a visual monitoring device as described in any one of claims 1 to 6, wherein an executable computer program is stored on the device, and when the computer program is executed, the following is accomplished: performing an offline determination on the visual monitoring device to distinguish channels.
Citation Information
Patent Citations
Network camera safety detection method and device
CN110858813A
Camera state detection system and method
CN115550638A
Camera abnormal state detection method
CN117876923A
