Device inspection method and device, terminal and computer readable storage medium
By using image processing technology in the IDC data center, based on inspection images and standard template diagrams, port status sequences and device sub-region blocks are obtained and cluster analysis is performed. This solves the problem of low inspection efficiency for sensitive devices, achieves efficient identification and alarm of abnormal device status, and improves the efficiency and reliability of data center equipment maintenance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA MOBILE ZIJIN INNOVATION INST CO LTD
- Filing Date
- 2023-09-07
- Publication Date
- 2026-04-21
AI Technical Summary
In existing technologies, the inspection efficiency of sensitive equipment in IDC data centers is low, manual inspection is prone to missing items, cold aisle costs are high and there is a risk of access misuse, resulting in low data center inspection efficiency.
By using inspection images and standard status template diagrams, port status sequences and device sub-region blocks are obtained, clustering operations are performed to determine abnormal device status, and alarm information is output.
It improves the efficiency of data center inspection, accurately identifies abnormal equipment status, reduces the missed detection rate of manual inspection and the cost of cold aisle, and enhances the reliability of equipment maintenance.
Smart Images

Figure CN117274892B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a device inspection method, apparatus, terminal, and computer-readable storage medium. Background Technology
[0002] Internet Data Centers (IDCs) are a crucial infrastructure in the internet industry. IDCs centrally store and process data, and their servers host various platforms and services for government and enterprises. The security and reliability of IDCs are fundamental to the safe and normal operation of hosting services; therefore, ensuring the data security of IDC equipment is of paramount importance.
[0003] IDC (Internet Data Center) servers house various types of network, transmission, and data equipment. Sensitive devices within these devices possess the capability to identify and control business data flows, making them crucial to the data security of the IDC. These sensitive devices control the connection between network equipment and the core network equipment of the IDC, and the wiring of their ports determines the direction of data flow. Therefore, it is essential to ensure the correct wiring of sensitive devices within the IDC, monitor the status of their ports, and promptly issue alerts in case of anomalies to prevent potential data leaks and other risks.
[0004] Currently, sensitive equipment detection methods include manual inspection and comparison, and access control monitoring. Manual inspection and comparison involves maintenance personnel traversing the interfaces of each sensitive device in the data center to verify correct port wiring. However, large IDC data centers contain a large number of sensitive devices with small and scattered ports. Manual inspection requires a high level of prior knowledge of the data center from the inspectors and is prone to omissions due to fatigue or poor visibility, resulting in low inspection efficiency and frequency. Access control monitoring involves installing sensitive equipment in a separate rack space and establishing corresponding access permissions, allowing only authorized personnel to enter the rack space. An alarm is triggered when unauthorized personnel enter. However, independent cold aisles are expensive, have low space utilization, and may be subject to access control theft or tailgating. Furthermore, it primarily targets personnel entering the sensitive equipment area, failing to address the specific equipment itself, leaving risks such as missed operations by maintenance personnel, further contributing to low data center inspection efficiency. Summary of the Invention
[0005] The main objective of this invention is to provide a method, apparatus, terminal, and computer-readable storage medium for equipment inspection, aiming to solve the technical problem of low efficiency in existing computer room inspections.
[0006] To achieve the above objectives, the present invention provides an equipment inspection method, the equipment inspection method comprising the following steps:
[0007] Based on the inspection images and standard status template diagrams corresponding to the target cabinet, obtain the inspection port status sequence and the standard port status sequence.
[0008] If the sequence length of the inspection port status sequence is less than the sequence threshold corresponding to the standard port status sequence, then the device sub-region block corresponding to each sensitive device information is obtained in the inspection image.
[0009] Based on the standard state template diagram, obtain the first sub-region block in the device sub-region block;
[0010] The coordinates of the foreground points are obtained based on each of the first sub-region blocks, and the coordinates of the foreground points are clustered to obtain the clustering results.
[0011] Based on the clustering results, it is determined whether the target cabinet has any abnormal equipment status.
[0012] Furthermore, the step of determining whether the target cabinet has any abnormal equipment status based on the clustering results includes:
[0013] Based on the number of points in each cluster of the clustering results and the preset foreground point threshold, the target cluster corresponding to the clustering results is determined;
[0014] If the number of clusters in the target cluster is greater than the preset number of clusters, it is determined that there is an abnormal device status in the target cabinet, and the corresponding device status alarm information of the target cabinet is output.
[0015] Furthermore, the step of obtaining the foreground coordinates based on each of the first sub-region blocks includes:
[0016] Each first sub-region block is binarized, and the binarization result is closed to obtain the closing result.
[0017] Perform an opening operation on the result of the closing operation to obtain the second sub-region block;
[0018] The coordinates of the foreground point are obtained based on each second sub-region block.
[0019] Further, the step of obtaining the first sub-region block in the device sub-region block based on the standard state template diagram includes:
[0020] Based on the standard state template diagram, the similarity of each device sub-region block is obtained;
[0021] Get the first sub-region block in the device sub-region block with a similarity greater than the similarity threshold.
[0022] Furthermore, the step of obtaining the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet includes:
[0023] Based on inspection images and standard status template diagrams, determine the sensitive equipment information corresponding to the target cabinet;
[0024] Based on the sensitive device information, obtain the inspection port status sequence corresponding to the inspection image, and obtain the standard port status sequence corresponding to the standard status template image.
[0025] Furthermore, after the step of obtaining the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet, the method further includes:
[0026] If the sequence length of the inspection port status sequence is the same as the sequence length of the standard port status sequence, then it is determined whether there is an inconsistent target status code at the same position in the inspection port status sequence and the standard port status sequence.
[0027] If the target status code exists, it is determined that the target cabinet has an abnormal port status, and the corresponding port status alarm information of the target cabinet is output.
[0028] Furthermore, after the step of obtaining the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet, the method further includes:
[0029] If the sequence length of the inspected port status sequence is different from the sequence length of the standard port status sequence, and the sequence length of the inspected port status sequence is greater than the sequence threshold, then it is determined that the target cabinet has a port status loss, and the corresponding port status loss alarm information of the target cabinet is output.
[0030] Furthermore, to achieve the above objectives, the present invention also provides an equipment inspection device, the equipment inspection device comprising:
[0031] The first acquisition module is used to acquire the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet.
[0032] The second acquisition module is used to acquire the device sub-region block corresponding to each sensitive device information in the inspection image if the sequence length of the inspection port status sequence is less than the sequence threshold corresponding to the standard port status sequence.
[0033] The third acquisition module is used to acquire the first sub-region block in the device sub-region block based on the standard state template diagram.
[0034] The clustering module is used to obtain the coordinates of the foreground points based on each of the first sub-region blocks, and to perform a clustering operation on the coordinates of the foreground points to obtain the clustering results;
[0035] The determination module is used to determine whether there is any abnormal equipment status in the target cabinet based on the clustering results.
[0036] In addition, to achieve the above objectives, the present invention also provides an equipment inspection device, which includes: a memory, a processor, and an equipment inspection program stored in the memory and executable on the processor. When the equipment inspection program is executed by the processor, it implements the steps of the aforementioned equipment inspection method.
[0037] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores a device inspection program, which, when executed by a processor, implements the steps of the aforementioned device inspection method.
[0038] This invention obtains inspection port status sequences and standard port status sequences based on inspection images and standard status template diagrams corresponding to the target cabinet. If the sequence length of the inspection port status sequence is less than the sequence threshold corresponding to the standard port status sequence, a device sub-region block corresponding to each sensitive device information is obtained from the inspection image. Then, based on the standard status template diagram, a first sub-region block is obtained from the device sub-region block. Next, foreground coordinates are obtained based on each of the first sub-region blocks, and clustering is performed on the foreground coordinates to obtain clustering results. Finally, based on the clustering results, it is determined whether the target cabinet has any abnormal device status. This invention can accurately determine whether there is any abnormal device status based on the sequence length of the inspection port status sequence corresponding to the inspection image, improving the efficiency of data center inspection and the maintenance efficiency of sensitive data center equipment. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of the structure of the equipment inspection terminal in the hardware operating environment involved in the embodiments of the present invention;
[0040] Figure 2 This is a flowchart illustrating the first embodiment of the equipment inspection method of the present invention;
[0041] Figure 3 This is a schematic diagram of the functional modules of an embodiment of the equipment inspection device of the present invention.
[0042] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0043] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0044] like Figure 1 As shown, Figure 1 This is a schematic diagram of the structure of the device inspection terminal in the hardware operating environment involved in the embodiment of the present invention.
[0045] In this embodiment of the invention, the equipment inspection terminal can be a PC. For example... Figure 1 As shown, the device inspection terminal may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or stable non-volatile memory, such as a disk storage device. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0046] Optionally, the equipment inspection terminal may also include a camera, RF (Radio Frequency) circuit, sensor, audio circuit, WiFi module, etc.
[0047] Those skilled in the art will understand that Figure 1 The terminal structure shown does not constitute a limitation on the equipment inspection terminal, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0048] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a device inspection program.
[0049] exist Figure 1 In the equipment inspection terminal shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user terminal) and communicate data with the client; and the processor 1001 can be used to call the equipment inspection program stored in the memory 1005.
[0050] In this embodiment, the equipment inspection terminal includes: a memory 1005, a processor 1001, and a equipment inspection program stored in the memory 1005 and executable on the processor 1001. When the processor 1001 calls the equipment inspection program stored in the memory 1005, it executes the steps of the equipment inspection methods in the following embodiments.
[0051] The present invention also provides a method for equipment inspection, referring to Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the equipment inspection method of the present invention.
[0052] In this embodiment, the equipment inspection method includes:
[0053] Step S101: Based on the inspection image and standard status template image corresponding to the target cabinet, obtain the inspection port status sequence and the standard port status sequence.
[0054] In this embodiment, before conducting equipment inspection, inspection path planning is performed first. Specifically, the number and location information of the target sensitive equipment in each computer room are first counted, including the building information, computer room information, cabinet information, and location information of the sensitive equipment. The inspection path is determined according to the computer room management method, and the inspection order is obtained by linking the computer room ID. For example, the location information of the sensitive equipment in building A, computer room 201, and cabinet K01 can be A201K01. The inspection order is obtained according to the location information of each target sensitive equipment, and the inspection path is stored in a specific data structure.
[0055] After obtaining the inspection path, inspection images of the corresponding cabinets for each target sensitive device are acquired based on the path. The inspection path allows for the location of sensitive devices and the collection of image data from these devices within the server room, resulting in inspection images. Specifically, a handheld terminal can be used, suitable for situations with limited budgets. Inspection personnel use the handheld terminal, guided by positioning instructions, to reach the target sensitive devices sequentially along the planned inspection path and collect image data. Alternatively, an autonomous robot can be used. The robot changes position according to the inspection path, collecting image data from the sensitive devices each time it reaches a target cabinet. Once inspection images of each sensitive device along the inspection path are acquired, they are backed up to both local and cloud servers.
[0056] In this embodiment, when detecting sensitive equipment, an inspection image corresponding to the target cabinet is acquired, and a standard state template image of the target cabinet is also acquired. Based on the inspection image and the standard state template image of the target cabinet, an inspection port state sequence and a standard port state sequence are acquired. Specifically, the standard port state sequence can be acquired through the state sequences corresponding to each preset standard state template image that are stored in advance. Based on the inspection image and the standard state template image, the sensitive equipment information corresponding to the target cabinet is determined. Based on the sensitive equipment information, the inspection port state sequence corresponding to the inspection image is acquired.
[0057] Step S102: If the sequence length of the inspection port status sequence is less than the sequence threshold corresponding to the standard port status sequence, then obtain the device sub-region block corresponding to each sensitive device information in the inspection image.
[0058] In this embodiment, after obtaining the inspection port status sequence and the standard port status sequence, the sequence lengths of the inspection port status sequence and the standard port status sequence are calculated. If the sequence length of the inspection port status sequence is less than the sequence length of the standard port status sequence, a corresponding sequence threshold is determined based on the standard port status sequence. For example, the sequence threshold can be half the sequence length of the standard port status sequence. Then, it is determined whether the sequence length of the inspection port status sequence is less than the sequence threshold. If the sequence length of the inspection port status sequence is less than the sequence threshold corresponding to the standard port status sequence, the device sub-region blocks corresponding to each sensitive device information are obtained in the inspection image. Specifically, the anchor frame positions corresponding to the sensitive device information are first obtained, and each device sub-region block is obtained in the inspection image based on each anchor frame position.
[0059] Step S103: Based on the standard state template diagram, obtain the first sub-region block in the device sub-region block;
[0060] In this embodiment, after obtaining each device sub-region block, a first sub-region block is obtained from the device sub-region block based on the standard state template diagram. Specifically, the similarity between each device sub-region block and the corresponding standard sub-region block in the standard state template diagram is calculated, and the first sub-region block is obtained from the device sub-region block based on the similarity.
[0061] Step S104: Obtain the coordinates of the foreground points based on each of the first sub-region blocks, and perform a clustering operation on the coordinates of the foreground points to obtain the clustering results;
[0062] In this embodiment, after obtaining the first sub-region block, the coordinates of the foreground point are obtained based on each of the first sub-region blocks, and a clustering operation is performed on the coordinates of the foreground point to obtain the clustering result, resulting in n clusters.
[0063] Step S105: Determine whether there is any abnormal equipment status in the target cabinet based on the clustering results.
[0064] In this embodiment, after obtaining the clustering results, it is determined whether the target cabinet has an abnormal equipment status based on the clustering results. Specifically, based on the number of points in each cluster of the clustering results and the preset foreground point threshold, the target cluster corresponding to the clustering results is determined. If the number of clusters in the target cluster is greater than the preset number of clusters (0), it is determined that the target cabinet has an abnormal equipment status.
[0065] The equipment inspection method proposed in this embodiment obtains the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet. Then, if the sequence length of the inspection port status sequence is less than the sequence threshold corresponding to the standard port status sequence, a sub-region block corresponding to each sensitive device information is obtained in the inspection image. Next, based on the standard status template image, a first sub-region block is obtained from the sub-region block. Then, the coordinates of foreground points are obtained based on each of the first sub-region blocks, and a clustering operation is performed on the foreground point coordinates to obtain clustering results. Finally, based on the clustering results, it is determined whether there is an equipment status anomaly in the target cabinet. This method can accurately determine whether there is an equipment status anomaly based on the sequence length of the inspection port status sequence corresponding to the inspection image, improving the efficiency of data center inspection and the maintenance efficiency of sensitive data center equipment.
[0066] Based on the first embodiment, a second embodiment of the equipment inspection method of the present invention is proposed. In this embodiment, step S105 includes:
[0067] Step S201: Based on the number of points in each cluster of the clustering results and the preset foreground point threshold, determine the target cluster corresponding to the clustering results;
[0068] Step S202: If the number of clusters in the target cluster is greater than the preset number of clusters, it is determined that there is an abnormal device status in the target cabinet, and the corresponding device status alarm information of the target cabinet is output.
[0069] In this embodiment, after obtaining the clustering results, the target clusters corresponding to the clustering results are determined based on the number of points in each cluster of the clustering results and a preset threshold for the number of points. Specifically, clusters with a number of points greater than or equal to the preset threshold for the number of points are selected as target clusters. For each current cluster in the clustering results, the number of points in the current cluster and the preset threshold for the number of points are obtained. The preset threshold for the number of points can be 0.1 * the total number of points to the number of points to the number of points to the number of points to the number of points. If the number of points in the current cluster is less than the preset threshold for the number of points, the current cluster is deleted from the clustering results. This process continues until all clusters in the clustering results are compared, and the clusters in the updated clustering results are selected as target clusters.
[0070] After obtaining the target cluster, if the number of clusters in the target cluster is the preset number, it is determined that there is no abnormal equipment status in the target cabinet. If the number of clusters in the target cluster is greater than the preset number, it is determined that there is an abnormal equipment status in the target cabinet. The preset number of clusters is 0. The corresponding equipment status alarm information of the target cabinet is then output. Specifically, it can be determined that there is a different target status code at the same position in the inspection port status sequence and the standard port status sequence. The abnormal port location, abnormal occurrence time, abnormal device number, abnormal room number, and abnormal cabinet number corresponding to the inconsistent target status code are obtained. Based on the abnormal port location, abnormal occurrence time, abnormal device number, abnormal room number, and abnormal cabinet number, equipment status alarm information is generated and output to the terminals of the relevant operation and maintenance personnel.
[0071] The data center maintains databases for both operations and maintenance personnel and administrators. Based on the "abnormal data center number" in the alarm information, the responsible person for the data center with the alarm can be identified, and a warning message can be issued. Warnings can be issued via, but are not limited to, SMS, email, telephone, app alarm push notifications, and voice prompts within the data center. After an alarm notification is issued, the receiving end needs to perform "process" or "cancel" operations. Administrators can process alarms online using auxiliary information or select the target operations and maintenance personnel from the personnel database based on the alarm details for offline processing. For complex issues, remote video diagnostics can be performed using an expert database. After the alarm issue is resolved, selecting "cancel alarm" removes the alarm from the alarm database as a backup of historical alarm information.
[0072] The equipment inspection method proposed in this embodiment determines the target cluster corresponding to the clustering result based on the number of points in each cluster of the clustering result and a preset threshold for foreground points. Then, if the number of clusters in the target cluster is greater than the preset number of clusters, it is determined that there is an abnormal equipment status in the target cabinet, and the corresponding equipment status alarm information of the target cabinet is output. It can accurately determine whether there is an abnormal equipment status based on the clustering result, further improving the efficiency of data center inspection and the maintenance efficiency of sensitive equipment in the data center.
[0073] Based on the first embodiment, a third embodiment of the equipment inspection method of the present invention is proposed. In this embodiment, step S104 includes:
[0074] Step S301: Perform binarization on each first sub-region block, and perform a closing operation on the binarization result to obtain the closing operation result;
[0075] Step S302: Perform an opening operation on the closing operation result to obtain the second sub-region block;
[0076] Step S303: Obtain the coordinates of the foreground point based on each second sub-region block.
[0077] In this embodiment, each first sub-region block can be binarized. For example, the large law method can be used to binarize each first sub-region block to obtain each binarized processing result. Then, a closing operation can be performed on the binarized processing result. For example, a small window closing operation can be performed on the binarized processing result to consolidate the target connection and obtain the closing operation result.
[0078] After obtaining the closing operation result, an opening operation is performed on the closing operation result to obtain the second sub-region block, and the foreground point coordinates are obtained based on each second sub-region block. That is, after cleaning the first sub-region block to obtain the second sub-region block, the foreground point coordinates corresponding to each second sub-region block are obtained.
[0079] The equipment inspection method proposed in this embodiment performs binarization processing on each first sub-region block, performs a closing operation on the binarization result to obtain the closing operation result, then performs an opening operation on the closing operation result to obtain the second sub-region block, and then obtains the foreground coordinates based on each second sub-region block. This can accurately obtain the foreground coordinates corresponding to the first sub-region block, further improving the efficiency of data center inspection and the maintenance efficiency of sensitive equipment in the data center.
[0080] Based on the first embodiment, a fourth embodiment of the equipment inspection method of the present invention is proposed. In this embodiment, step S103 includes:
[0081] Step S401: Based on the standard state template diagram, obtain the similarity of each device sub-region block;
[0082] Step S402: Obtain the first sub-region block in the device sub-region block whose similarity is greater than the similarity threshold.
[0083] In this embodiment, when a device sub-region block is obtained, the similarity of each device sub-region block is obtained based on the standard state template image. Specifically, the template image sub-region corresponding to each device sub-region block is obtained in the standard state template image based on each anchor frame position, and the similarity between each device sub-region block and the corresponding template image sub-region is calculated respectively.
[0084] Next, the first sub-region block with a similarity greater than the similarity threshold is obtained from the sub-region blocks of the device. The similarity threshold can be set reasonably.
[0085] The equipment inspection method proposed in this embodiment obtains the similarity of each equipment sub-region block based on the standard state template diagram; then, it obtains the first sub-region block in the equipment sub-region block whose similarity is greater than the similarity threshold. The first sub-region block can be accurately obtained based on the similarity, which further improves the efficiency of data center inspection and the maintenance efficiency of sensitive equipment in the data center.
[0086] Based on the first embodiment, a fifth embodiment of the equipment inspection method of the present invention is proposed. In this embodiment, step S101 includes:
[0087] Step S501: Based on the inspection images and standard status template diagrams, determine the sensitive equipment information corresponding to the target cabinet;
[0088] Step S502: Based on the sensitive device information, obtain the inspection port status sequence corresponding to the inspection image, and obtain the standard port status sequence corresponding to the standard status template image.
[0089] In this embodiment, the inspection image can be input into a pre-trained device detection model for prediction to obtain sensitive device information corresponding to the target cabinet. The sensitive device information includes the device detection anchor frame (anchor frame position) of the sensitive device. Then, based on the sensitive device information, the inspection port state sequence corresponding to the inspection image is obtained. Specifically, the device regions corresponding to the sensitive device information are extracted according to the device detection anchor frames, and these regions are input into the pre-trained detection model for prediction to obtain the ports and their states within the corresponding device regions, thereby obtaining the inspection port state sequence corresponding to the inspection image. For example, each port has two states: "occupied" and "idle," recorded as binary states 1 and 0 respectively. The port state of a single device can be represented as a binary sequence; for example, if the number of ports is 10, a device in a fully occupied state can be represented as "1111111111".
[0090] It should be noted that the inspection images and standard status template images can also be input into the device detection algorithm to obtain the sensitive equipment information corresponding to the target cabinet. Based on the device detection anchor frame of the sensitive equipment, the device area corresponding to the sensitive equipment information is extracted from the inspection image, and the template area corresponding to the sensitive equipment information is extracted from the standard status template image. Based on the device area and the corresponding template area, the similarity probability map corresponding to each device area is calculated. The magnitude of the value in the probability map can determine whether the sensitive equipment has changed.
[0091] The equipment inspection method proposed in this embodiment determines the sensitive equipment information corresponding to the target cabinet based on the inspection image and the standard status template diagram; then, based on the sensitive equipment information, it obtains the inspection port status sequence corresponding to the inspection image and the standard port status sequence corresponding to the standard status template diagram. This method can accurately obtain the inspection port status sequence, further improving the efficiency of data center inspection and the maintenance efficiency of sensitive equipment in the data center.
[0092] Based on the above embodiments, a sixth embodiment of the equipment inspection method of the present invention is proposed. In this embodiment, after step S101, the equipment inspection method further includes:
[0093] Step S601: If the sequence length of the inspection port status sequence is the same as the sequence length of the standard port status sequence, then determine whether there is an inconsistent target status code at the same position in the inspection port status sequence and the standard port status sequence.
[0094] Step S602: If the target status code exists, it is determined that the target cabinet has an abnormal port status, and the corresponding port status alarm information of the target cabinet is output.
[0095] In this embodiment, if the sequence length of the inspection port status sequence is the same as the sequence length of the standard port status sequence, it is determined whether there is an inconsistent target status code at the same position in the inspection port status sequence and the standard port status sequence. That is, the inspection port status sequence and the standard port status sequence are compared sequentially to determine whether the status codes at the same position are the same.
[0096] If the target status code exists, it is determined that the target cabinet has an abnormal port status, and the corresponding port status alarm information of the target cabinet is output. The abnormal port location, abnormal occurrence time, abnormal device number, abnormal data center number, and abnormal cabinet number corresponding to the inconsistent target status codes are obtained. Based on the abnormal port location, abnormal occurrence time, abnormal device number, abnormal data center number, and abnormal cabinet number, port status alarm information is generated and output to the terminals of relevant operation and maintenance personnel.
[0097] Furthermore, in one possible implementation, after step S101, the equipment inspection method further includes:
[0098] Step S603: If the sequence length of the inspected port status sequence is different from the sequence length of the standard port status sequence, and the sequence length of the inspected port status sequence is greater than the sequence threshold, then it is determined that the target cabinet has a port status loss, and the corresponding port status loss alarm information of the target cabinet is output.
[0099] In this embodiment, if the sequence length of the inspected port status sequence is different from the sequence length of the standard port status sequence, and the sequence length of the inspected port status sequence is greater than the sequence threshold, then it is determined that the target cabinet has a port status loss, and the port status loss alarm information corresponding to the target cabinet is output. Specifically, the abnormal port location, abnormal occurrence time, abnormal device number, abnormal computer room number, and abnormal cabinet number corresponding to the inconsistent target status code can also be obtained. Based on the abnormal port location, abnormal occurrence time, abnormal device number, abnormal computer room number, and abnormal cabinet number, port status loss alarm information is generated and output to the terminals corresponding to the relevant operation and maintenance personnel.
[0100] The equipment inspection method proposed in this embodiment determines whether there is an inconsistent target status code at the same position in the inspected port status sequence and the standard port status sequence if the sequence length of the inspected port status sequence is the same as the sequence length of the standard port status sequence. Then, if the target status code exists, it is determined that there is a port status abnormality in the target cabinet, and the corresponding port status alarm information of the target cabinet is output. This method can accurately identify port status abnormalities, further improving the efficiency of data center inspection and the maintenance efficiency of sensitive equipment in the data center.
[0101] The present invention also provides an equipment inspection device, with reference to Figure 3 The equipment inspection device includes:
[0102] The first acquisition module 10 is used to acquire the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet.
[0103] The second acquisition module 20 is used to acquire the device sub-region block corresponding to each sensitive device information in the inspection image if the sequence length of the inspection port status sequence is less than the sequence threshold corresponding to the standard port status sequence.
[0104] The third acquisition module 30 is used to acquire the first sub-region block in the device sub-region block based on the standard state template diagram.
[0105] Clustering module 40 is used to obtain the coordinates of the foreground points based on each of the first sub-region blocks, and to perform clustering operations on the coordinates of the foreground points to obtain clustering results;
[0106] The determination module 50 is used to determine whether there is an abnormal equipment status in the target cabinet based on the clustering results.
[0107] The methods executed by the above-mentioned program units can be referred to in the various embodiments of the equipment inspection method of the present invention, and will not be repeated here.
[0108] The present invention also provides a computer-readable storage medium.
[0109] The present invention provides a computer-readable storage medium storing a device inspection program, which, when executed by a processor, implements the steps of the device inspection method described above.
[0110] The method implemented when the device inspection program running on the processor is executed can be referred to in various embodiments of the device inspection method of the present invention, and will not be repeated here.
[0111] Furthermore, this embodiment of the invention also proposes a computer program product, which includes a device inspection program. When the device inspection program is executed by a processor, it implements the steps of the device inspection method described above.
[0112] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0113] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0114] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0115] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for equipment inspection, characterized in that, The equipment inspection method includes the following steps: Based on the inspection images and standard status template diagrams corresponding to the target cabinet, obtain the inspection port status sequence and the standard port status sequence. If the sequence length of the inspection port status sequence is less than the sequence threshold corresponding to the standard port status sequence, then the device sub-region block corresponding to each sensitive device information is obtained in the inspection image. Based on the standard state template diagram, a first sub-region block is obtained in the device sub-region block, wherein, based on the standard state template diagram, the similarity corresponding to each device sub-region block is obtained, and a first sub-region block with a similarity greater than a similarity threshold is obtained in the device sub-region block. The coordinates of the foreground points are obtained based on each of the first sub-region blocks, and the coordinates of the foreground points are clustered to obtain the clustering results. Based on the clustering results, it is determined whether the target cabinet has an abnormal equipment status. Specifically, based on the number of points in each cluster of the clustering results and a preset foreground point threshold, the target cluster corresponding to the clustering results is determined. If the number of clusters in the target cluster is greater than the preset number of clusters, it is determined that the target cabinet has an abnormal equipment status, and the corresponding equipment status alarm information of the target cabinet is output.
2. The equipment inspection method as described in claim 1, characterized in that, The step of obtaining the coordinates of the foreground point based on each of the first sub-region blocks includes: Each first sub-region block is binarized, and the binarization result is closed to obtain the closing result. Perform an opening operation on the result of the closing operation to obtain the second sub-region block; The coordinates of the foreground point are obtained based on each second sub-region block.
3. The equipment inspection method as described in claim 1, characterized in that, The steps of obtaining the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet include: Based on inspection images and standard status template diagrams, determine the sensitive equipment information corresponding to the target cabinet; Based on the sensitive device information, obtain the inspection port status sequence corresponding to the inspection image, and obtain the standard port status sequence corresponding to the standard status template image.
4. The equipment inspection method according to any one of claims 1 to 3, characterized in that, After the step of obtaining the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet, the method further includes: If the sequence length of the inspection port status sequence is the same as the sequence length of the standard port status sequence, then it is determined whether there is an inconsistent target status code at the same position in the inspection port status sequence and the standard port status sequence. If the target status code exists, it is determined that the target cabinet has an abnormal port status, and the corresponding port status alarm information of the target cabinet is output.
5. The equipment inspection method according to any one of claims 1 to 3, characterized in that, After the step of obtaining the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet, the method further includes: If the sequence length of the inspected port status sequence is different from the sequence length of the standard port status sequence, and the sequence length of the inspected port status sequence is greater than the sequence threshold, then it is determined that the target cabinet has a port status loss, and the corresponding port status loss alarm information of the target cabinet is output.
6. An equipment inspection device, characterized in that, The equipment inspection device includes: The first acquisition module is used to acquire the inspection port status sequence and the standard port status sequence based on the inspection image and standard status template image corresponding to the target cabinet. The second acquisition module is used to acquire the device sub-region block corresponding to each sensitive device information in the inspection image if the sequence length of the inspection port status sequence is less than the sequence threshold corresponding to the standard port status sequence. The third acquisition module is used to acquire a first sub-region block in the device sub-region block based on the standard state template diagram, wherein, based on the standard state template diagram, the similarity corresponding to each device sub-region block is acquired, and the first sub-region block in the device sub-region block with a similarity greater than a similarity threshold is acquired. The clustering module is used to obtain the coordinates of the foreground points based on each of the first sub-region blocks, and to perform a clustering operation on the coordinates of the foreground points to obtain the clustering results; The determination module is used to determine whether there is an abnormal equipment status in the target cabinet based on the clustering results. The target cluster corresponding to the clustering results is determined based on the number of points in each cluster of the clustering results and a preset foreground point threshold. If the number of clusters in the target cluster is greater than the preset number of clusters, it is determined that there is an abnormal equipment status in the target cabinet, and the corresponding equipment status alarm information of the target cabinet is output.
7. An equipment inspection terminal, characterized in that, The equipment inspection terminal includes: a memory, a processor, and a equipment inspection program stored in the memory and executable on the processor. When the equipment inspection program is executed by the processor, it implements the steps of the equipment inspection method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a device inspection program, which, when executed by a processor, implements the steps of the device inspection method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Abnormal state detection method
CN109583599A
Log data exception detection method and device, terminal and medium
CN110321371A