Method and device for querying equipment configuration cable information in cabinet
By identifying and sorting cables in the cabinet and summarizing the indicator status information, the problem of inefficient cable configuration management in the data center is solved, and fast and accurate query and management of cable information is achieved.
Patent Information
- Application Number
- CN202410742917.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2025-05-13
AI Technical Summary
The lack of effective query methods for IT equipment cable configuration management in data centers, which leads to time-consuming and labor-intensive manual recording and verification, especially in equipment relocation and emergency management.
The camera takes the cable image at the interface of the internal equipment of the cabinet, identify and determine the diameter and interface position of each cable, combine the diameter of the network cable as a reference, classify the cable types, and summarize the cable information in the computer room through the indicator status recognition results.
It realizes the rapid and accurate query and management of cable information of equipment in the cabinet, reduces manual operation time, and improves the efficiency of equipment relocation and emergency management.
Smart Images

Figure CN119991768A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and in particular to a method and device for querying cable information of equipment configuration in a cabinet. Background Art
[0002] At present, a large number of IT equipment are deployed in data centers to support the operation of business systems, such as rack servers and storage devices, which are deployed in dedicated IT cabinets in data centers. With the rapid development of IT technology, the scale of IT equipment deployment in data centers has shown a high-speed growth trend, with both the number and scale reaching tens of thousands of units. The refined management of various resources in the computer room is particularly important. The number of equipment accessories may be several times that of the equipment, which puts higher requirements on the management of equipment and accessories, and brings great challenges to the cable configuration management of IT equipment in data centers.
[0003] Currently, there is no good way to query the cable configuration of IT equipment in data centers, and manual work is required to record and check the cable types on site. In the case of refined equipment management and equipment emergency, it is necessary to have a detailed understanding of the equipment cable configuration, otherwise it will take a lot of time and manpower to review the cable configuration. In addition, it is also necessary to obtain detailed cable configuration information before relocating a large number of equipment. The cables required for the equipment need to be deployed in advance at the new location, which can greatly shorten the equipment relocation cycle and ensure rapid business recovery. Summary of the invention
[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method and device for querying cable information of equipment configuration in a cabinet, which can at least partially solve the problems in the prior art.
[0005] On the one hand, the present invention provides a method for querying cable information of equipment configuration in a cabinet, comprising:
[0006] Acquire a cable shot image at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shot image;
[0007] Obtaining the diameter of each cable and the position of each interface in the local area image, and comparing the diameter of each cable with the diameter of the network cable as a reference, to obtain the cable type corresponding to each cable;
[0008] The indicator light status of the interface corresponding to each interface position is identified based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, and the indicator light status identification result corresponding to each cable is obtained. The cable summary information of all cabinets in the computer room is determined based on the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0009] The cable image is obtained by photographing with a camera; accordingly, the local area image including all cables and all interfaces of the corresponding device is determined according to the interface positions of each device in the cable image, including:
[0010] In response to the user performing a frame selection operation on the cable shooting image according to the position of each device interface in the camera management background, a local area image including all cables and all interfaces of the corresponding device is obtained.
[0011] The comparison between the diameter of each cable and the diameter of each cable is performed based on the network cable diameter to obtain the cable type corresponding to each cable, including:
[0012] Determine the cable type corresponding to the first target cable whose diameter is greater than the diameter of the network cable and falls within a first preset value range as a power cable;
[0013] Determine the cable type corresponding to the second target cable whose diameter is smaller than the diameter of the network cable and falls within a second preset value range as an optical fiber cable;
[0014] The cable types corresponding to the remaining cables that are neither power cables nor optical fiber cables are determined to be network cables.
[0015] The step of identifying the indicator light state of the interface corresponding to each interface position based on the reference indicator light state of the interface in normal state corresponding to each cable type to obtain the indicator light state identification result corresponding to each cable includes:
[0016] If it is determined that the cable type is the power cable, then the reference indicator light state of the interface corresponding to it in a normal state is that a single indicator light is always on; correspondingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cable is connected is not that a single indicator light is always on, then it is determined that the indicator light state identification result corresponding to the cable connected to the power cable is abnormal;
[0017] If it is determined that the cable type is the optical fiber cable, then the reference indicator light state of the interface corresponding to it in a normal state is that a single indicator light is always on; accordingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cable is connected is not that one indicator light is always on, and / or that another indicator light is not flashing irregularly, then it is determined that the indicator light state identification result corresponding to the cable connected to the optical fiber cable is abnormal;
[0018] If it is determined that the cable type is the network cable, the corresponding benchmark indicator light state of the interface in normal state is that a single indicator light flashes irregularly; correspondingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the network cable is connected is not that a single indicator light flashes irregularly, then the indicator light state identification result corresponding to the cable connected to the network cable is determined to be abnormal.
[0019] The computer room includes multiple cabinets, and each cabinet corresponds to at least one camera to respectively capture images of cables at each device interface; accordingly, the cable summary information of all cabinets in the computer room is determined according to the identification results of the cable type corresponding to each cable and the indicator light state corresponding to each cable, including:
[0020] Summarize the cable information corresponding to each device interface to obtain first aggregated cable information;
[0021] Aggregating the first aggregated cable information corresponding to each camera to obtain second aggregated cable information;
[0022] The second aggregated cable information corresponding to each cabinet is aggregated to obtain the cable aggregated information of all cabinets in the computer room.
[0023] Wherein, before the step of obtaining the diameter of each cable and the position of each interface in the local area image, the method for querying cable information of equipment configuration in the cabinet further includes:
[0024] The local area image is subjected to resolution reduction processing, and subsequent steps are performed using the local area image after the resolution reduction processing.
[0025] Among them, the image recognition step involved in the method for querying the cable information of the equipment configuration in the cabinet is executed in the local camera that takes the image, and the information aggregation step involved in the method for querying the cable information of the equipment configuration in the cabinet is executed in the server that manages the camera.
[0026] On the one hand, the present invention provides a device for querying cable information of equipment configuration in a cabinet, comprising:
[0027] A determination unit, configured to obtain a cable shot image at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device in the cable shot image according to the position of each device interface;
[0028] An acquisition unit, used to acquire the diameter of each cable and the position of each interface in the local area image, and compare the diameter of each cable with the diameter of the network cable as a reference to obtain the cable type corresponding to each cable;
[0029] The query unit is used to identify the indicator light status of the interface corresponding to each interface position based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, obtain the indicator light status identification result corresponding to each cable, and determine the cable summary information of all cabinets in the computer room according to the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0030] In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein:
[0031] The processor and the memory communicate with each other via the bus;
[0032] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following method:
[0033] Acquire a cable shot image at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shot image;
[0034] Obtaining the diameter of each cable and the position of each interface in the local area image, and comparing the diameter of each cable with the diameter of the network cable as a reference, to obtain the cable type corresponding to each cable;
[0035] The indicator light status of the interface corresponding to each interface position is identified based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, and the indicator light status identification result corresponding to each cable is obtained. The cable summary information of all cabinets in the computer room is determined based on the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0036] An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
[0037] The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the following method:
[0038] Acquire a cable shot image at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shot image;
[0039] Obtaining the diameter of each cable and the position of each interface in the local area image, and comparing the diameter of each cable with the diameter of the network cable as a reference, to obtain the cable type corresponding to each cable;
[0040] The indicator light status of the interface corresponding to each interface position is identified based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, and the indicator light status identification result corresponding to each cable is obtained. The cable summary information of all cabinets in the computer room is determined based on the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0041] The embodiments of the present invention provide a method and device for querying cable information of equipment configuration in a cabinet, obtain cable images at the interfaces of each device inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device according to the interface positions of each device in the cable images; obtain the diameter of each cable and each interface position in the local area image, and compare the diameter of each cable with the diameter of each cable based on the diameter of the network cable to obtain the cable type corresponding to each cable; identify the indicator light state of the interface corresponding to each interface position based on the reference indicator light state of the interface in normal state corresponding to each cable type, and obtain the indicator light state identification result corresponding to each cable; determine the cable summary information of all cabinets in the computer room according to the cable type corresponding to each cable and the indicator light state identification result corresponding to each cable, so as to accurately and efficiently query the cable information of the equipment configuration in the cabinet, and improve the image recognition efficiency through the recognition and processing of the local area image. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0043] Figure 1 The present invention is a flowchart of a method for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention.
[0044] Figure 2 It is a schematic diagram illustrating an image of cables in a cabinet provided by an embodiment of the present invention.
[0045] Figure 3 It is a flowchart of a method for querying cable information of equipment configuration in a cabinet provided by another embodiment of the present invention.
[0046] Figure 4 The present invention is a schematic diagram of the structure of a device for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention.
[0047] Figure 5 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.
[0049] Figure 1 FIG. 1 is a flow chart of a method for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention. Figure 1 As shown, the method for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention includes:
[0050] Step S1: acquiring a cable shot image at each device interface inside the cabinet, and determining a local area image including all cables and all interfaces of the corresponding device in the cable shot image according to the position of each device interface.
[0051] Step S2: Obtain the diameter of each cable and each interface position in the local area image, and compare the diameter of each cable with the diameter of the network cable as a reference to obtain the cable type corresponding to each cable.
[0052] Step S3: Identify the indicator light status of the interface corresponding to each interface position based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, and obtain the indicator light status identification result corresponding to each cable, and determine the cable summary information of all cabinets in the computer room based on the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0053] In the above step S1, the device obtains cable images at the interfaces of each device inside the cabinet, and determines the local area images of all cables and all interfaces of the corresponding device in the cable images according to the positions of the interfaces of each device. The device can be a computer device that executes the method, for example, it can include a camera and / or a server that manages the camera. It should be noted that the information collected in the embodiments of the present invention is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0054] Provide users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0055] Multiple cameras can be deployed inside the cabinet. The camera deployment position is determined by the cable deployment position at the device interface. All cables at the device interface need to be included in the cable shooting image of the camera. To ensure clear and complete imaging, each cabinet requires one or more cameras. The camera position or number corresponds to the cabinet position or number. Figure 2 As shown, taking the example of a cabinet requiring two cameras, the description is as follows: the cable image corresponding to camera A is shown in the upper dotted box, and the cable image corresponding to camera B is shown in the lower dotted box.
[0056] The cable images taken by camera A and camera B can cover all cables at the device interfaces of the cabinet, and the cables in the cabinet that are not at the device interfaces (i.e. Figure 2 The cables between the cabinet frame and the outermost layer (the cables between the cabinet frame) and the cables between cabinets are no longer within the scope of the present invention. The following description will take the cable image taken by camera A as an example (i.e., the dotted box area corresponding to A). Each device has an interface for connecting cables, and these interfaces are usually concentrated in an area of the device, which is the local area image corresponding to the device.
[0057] The cable image is obtained by photographing with a camera; accordingly, the local area image including all cables and all interfaces of the corresponding device is determined according to the position of each device interface in the cable image, including:
[0058] In response to the user's frame selection operation on the cable image according to the position of each device interface in the camera management background, a local area image containing all cables and all interfaces of the corresponding device is obtained. The camera management background can uniformly manage all cameras arranged in the machine room, which can be achieved by the user manually operating the cable image through the human-computer interaction interface.
[0059] Taking device 1 as an example, if the user confirms that the device interface position is at the location of the "local area image", the user can use the mouse to select a box at the corresponding position. The area covered by the box needs to cover all device interface positions, so that the "local area image" in device 1 is obtained.
[0060] The method of the present invention only needs to perform recognition processing on the local area image, without considering other area images, including area images other than the local area image in each device, and area images between devices. This can significantly reduce the amount of image recognition calculations and improve the execution efficiency of the method of the present invention.
[0061] In the above step S2, the device obtains the diameter of each cable and the position of each interface in the local area image, and compares the diameter of each cable with the diameter of each cable based on the network cable diameter to obtain the cable type corresponding to each cable. The local area image corresponding to each device includes all cables and all interfaces connected to the device, and the diameter of each cable and the position of each interface are identified by cable features and interface features. The comparison of the diameter of each cable with the diameter of each cable based on the network cable diameter to obtain the cable type corresponding to each cable includes:
[0062] Determine the cable type corresponding to the first target cable whose diameter is greater than the diameter of the network cable and falls within a first preset value range as a power cable;
[0063] Determine the cable type corresponding to the second target cable whose diameter is smaller than the diameter of the network cable and falls within a second preset value range as an optical fiber cable;
[0064] The cable types corresponding to the remaining cables that are neither power cables nor optical cables are determined as network cables. There are three types of cables commonly used by devices, namely power cables, network cables, and optical cables. The types and quantities of cables used vary according to the service types of the devices. Generally, two power cables are used, 2-4 network cables are used, and 0-4 optical cables are used. Since the diameter of the network cable is between the diameter of the power cable and the diameter of the optical cable, cables thicker than the diameter of the network cable can be directly determined as power cables, and cables thinner than the diameter of the network cable can be directly determined as optical cables. Therefore, the diameter of the network cable can be used as the basis for diameter comparison calculation. The actual value of the diameter of the network cable can be mapped to the image to obtain the diameter of the network cable represented by the number of pixels. Each cable is numerically compared with the diameter of the network cable. The first preset numerical range and the second preset numerical range can be set independently according to actual conditions, and can be set with reference to the diameter of the power cord and the diameter of the optical fiber respectively. Comparing data through the first preset numerical range and the second preset numerical range can help avoid errors caused by differences in network cable batches and specific models, that is, the same network cable may have slight differences in diameter due to different supply batches. By setting the first preset numerical range and the second preset numerical range, the impact of the above errors can be avoided.
[0065] In the above step S3, the device identifies the indicator light state of the interface corresponding to each interface position based on the reference indicator light state of the interface in normal state corresponding to each cable type, obtains the indicator light state identification result corresponding to each cable, and determines the cable summary information of all cabinets in the computer room according to the cable type corresponding to each cable and the indicator light state identification result corresponding to each cable. The identification of the indicator light state of the interface corresponding to each interface position based on the reference indicator light state of the interface in normal state corresponding to each cable type, and obtaining the indicator light state identification result corresponding to each cable, includes:
[0066] If it is determined that the cable type is the power cord, the corresponding benchmark indicator light state of the interface in normal state is that a single indicator light is always on; accordingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cord is connected is not that a single indicator light is always on, then the indicator light state identification result corresponding to the cable connected to the power cord is determined to be abnormal; if it is determined that the indicator light state of the interface corresponding to the interface position where the power cord is connected is that a single indicator light is always on, then the indicator light state identification result corresponding to the cable connected to the power cord is determined to be normal.
[0067] If it is determined that the cable type is the optical fiber cable, then the corresponding reference indicator light state of the interface in normal state is that a single indicator light is always on; accordingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cable is connected is not that one indicator light is always on, and / or that another indicator light is not flashing irregularly, then the indicator light state identification result corresponding to the cable connected to the optical fiber cable is determined to be abnormal; if it is determined that the indicator light state of the interface corresponding to the interface position where the power cable is connected is that one indicator light is always on and another indicator light is flashing irregularly, then the indicator light state identification result corresponding to the cable connected to the optical fiber cable is determined to be normal.
[0068] If it is determined that the cable type is the network cable, then the reference indicator state of the interface corresponding to it in normal state is that a single indicator light flashes irregularly; accordingly, if it is determined that the indicator state of the interface corresponding to the interface position where the network cable is connected is not that a single indicator light flashes irregularly, then the indicator state identification result corresponding to the cable connected to the network cable is determined to be abnormal. If it is determined that the indicator state of the interface corresponding to the interface position where the network cable is connected is that a single indicator light flashes irregularly, then the indicator state identification result corresponding to the cable connected to the network cable is determined to be normal.
[0069] The computer room includes multiple cabinets, and each cabinet corresponds to at least one camera to respectively capture images of cables at each device interface; accordingly, the cable summary information of all cabinets in the computer room is determined according to the identification results of the cable type corresponding to each cable and the indicator light state corresponding to each cable, including:
[0070] Summarize the cable information corresponding to each device interface to obtain first aggregated cable information; Figure 2As shown, the first summary cable information includes the sum of the cable summary information corresponding to devices 1 to 4. Taking device 1 as an example, the cable summary information corresponding to device 1 is the number of power cables, the number of network cables, the number of optical fiber cables, the number of abnormal cables in the power cables and the corresponding number, the number of abnormal cables in the network cables and the corresponding number, and the number of abnormal cables in the optical fiber cables. The corresponding first summary cable information is the number of power cables, the number of network cables, the number of optical fiber cables, the number of abnormal cables in the power cables and the corresponding number, the number of abnormal cables in the network cables and the corresponding number, and the number of abnormal cables in the optical fiber cables in the shooting area of camera A.
[0071] The first aggregated cable information corresponding to each camera is aggregated to obtain the second aggregated cable information; Figure 2 As shown, the second summarized cable information includes the sum of the first summarized cable information corresponding to camera A and camera B in the cabinet respectively, that is, the second summarized cable information is the number of power cables, the number of network cables, and the number of optical fiber cables in the cabinet, the number of abnormal cables in the power cables and the corresponding number, the number of abnormal cables in the network cables and the corresponding number, and the number of abnormal cables in the optical fiber cables and the corresponding number.
[0072] The second aggregated cable information corresponding to each cabinet is aggregated to obtain the cable aggregated information of all cabinets in the computer room. If there are three cabinets in the computer room, the sum of the second aggregated cable information corresponding to the three cabinets is used as the cable aggregated information of all cabinets in the computer room.
[0073] The method of the present invention can also identify the position coordinate information of each cable and record the position coordinate information of each cable. If the position coordinate information of a cable is found to have changed in subsequent image recognition results, it means that someone has replaced the cable, which can play a role in monitoring the cables.
[0074] like Figure 3 As shown, before the step of obtaining the diameter of each cable and the position of each interface in the local area image, the method for querying cable information of equipment configuration in the cabinet further includes:
[0075] The local area image is processed with a reduced resolution, and subsequent steps are performed using the local area image after the processing with the reduced resolution. Since the image recognition method used in the present invention does not require a high image resolution, even if the image resolution of the local area image is reduced, image recognition can still be performed more accurately, and the efficiency of the method in the camera can be greatly improved.
[0076] An image downsampling algorithm can be used to reduce the resolution of the image in the local area.
[0077] The method of the present invention can be executed in a server that manages cameras. Accordingly, the cable images captured by each camera at each device interface inside the cabinet can be sent to the server that manages cameras, and the camera number that sends the image can be recorded. The server that manages cameras will then continue to execute subsequent steps.
[0078] The method of the present invention can be executed in a local camera corresponding to the cable shooting image. Accordingly, after obtaining the indicator light status identification result corresponding to each cable, a target camera with the most idle resources can be selected to receive the cable type corresponding to each cable in each camera and the indicator light status identification result corresponding to each cable sent by other cameras. The target camera determines the cable summary information of all cabinets in the computer room according to the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0079] The steps of image recognition involved in the method for querying the information of cables configured in the equipment in the cabinet are executed in the local camera that captures the image, and the steps of information aggregation involved in the method for querying the information of cables configured in the cabinet are executed in the server that manages the camera. That is, the steps before determining the cable aggregation information of all cabinets in the computer room according to the identification results of the cable type corresponding to each cable and the indicator light status corresponding to each cable are all executed in the local camera, and then each camera sends the identification results of the cable type corresponding to each cable and the indicator light status corresponding to each cable to the server that manages the camera, and the server that manages the camera records the camera number that sends the identification results of the cable type corresponding to each cable and the indicator light status corresponding to each cable, and the server that manages the camera determines the cable aggregation information of all cabinets in the computer room according to the identification results of the cable type corresponding to each cable and the indicator light status corresponding to each cable.
[0080] By respectively executing the corresponding steps through the camera and the server managing the camera, the overall execution efficiency of the method can be further improved.
[0081] The method for querying cable information of equipment configuration in a cabinet provided by the embodiment of the present invention has the following beneficial technical effects:
[0082] 1. The present invention solves the problem of automatic management of different types of cables. Different types of cables are counted and managed through feature recognition. There is no need to conduct regular manual statistics on cable types and quantities. The types and connection conditions of various cables in the equipment can be obtained in real time through images, thus realizing refined and intelligent resource management.
[0083] 2. The present invention solves the problem of difficulty in recording and planning various types of cables during large-scale equipment migration. There is no need to manually record cable types before equipment migration. The cable categories and status can be acquired and analyzed by cameras, and the real-time status of the cables can be counted. After equipment migration, managers can restore the connection of corresponding cables according to the cable deployment situation, and quickly restore the business system, saving a lot of time and labor costs.
[0084] 3. The present invention can monitor the cable connection status in real time and set appropriate image verification time rules. When the cable interface indicator light flashes abnormally or goes out, the cable category and usage consistency can be verified.
[0085] The embodiment of the present invention provides a method for querying cable information of equipment configuration in a cabinet, which obtains cable shooting images at each device interface inside the cabinet, and determines a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shooting image; obtains the diameter of each cable and each interface position in the local area image, and compares the diameter of each cable with the diameter of each cable based on the network cable diameter to obtain the cable type corresponding to each cable; identifies the indicator light state of the interface corresponding to each interface position based on the reference indicator light state of the interface in normal state corresponding to each cable type, and obtains the indicator light state identification result corresponding to each cable; determines the cable summary information of all cabinets in the computer room according to the cable type corresponding to each cable and the indicator light state identification result corresponding to each cable, so as to accurately and efficiently query the cable information of the equipment configuration in the cabinet, and improves the image recognition efficiency through the recognition processing of the local area image.
[0086] Furthermore, the cable image is obtained by photographing with a camera; accordingly, the local area image containing all cables and all interfaces of the corresponding device is determined according to the position of each device interface in the cable image, including:
[0087] In response to the user's frame selection operation on the cable image according to the position of each device interface in the camera management background, a local area image including all cables and all interfaces of the corresponding device is obtained. The above embodiment can be referred to for description and will not be repeated here.
[0088] The method for querying cable information of equipment configuration in a cabinet provided by the embodiment of the present invention further accurately determines the image of a local area, thereby effectively improving the efficiency of image recognition.
[0089] Furthermore, the network cable diameter is used as a reference to compare with the diameter of each cable to obtain the cable type corresponding to each cable, including:
[0090] The cable type corresponding to the first target cable whose diameter is greater than the diameter of the network cable and reaches a first preset value range is determined as a power cable; the description can be made with reference to the above embodiment and will not be repeated here.
[0091] The cable type corresponding to the second target cable whose diameter is smaller than the diameter of the network cable and reaches a second preset value range is determined to be an optical fiber cable; the description can be made with reference to the above embodiment and will not be repeated here.
[0092] The cable types corresponding to the remaining cables that are neither power cables nor optical fiber cables are determined to be network cables. The above embodiments can be referred to for description and will not be described in detail.
[0093] The method for querying cable information of equipment configuration in a cabinet provided by the embodiment of the present invention can accurately and efficiently determine the cable type corresponding to each cable.
[0094] Further, the indicator light state of the interface corresponding to each interface position is identified based on the reference indicator light state of the interface in normal state corresponding to each cable type, to obtain the indicator light state identification result corresponding to each cable, including:
[0095] If it is determined that the cable type is the power cord, the corresponding reference indicator light state of the interface in normal state is that a single indicator light is always on; correspondingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cord is connected is not that a single indicator light is always on, then the indicator light state identification result corresponding to the cable connected to the power cord is determined to be abnormal; please refer to the above-mentioned embodiment for description and no further details will be given.
[0096] If it is determined that the cable type is the optical fiber cable, the corresponding reference indicator light state of the interface in normal state is that a single indicator light is always on; correspondingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cord is connected is not that one indicator light is always on, and / or that another indicator light is not flashing irregularly, then it is determined that the indicator light state identification result corresponding to the cable connected to the optical fiber cable is abnormal; please refer to the above-mentioned embodiment for description and no further details will be given.
[0097] If it is determined that the cable type is the network cable, then the reference indicator state of the interface corresponding to it in a normal state is that a single indicator light flashes irregularly; accordingly, if it is determined that the indicator state of the interface corresponding to the interface position connected to the network cable is not that a single indicator light flashes irregularly, then it is determined that the indicator state identification result corresponding to the cable connected to the network cable is abnormal. The above-mentioned embodiment can be referred to for explanation and will not be repeated here.
[0098] The method for querying cable information of equipment configuration in a cabinet provided by the embodiment of the present invention can accurately and efficiently determine the indicator light status identification result corresponding to each cable.
[0099] Furthermore, the computer room includes a plurality of cabinets, and each cabinet corresponds to at least one camera that respectively captures images of cables at interfaces of various devices; accordingly, the cable summary information of all cabinets in the computer room is determined according to the identification results of the cable type corresponding to each cable and the indicator light status corresponding to each cable, including:
[0100] The cable information corresponding to each device interface is aggregated to obtain first aggregated cable information; the description may refer to the above embodiment and will not be repeated here.
[0101] The first aggregated cable information corresponding to each camera is aggregated to obtain the second aggregated cable information; the description may refer to the above embodiment and will not be repeated here.
[0102] The second aggregated cable information corresponding to each cabinet is aggregated to obtain the cable aggregated information of all cabinets in the computer room.
[0103] The method for querying cable information of equipment configuration in a cabinet provided by the embodiment of the present invention can accurately and comprehensively query the cable summary information of all cabinets in a computer room.
[0104] Furthermore, before the step of acquiring the diameter of each cable and the position of each interface in the local area image, the method for querying cable information of equipment configuration in the cabinet further includes:
[0105] The local area image is subjected to resolution reduction processing, and subsequent steps are performed using the local area image after the resolution reduction processing. The above-mentioned embodiment can be referred to for description, and no further details are given.
[0106] The method for querying cable information of equipment configuration in a cabinet provided by the embodiment of the present invention greatly improves the recognition efficiency executed in the camera without affecting the image recognition accuracy.
[0107] Furthermore, the steps of image recognition involved in the method for querying cable information of equipment configuration in the cabinet are performed in the local camera that captures the image, and the steps of information aggregation involved in the method for querying cable information of equipment configuration in the cabinet are performed in the server that manages the camera. The above embodiments can be referred to for explanation and will not be repeated here.
[0108] The method for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention can further improve the overall execution efficiency of the method by respectively executing corresponding steps through a camera and a server that manages the camera.
[0109] It should be noted that the method for querying cable information of equipment configuration in a cabinet provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the method for querying cable information of equipment configuration in a cabinet.
[0110] Figure 4 FIG. 1 is a schematic diagram of a device for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention. Figure 4 As shown, the device for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention includes a determining unit 401, an acquiring unit 402 and a querying unit 403, wherein:
[0111] The determination unit 401 is used to obtain the cable shooting images at each device interface inside the cabinet, and determine the local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shooting image; the acquisition unit 402 is used to obtain the diameter of each cable and each interface position in the local area image, and compare the diameter of each cable with the diameter of each cable based on the network cable diameter to obtain the cable type corresponding to each cable; the query unit 403 is used to identify the indicator light status of the interface corresponding to each interface position based on the benchmark indicator light status of the interface in normal state corresponding to each cable type, and obtain the indicator light status identification result corresponding to each cable, and determine the cable summary information of all cabinets in the computer room according to the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0112] Specifically, the determination unit 401 in the device is used to obtain cable images at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable image; the acquisition unit 402 is used to obtain the diameter of each cable and each interface position in the local area image, and compare the diameter of each cable with the diameter of each cable based on the network cable diameter to obtain the cable type corresponding to each cable; the query unit 403 is used to identify the indicator light status of the interface corresponding to each interface position based on the benchmark indicator light status of the interface in normal state corresponding to each cable type, and obtain the indicator light status identification result corresponding to each cable, and determine the cable summary information of all cabinets in the computer room according to the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0113] The cable information query device for equipment configuration in a cabinet provided by an embodiment of the present invention obtains cable shooting images at each device interface inside the cabinet, and determines a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shooting image; obtains the diameter of each cable and each interface position in the local area image, and compares the diameter of each cable with the diameter of each cable based on the network cable diameter to obtain the cable type corresponding to each cable; identifies the indicator light state of the interface corresponding to each interface position based on the reference indicator light state of the interface in normal state corresponding to each cable type, and obtains the indicator light state identification result corresponding to each cable; determines the cable summary information of all cabinets in the computer room according to the cable type corresponding to each cable and the indicator light state identification result corresponding to each cable, so as to accurately and efficiently query the cable information of the equipment configuration in the cabinet, and improves the image recognition efficiency through the recognition and processing of the local area image.
[0114] Further, the cable image is obtained by photographing with a camera; accordingly, the determining unit 401 is specifically used for:
[0115] In response to the user performing a frame selection operation on the cable shooting image according to the position of each device interface in the camera management background, a local area image including all cables and all interfaces of the corresponding device is obtained.
[0116] The device for querying cable information of equipment configuration in a cabinet provided by the embodiment of the present invention can further accurately determine the image of a local area, thereby effectively improving the efficiency of image recognition.
[0117] Furthermore, the acquisition unit 402 is specifically configured to:
[0118] Determine the cable type corresponding to the first target cable whose diameter is greater than the diameter of the network cable and falls within a first preset value range as a power cable;
[0119] Determine the cable type corresponding to the second target cable whose diameter is smaller than the diameter of the network cable and falls within a second preset value range as an optical fiber cable;
[0120] The cable types corresponding to the remaining cables that are neither power cables nor optical fiber cables are determined to be network cables.
[0121] The device for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention can accurately and efficiently determine the cable type corresponding to each cable.
[0122] Furthermore, the query unit 403 is specifically used for:
[0123] If it is determined that the cable type is the power cable, then the reference indicator light state of the interface corresponding to it in a normal state is that a single indicator light is always on; correspondingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cable is connected is not that a single indicator light is always on, then it is determined that the indicator light state identification result corresponding to the cable connected to the power cable is abnormal;
[0124] If it is determined that the cable type is the optical fiber cable, then the reference indicator light state of the interface corresponding to it in a normal state is that a single indicator light is always on; accordingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cable is connected is not that one indicator light is always on, and / or that another indicator light is not flashing irregularly, then it is determined that the indicator light state identification result corresponding to the cable connected to the optical fiber cable is abnormal;
[0125] If it is determined that the cable type is the network cable, the corresponding benchmark indicator light state of the interface in normal state is that a single indicator light flashes irregularly; correspondingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the network cable is connected is not that a single indicator light flashes irregularly, then the indicator light state identification result corresponding to the cable connected to the network cable is determined to be abnormal.
[0126] The device for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention can accurately and efficiently determine the indicator light status identification result corresponding to each cable.
[0127] Furthermore, the computer room includes a plurality of cabinets, and each cabinet corresponds to at least one camera for respectively photographing images of cables at interfaces of each device; accordingly, the query unit 403 is specifically used for:
[0128] Summarize the cable information corresponding to each device interface to obtain first aggregated cable information;
[0129] Aggregating the first aggregated cable information corresponding to each camera to obtain second aggregated cable information;
[0130] The second aggregated cable information corresponding to each cabinet is aggregated to obtain the cable aggregated information of all cabinets in the computer room.
[0131] The device for querying cable information of equipment configuration in a cabinet provided by the embodiment of the present invention can accurately and comprehensively query the cable summary information of all cabinets in a computer room.
[0132] Furthermore, before the step of acquiring the diameter of each cable and the position of each interface in the local area image, the in-cabinet equipment configuration cable information query device is further used for:
[0133] The local area image is subjected to resolution reduction processing, and subsequent steps are performed using the local area image after the resolution reduction processing.
[0134] The device for querying cable information of equipment configuration in a cabinet provided by the embodiment of the present invention greatly improves the recognition efficiency performed in the camera without affecting the image recognition accuracy.
[0135] Furthermore, the steps of image recognition involved in the device for querying cable information of equipment configured in the cabinet are executed in a local camera that captures images, and the steps of information aggregation involved in the device for querying cable information of equipment configured in the cabinet are executed in a server that manages the camera.
[0136] The device for querying cable information of equipment configuration in a cabinet provided by an embodiment of the present invention can further improve the overall execution efficiency of the method by executing corresponding steps respectively through a camera and a server for managing the camera.
[0137] The embodiment of the present invention provides an embodiment of a device for querying cable information of equipment configuration in a cabinet, which can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions are not repeated here, and reference can be made to the detailed description of the above-mentioned method embodiments.
[0138] Figure 5 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention, such as Figure 5 As shown, the electronic device includes: a processor (processor) 501, a memory (memory) 502 and a bus 503;
[0139] The processor 501 and the memory 502 communicate with each other via a bus 503;
[0140] The processor 501 is used to call the program instructions in the memory 502 to execute the methods provided by the above method embodiments, for example, including:
[0141] Acquire a cable shot image at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shot image;
[0142] Obtaining the diameter of each cable and the position of each interface in the local area image, and comparing the diameter of each cable with the diameter of the network cable as a reference, to obtain the cable type corresponding to each cable;
[0143] The indicator light status of the interface corresponding to each interface position is identified based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, and the indicator light status identification result corresponding to each cable is obtained. The cable summary information of all cabinets in the computer room is determined based on the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0144] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the methods provided by the above method embodiments, for example, including:
[0145] Acquire a cable shot image at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shot image;
[0146] Obtaining the diameter of each cable and the position of each interface in the local area image, and comparing the diameter of each cable with the diameter of the network cable as a reference, to obtain the cable type corresponding to each cable;
[0147] The indicator light status of the interface corresponding to each interface position is identified based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, and the indicator light status identification result corresponding to each cable is obtained. The cable summary information of all cabinets in the computer room is determined based on the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0148] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables the computer to execute the methods provided by the above method embodiments, for example, including:
[0149] Acquire a cable shot image at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shot image;
[0150] Obtaining the diameter of each cable and the position of each interface in the local area image, and comparing the diameter of each cable with the diameter of the network cable as a reference, to obtain the cable type corresponding to each cable;
[0151] The indicator light status of the interface corresponding to each interface position is identified based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, and the indicator light status identification result corresponding to each cable is obtained. The cable summary information of all cabinets in the computer room is determined based on the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
[0152] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0153] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does 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.
[0157] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for querying cable information of equipment configuration in a cabinet, characterized in that: include: Acquire a cable shot image at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device according to the position of each device interface in the cable shot image; Obtaining the diameter of each cable and the position of each interface in the local area image, and comparing the diameter of each cable with the diameter of the network cable as a reference, to obtain the cable type corresponding to each cable; The indicator light status of the interface corresponding to each interface position is identified based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, and the indicator light status identification result corresponding to each cable is obtained. The cable summary information of all cabinets in the computer room is determined based on the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
2. The method for querying cable information of equipment configuration in a cabinet according to claim 1, characterized in that: The cable image is obtained by photographing with a camera; accordingly, the local area image including all cables and all interfaces of the corresponding device is determined according to the position of each device interface in the cable image, including: In response to the user performing a frame selection operation on the cable shooting image according to the position of each device interface in the camera management background, a local area image including all cables and all interfaces of the corresponding device is obtained.
3. The method for querying cable information of equipment configuration in a cabinet according to claim 1, characterized in that: The network cable diameter is used as a reference to compare with the diameter of each cable to obtain the cable type corresponding to each cable, including: Determine the cable type corresponding to the first target cable whose diameter is greater than the diameter of the network cable and falls within a first preset value range as a power cable; Determine the cable type corresponding to the second target cable whose diameter is smaller than the diameter of the network cable and falls within a second preset value range as an optical fiber cable; The cable types corresponding to the remaining cables that are neither power cables nor optical fiber cables are determined to be network cables.
4. The method for querying cable information of equipment configuration in a cabinet according to claim 3, characterized in that: The step of identifying the indicator light state of the interface corresponding to each interface position based on the reference indicator light state of the interface in the normal state corresponding to each cable type, and obtaining the indicator light state identification result corresponding to each cable, includes: If it is determined that the cable type is the power cable, then the reference indicator light state of the interface corresponding to it in a normal state is that a single indicator light is always on; correspondingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cable is connected is not that a single indicator light is always on, then it is determined that the indicator light state identification result corresponding to the cable connected to the power cable is abnormal; If it is determined that the cable type is the optical fiber cable, then the reference indicator light state of the interface corresponding to it in a normal state is that a single indicator light is always on; accordingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the power cable is connected is not that one indicator light is always on, and / or that another indicator light is not flashing irregularly, then it is determined that the indicator light state identification result corresponding to the cable connected to the optical fiber cable is abnormal; If it is determined that the cable type is the network cable, the corresponding benchmark indicator light state of the interface in normal state is that a single indicator light flashes irregularly; correspondingly, if it is determined that the indicator light state of the interface corresponding to the interface position where the network cable is connected is not that a single indicator light flashes irregularly, then the indicator light state identification result corresponding to the cable connected to the network cable is determined to be abnormal.
5. The method for querying cable information of equipment configuration in a cabinet according to claim 1, characterized in that: The computer room includes multiple cabinets, and each cabinet corresponds to at least one camera to respectively capture images of cables at each device interface; accordingly, the cable summary information of all cabinets in the computer room is determined according to the identification results of the cable type corresponding to each cable and the indicator light state corresponding to each cable, including: Summarize the cable information corresponding to each device interface to obtain first aggregated cable information; Aggregating the first aggregated cable information corresponding to each camera to obtain second aggregated cable information; The second aggregated cable information corresponding to each cabinet is aggregated to obtain the cable aggregated information of all cabinets in the computer room.
6. The method for querying cable information of equipment configuration in a cabinet according to any one of claims 1 to 5, characterized in that: Before the step of acquiring the diameter of each cable and the position of each interface in the local area image, the method for querying cable information of equipment configuration in the cabinet further includes: The local area image is subjected to resolution reduction processing, and subsequent steps are performed using the local area image after the resolution reduction processing.
7. The method for querying cable information of equipment configuration in a cabinet according to any one of claims 1 to 5, characterized in that: The method for querying cable information of equipment configuration in the cabinet involves the step of image recognition which is executed in the local camera that captures the image, and the method for querying cable information of equipment configuration in the cabinet involves the step of information aggregation which is executed in the server that manages the camera.
8. A device for querying cable information of equipment configuration in a cabinet, characterized in that: include: A determination unit, configured to obtain a cable shot image at each device interface inside the cabinet, and determine a local area image containing all cables and all interfaces of the corresponding device in the cable shot image according to the position of each device interface; An acquisition unit, used to acquire the diameter of each cable and the position of each interface in the local area image, and compare the diameter of each cable with the diameter of the network cable as a reference to obtain the cable type corresponding to each cable; The query unit is used to identify the indicator light status of the interface corresponding to each interface position based on the benchmark indicator light status of the interface in normal status corresponding to each cable type, obtain the indicator light status identification result corresponding to each cable, and determine the cable summary information of all cabinets in the computer room according to the cable type corresponding to each cable and the indicator light status identification result corresponding to each cable.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.