Method and device for preventing mislocking of electric equipment based on smart key

Through real -time monitoring and analysis of the click location and data of the operator, the wrong touch problem caused by the limited smart key screen has been solved, the operating accuracy and efficiency are improved, and the feedback can help improve the operational habits.

CN119132851BActive Publication Date: 2025-01-28PINGLIANG POWER SUPPLY CO STATE GRID GANSU ELECTRIC POWER CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411585812.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-01-28
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

In substation operation, due to the limited smart key screen, operators are prone to accidentally touching other switches when clicking on analog switches, resulting in low operation efficiency.

Method used

By monitoring the click position of the operator in real -time monitoring, the click distance is calculated, and an early warning prompt or executing analog action is issued based on the setting threshold to ensure the accuracy of the operation. At the same time, through statistical click data, analyze the frequency and discrete coefficients, and adjust the number of clicks and thresholds to improve the operating efficiency.

Benefits of technology

The operator's operating accuracy on the smart key screen has been improved, the error and repeated operations are reduced, the efficiency of the overall operation operation is improved, and the operator can improve the operating habits through feedback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119132851B_ABST
    Figure CN119132851B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of computer error prevention in power systems, and discloses an error-proof locking control method and device for power equipment based on smart keys. The method includes: mainly performing image recognition on the image of the simulation interface, obtaining the coordinates of the external click action on the simulation interface, and judging whether the coordinates are located in the coordinate area of ​​a certain simulation switch; if the coordinate position is located in the coordinate area of ​​the corresponding simulation switch, calculating the click distance between the coordinate position and the corresponding simulation switch; calculating the size of the click distance, and if the click distance exceeds the set threshold, an early warning is issued; otherwise, executing the simulation action of the simulation switch corresponding to the click distance on the simulation interface; if the simulation is successful, the smart key is inserted to unlock the current electrical lock. The present application makes intelligent improvements to the smart key, implanting the five-prevention system in the error-proof workstation into the smart key, making it more convenient to operate; in addition, the click position is judged and analyzed to reduce the probability of operating errors and improve the error-proof effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer error prevention in power systems, and in particular to a method and device for preventing error locking of power equipment based on a smart key. Background Art

[0002] When operating a substation, high-voltage equipment must often be opened and closed. There are sequence requirements. If the opening and closing are not performed in the correct order, equipment damage and casualties will occur. There are five common misoperations that need to be avoided. A system that prevents electrical misoperations in substations is called a microcomputer anti-misoperation system, also called a microcomputer five-protection system or an anti-misoperation locking system. The microcomputer anti-misoperation system achieves remote monitoring, control and management of power equipment through software programming and hardware configuration, thereby preventing accidents such as misoperation, misclosing, and mistaken entry into live intervals.

[0003] The working principle of the traditional microcomputer error prevention system is mainly based on the following steps:

[0004] Simulation rehearsal: simulate and rehearse the operation on the error-proof host to ensure that the operating procedures are correct.

[0005] Logical judgment: The anti-error host communicates with the upper computer in real time, and each switch quantity on the anti-error host corresponds to the real-time on-site situation, and then simulates the operation and performs a locking logic judgment on each simulated operation.

[0006] Task issuance: Generate the actual operation program from the correct simulation operation content and transmit it to the smart key.

[0007] On-site operation: The operator opens the corresponding coded locks in sequence to operate the equipment according to the operation content displayed on the smart key.

[0008] Status feedback: After the operation is completed, the device status is kept consistent with the on-site device status through the feedback function of the smart key.

[0009] Each switch is equipped with a switch lock, which can ensure that the switch cannot be operated without authorization or in the wrong order. This effectively avoids equipment damage or casualties caused by misoperation.

[0010] Traditional smart keys can only passively receive work tasks sent to the smart key by the five-prevention system software (through the charging communication controller) running on the anti-error workstation. Operators need to use a computer to perform tasks on the smart key. In order to improve the convenience of operation, the five-prevention system is also embedded in the existing smart key. Operators do not need to use a computer to send tasks to the smart key, but can perform tasks directly on the smart key.

[0011] During the operation, the operator usually first clicks the simulated switch on the smart key screen to simulate. After the simulation is successful, the smart key is used to unlock the electric lock to prevent accidental touches. However, due to the limited screen size of the smart key, the operator is limited in the click range when clicking the simulated switch on the screen. Therefore, there is a situation where the click is not accurate enough and other switches are accidentally touched. There is a situation where the operator wants to turn on the wrong switch of the motor, but the switch touched by mistake is correct. Then, when the smart key is inserted into the electric lock, an alarm will be sounded or the electric lock cannot be opened, and the simulation must be repeated, so the efficiency is low. Summary of the invention

[0012] In order to monitor the click positions of the operator's operating steps to improve the accuracy of the operator's operations on the smart key screen, thereby improving operating efficiency, the present application provides a method and device for preventing mislocking of power equipment based on a smart key.

[0013] In a first aspect, the present application provides a method for preventing mislocking of electric equipment based on a smart key, which adopts the following technical solution:

[0014] A method for preventing mislocking of electric equipment based on a smart key comprises the following steps:

[0015] Acquire login information, verify the login information, and if the verification is successful, unlock the current smart key;

[0016] Acquire the operation task associated with the login information, or acquire the execution instruction of the operation task, and generate the corresponding operation sequence and simulation interface;

[0017] Acquire an image of the simulation interface, mark all simulation switches on the image of the simulation interface, and acquire coordinate areas and coordinate centers corresponding to all the simulation switches;

[0018] Obtaining the coordinate position of the external click simulation interface action, and determining whether the coordinate position is located in the coordinate area of ​​one of the simulation switches;

[0019] If the coordinate position is located in the coordinate area corresponding to the analog switch, calculate the click distance between the coordinate position and the corresponding analog switch; wherein the click distance is the distance value between the coordinate center of the analog switch and the coordinate position;

[0020] Calculating the size of the click distance, and issuing a warning prompt if the click distance exceeds a set threshold; if the click distance does not exceed the set threshold, performing a simulated action of the simulated switch corresponding to the click distance on the simulated interface;

[0021] If the simulation is successful, the smart key is inserted into the electric lock corresponding to the simulation switch to unlock the current electric lock;

[0022] Counting all the values ​​of the click distances within a set time period, and calculating the discrete coefficient of the click distances;

[0023] Counting the click frequency in which the coordinate position is not located in the coordinate area of ​​any one of the simulation switches within the same set time period;

[0024] Calculate the distance fluctuation value according to the discrete coefficient of the click distance and the click frequency; the distance fluctuation value=discrete coefficient of click distance×click frequency / (click frequency+1);

[0025] If the distance fluctuation value is greater than a preset threshold, a warning prompt is issued before executing the simulated action of the simulated switch corresponding to the click distance on the simulated interface.

[0026] By adopting the above technical solution, the method can monitor the operator's operation steps and click positions in real time, improve the accuracy of operation through early warning prompts, reduce false touches and repeated operations, and thus improve overall operation efficiency. In addition, the method also provides feedback to operators by counting and analyzing click data, helping them improve their operating habits and further improve operation accuracy.

[0027] Optionally, the method for adjusting the threshold corresponding to the click distance includes:

[0028] Obtaining the number of analog switches required to be executed in the current operation sequence, and numbering the sequence of the analog switches;

[0029] According to the number of the analog switch, adjusting the threshold value corresponding to the click distance;

[0030] The smaller the number of the analog switch is, the smaller the threshold corresponding to the click distance is; and the larger the number of the analog switch is, the larger the threshold corresponding to the click distance is.

[0031] By adopting the above technical solution, since the power operation of the high-voltage switch cabinet of the substation often requires the operation of a series of power switches, and each power switch will be locked after operation, and cannot be opened after being locked. As the operation steps continue, the number of remaining operable power switches decreases, which means that the probability of selecting the wrong switch will decrease, so the threshold corresponding to the click distance can be appropriately adjusted to improve the flexibility of the system.

[0032] Optionally, the method for obtaining the coordinate position of the external click simulation interface action further includes:

[0033] Get the coordinate position of the external click simulation interface with a set click count of N times, where N is greater than or equal to 1;

[0034] Calculate the average coordinates of the N coordinate positions as (average value of the horizontal coordinate, average value of the vertical coordinate);

[0035] The average coordinates are the final coordinate positions of the simulated interface of the click operation smart key.

[0036] By adopting the above technical solution, the click of the simulation switch can be confirmed through multiple clicks, thereby ensuring the accuracy of the click data. At the same time, in the process of multiple click steps, the action of each click also helps the operator to take the click step more seriously, thereby further ensuring the accuracy of the click.

[0037] Optionally, the adjustment method for setting the number of clicks to N times includes:

[0038] Calculating a final click distance between the average coordinate and the coordinate center of the corresponding analog switch;

[0039] Adjusting the size of the next set number of clicks N according to the final click distance;

[0040] The larger the final click distance is, the larger the number N is; the smaller the final click distance is, the smaller the number N is.

[0041] By adopting the above technical solution, the operator will click the center position of the simulation switch more accurately in order to reduce the number of clicks; if the operator does not take the click operation seriously, it is easy to deviate from the center position of the simulation switch icon, so that the next time the simulation switch is clicked, more clicks are required to finally obtain the average coordinates; therefore, by flexibly adjusting the number of clicks N required for confirmation, it can be more conducive to improving the accuracy of the click.

[0042] Optionally, the early warning method after the simulation of the analog switch is successful further includes:

[0043] The time point after the simulation of the analog switch is successfully obtained is taken as the first time point;

[0044] Acquire the time point when the smart key is inserted into the electric lock as the second time point;

[0045] Calculating a time difference between the first time point and the second time point;

[0046] If the time difference exceeds the corresponding set time threshold, an early warning prompt is issued;

[0047] Or, all the time differences within a set time period are counted, and a time average value of all the time differences is calculated. If the time average value exceeds a set time threshold, an early warning prompt is issued.

[0048] By adopting the above technical solution, early warning prompts can guide operators to perform the next operation in a timely manner, avoiding unnecessary waiting and delays, and helping to improve the smoothness and efficiency of the overall operation.

[0049] Optionally, the early warning method after the simulation of the analog switch is successful further includes:

[0050] When the simulation switch is successfully simulated, a real-time picture taken by the camera is obtained based on the camera set on the smart key;

[0051] Acquiring a distance value monitored by the distance sensor based on the distance sensor provided on the smart key;

[0052] When the distance value is within the set distance range, obtaining the current real-time picture taken by the camera;

[0053] Extracting a contour of a first feature from the current real-time image;

[0054] Acquire a preset image associated with the simulation switch corresponding to the current click distance;

[0055] Extracting a first contour from the preset image;

[0056] Performing similarity matching between the contour of the first feature and the first contour, and calculating contour similarity between the contour of the first feature and the first contour;

[0057] If the contour similarity is greater than a preset contour similarity threshold, no warning is issued; otherwise, a warning prompt is sent.

[0058] By adopting the above technical solution, the outline (first feature) of the electric lock to be unlocked can be further checked before inserting and unlocking through image matching and early warning mechanism, which can further enhance the safety of operation. By acquiring and matching image information in real time, potential misoperation or risks can be discovered and warned in time, thereby avoiding possible safety accidents. It helps to improve the accuracy of operation and ensure that operators can operate according to the correct steps and processes.

[0059] Optionally, the early warning method after the simulation of the analog switch is successful further includes:

[0060] When the simulation switch is successfully simulated, a real-time picture taken by the camera is obtained based on the camera set on the smart key;

[0061] Acquiring a distance value monitored by the distance sensor based on the distance sensor provided on the smart key;

[0062] When the distance value is within the set distance range, obtaining the current real-time picture taken by the camera;

[0063] Extracting a first feature from the current real-time picture;

[0064] Calculate the real-time color value of the first feature, the real-time color value=∑(Ki×the proportion of the central color of the i-th color group in the picture+Li×the brightness value of the central color of the i-th color group); wherein ∑ is a summation function, assuming that there are m central colors of color groups, then Ki and Li are weight coefficients corresponding to the proportion of the central color of the i-th color group in the picture and the brightness value of the central color of the i-th color group, respectively, and i is a natural number from 1 to m;

[0065] Acquire a preset image associated with the simulation switch corresponding to the current click distance;

[0066] Obtaining a preset reference color value of the first feature from the preset image;

[0067] The real-time color value is compared with the reference color value, and a color difference between the real-time color value and the reference color value is calculated; if the color difference is greater than a preset color threshold, an early warning is issued.

[0068] By adopting the above technical solution and introducing the dimension of color matching, the safety of operation can be further enhanced. Color, as an intuitive visual feature, can provide richer information to assist in judging the correctness and safety of operation. At the same time, the accuracy of color recognition is also improved by comprehensively considering the central color and brightness value of multiple color groups. Therefore, by introducing the technical solution of color matching and early warning based on the camera and distance sensor on the smart key, the method of the present application further introduces the dimension of color recognition on the basis of enhancing the safety and accuracy of operation, thereby improving the accuracy of color recognition.

[0069] Optionally, the method for adjusting the size of the coordinate region includes:

[0070] Calculate the frequency of early warning alerts issued within a set period;

[0071] The area size of the coordinate area is adjusted according to the frequency of issuing the warning prompt. The higher the frequency of issuing the warning prompt, the smaller the area of ​​the coordinate area; the lower the frequency of issuing the warning prompt, the larger the area of ​​the coordinate area.

[0072] By adopting the above technical solution, if the frequency of early warning prompts is high, it means that the operating environment or the operator's behavior may have more unstable factors, so the area of ​​the coordinate area will be reduced. This can narrow the operating range and improve the accuracy and safety of the operation. If the frequency of early warning prompts is low, it means that the operating environment or the operator's behavior is relatively stable, so the area of ​​the coordinate area will be increased. This can expand the operating range and improve the flexibility and efficiency of the operation. Therefore, by introducing a technical solution for dynamically adjusting the size of the coordinate area according to the frequency of early warning prompts, the method of the present application not only improves the safety and accuracy of the operation, but also realizes the adaptive adjustment of the operating environment. This adaptive adjustment mechanism can ensure that the operating environment is always kept in the best state, thereby improving the safety and accuracy of the operation.

[0073] In the second aspect, the present application provides an anti-mislock control device for electric equipment based on a smart key, which adopts the following technical solution:

[0074] An anti-mislock control device for electric equipment based on a smart key, comprising a smart key and an electric lock;

[0075] The smart key stores a control system, the control system includes a processor, and the processor executes the steps of the method for preventing mislocking of electric equipment based on the smart key as described in any one of the above;

[0076] The electrical lock is a coded lock having a unique code; when the coded lock matches the smart key, the coded lock is unlocked.

[0077] Optionally, the smart key is provided with a camera and a distance sensor.

[0078] In summary, the present application includes at least one of the following beneficial technical effects: the traditional anti-error system includes an anti-error workstation (computer), five-protection system software (software installed on the computer), a smart key, a communication charging controller (used to connect the smart key and the anti-error workstation), and an anti-error lock (an electric lock installed on high-voltage equipment that can be opened by a smart key). The present application makes intelligent improvements to the smart key, implanting the five-protection system in the anti-error workstation into the smart key, so that the operator can perform tasks directly on the smart key without going through a computer. Due to the limited size of the screen on the smart key, in order to reduce accidental touches, the present application also reduces the probability of operational errors by judging and analyzing the click position, accurately identifies the click action, and improves the anti-error effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Figure 1 It is a step diagram of the method for preventing mislocking of power equipment based on smart keys.

[0080] Figure 2 It is a step diagram for monitoring and early warning based on the time difference between successful simulation and unlocking of the electric lock.

[0081] Figure 3 This is a step diagram for early warning based on the matching degree of the electric lock image contour.

[0082] Figure 4 This is a step diagram for early warning based on the color matching of the electric lock image. DETAILED DESCRIPTION

[0083] Embodiments of the present application are described in detail below, examples of which are shown in the accompanying drawings.

[0084] In the description of this specification, the description with reference to the terms "certain embodiments", "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0085] The embodiment of the present application discloses a method for preventing mislocking of electric equipment based on a smart key.

[0086] A method for preventing mislocking of electric equipment based on smart key, referring to Figure 1 , including the following steps:

[0087] Get the login information and verify it. If the verification is successful, the current smart key will be unlocked. The user needs to log in first, and only after the login is successful can the operation on the smart key be performed.

[0088] Get the operation task associated with the login information, or get the execution instruction of the operation task, and generate the corresponding operation sequence and simulation interface. The operation task can be obtained by the user clicking, or by the task previously issued to the user by the backend administrator. The operation sequence includes the action sequence of operating a series of electrical switches, and the simulation interface is the interface for operating the simulated switch.

[0089] Get the image of the simulation interface, mark all the simulation switches on the image of the simulation interface, and get the coordinate area and coordinate center corresponding to all the simulation switches. Use image recognition technology to mark various types of simulation switches. The coordinate center is the center of the coordinate area. Generally, the coordinate area is a square, circle, triangle or other structure.

[0090] Get the coordinate position of the external click simulation interface action, and determine whether the coordinate position is within the coordinate area of ​​one of the simulation switches. The system traverses all predefined simulation switches and checks the coordinate area of ​​each simulation switch in turn. For each simulation switch, the system checks whether the user's click coordinates are within its coordinate area. This is achieved by determining whether the x and y values ​​of the click coordinates are within the boundaries of the simulation switch coordinate area. If the click coordinates are within the coordinate area of ​​one of the simulation switches, the system believes that the user clicked the simulation switch; if the click coordinates are not within the coordinate area of ​​any simulation switch, the system may believe that the user has made an invalid click or an erroneous operation.

[0091] If the coordinate position is in the coordinate area of ​​the corresponding analog switch, calculate the click distance between the coordinate position and the corresponding analog switch; where the click distance is the distance between the coordinate center of the analog switch and the coordinate position. Click distance = sqrt((x2−x1) 2 +(y2−y1) 2 ); where (x1, y1) is the coordinate of the center of the simulated switch, and (x2, y2) is the coordinate position where the user clicks.

[0092] The click distance is calculated. If the click distance exceeds the set threshold, a warning prompt is issued; if the click distance does not exceed the set threshold, a simulated action of the simulated switch corresponding to the click distance is executed on the simulated interface.

[0093] If the simulation is successful, the smart key will be inserted into the electric lock corresponding to the simulated switch to unlock the current electric lock.

[0094] The values ​​of all click distances within the set time period are counted and the discrete coefficient of the click distance is calculated. The discrete coefficient reflects the fluctuation of the click distance, that is, the stability of the user operation.

[0095] The click frequency in which the coordinate position is not located in the coordinate area of ​​any analog switch within the same set period is counted. The click frequency is the frequency of the user's misoperation or invalid operation.

[0096] The distance fluctuation value is calculated based on the discrete coefficient of click distance and click frequency; distance fluctuation value = discrete coefficient of click distance × click frequency / (click frequency + 1). The distance fluctuation value combines the stability of user operations and the frequency of erroneous operations, and is used to evaluate the overall quality of user operations.

[0097] If the distance fluctuation value is greater than a preset threshold, a warning prompt is issued before executing a simulated action of a simulated switch corresponding to the click distance on the simulated interface.

[0098] Among them, different warning prompt information is provided according to different warning situations (such as the click distance is too large, too many invalid clicks, etc.), so that users can better understand the problem and take corresponding corrective measures.

[0099] This method can monitor the operator's operation steps and click positions in real time, improve the accuracy of operation through early warning prompts, reduce false touches and repeated operations, and thus improve overall operation efficiency. In addition, this method also provides feedback to operators by counting and analyzing click data, helping them improve their operating habits and further improve operation accuracy.

[0100] For example, suppose:

[0101] The coefficient of dispersion of click distance is 0.3, which means that the distance distribution when users click the analog switch is relatively concentrated, but still has a certain degree of dispersion.

[0102] Click frequency: Within 10 minutes, the user made a total of 50 clicks, 10 of which did not fall within the coordinate area of ​​any simulated switch, i.e., misoperation.

[0103] Then the distance fluctuation value ≈ 0.2941.

[0104] Explanation: The distance fluctuation value is about 0.2941, which reflects the overall quality of user operation and combines the stability of operation and the frequency of wrong operation. Since the dispersion coefficient is small at 0.3, it means that the distance when users click the analog switch is relatively stable, but there is still room for improvement. 10 wrong operations occurred within 10 minutes, accounting for 20% of the total number of clicks, which is a relatively high proportion, indicating that users need more training or interface optimization to reduce wrong operations.

[0105] The method for adjusting the threshold corresponding to the click distance includes:

[0106] The number of analog switches required to be executed in the current operation sequence is obtained, and the order of the analog switches is numbered, and the size of the number reflects the position and importance of the analog switch in the operation sequence.

[0107] According to the number of the analog switch, adjust the threshold value corresponding to the click distance;

[0108] The smaller the number of the analog switch is, the smaller the threshold corresponding to the click distance is; the larger the number of the analog switch is, the larger the threshold corresponding to the click distance is.

[0109] The smaller the analog switch number, the earlier or more critical it is in the operation sequence, so the corresponding click distance threshold is set to be smaller to ensure accurate operation of these critical switches.

[0110] On the contrary, the analog switch with a larger number may be relatively less important, and thus the corresponding click distance threshold is set to be larger to allow a certain operation error.

[0111] This method of threshold adjustment mechanism can improve the flexibility of overall operation while ensuring the accuracy of key operations. For key analog switches, a smaller threshold helps reduce false touches and repeated operations, improving operational efficiency. For non-critical analog switches, a larger threshold can tolerate certain operating errors and reduce the difficulty of operation. Due to the power operation of the high-voltage switchgear in the substation, it is often necessary to operate a series of power switches, and each power switch will be locked after operation, and cannot be opened after locking. As the operation steps continue, the number of remaining operable power switches is decreasing, which means that the probability of selecting the wrong switch will decrease. Then the threshold corresponding to the click distance can be appropriately adjusted to improve the flexibility of the system.

[0112] The method for obtaining the coordinate position of the external click simulation interface action also includes:

[0113] The coordinate position of the external click simulation interface with a set click count of N times is obtained, where N is greater than or equal to 1. For example, it is set that the same simulation switch must be clicked 3 times before the simulation switch can be determined to be clicked, so as to improve accuracy.

[0114] The average coordinates of the N coordinate positions are calculated as (the average value of the horizontal coordinate, the average value of the vertical coordinate); by calculating the average value, the error and jitter of a single click can be reduced, and a more stable and accurate coordinate position can be obtained.

[0115] The average coordinates are the final coordinate positions of the simulated interface of the smart key when the smart key is clicked.

[0116] The click of the simulation switch can be confirmed through multiple clicks, thereby ensuring the accuracy of the click data. At the same time, in the process of going through multiple click steps, the action of each click also helps the operator to take the click steps more seriously, thereby further ensuring the accuracy of the click.

[0117] The adjustment methods for setting the number of clicks to N times include:

[0118] Calculate the average coordinates and the final click distance of the coordinate center of the corresponding simulated switch.

[0119] The size of the next set click number N is adjusted according to the final click distance.

[0120] The greater the final click distance, the greater the number N; the smaller the final click distance, the smaller the number N.

[0121] If the final click distance is large, it means that the operator's click operation has a large error or is unstable, so the number of click operations N needs to be increased to improve the accuracy of subsequent operations.

[0122] On the contrary, if the final click distance is small, it means that the click operation of the operator is relatively accurate and stable, so the number of click operations N can be reduced to improve the operation efficiency.

[0123] For example, if the current number N is 3 times, if during a period of operation, it is statistically found that the user's click habits are not very correct and are prone to deviate from the coordinate center, then the number of click operations needs to be increased to ensure accuracy. For example, four clicks are required to determine that the simulated switch is clicked successfully. If, as the click habits improve, the user clicks at the coordinate center every time, then the number of click operations can be changed to 2 times to improve work efficiency.

[0124] In order to reduce the number of clicks, the operator will click the center position of the analog switch more accurately; if the operator does not take the click operation seriously, it is easy to deviate from the center position of the analog switch icon, so that the next time the analog switch is clicked, more clicks are required to finally obtain the average coordinates; therefore, by flexibly adjusting the number of clicks N required for confirmation, it is more conducive to improving the accuracy of the click.

[0125] Reference Figure 2 , the early warning method after the simulation of the analog switch is successful also includes:

[0126] The time node after the simulation of the analog switch is successfully obtained is the first time point;

[0127] The time point at which the smart key is inserted into the electric lock is obtained as the second time point;

[0128] Calculate the time difference between the first time point and the second time point.

[0129] If the time difference exceeds the corresponding set time threshold, an early warning will be issued; if the time difference exceeds the set time threshold, it means that the operator did not insert the smart key into the electric lock in time after the simulation was successful, which may be due to forgetfulness, distraction or other potential risks. In this case, an early warning will be issued to remind the operator to perform the next operation in time to ensure the safety and timeliness of the operation.

[0130] Or, count all time differences within a set time period, calculate the time average of all time differences, and issue a warning if the time average exceeds the set time threshold. In addition to directly determining whether a single time difference exceeds the threshold, you can also count all time differences within a set time period and calculate their time average. If this time average exceeds the set time threshold, it also means that the operator has delayed executing the next operation as a whole. In this case, a warning will also be issued to remind the operator to pay attention to the timeliness of the operation, and may need to adjust the operating habits or processes.

[0131] Through early warning prompts, this time difference monitoring and early warning mechanism can ensure the timeliness of operations and prevent potential risks caused by delayed operations. It helps to improve the safety of operations and ensure that operators can operate in accordance with the prescribed processes and steps. This application can guide operators to perform the next operation in a timely manner, avoid unnecessary waiting and delays, and help improve the smoothness and efficiency of overall operations.

[0132] Reference Figure 3 , the early warning method after the simulation of the analog switch is successful also includes:

[0133] When the simulation switch is successfully simulated, a real-time picture taken by the camera set on the smart key is obtained.

[0134] The distance value monitored by the distance sensor is obtained based on the distance sensor set on the smart key. The distance sensor is generally located on a side of the smart key housing for inserting into the electric lock.

[0135] When the distance value is within the set distance range, that is, the position of the smart key before approaching and inserting into the electric lock, the current real-time picture taken by the camera is obtained. The real-time picture captures the image of the electric lock, keyhole or other key components. Since electric locks have various structures and each electric lock has a unique code, in order to be able to detect insertion errors before, a verification link is also added to help predict possible errors in advance.

[0136] Extract the outline of the first feature from the current real-time image; for example, the first feature is an electric lock. Edge detection is used to identify points in the image where the brightness changes dramatically. These points usually correspond to the edges of objects. Commonly used edge detection methods include Sobel operator and Canny edge detection.

[0137] Obtain a preset image associated with the analog switch corresponding to the current click distance; the preset image may be a previously captured image similar to the current operating environment, which includes the outline of key components that need to be matched, such as an image of an electrical lock.

[0138] A first contour is extracted from a preset image; the first contour is obtained by using the same image processing method as above.

[0139] The contour of the first feature is matched with the first contour to calculate the contour similarity between the contour of the first feature and the first contour.

[0140] If the contour similarity is greater than the preset contour similarity threshold, no warning is issued; otherwise, a warning prompt is sent.

[0141] If the contour similarity is greater than the preset contour similarity threshold, it means that the current operating environment is consistent with the preset image and there is no abnormality, so no warning is issued.

[0142] If the contour similarity is less than or equal to the preset contour similarity threshold, it means that the current operating environment is different from the preset image, and there may be misoperation or potential risks, so an early warning prompt is sent.

[0143] Through image matching and early warning mechanisms, the outline (first feature) of the electric lock to be unlocked is further checked before insertion and unlocking, which can further enhance the safety of operation. By acquiring and matching image information in real time, potential misoperation or risks can be discovered and warned in a timely manner, thereby avoiding possible safety accidents. This helps to improve the accuracy of operations and ensure that operators can operate according to the correct steps and processes.

[0144] Reference Figure 4 , the early warning method after the simulation of the analog switch is successful also includes:

[0145] When the simulation switch is successfully simulated, a real-time picture taken by the camera set on the smart key is obtained.

[0146] The distance value monitored by the distance sensor is obtained based on the distance sensor set on the smart key. The distance sensor is generally located on a side of the smart key housing for inserting into the electric lock.

[0147] When the distance value is within the set distance range, the current real-time picture taken by the camera is obtained; when the distance value is within the set distance range, that is, the position of the smart key before approaching and inserting into the electric lock, the current real-time picture taken by the camera is obtained. The real-time picture captures the image of the electric lock, keyhole or other key components. Since electric locks have various structures and each electric lock has a unique code, in order to be able to detect insertion errors before, a verification link is also added to help predict possible errors in advance.

[0148] A first feature is extracted from the current real-time image; for example, the first feature is an electric lock.

[0149] Calculate the real-time color value of the first feature, which is ∑(Ki×the proportion of the central color of the i-th color group in the picture+Li×the brightness value of the central color of the i-th color group); where ∑ is a summation function. Assuming there are m central colors of color groups, Ki and Li are the weight coefficients corresponding to the proportion of the central color of the i-th color group in the picture and the brightness value of the central color of the i-th color group, respectively, and i is a natural number from 1 to m. The real-time color value is obtained by comprehensively considering the proportion and brightness value of the central colors of multiple color groups in the picture, which can more comprehensively reflect the color information of the first feature and improve the accuracy of color recognition.

[0150] A preset image associated with the analog switch corresponding to the current click distance is obtained; a preset reference color value of the first feature is obtained from the preset image. The reference color value is the color value of the first feature in an image previously taken and similar to the current operating environment.

[0151] The real-time color value is compared with the reference color value, and the color difference between the real-time color value and the reference color value is calculated; if the color difference is greater than the preset color threshold, an early warning is issued.

[0152] If the color difference is greater than the preset color threshold, it means that the first characteristic color in the current operating environment is different from the color in the preset image, and there may be misoperation or potential risks. In this case, an early warning will be issued to remind the operator of potential risks and problems.

[0153] For example, suppose m is 3;

[0154] Color Group 1:

[0155] Center color: red (RGB value is 255, 0, 0); red is R, green is G, and blue is B;

[0156] Weight coefficient Ki: 0.4;

[0157] Weight coefficient Li: 0.3;

[0158] Percentage in the picture: 30%

[0159] Color Group 2:

[0160] Center color: green (RGB value is 0, 255, 0); red is R, green is G, and blue is B;

[0161] Weight coefficient Ki: 0.3;

[0162] Weight coefficient Li: 0.4;

[0163] Percentage in the picture: 40%

[0164] Color Group 3:

[0165] Center color: blue (RGB value is 0, 0, 255); red is R, green is G, and blue is B;

[0166] Weight coefficient Ki: 0.3;

[0167] Weight coefficient Li: 0.3;

[0168] Percentage in the picture: 30%

[0169] For simplicity, the brightness of the RGB value is directly approximated as the average value of the three components R, G, and B;

[0170] The brightness value of red = (255+0+0) / 3=85;

[0171] The brightness value of green = (0+255+0) / 3=85;

[0172] The brightness value of blue = (0+0+255) / 3=85;

[0173] Real-time color value = (0.4×30%+0.3×85) + (0.3×40%+0.4×85) + (0.3×30%+0.3×85) = 85.83;

[0174] The real-time color value of 85.83 is a value that combines color proportion and brightness. It reflects the contribution of each color group in the image to the overall color characteristics.

[0175] By introducing the dimension of color matching, the safety of operation can be further enhanced. As an intuitive visual feature, color can provide richer information to assist in judging the correctness and safety of operation. At the same time, the accuracy of color recognition is also improved by comprehensively considering the central color and brightness value of multiple color groups. Therefore, by introducing a technical solution for color matching and early warning based on the camera and distance sensor on the smart key, this application further introduces the dimension of color recognition on the basis of enhancing the safety and accuracy of operation, thereby improving the accuracy of color recognition.

[0176] The methods for adjusting the size of the coordinate area include:

[0177] Calculate the frequency of early warnings issued within a set period of time. The frequency can reflect the stability of the operating environment or operator behavior during the period.

[0178] The size of the coordinate area is adjusted according to the frequency of issuing warning prompts. The higher the frequency of issuing warning prompts, the smaller the area of ​​the coordinate area; the lower the frequency of issuing warning prompts, the larger the area of ​​the coordinate area.

[0179] If the frequency of warning prompts is high, it means that the operating environment or operator behavior may have more unstable factors, so the area of ​​the coordinate area will be reduced. This can narrow the operating range and improve the accuracy and safety of the operation. If the frequency of warning prompts is low, it means that the operating environment or operator behavior is relatively stable, so the area of ​​the coordinate area will be increased. This can expand the operating range and improve the flexibility and efficiency of the operation.

[0180] For example, when the frequency of issuing warning prompts is 0, the size of the coordinate area is the coordinate area that is completely matched with the icon size of the conventionally designed analog switch; when the warning frequency increases, the area of ​​the coordinate area is reduced, for example, the radius of the circular area corresponding to the coordinates of the circular analog switch icon will be reduced; conversely, the radius of the circular area will increase. In this way, when the operation is not standardized, the operator is guided to click closer to the coordinate center.

[0181] Through this adaptive adjustment mechanism, the area size of the coordinate area can be dynamically adjusted according to the actual situation of the operating environment or the operator's behavior. This adjustment is real-time and dynamic, and can ensure that the operating environment is always kept in the best state, thereby improving the safety and accuracy of the operation. Therefore, by introducing a technical solution for dynamically adjusting the area size of the coordinate area according to the frequency of early warning prompts, this application not only improves the safety and accuracy of the operation, but also realizes the adaptive adjustment of the operating environment. This adaptive adjustment mechanism can ensure that the operating environment is always kept in the best state, thereby improving the safety and accuracy of the operation.

[0182] Among them, the screen of the smart key adopts a resistive touch screen or a capacitive touch screen.

[0183] The embodiment of the present application also discloses an anti-mislocking control device for electric equipment based on a smart key.

[0184] An anti-mislock control device for electric equipment based on a smart key, comprising a smart key and an electric lock;

[0185] The smart key is provided with a camera and a distance sensor; the smart key stores a control system, the control system includes a processor, and the processor executes the steps of any one of the above-mentioned methods for preventing mislocking of electric equipment based on the smart key;

[0186] The electric lock is a coded lock with a unique code; when the coded lock matches the smart key, the coded lock is unlocked.

[0187] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for preventing mislocking of electric equipment based on a smart key, characterized in that: The steps include: Acquire login information, verify the login information, and if the verification is successful, unlock the current smart key; Obtaining an operation task associated with the login information, or obtaining an execution instruction of the operation task, and generating a corresponding operation sequence and simulation interface; Acquire an image of the simulation interface, mark all simulation switches on the image of the simulation interface, and acquire coordinate areas and coordinate centers corresponding to all the simulation switches; Obtaining the coordinate position of the external click simulation interface action, and determining whether the coordinate position is located in the coordinate area of ​​one of the simulation switches; The method for obtaining the coordinate position of the external click simulation interface action also includes: Get the coordinate position of the external click simulation interface with a set click count of N times, where N is greater than or equal to 1; Calculate the average coordinates of the N coordinate positions as (average value of the horizontal coordinate, average value of the vertical coordinate); The average coordinates are the final coordinate positions of the simulated interface of the smart key when the smart key is clicked; If the coordinate position is located in the coordinate area corresponding to the analog switch, calculate the click distance between the coordinate position and the corresponding analog switch; wherein the click distance is the distance value between the coordinate center of the analog switch and the coordinate position; Calculating the size of the click distance, and issuing a warning prompt if the click distance exceeds a set threshold; if the click distance does not exceed the set threshold, performing a simulated action of the simulated switch corresponding to the click distance on the simulated interface; The method for adjusting the threshold corresponding to the click distance includes: Obtaining the number of analog switches required to be executed in the current operation sequence, and numbering the sequence of the analog switches; According to the number of the analog switch, adjusting the threshold value corresponding to the click distance; The smaller the number of the analog switch is, the smaller the threshold corresponding to the click distance is; the larger the number of the analog switch is, the larger the threshold corresponding to the click distance is; If the simulation is successful, the smart key is inserted into the electric lock corresponding to the simulation switch to unlock the current electric lock; Counting all the values ​​of the click distances within a set time period, and calculating the discrete coefficient of the click distances; Counting the click frequency in which the coordinate position is not located in the coordinate area of ​​any one of the simulation switches within the same set time period; Calculate the distance fluctuation value according to the discrete coefficient of the click distance and the click frequency; the distance fluctuation value=discrete coefficient of click distance×click frequency / (click frequency+1); If the distance fluctuation value is greater than a preset threshold, a warning prompt is issued before executing the simulated action of the simulated switch corresponding to the click distance on the simulated interface.

2. The method for preventing mislocking of electric equipment based on a smart key according to claim 1, characterized in that: The adjustment method for setting the number of clicks to N times includes: Calculating a final click distance between the average coordinate and the coordinate center of the corresponding analog switch; Adjusting the size of the next set number of clicks N according to the final click distance; The larger the final click distance is, the larger the number N is; the smaller the final click distance is, the smaller the number N is.

3. The method for preventing mislocking of electric equipment based on a smart key according to claim 1, characterized in that: The early warning method after the simulation switch simulation is successful also includes: The time point after the simulation of the analog switch is successfully obtained is taken as the first time point; Acquire the time point when the smart key is inserted into the electric lock as the second time point; Calculating a time difference between the first time point and the second time point; If the time difference exceeds the corresponding set time threshold, an early warning prompt is issued; Or, all the time differences within a set time period are counted, and a time average value of all the time differences is calculated. If the time average value exceeds a set time threshold, an early warning prompt is issued.

4. The method for preventing mislocking of electric equipment based on a smart key according to claim 1, characterized in that: The early warning method after the simulation of the simulated switch is successful also includes: When the simulation switch is successfully simulated, a real-time picture taken by the camera is obtained based on the camera set on the smart key; Acquiring a distance value monitored by the distance sensor based on the distance sensor provided on the smart key; When the distance value is within the set distance range, obtaining the current real-time picture taken by the camera; Extracting a contour of a first feature from the current real-time image; Acquire a preset image associated with the simulation switch corresponding to the current click distance; Extracting a first contour from the preset image; Performing similarity matching between the contour of the first feature and the first contour, and calculating contour similarity between the contour of the first feature and the first contour; If the contour similarity is greater than a preset contour similarity threshold, no warning is issued; otherwise, a warning prompt is sent.

5. The method for preventing mislocking of electric equipment based on a smart key according to claim 1, characterized in that: The early warning method after the simulation switch simulation is successful also includes: When the simulation switch is successfully simulated, a real-time picture taken by the camera is obtained based on the camera set on the smart key; Acquiring a distance value monitored by the distance sensor based on the distance sensor provided on the smart key; When the distance value is within the set distance range, obtaining the current real-time picture taken by the camera; Extracting a first feature from the current real-time picture; Calculate the real-time color value of the first feature, the real-time color value=∑(Ki×the proportion of the central color of the i-th color group in the picture+Li×the brightness value of the central color of the i-th color group); wherein ∑ is a summation function, assuming that there are m central colors of color groups, then Ki and Li are weight coefficients corresponding to the proportion of the central color of the i-th color group in the picture and the brightness value of the central color of the i-th color group, respectively, and i is a natural number from 1 to m; Acquire a preset image associated with the simulation switch corresponding to the current click distance; Obtaining a preset reference color value of the first feature from the preset image; The real-time color value is compared with the reference color value, and a color difference between the real-time color value and the reference color value is calculated; if the color difference is greater than a preset color threshold, an early warning is issued.

6. The method for preventing mislocking of electric equipment based on a smart key according to claim 1, characterized in that: The method for adjusting the size of the coordinate region includes: Calculate the frequency of early warning alerts issued within a set period; The area size of the coordinate area is adjusted according to the frequency of issuing the warning prompt. The higher the frequency of issuing the warning prompt, the smaller the area of ​​the coordinate area; the lower the frequency of issuing the warning prompt, the larger the area of ​​the coordinate area.

7. An anti-mislock control device for electric equipment based on a smart key, characterized in that: Includes smart key and electric locks; The smart key stores a control system, the control system includes a processor, and the processor executes the steps of the method for preventing mislocking of electric equipment based on a smart key according to any one of claims 1 to 6; The electrical lock is a coded lock having a unique code; when the coded lock matches the smart key, the coded lock is unlocked.

8. The device for preventing mislocking of electric equipment based on a smart key according to claim 7, characterized in that: The smart key is provided with a camera and a distance sensor.

Citation Information

Patent Citations

  • Construction method for integrated anti-misoperation safety management and control platform of transformer substation

    CN112421766A

  • Intelligent management and control system for transformer substation

    CN114283509A