A method and system for identifying the occupancy rate of internal cables in a wire slot based on image segmentation
By constructing a standardized representation of cable trays using image segmentation methods, and combining multi-channel segmentation and instance correction, the accuracy and stability issues of cable occupancy identification under mixed cable layouts and lighting interference are resolved, achieving stable extraction of individual cable regions and accurate calculation of actual occupancy.
Patent Information
- Application Number
- CN202610501197.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-16
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2046-04-16
AI Technical Summary
Existing technologies struggle to achieve precise segmentation and accurate occupancy calculation of cables within cable trays under conditions of mixed cable configurations and complex lighting interference, resulting in insufficient recognition accuracy and stability.
An image segmentation-based method is adopted to construct a standardized representation of the cable tray through perspective correction and scale calibration. Combined with multi-channel segmentation and instance correction mechanism, the cable area is extracted, and the outer diameter is estimated and the area is converted to calculate the occupancy rate of the cable tray.
Despite the presence of mixed cables of various specifications and lighting interference, stable extraction of individual cable areas and accurate occupancy calculation were achieved, improving the accuracy and consistency of identification and reducing the impact of shooting angle and uneven cable distribution.
Smart Images

Figure CN122391250B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a method and system for identifying the occupancy rate of cables inside cable trays based on image segmentation. Background Technology
[0002] Currently, in scenarios such as industrial control cabinets, communication cabinets, and building power distribution boxes, the cable density inside cable trays directly affects equipment operation safety and subsequent expansion capabilities. Therefore, it is typically necessary to detect and assess the cable occupancy within the cable trays. Existing technologies often employ manual visual inspection or simple image-based threshold segmentation, color clustering, and pixel area statistics methods to estimate cable occupancy, but the overall recognition accuracy and stability remain significantly insufficient.
[0003] For example, in the case of mixed cable configurations, cables with different outer diameters, colors, and sheath materials appear significantly different in images. Thin cables are easily overlooked, while thicker cables are prone to boundary adhesion when densely laid out. Simultaneously, the interior of cable trays often contains complex interferences such as reflections, shadows, and partial occlusions, making it difficult for segmentation methods based on single features to accurately extract complete cable regions. Furthermore, existing methods typically calculate occupancy directly based on pixel area, without considering differences in the actual outer diameter of the cables. This can easily lead to inaccurate occupancy estimations when the shooting angle changes or the cables are unevenly distributed.
[0004] Therefore, existing technologies cannot fully meet the needs for precise segmentation and accurate calculation of occupancy rates of cables inside cable trays under conditions of densely mixed multi-specification cables and complex lighting interference. Thus, there is an urgent need for a method that can still achieve instance-level cable separation and occupancy rate calculation based on outer diameter under conditions of mixed multi-specification cables, cable adhesion, and lighting interference, in order to improve the accuracy and stability of cable occupancy rate identification inside cable trays. Summary of the Invention
[0005] To address the aforementioned technical shortcomings, the purpose of this invention is to propose a method for identifying cable occupancy rates inside cable trays based on image segmentation. This method aims to solve the technical problem that existing methods, which mainly rely on pixel area statistics to estimate cable tray occupancy rates, are unable to accurately distinguish individual cables and calculate the actual occupancy rate, especially under conditions of mixed cable layouts and cables being pressed and overlapped together.
[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: The present invention provides a method for identifying the occupancy rate of cables inside a cable tray based on image segmentation.
[0007] The image segmentation-based method for identifying cable occupancy inside cable trays includes: Step S10: Obtain the target groove image, and perform the groove standardization representation construction task based on the target groove image using perspective correction and scale calibration mechanism, and output the groove standardization representation result; Step S20: Based on the standardized characterization results of the cable trays, a multi-channel segmentation mechanism is used to perform the cable region extraction task and output the cable segmentation results; Step S30: Based on the cable segmentation results, perform a preprocessing task using an instance correction mechanism and output the cable instance correction results; Step S40: Based on the cable instance correction results, use the outer diameter estimation and area conversion mechanism to perform the cable tray occupancy rate calculation task and output the cable occupancy rate calculation results; Step S50: Based on the cable occupancy rate calculation results, determine the credibility and generate the results, and output the occupancy rate identification results.
[0008] Preferably, the normalized characterization result of the slots includes pixel scale conversion factors. Pixel scale conversion factor satisfy: ;in, This is the actual inner width of the cable tray. The inner width in pixels of the cable groove in the target cable groove image; the estimated outer diameter of the i-th cable instance in the cable instance correction result. satisfy: ;in, Let be the radius estimate of the i-th cable instance, and s be the pixel scale conversion factor.
[0009] Preferably, step S10, which involves acquiring a target groove image, performing a groove standardization representation construction task based on the target groove image using perspective correction and scale calibration mechanisms, and outputting the groove standardization representation result, specifically includes: Step S101: Obtain the original image containing the target groove opening region, and perform lens distortion correction on the original image to obtain the corrected image; Step S102: Based on the feature points of the inner edge of the groove in the corrected image, obtain the homography mapping relationship, and perform perspective correction on the corrected image according to the homography mapping relationship to obtain the front view image of the groove; Step S103: Extract the effective internal region of the slot based on the front view image of the slot, and calculate the pixel scale conversion coefficient in combination with the actual inner width of the slot, and output the normalized characterization result of the slot; wherein, the normalized characterization result of the slot includes at least the front view image of the slot, the effective internal region of the slot, and the pixel scale conversion coefficient.
[0010] Preferably, step S20, which involves performing cable region extraction based on the standardized characterization results of the cable trays using a multi-channel segmentation mechanism and outputting the cable segmentation results, specifically includes: Step S201: Based on the front view image of the trough in the trough normalization characterization result, extract multi-channel input data including color information, brightness information, enhanced brightness information based on Retinex, gradient information based on Sobel operator, and reflective candidate information based on Bayes discrimination; Step S202: Perform multi-scale feature extraction and region segmentation processing based on the multi-channel input data to obtain the probability distribution of the cable region; Step S203: Based on the probability distribution of the cable area and combined with the effective internal area of the cable tray, the Markov-Bayes joint constraint method is used to perform regional constraints, and the cable segmentation result is output.
[0011] Preferably, in step S202, the step of performing multi-scale feature extraction and region segmentation processing based on the multi-channel input data to obtain the cable region probability distribution specifically includes: inputting the multi-channel input data into a segmentation network with an encoding and decoding structure to extract texture features and semantic features at different scales; performing fusion processing on the texture features and semantic features at different scales to obtain a fused feature map; generating cable body response information, cable boundary response information, and cable internal distance response information based on the fused feature map, and constructing the cable region probability distribution based on the cable body response information.
[0012] Preferably, step S30, which involves performing a preprocessing task based on the cable segmentation result using an instance correction mechanism and outputting the cable instance correction result, specifically includes: Step S301: Generate an initial cable mask based on the cable segmentation result, and perform constraint clipping on the initial cable mask using the effective internal area of the cable slot to obtain a restricted cable mask; Step S302: Based on the cable boundary response information and the cable internal distance response information, perform adhesive cable separation processing on the restricted cable mask to obtain an initial set of cable instances; Step S303: Perform broken segment connection and boundary correction processing based on the initial set of cable instances to obtain the cable instance correction result.
[0013] Preferably, step S40, which involves performing the cable tray occupancy rate calculation task based on the cable instance correction result using an outer diameter estimation and area conversion mechanism, and outputting the cable occupancy rate calculation result, specifically includes: Step S401: Perform radius estimation processing on each cable instance in the cable instance correction result to obtain the radius estimation value corresponding to each cable instance; Step S402: Calculate the estimated outer diameter of each cable instance based on the radius estimate and the pixel scale conversion factor, and calculate the cross-sectional area of each cable instance based on the estimated outer diameter of each cable instance. Step S403: Accumulate the cross-sectional areas corresponding to each cable instance, and perform a percentage conversion based on the net cross-sectional area of the cable tray to obtain the cable occupancy rate calculation result.
[0014] The present invention also provides a system for identifying cable occupancy inside a cable tray based on image segmentation, comprising: The standardized characterization construction module is used to acquire the target groove image, perform the groove standardized characterization construction task based on the target groove image using perspective correction and scale calibration mechanism, and output the groove standardized characterization result. The cable segmentation module is used to perform cable region extraction tasks based on the standardized characterization results of the cable grooves using a multi-channel segmentation mechanism, and output the cable segmentation results. The instance correction module is used to perform a preprocessing task based on the cable segmentation result using an instance correction mechanism, and output the cable instance correction result. The occupancy calculation module is used to perform the cable tray occupancy calculation task based on the cable instance correction result, using an outer diameter estimation and area conversion mechanism, and output the cable occupancy calculation result. The result generation module is used to determine the credibility and generate results based on the cable occupancy rate calculation results, and output the occupancy rate identification results.
[0015] The present invention also provides a cable occupancy rate identification device based on image segmentation inside a cable tray, comprising: a memory, a processor, and a cable occupancy rate identification program based on image segmentation inside a cable tray stored in the memory and executable on the processor. When the cable occupancy rate identification program based on image segmentation inside a cable tray is executed by the processor, the cable occupancy rate identification method based on image segmentation inside a cable tray is implemented.
[0016] The present invention also provides a computer program product, including an image segmentation-based cable occupancy rate identification program for cable trays, wherein the image segmentation-based cable occupancy rate identification program for cable trays implements the image segmentation-based cable occupancy rate identification method for cable trays when executed by a processor.
[0017] The beneficial effects of this invention are as follows: By constructing standardized characterization results of cable trays, and on this basis introducing multi-channel segmentation processing and cable instance correction mechanisms, this invention achieves effective differentiation of cables of different specifications, materials and colors. Even under conditions of multiple cables being attached, overlapping and reflecting light interference, it can still stably extract individual areas of cables, thereby avoiding the problem of incomplete identification caused by cable adhesion or missed detection of thin lines in traditional methods.
[0018] This invention estimates the outer diameter of cable instances and calculates the occupancy rate based on the cross-sectional area, transforming the simple pixel area statistics into a quantitative calculation method based on actual dimensions. This reduces the impact of changes in shooting angle and uneven cable distribution on the results, and improves the accuracy and consistency of cable occupancy rate identification results inside the cable tray. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating the first embodiment of a method for identifying cable occupancy rates inside cable trays based on image segmentation according to the present invention.
[0021] Figure 2 This is a schematic diagram of a device for identifying the occupancy rate of cables inside a cable tray based on image segmentation, according to the present invention. Detailed Implementation
[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] Example 1: As Figure 1 The diagram shown is a flowchart of the first embodiment of the cable occupancy rate identification method inside a cable tray based on image segmentation according to the present invention. The first embodiment of the cable occupancy rate identification method inside a cable tray based on image segmentation according to the present invention is presented.
[0024] In the first embodiment, the image segmentation-based method for identifying cable occupancy rates inside cable trays includes: Step S10: Obtain the target groove image, and perform the groove standardization representation construction task based on the target groove image using perspective correction and scale calibration mechanism, and output the groove standardization representation result; It should be noted that the original cable tray images acquired on-site are uniformly converted into standardized input results suitable for subsequent cable area identification and occupancy calculation, thereby reducing the impact of different shooting angles, shooting distances, and installation positions on the subsequent identification results. In practical applications, target cable trays are usually installed inside industrial control cabinets, communication cabinets, or building distribution boxes. Their installation positions may be located on the side wall, top, or middle of the cabinet. It is difficult for the shooting equipment to always remain perpendicular to the cable tray opening plane when acquiring images, so there are usually varying degrees of perspective distortion in the original images. At the same time, since the cable tray widths corresponding to different cabinet models are different, and the distance between the camera device and the cable tray is different, the pixel size in the original image cannot directly reflect the actual size relationship inside the cable tray. Based on this, this step first performs perspective correction on the target cable tray image, and then performs scale calibration in combination with the actual size information of the cable tray, thereby constructing a standardized representation result of the cable tray.
[0025] It is understood that the target slot image can be acquired by a handheld terminal, industrial camera, cabinet inspection camera, or imaging device mounted on a mobile inspection robot. The acquired image can be a single-frame static image or a keyframe image in a video stream. The perspective correction and scale calibration mechanism is not limited to a fixed implementation method. As long as the spatial boundary relationship of the slot opening area can be extracted based on the target slot image, and the correspondence between the image plane and the actual plane of the slot can be established, it can be used in this application. In some embodiments, the corner points, edge intersection points, or boundary contour points of the inner edge of the slot opening can be extracted first, and then a mapping relationship from the original image plane to the front view plane of the slot can be constructed based on the extracted feature points. In other embodiments, a calibration reference object with a known size can be set near the slot to further assist in determining the scale conversion relationship. Through the above processing, the final output of the slot normalization characterization result can at least include the front view image of the slot, the effective internal area of the slot, and the pixel scale conversion coefficient, for further use in step S20.
[0026] Step S20: Based on the standardized characterization results of the cable trays, a multi-channel segmentation mechanism is used to perform the cable region extraction task and output the cable segmentation results; It should be noted that, using the standardized characterization results of the cable tray output in step S10, the target area corresponding to the cable is accurately extracted from the effective internal area of the cable tray, forming a cable segmentation result that can be directly called upon in subsequent instance correction processing. In the current application scenario, power lines, control lines, and communication lines with different outer diameters, colors, and sheath materials usually coexist inside the cable tray. Different cables show significant differences in brightness, texture, edge sharpness, and reflectivity in the image. If only a single grayscale feature, a single color feature, or a global threshold of the entire image is used for region segmentation, the following problems are likely to occur: First, thin cables are missed due to weak texture and small diameter; second, thick cables are merged due to blurred boundaries when they are in a mated state; third, bright reflective areas inside the cable tray are misidentified as cable areas. Based on this, this step constructs multi-channel input data based on the front view image of the cable tray and the effective internal area of the cable tray output in step S10, to simultaneously characterize the color differences, brightness differences, local enhancement response, edge gradient distribution, and reflective interference areas of the cable, thereby improving the completeness and stability of cable area extraction.
[0027] It is understood that the multi-channel segmentation mechanism is not limited to directly processing the original color image, but rather preferably constructs multiple complementary representation channels based on the standardized representation result of the cable trough output in step S10. In some embodiments, color information channels, brightness information channels, brightness information channels enhanced by Retinex, gradient information channels extracted by the Sobel operator, and reflectivity candidate information channels obtained based on Bayes discrimination can be extracted from the front view image of the cable trough. These multiple channels are then combined into unified input data, and multi-scale region segmentation processing is performed. The cable segmentation result can be a probability distribution map of the cable region, or a cable mask result formed by combining the probability distribution map with constraints on the effective internal region of the cable trough. Since the input in this step is limited to the effective internal region of the cable trough, the subsequent output cable segmentation result naturally excludes interference from the background region outside the cable trough, the edge region of the cabinet shell, and the region of the mounting accessories.
[0028] For example, in a communication cabinet scenario, the front view image of the cable tray output in step S10 corresponds to a resolution of [resolution missing]. The effective internal width of the cable tray is Pixels, with an outer diameter of approximately thin communication line Root, outer diameter is approximately control lines Root and outer diameter are power cord Root. Using the traditional fixed threshold method, based on grayscale values... The entire image is binarized. In a specific sampled image, a total of cable pixels were detected. There are 1, of which Each pixel actually corresponds to the reflective area on the side wall of the groove, and there are approximately... The thin communication line region corresponding to each pixel was not identified, resulting in a large deviation in the cable region extraction result. When using the method of this application, color information, brightness information, Retinex-enhanced brightness information, Sobel gradient information, and Bayes reflection information are extracted from each pixel location in the same image, and weights are then applied. , , , , Calculate the response value. For the center pixel of a certain thin communication line, its channel values are respectively... , , , , The corresponding cable area response value is
[0029] The response value is higher than the preset segmentation threshold. Therefore, it was identified as a cable area; and for a certain wall reflective pixel, its channel values were respectively , , , , The corresponding cable area response value is
[0030] The response value is below the preset segmentation threshold. Therefore, it is not identified as a cable area. As a result, the cable segmentation result output in this step can more completely preserve the thin line area, while effectively suppressing false detection areas caused by high brightness and reflection, providing a more accurate input basis for adhesion separation and instance correction in step S30.
[0031] Step S30: Based on the cable segmentation results, perform a preprocessing task using an instance correction mechanism and output the cable instance correction results; It should be noted that further corrections are made to the cable segmentation results output in step S20, transforming the cable region from an "overall cable aggregation area" into "individually measurable single cable instance results," thus providing direct input for subsequent outer diameter estimation and occupancy calculation. In scenarios with mixed cable specifications, even if step S20 has accurately extracted the cable region, the following problems may still exist: closely adjacent thick cables are identified as the same connected region; some thin cables show local breaks in areas with weak texture; and the boundaries of individual cables appear jagged or incomplete due to shadows or noise. If step S40 is directly entered without instance correction, it will lead to errors in the identification of the number of single cables, thereby affecting the subsequent outer diameter estimation and cross-sectional area accumulation results.
[0032] It is understood that the instance correction mechanism can be executed based on the cable region response information, cable boundary response information, and cable internal distance response information obtained in step S20. Specifically, the cable region probability distribution can first be converted into an initial cable mask, and then the initial cable mask can be trimmed using the effective internal region of the cable trough output in step S10 to remove pseudo-connected regions that overflow beyond the cable trough boundary. Subsequently, multiple local maxima points are extracted as seeds based on the cable internal distance response information to perform separation processing on large-area adhesion regions. Finally, for the locally broken line segments that appear after separation, connection correction can be performed by combining the continuity of the cable boundary and the consistency of the direction. The cable instance correction result can include multiple independent cable instance regions, each corresponding to a cable with an estimated outer diameter. Since the input of step S30 comes from the cable segmentation result output in step S20, the result after correction in this step remains within the effective internal region of the cable trough and will not introduce additional background information.
[0033] For example, in a building's electrical distribution box scenario, the cable segmentation result output in step S20 contains a continuous cable region with an area of 2140 pixels. On-site verification revealed that this region actually consists of three closely spaced thick power lines, and two thin control lines are segmented into two and three segments respectively due to local shading. If a traditional connected component labeling method is used, the image will have a total of 11 connected components. The three thick power lines are merged into one connected component, and the two thin control lines are incorrectly divided into five connected components, ultimately resulting in a cable count of 14, while the actual number of cables is 13. Using the method of this application, three local maxima are obtained within this 2140-pixel continuous region, with corresponding internal distance response values of 11.2, 10.7, and 10.9, all exceeding the threshold. Therefore, the adhesion area was separated into three independent cable instances; for the two endpoints of a broken thin control wire, the distance between the endpoints was measured. Pixels, orientation angles are respectively and ,satisfy Pixels and The connection conditions are determined, therefore the two regions are connected as the same cable instance. After the above processing, the final output cable instance correction result contains 13 independent cable instances, consistent with the actual number of cabling instances, thus providing an accurate instance basis for the outer diameter estimation in step S40.
[0034] Step S40: Based on the cable instance correction results, use the outer diameter estimation and area conversion mechanism to perform the cable tray occupancy rate calculation task and output the cable occupancy rate calculation results; It is understood that the outer diameter estimation and area conversion mechanism can be executed based on the cable instance correction results output in step S30. Specifically, the central skeleton or center path can be extracted for each cable instance, and the cable radius estimate can be determined based on the distance from the internal pixels of the cable instance to its boundary. Subsequently, combined with the pixel scale conversion coefficient output in step S10, the pixel radius is converted into the actual size radius, and then the cable outer diameter and corresponding cross-sectional area are further calculated. The cable occupancy calculation results can include the outer diameter result of a single cable, the cross-sectional area result of a single cable, and the overall occupancy result of the cable tray. Since the input of step S40 is the cable instance result corrected in step S30, the same adhesion area has been split into multiple independent instances, and the broken area has been connected and repaired, thereby avoiding the problem of multiple cables being regarded as one or a single cable being calculated repeatedly during the occupancy calculation stage.
[0035] For example, in an industrial control cabinet scenario, the cable instance correction result output in step S30 contains 12 cable instances, and the pixel scale conversion factor output in step S10 is... The estimated radii for the three power lines are 24.5 pixels, 24.1 pixels, and 24.8 pixels, respectively; the estimated radii for the four control lines are 16.3 pixels, 16.0 pixels, 15.8 pixels, and 16.1 pixels, respectively; and the estimated radii for the five communication lines are 9.7 pixels, 9.5 pixels, 9.8 pixels, 9.6 pixels, and 9.4 pixels, respectively. Therefore, the estimated outer diameter of one power line is...
[0036] The corresponding cross-sectional area is
[0037] The estimated outer diameter of one of the control lines is...
[0038] The corresponding cross-sectional area is
[0039] The estimated outer diameter of one of the communication lines is...
[0040] The corresponding cross-sectional area is
[0041] If the total cumulative cross-sectional area of the 12 cables is 267.4 mm², then the net cross-sectional area of the cable tray is... for The result of the trough occupancy rate calculation is:
[0042] That is, the occupancy rate is approximately 37.14%. If the traditional pixel area ratio method is used, the ratio of the total pixel area of the cable to the pixel area inside the cable tray in the same image is 42.8%, which is a deviation of approximately 5.66 percentage points compared to the method of this application. It can be seen that the cable occupancy rate calculation result output in this step can more realistically reflect the actual degree of occupancy of the cable tray cross-sectional space by multi-specification cables.
[0043] Step S50: Based on the cable occupancy rate calculation results, determine the credibility and generate the results, and output the occupancy rate identification results.
[0044] It should be noted that, based on the cable occupancy rate calculation result obtained in step S40, a further determination is made as to whether the current calculation result meets the output conditions, and the final occupancy rate identification result is generated based on the determination result. In practical applications, even if steps S10 to S40 have sequentially completed cable tray standardization, cable area extraction, instance correction, and occupancy rate calculation, the estimation results for individual cable instances may still be unstable due to blurry original acquired images, partial occlusion, strong reflective residue, or extremely dense wiring. If the value obtained in step S40 is directly output as the final result in this case, it may lead to incorrect judgments by on-site users based on abnormal results.
[0045] It is understood that the credibility determination and result generation can be performed jointly based on multiple component results output in step S40. For example, a result rationality judgment value and a result credibility evaluation value can be constructed based on cable occupancy rate, number of cable instances, cable outer diameter distribution, cable boundary continuity, or instance size dispersion. When both the result rationality judgment value and the result credibility evaluation value meet preset conditions, a valid occupancy rate identification result is output. When any indicator does not meet the preset conditions, an abnormality flag information is attached to the output occupancy rate identification result, or a prompt result indicating that the image needs to be re-acquired is directly output. Since the inputs used in step S50 all come from the cable occupancy rate calculation results output in step S40, this step does not change the calculation basis of the cable occupancy rate value, but performs result-level judgment and filtering based on this calculation basis.
[0046] For example, in a communication cabinet inspection scenario, the cable occupancy rate calculated in step S40 is 0.462, or 46.2%, corresponding to the actual number of cables. average outer diameter mm, the number of reference cables of the same type in the historical inspection data of this cabinet. Reference average outer diameter mm. Take the weighting coefficients. , , ,but
[0047] Furthermore, if the boundary continuity index of the current result Outer diameter distribution concentration index Outer diameter dispersion index Take the weighting coefficient , , ,but
[0048] If a threshold is set , Then the result satisfies and Therefore, the output is "Occupancy rate is 46.2%, result is valid". Conversely, in another image with partial occupancy, although step S40 calculates an occupancy rate of 51.6%, the actual number of cables is 11, the boundary continuity index decreases to 0.63, and the outer diameter dispersion increases to 0.41. After the same calculation, the result is... , All values are below the corresponding threshold, therefore this step outputs the occupancy rate identification result: "Occupancy rate is 51.6%, result confidence is insufficient, re-collection is required." Thus, this step can effectively filter the final output result without changing the source of the calculation result in step S40, improving the reliability of the overall identification result.
[0049] Example 2: Furthermore, the present invention provides an image segmentation-based cable occupancy identification system for cable trays, employing an image segmentation-based cable occupancy identification method from the above embodiments, which can solve the technical problem of identifying cable occupancy rates inside cable trays based on image segmentation. The beneficial effects of the image segmentation-based cable occupancy identification system for cable trays provided by the present invention are the same as those of the image segmentation-based cable occupancy identification method from the above embodiments, and other technical features of the image segmentation-based cable occupancy identification system for cable trays are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0050] Example 3: This invention provides a device for identifying cable occupancy rates inside cable trays based on image segmentation. Please refer to... Figure 2A cable occupancy identification device based on image segmentation for cable trays includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to perform the cable occupancy identification method based on image segmentation described in Embodiment 1 above. The cable occupancy identification device based on image segmentation in this embodiment of the invention may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. This cable occupancy identification device based on image segmentation is merely an example and should not impose any limitations on the functionality or scope of application of this invention. A cable occupancy identification device based on image segmentation may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the cable occupancy identification device based on image segmentation. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An I / O interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 allows an image segmentation-based cable occupancy identification device for cable trays to communicate wirelessly or wiredly with other devices to exchange data. While the figures show one image segmentation-based cable tray occupancy identification device with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0051] Example 4: This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method for identifying cable occupancy rates inside cable trays based on image segmentation. The computer program product provided by this invention can solve the technical problem of identifying cable occupancy rates inside cable trays based on image segmentation. Compared with the prior art, the beneficial effects of the computer program product provided by this invention are the same as those of the above-described method for identifying cable occupancy rates inside cable trays based on image segmentation, and will not be repeated here.
[0052] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this invention.
[0053] It should be understood that the various parts disclosed in this invention can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0054] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A method for identifying cable occupancy rates inside cable trays based on image segmentation, characterized in that, The methods include: Step S10: Obtain the target groove image, and perform the groove standardization representation construction task based on the target groove image using perspective correction and scale calibration mechanism, and output the groove standardization representation result; Step S10, which involves acquiring a target groove image, performing a groove standardization representation construction task based on the target groove image using perspective correction and scale calibration mechanisms, and outputting the groove standardization representation result, specifically includes: Step S101: Obtain the original image containing the target groove opening region, and perform lens distortion correction on the original image to obtain the corrected image; Step S102: Based on the feature points of the inner edge of the groove in the corrected image, obtain the homography mapping relationship, and perform perspective correction on the corrected image according to the homography mapping relationship to obtain the front view image of the groove; Step S103: Extract the effective internal region of the slot based on the front view image of the slot, and calculate the pixel scale conversion coefficient in combination with the actual inner width of the slot, and output the normalized characterization result of the slot; wherein, the normalized characterization result of the slot includes at least the front view image of the slot, the effective internal region of the slot, and the pixel scale conversion coefficient. Step S20: Based on the standardized characterization results of the cable trays, a multi-channel segmentation mechanism is used to perform the cable region extraction task and output the cable segmentation results; Step S20, which involves performing cable region extraction based on the standardized characterization results of the cable trays using a multi-channel segmentation mechanism and outputting the cable segmentation results, specifically includes: Step S201: Based on the front view image of the trough in the trough normalization characterization result, extract multi-channel input data including color information, brightness information, enhanced brightness information based on Retinex, gradient information based on Sobel operator, and reflective candidate information based on Bayes discrimination; Step S202: Perform multi-scale feature extraction and region segmentation processing based on the multi-channel input data to obtain the probability distribution of the cable region; In step S202, the step of performing multi-scale feature extraction and region segmentation processing based on the multi-channel input data to obtain the cable region probability distribution specifically includes: inputting the multi-channel input data into a segmentation network with an encoding and decoding structure to extract texture features and semantic features at different scales; performing fusion processing on the texture features and semantic features at different scales to obtain a fused feature map; generating cable body response information, cable boundary response information, and cable internal distance response information based on the fused feature map, and constructing the cable region probability distribution based on the cable body response information; Step S203: Based on the probability distribution of the cable region and combined with the effective internal region of the cable tray, the Markov-Bayes joint constraint method is used to perform region constraint, and the cable segmentation result is output. Step S30: Based on the cable segmentation results, perform a preprocessing task using an instance correction mechanism and output the cable instance correction results; Step S30, which involves performing a preprocessing task based on the cable segmentation result using an instance correction mechanism and outputting the cable instance correction result, specifically includes: Step S301: Generate an initial cable mask based on the cable segmentation result, and perform constraint clipping on the initial cable mask using the effective internal area of the cable slot to obtain a restricted cable mask; Step S302: Based on the cable boundary response information and the cable internal distance response information, perform adhesive cable separation processing on the restricted cable mask to obtain an initial set of cable instances; Step S303: Perform broken segment connection and boundary correction processing based on the initial set of cable instances to obtain the cable instance correction result; Step S40: Based on the cable instance correction result, use the outer diameter estimation and area conversion mechanism to perform the cable tray occupancy rate calculation task and output the cable occupancy rate calculation result; Step S50: Based on the cable occupancy rate calculation results, determine the credibility and generate the results, and output the occupancy rate identification results.
2. The method for identifying cable occupancy rate inside a cable tray based on image segmentation as described in claim 1, characterized in that, The normalized characterization results of the slots include pixel-scale conversion factors. Pixel scale conversion factor satisfy: ;in, This is the actual inner width of the cable tray. The inner width in pixels of the cable groove in the target cable groove image; the estimated outer diameter of the i-th cable instance in the cable instance correction result. satisfy: ;in, Let be the radius estimate of the i-th cable instance, and s be the pixel scale conversion factor.
3. The method for identifying cable occupancy rate inside a cable tray based on image segmentation as described in claim 2, characterized in that, Step S40, which involves calculating the cable tray occupancy rate based on the cable instance correction result using an outer diameter estimation and area conversion mechanism, and outputting the cable occupancy rate calculation result, specifically includes: Step S401: Perform radius estimation processing on each cable instance in the cable instance correction result to obtain the radius estimation value corresponding to each cable instance; Step S402: Calculate the estimated outer diameter of each cable instance based on the radius estimate and the pixel scale conversion factor, and calculate the cross-sectional area of each cable instance based on the estimated outer diameter of each cable instance. Step S403: Accumulate the cross-sectional area corresponding to each cable instance, and perform a percentage conversion based on the net cross-sectional area of the cable tray to obtain the cable occupancy rate calculation result.
4. A cable occupancy rate identification system based on image segmentation inside a cable tray, applied to the cable occupancy rate identification method based on image segmentation as described in any one of claims 1 to 3, characterized in that, The image segmentation-based cable occupancy identification system for cable trays includes: The standardized characterization construction module is used to acquire the target groove image, perform the groove standardized characterization construction task based on the target groove image using perspective correction and scale calibration mechanism, and output the groove standardized characterization result. The cable segmentation module is used to perform cable region extraction tasks based on the standardized characterization results of the cable grooves using a multi-channel segmentation mechanism, and output the cable segmentation results. The instance correction module is used to perform a preprocessing task based on the cable segmentation result using an instance correction mechanism, and output the cable instance correction result. The occupancy calculation module is used to perform the cable tray occupancy calculation task based on the cable instance correction result, using an outer diameter estimation and area conversion mechanism, and output the cable occupancy calculation result. The result generation module is used to determine the credibility and generate results based on the cable occupancy rate calculation results, and output the occupancy rate identification results.
5. A device for identifying cable occupancy rates inside cable trays based on image segmentation, characterized in that, The image segmentation-based cable occupancy identification device includes: a memory, a processor, and an image segmentation-based cable occupancy identification program stored in the memory and executable on the processor. When the image segmentation-based cable occupancy identification program is executed by the processor, it implements the image segmentation-based cable occupancy identification method for cable occupancy identification according to any one of claims 1 to 3.
6. A computer program product, characterized in that, The computer program product includes an image segmentation-based cable occupancy identification program for cable trays, which, when executed by a processor, implements an image segmentation-based cable occupancy identification method for cable trays according to any one of claims 1 to 3.
Citation Information
Patent Citations
Cable conductor sectional area measuring method and system based on imaging method
CN110827311A
Intelligent segmentation method for multi-modal power transmission channel image
CN121505266A
