Electronic fence detection method and device, electronic equipment and storage medium

By designing an electronic fence detection method that uses detection mechanisms and cameras, the problem of cumbersome detection of electronic fences in substations and safety hazards is solved, and an efficient and safe detection process is achieved.

CN119599936APending Publication Date: 2025-03-11XISHUANGBANNA POWER SUPPLY BUREAU OF YUNNAN POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411418125.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The electronic fence detection process of the substation is cumbersome, time-consuming and labor-intensive, and has safety hazards, so the detection efficiency is not high.

Method used

An electronic fence detection method is designed. By reading the preset detection time, the detection mechanism is used to control the flip of the detection mechanism, and the flip angle is obtained during the flip process. When the angle is greater than the preset angle, the camera captures the video between the detection mechanism and the electronic fence, detects the video, and generates the detection result.

Benefits of technology

No manual inspection is required, which reduces the inspection time of electronic fences, improves the inspection efficiency of electronic fences in the substation, and eliminates safety hazards caused by inadequate insulation protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119599936A_ABST
    Figure CN119599936A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic fence detection method and device, electronic equipment and a storage medium, and the method comprises the steps: reading preset detection time, and judging whether the current time is the detection time or not; when the current time is the detection time, the detection mechanism is controlled to start overturning; acquiring a current overturning angle of the detection mechanism within the time period of starting overturning; acquiring a preset overturning angle of contact between the detection mechanism and the electronic fence of the transformer substation; and when the current overturning angle is greater than the preset overturning angle, controlling the camera to shoot a video that the detection mechanism is in contact with the electronic fence, detecting the video, and generating a detection result of the electronic fence. The detection efficiency of the electronic fence can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of substations, and in particular to an electronic fence detection method, device, electronic device and storage medium. Background Art

[0002] Currently, staff need to inspect and maintain the electronic fence of the substation every quarter. Due to the single detection method and the lack of special test tools for electronic fences on the market, the following problems arise during the work:

[0003] First, the inspection completely relies on the staff to check whether the electronic fence is intact along the wall of the substation, which is time-consuming and labor-intensive, and the work efficiency is low;

[0004] Second, the electronic fence function test often uses iron wire to short-circuit the two phases to trigger the on-site alarm device for testing. During the test, it is easy for workers to get electric shock due to inadequate insulation protection, which poses a safety hazard, and the test results are easily affected by human intervention;

[0005] In summary, the current detection process of the electronic fence of the substation is cumbersome, which is not conducive to improving the detection efficiency of the electronic fence of the substation. Summary of the invention

[0006] The embodiments of the present application provide an electronic fence detection method, device, electronic device and storage medium to solve the technical problem that the detection process of the electronic fence of the existing substation is cumbersome and is not conducive to improving the detection efficiency of the electronic fence of the substation.

[0007] In a first aspect, an embodiment of the present application provides an electronic fence detection method, which is applied to an electronic device, wherein the electronic device includes a detection mechanism and a camera, and the electronic fence detection method includes:

[0008] Read the preset detection time and determine whether the current time is the detection time;

[0009] When the current time is the detection time, controlling the detection mechanism to start flipping;

[0010] During the period of time when the flipping starts, obtaining the current flipping angle of the detection mechanism;

[0011] Obtaining a preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation;

[0012] When the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, and the video is detected to generate a detection result of the electronic fence.

[0013] In a possible implementation manner of the first aspect, when the current time is the detection time, controlling the detection mechanism to start flipping includes:

[0014] When the current time is the detection time, an event listener is used to monitor whether a detection event sent by the monitoring system corresponding to the electronic fence is received;

[0015] When the detection event is received, the detection mechanism is controlled to start flipping.

[0016] In a possible implementation manner of the first aspect, acquiring a current flip angle of the detection mechanism within a time period of starting flipping includes:

[0017] During the period of starting the flipping, the angular displacement sensor installed on the detection mechanism is connected to read the sensor data collected by the angular displacement sensor;

[0018] The current flip angle of the detection mechanism is obtained through the sensor data.

[0019] In a possible implementation manner of the first aspect, obtaining a preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation includes:

[0020] Get the record table in the preset file;

[0021] A preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation is obtained in the record table.

[0022] In a possible implementation manner of the first aspect, when the current flip angle is greater than the preset flip angle, controlling the camera to capture a video showing contact between the detection mechanism and the electronic fence, detecting the video, and generating a detection result of the electronic fence, includes:

[0023] When the current flip angle is greater than the preset flip angle and current is detected, controlling the detection mechanism to stop flipping;

[0024] During the period of stopping flipping, controlling the camera to capture a video showing contact between the detection mechanism and the electronic fence;

[0025] The video is detected to generate a detection result of the electronic fence.

[0026] In a possible implementation manner of the first aspect, when the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, the video is detected, and a detection result of the electronic fence is generated. The electronic fence detection method includes:

[0027] A preset storage area is obtained, and the contact video is stored in the storage area.

[0028] In a possible implementation manner of the first aspect, when the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, the video is detected, and a detection result of the electronic fence is generated. The electronic fence detection method includes:

[0029] A push instruction is obtained, the push instruction is executed, and the video is pushed to the monitoring system corresponding to the electronic fence.

[0030] In a second aspect, an embodiment of the present application provides an electronic fence detection device, which is applied to an electronic device, wherein the electronic device includes a detection mechanism and a camera, including:

[0031] A first acquisition module is used to read a preset detection time and determine whether the current time is the detection time;

[0032] A control module, used for controlling the detection mechanism to start flipping when the current time is the detection time;

[0033] A second acquisition module, used to acquire the current flip angle of the detection mechanism within the time period of starting flipping;

[0034] A third acquisition module is used to obtain a preset flip angle at which there is contact between the detection mechanism and the electronic fence of the substation;

[0035] The detection module is used to control the camera to capture a video of contact between the detection mechanism and the electronic fence when the current flip angle is greater than the preset flip angle, detect the video, and generate a detection result of the electronic fence.

[0036] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic fence detection method of any one of the first aspects described above is implemented.

[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the electronic fence detection method of any one of the above-mentioned first aspects is implemented.

[0038] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the electronic fence detection method described in any one of the first aspects above.

[0039] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0040] The beneficial effects of the embodiments of the present application lie in two aspects. On the one hand, when the flip angle is greater than the preset angle, the camera is controlled to capture a video of contact between the detection mechanism and the electronic fence, and the video is detected to generate a detection result of the electronic fence. Since no manual detection is required, the detection time of the electronic fence is reduced, which is beneficial to improving the detection efficiency of the electronic fence of the substation. On the other hand, there is no problem of electric shock to workers due to inadequate insulation protection, which is beneficial to improving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 A first application scenario diagram of the electronic fence detection method provided in an embodiment of the present application;

[0043] Figure 2 A second application scenario diagram of the electronic fence detection method provided in an embodiment of the present application;

[0044] Figure 3 A third application scenario diagram of the electronic fence detection method provided in an embodiment of the present application;

[0045] Figure 4 It is a flowchart of the electronic fence detection method provided in the embodiment of the present application;

[0046] Figure 5 A schematic block diagram of an electronic fence detection device provided in an embodiment of the present application;

[0047] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0049] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0050] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0051] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0052] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0053] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0054] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0055] In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0056] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0057] The electronic equipment includes a detection mechanism and a camera. The detection mechanism and the camera are both located on the wall of the substation.

[0058] See also Figure 1 , Figure 1 The first application scenario diagram of the electronic fence detection method provided in the embodiment of the present application is described in detail as follows:

[0059] Figure 1 is a side view, Figure 1 Includes detection agencies, electric fences, angle irons, and walls.

[0060] Among them, the side view refers to the view obtained by observing the detection mechanism, electric fence, angle iron, and wall from one side, which mainly shows the side structure of the detection mechanism, electric fence, angle iron, and wall.

[0061] Wherein, when the current time is not the detection time, the detection mechanism on the wall of the substation is in a horizontal placement state, that is, an initial state.

[0062] Among them, the electric fence refers to the electronic fence of the substation.

[0063] The voltage of the substation electronic fence is several thousand volts, and may even reach tens of thousands of volts. This high voltage design is mainly based on the need for its safety protection.

[0064] The electronic fence of the substation forms an electric field through high-voltage pulse current. Once a person or animal tries to cross the electronic fence, an electric shock effect will be generated, thus playing the role of anti-theft and alarm. Since the substation needs to handle high-voltage current during the power supply process, its safety issue is particularly important. The high-voltage electronic fence can effectively prevent unauthorized personnel from entering and ensure the safe operation of the substation.

[0065] In the embodiment of the present application, the angle iron can significantly enhance the overall strength of the electronic fence due to its good compression and impact resistance, so that the electronic fence can maintain its integrity when facing external impact or damage, and effectively prevent intruders from destroying the fence or climbing over the electronic fence.

[0066] See also Figure 2 , Figure 2 The second application scenario diagram of the electronic fence detection method provided in the embodiment of the present application is described in detail as follows:

[0067] Figure 2 is a side view, Figure 2 Includes detection agencies, electric fences, angle irons, and walls.

[0068] Among them, when the current time is the detection time, the detection mechanism on the wall of the substation starts to flip. When the current flip angle of the detection mechanism is greater than 90 degrees, the distance between the detection mechanism and the electronic fence will become closer and closer. When there is contact between the detection mechanism and the electronic fence, the camera is controlled to shoot a video of the contact between the detection mechanism and the electronic fence, and the video is detected to generate the detection result of the electronic fence.

[0069] In the embodiment of the present application, the video is detected to generate the detection result of the electronic fence. Since no manual detection is required, the detection time of the electronic fence is reduced, which is beneficial to improving the detection efficiency of the electronic fence of the substation.

[0070] See also Figure 3 , Figure 3 The third application scenario diagram of the electronic fence detection method provided in the embodiment of the present application is described in detail as follows:

[0071] Figure 3 is a front view, Figure 3 Includes detection mechanisms, electric fences, angle irons, walls, and cameras.

[0072] Among them, the front view refers to the view obtained by observing the detection mechanism, electric fence, angle iron, and wall from the front, which mainly shows the front structure of the detection mechanism, electric fence, angle iron, and wall.

[0073] Among them, when the current time is the detection time, the detection mechanism on the wall of the substation starts to flip. When the current flip angle of the detection mechanism is greater than 90 degrees, there is contact between the detection mechanism and the electronic fence. The camera is controlled to start shooting a video of the contact between the detection mechanism and the electronic fence, and the video is detected to generate a detection result of the electronic fence.

[0074] In the embodiment of the present application, since there is no need for manual inspection, there is no problem of electric shock to workers due to inadequate insulation protection, which is conducive to improving safety.

[0075] See also Figure 4 , Figure 4 It is a flow chart of the electronic fence detection method provided in an embodiment of the present application. The method can be applied to an electronic device, and the electronic device includes a detection mechanism and a camera.

[0076] like Figure 4 As shown, the electronic fence detection method provided in the embodiment of the present application includes the following steps, which are described in detail as follows:

[0077] S401, reading a preset detection time, and determining whether the current time is the detection time;

[0078] When the current time is the detection time, controlling the detection mechanism to start flipping includes:

[0079] When the current time is the detection time, an event listener is used to monitor whether a detection event sent by the monitoring system corresponding to the electronic fence is received;

[0080] When the detection event is received, the detection mechanism is controlled to start flipping.

[0081] When the detection event is received, it indicates that the electronic fence needs to be detected, and the detection mechanism is controlled to start flipping.

[0082] Among them, event listener is a mechanism widely used in programming. Event listener is specifically used to monitor and respond to events occurring in a program or system.

[0083] S402, when the current time is the detection time, controlling the detection mechanism to start flipping;

[0084] Wherein, obtaining the current flip angle of the detection mechanism within the time period of starting flipping includes:

[0085] During the period of starting the flipping, the angular displacement sensor installed on the detection mechanism is connected to read the sensor data collected by the angular displacement sensor;

[0086] The current flip angle of the detection mechanism is obtained through the sensor data.

[0087] Among them, the angular displacement sensor is an important measuring tool used to accurately measure the angle or rotational displacement of an object. It usually consists of a rotating component and a fixed component, one of which is connected to the rotating object to be measured, and the other is fixed to the relatively stationary part.

[0088] When the angle of the detection mechanism changes, the angular displacement sensor can sense this change and output an electrical signal related thereto. Therefore, by reading the sensor data collected by the angular displacement sensor, the current flip angle of the detection mechanism can be obtained through the sensor data.

[0089] S403, obtaining a current flip angle of the detection mechanism within a time period of starting flipping;

[0090] The step of obtaining a preset flip angle at which the detection mechanism contacts the electronic fence of the substation includes:

[0091] Get the record table in the preset file;

[0092] A preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation is obtained in the record table.

[0093] Among them, the preset flip angles include 90 degrees and 100 degrees.

[0094] The preset flip angle is the flip angle when there is contact between the detection mechanism and the electronic fence of the substation.

[0095] S404, obtaining a preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation;

[0096] S405, when the current flip angle is greater than the preset flip angle, controlling the camera to capture a video showing contact between the detection mechanism and the electronic fence, detecting the video, and generating a detection result of the electronic fence.

[0097] Exemplarily, detecting the video and generating the detection result of the electronic fence includes:

[0098] Detecting whether the electronic fence in the video generates sparks;

[0099] When the electronic fence in the video generates sparks, a normal detection result corresponding to the electronic fence is generated;

[0100] When sparks are generated in the electronic fence in the video, an abnormal detection result corresponding to the electronic fence is generated.

[0101] Among them, when there is contact between the detection mechanism and the electronic fence, the two wires of the electronic fence will be directly connected, thereby generating a short-circuit point, and this short-circuit point will generate sparks.

[0102] Wherein, when the current flip angle is greater than the preset flip angle, controlling the camera to capture a video showing contact between the detection mechanism and the electronic fence, detecting the video, and generating a detection result of the electronic fence, includes:

[0103] When the current flip angle is greater than the preset flip angle and current is detected, controlling the detection mechanism to stop flipping;

[0104] During the period of stopping flipping, controlling the camera to capture a video showing contact between the detection mechanism and the electronic fence;

[0105] The video is detected to generate a detection result of the electronic fence.

[0106] When the current flip angle is greater than the preset flip angle and current is detected, it indicates that the detection mechanism is in contact with the electronic fence, and therefore, the camera is controlled to capture a video showing the contact between the detection mechanism and the electronic fence.

[0107] The camera is an infrared camera, which can work in an environment without visible light and capture infrared radiation emitted by objects through infrared thermal imaging technology to generate clear images, ensuring the clarity of the monitoring images even at night or in low light conditions.

[0108] Wherein, when the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, the video is detected, and a detection result of the electronic fence is generated. The electronic fence detection method includes:

[0109] A preset storage area is obtained, and the contact video is stored in the storage area.

[0110] Wherein, when the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, the video is detected, and a detection result of the electronic fence is generated. The electronic fence detection method includes:

[0111] A push instruction is obtained, the push instruction is executed, and the video is pushed to the monitoring system corresponding to the electronic fence.

[0112] The beneficial effects of the embodiments of the present application lie in two aspects. On the one hand, when the flip angle is greater than the preset angle, the camera is controlled to capture a video of contact between the detection mechanism and the electronic fence, and the video is detected to generate a detection result of the electronic fence. Since no manual detection is required, the detection time of the electronic fence is reduced, which is beneficial to improving the detection efficiency of the electronic fence of the substation. On the other hand, there is no problem of electric shock to workers due to inadequate insulation protection, which is beneficial to improving safety.

[0113] For the electronic fence detection method described in the above embodiment, please refer to Figure 5 , Figure 5 A schematic block diagram of an electronic fence detection device provided in an embodiment of the present application, Figure 5 The electronic fence detection device 500 shown can be applied to Figure 1 The electronic device in the first application scenario diagram shown below takes the electronic device as an example. Figure 5 The electronic fence detection device 500 shown is described in detail. The electronic fence detection device 500 may include a first acquisition module 501, a control module 502, a second acquisition module 503, a third acquisition module 504, and a detection module 505.

[0114] The first acquisition module 501 is used to read a preset detection time and determine whether the current time is the detection time;

[0115] A control module 502, configured to control the detection mechanism to start flipping when the current time is the detection time;

[0116] A second acquisition module 503 is used to acquire the current flip angle of the detection mechanism within the time period of starting flipping;

[0117] A third acquisition module 504 is used to obtain a preset flip angle at which there is contact between the detection mechanism and the electronic fence of the substation;

[0118] The detection module 505 is used to control the camera to capture a video of contact between the detection mechanism and the electronic fence when the current flip angle is greater than the preset flip angle, detect the video, and generate a detection result of the electronic fence.

[0119] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0120] The beneficial effects of the embodiments of the present application lie in two aspects. On the one hand, when the flip angle is greater than the preset angle, the camera is controlled to capture a video of contact between the detection mechanism and the electronic fence, and the video is detected to generate a detection result of the electronic fence. Since no manual detection is required, the detection time of the electronic fence is reduced, which is beneficial to improving the detection efficiency of the electronic fence of the substation. On the other hand, there is no problem of electric shock to workers due to inadequate insulation protection, which is beneficial to improving safety.

[0121] See also Figure 6 , Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0122] like Figure 6 As shown, Figure 6 The electronic device 2 includes: at least one processor 20, a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20, and when the processor 20 executes the computer program 22, the steps in any of the above-mentioned method embodiments are implemented.

[0123] The electronic device 2 may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art will appreciate that Figure 6 It is only an example of the electronic device 2 and does not constitute a limitation on the electronic device 2. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0124] The processor 20 is used to run the computer program 22 stored in the memory 21, and implement the following steps when executing the computer program 22:

[0125] Read the preset detection time and determine whether the current time is the detection time;

[0126] When the current time is the detection time, controlling the detection mechanism to start flipping;

[0127] During the period of time when the flipping starts, obtaining the current flipping angle of the detection mechanism;

[0128] Obtaining a preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation;

[0129] When the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, and the video is detected to generate a detection result of the electronic fence.

[0130] In some embodiments, the processor 20 is configured to implement:

[0131] When the current time is the detection time, an event listener is used to monitor whether a detection event sent by the monitoring system corresponding to the electronic fence is received;

[0132] When the detection event is received, the detection mechanism is controlled to start flipping.

[0133] In some embodiments, the processor 20 is configured to implement:

[0134] During the period of starting the flipping, the angular displacement sensor installed on the detection mechanism is connected to read the sensor data collected by the angular displacement sensor;

[0135] The current flip angle of the detection mechanism is obtained through the sensor data.

[0136] In some embodiments, the processor 20 is configured to implement:

[0137] Get the record table in the preset file;

[0138] A preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation is obtained in the record table.

[0139] In some embodiments, the processor 20 is configured to implement:

[0140] When the current flip angle is greater than the preset flip angle and current is detected, controlling the detection mechanism to stop flipping;

[0141] During the period of stopping flipping, controlling the camera to capture a video showing contact between the detection mechanism and the electronic fence;

[0142] The video is detected to generate a detection result of the electronic fence.

[0143] In some embodiments, the processor 20 is configured to implement:

[0144] A preset storage area is obtained, and the contact video is stored in the storage area.

[0145] In some embodiments, the processor 20 is configured to implement:

[0146] A push instruction is obtained, the push instruction is executed, and the video is pushed to the monitoring system corresponding to the electronic fence.

[0147] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), or off-the-shelf programmable gate arrays ( Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0148] In some embodiments, the memory 21 may be an internal storage unit of the electronic device 2, such as a hard disk or memory of the electronic device 2. In other embodiments, the memory 21 may also be an external storage device of the electronic device 2, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 2. Further, the memory 21 may also include both an internal storage unit of the electronic device 2 and an external storage device. The memory 21 is used to store an operating system, an application program, a boot loader (Boot Loader), data, and other programs, such as the program code of the computer program, etc. The memory 21 may also be used to temporarily store data that has been output or is to be output.

[0149] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0150] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0151] The computer-readable storage medium stores program codes, which can be called by a processor to execute the electronic fence detection method described in the above method embodiment.

[0152] The computer-readable storage medium has a storage space for program codes.

[0153] The program code includes the code of any step in the electronic fence detection method described in the above method embodiment.

[0154] For example, the program code is called by the processor and can execute the following steps:

[0155] Read the preset detection time and determine whether the current time is the detection time;

[0156] When the current time is the detection time, controlling the detection mechanism to start flipping;

[0157] During the period of time when the flipping starts, obtaining the current flipping angle of the detection mechanism;

[0158] Obtaining a preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation;

[0159] When the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, and the video is detected to generate a detection result of the electronic fence.

[0160] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0161] The computer-readable storage medium may also be an external storage device of the electronic fence detection device or the electronic device, for example, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), a non-volatile computer-readable medium ( storage medium) etc.

[0162] Since the computer program stored in the computer-readable storage medium can execute any one of the electronic fence detection methods provided in the embodiments of the present application, the computer-readable storage medium can achieve the beneficial effects that can be achieved by any one of the electronic fence detection methods provided in the embodiments of the present application. Please refer to the previous embodiments for details and will not be repeated here.

[0163] An embodiment of the present application provides a computer program product. When the computer program product is executed on an electronic device, the electronic device executes the above-mentioned electronic fence detection method.

[0164] The computer program product is loaded into the electronic device and can execute the following steps:

[0165] Read the preset detection time and determine whether the current time is the detection time;

[0166] When the current time is the detection time, controlling the detection mechanism to start flipping;

[0167] During the period of time when the flipping starts, obtaining the current flipping angle of the detection mechanism;

[0168] Obtaining a preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation;

[0169] When the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, and the video is detected to generate a detection result of the electronic fence.

[0170] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.

[0171] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0172] Based on such understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to an electronic device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0173] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0174] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. An electronic fence detection method, characterized in that: Applied to an electronic device, the electronic device includes a detection mechanism and a camera, and the electronic fence detection method includes: Read the preset detection time and determine whether the current time is the detection time; When the current time is the detection time, controlling the detection mechanism to start flipping; During the period of time when the flipping starts, obtaining the current flipping angle of the detection mechanism; Obtaining a preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation; When the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, and the video is detected to generate a detection result of the electronic fence.

2. The electronic fence detection method according to claim 1, characterized in that: When the current time is the detection time, controlling the detection mechanism to start flipping includes: When the current time is the detection time, an event listener is used to monitor whether a detection event sent by the monitoring system corresponding to the electronic fence is received; When the detection event is received, the detection mechanism is controlled to start flipping.

3. The electronic fence detection method according to claim 1, characterized in that: The step of obtaining the current flip angle of the detection mechanism within the time period of starting the flip includes: During the period of starting the flipping, the angular displacement sensor installed on the detection mechanism is connected to read the sensor data collected by the angular displacement sensor; The current flip angle of the detection mechanism is obtained through the sensor data.

4. The electronic fence detection method according to claim 1, characterized in that: The step of obtaining a preset flip angle indicating that there is contact between the detection mechanism and the electronic fence of the substation includes: Get the record table in the preset file; A preset flip angle at which contact exists between the detection mechanism and the electronic fence of the substation is obtained in the record table.

5. The electronic fence detection method according to claim 1, characterized in that: When the current flip angle is greater than the preset flip angle, controlling the camera to capture a video showing contact between the detection mechanism and the electronic fence, detecting the video, and generating a detection result of the electronic fence, including: When the current flip angle is greater than the preset flip angle and current is detected, controlling the detection mechanism to stop flipping; During the period of stopping flipping, controlling the camera to capture a video showing contact between the detection mechanism and the electronic fence; The video is detected to generate a detection result of the electronic fence.

6. The electronic fence detection method according to any one of claims 1 to 5, characterized in that: When the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, the video is detected, and a detection result of the electronic fence is generated. The electronic fence detection method includes: A preset storage area is obtained, and the contact video is stored in the storage area.

7. The electronic fence detection method according to any one of claims 1 to 5, characterized in that: When the current flip angle is greater than the preset flip angle, the camera is controlled to capture a video showing contact between the detection mechanism and the electronic fence, the video is detected, and a detection result of the electronic fence is generated. The electronic fence detection method includes: A push instruction is obtained, the push instruction is executed, and the video is pushed to the monitoring system corresponding to the electronic fence.

8. An electronic fence detection device, characterized in that: Applied to electronic equipment, the electronic equipment includes a detection mechanism and a camera, including: A first acquisition module is used to read a preset detection time and determine whether the current time is the detection time; A control module, used for controlling the detection mechanism to start flipping when the current time is the detection time; A second acquisition module, used to acquire the current flip angle of the detection mechanism within the time period of starting flipping; A third acquisition module is used to obtain a preset flip angle at which there is contact between the detection mechanism and the electronic fence of the substation; The detection module is used to control the camera to capture a video of contact between the detection mechanism and the electronic fence when the current flip angle is greater than the preset flip angle, detect the video, and generate a detection result of the electronic fence.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic fence detection method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the electronic fence detection method according to any one of claims 1 to 7 is implemented.