Aluminum electrolysis anode scrap height measuring method, device, equipment, medium and product

The height of aluminum electrolysis butts is automatically measured through image processing technology, which solves the problems of low measurement accuracy and high risk in the existing technology, realizes high-precision and safe measurement of aluminum electrolysis butts, and optimizes the electrolyte amount.

CN120634982APending Publication Date: 2025-09-12BAOTOU ALUMINUM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510699876.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

The existing method for measuring the height of aluminum electrolysis anodes has low measurement accuracy and high risk, and cannot meet the requirements of electrolyte quantity optimization and safety.

Method used

Image processing technology is used to obtain image data through multiple image acquisition devices, and image preprocessing, feature point extraction and recognition are performed to achieve automatic measurement of the height of aluminum electrolytic residual electrodes, avoiding manual intervention.

Benefits of technology

The accuracy and safety of aluminum electrolysis residual electrode measurement are improved, ensuring the personal safety of workers, and can dynamically adjust the current and temperature in the electrolytic cell to optimize the electrolyte amount.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120634982A_ABST
    Figure CN120634982A_ABST
Patent Text Reader

Abstract

The invention discloses an aluminum electrolysis anode scrap height measuring method, device and equipment, a medium and a product, and relates to the technical field of aluminum electrolysis, and the method comprises the following steps: obtaining to-be-processed image data collected by a plurality of image collection devices; performing image preprocessing on the to-be-processed image data to obtain a preprocessed image; extracting an image area corresponding to the aluminum electrolysis anode scrap in the preprocessed image to obtain target image data; and identifying feature points of the target image data, and measuring the residual height of aluminum electrolysis based on the feature points of the target image data to obtain a measurement result. According to the invention, the precision and safety of aluminum electrolysis anode scrap measurement can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of aluminum electrolysis technology, and in particular to a method, device, equipment, medium and product for measuring the height of aluminum electrolysis residual poles. Background Art

[0002] During the aluminum electrolysis production process, the anode (usually a prebaked carbon anode) as the positive electrode of the electrolysis reaction will undergo an oxidation reaction, that is, the carbon (C) in the anode carbon block reacts with the oxygen ions (O 2- ) combines with the electrolyte to produce carbon dioxide (CO2) and carbon monoxide (CO). This oxidation reaction periodically consumes the anode of aluminum electrolysis, causing the anode height to gradually decrease. The height of the anode has a key impact on the current distribution optimization, thermal balance stability and anode utilization of the electrolytic cell. Therefore, the anode height needs to be measured in real time during the aluminum electrolysis process to ensure the electrolyte quantity.

[0003] In the prior art, anode height measurement is typically done manually, using a steel ruler to measure the current height of the anode. However, this method not only has low measurement accuracy but also a high measurement risk factor. Therefore, a measurement method that can improve measurement accuracy and safety is urgently needed. Summary of the Invention

[0004] In view of the above-mentioned defects or deficiencies in the relevant technology, the purpose of this application is to provide a method, device, equipment, medium and product for measuring the height of aluminum electrolysis butts, which can effectively improve the accuracy and safety of aluminum electrolysis butts measurement.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In the first aspect, the present application provides a method for measuring the height of aluminum electrolysis residual poles, which includes: obtaining image data to be processed acquired by multiple image acquisition devices; performing image preprocessing on the image data to be processed to obtain a preprocessed image; extracting the image area corresponding to the aluminum electrolysis residual poles in the preprocessed image to obtain target image data; identifying the feature points of the target image data and measuring the residual height of the aluminum electrolysis based on the feature points of the target image data to obtain a measurement result.

[0007] Optionally, the image preprocessing of the image data to be processed to obtain a preprocessed image includes: using median filtering to remove salt and pepper noise and Gaussian noise of the image data to be processed to obtain a first preprocessed image; performing grayscale processing on the first preprocessed image to obtain a second preprocessed image; using histogram equalization to increase the contrast of the second preprocessed image to obtain a third preprocessed image; and using a threshold segmentation method to remove the background area of ​​the third preprocessed image to obtain the preprocessed image.

[0008] Optionally, the extracting of the image area corresponding to the aluminum electrolysis residual electrode in the preprocessed image to obtain the target image data includes: using non-maximum values ​​to refine the edge area of ​​the preprocessed image to obtain first target image data; using a dual threshold algorithm to perform continuity processing on the edge area of ​​the first target image data to obtain second target image data; filling the holes in the edge area of ​​the second target image data to obtain third target image data; and extracting the contour features of the third target image data to obtain fourth target image data.

[0009] Optionally, the identifying the feature points of the target image data and measuring the residual height of aluminum electrolysis based on the feature points of the target image data to obtain the measurement result includes: performing angle correction on the fourth target image data based on a correction matrix, and converting the angle-corrected fourth target image data from a pixel coordinate system to an actual physical coordinate system; extracting the feature points of the fourth target image data in the actual physical coordinate system, and obtaining the measurement result based on the extracted feature points.

[0010] Optionally, the feature points of the fourth target image data in the actual physical coordinate system are extracted, and the measurement result is obtained based on the extracted feature points, including: extracting the contour features of the fourth target image data in the actual physical coordinate system to obtain the contour of the aluminum electrolysis residual pole; aligning the preset standard contour with the aluminum electrolysis residual pole contour coordinates in the actual physical coordinate system, and performing point-to-point matching on the aligned preset standard contour and the aluminum electrolysis residual pole contour to obtain the coordinate difference of corresponding points; obtaining the measurement result based on the coordinate difference of the corresponding points, and the measurement result includes the residual pole height value, the residual pole verticality and the edge angle.

[0011] Optionally, the aluminum electrolysis butt height measurement method further includes: dynamically adjusting the current and electrolyte temperature in the electrolytic cell based on the measurement results to obtain a target current and a target electrolyte temperature.

[0012] In a second aspect, the present application provides a device for measuring the height of aluminum electrolysis butts, the device comprising:

[0013] An acquisition module, used to acquire image data to be processed acquired by multiple image acquisition devices;

[0014] A preprocessing module, configured to perform image preprocessing on the image data to be processed to obtain a preprocessed image;

[0015] an extraction module, configured to extract an image region corresponding to the aluminum electrolysis butts in the preprocessed image to obtain target image data;

[0016] The measuring module is used to identify the characteristic points of the target image data and measure the residual height of the aluminum electrolysis butts based on the characteristic points of the target image data to obtain a measurement result.

[0017] In a third aspect, the present application provides a computer device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the above-described methods for measuring the height of aluminum electrolysis residual electrodes.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the above-mentioned methods for measuring the height of aluminum electrolysis butts.

[0019] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the above-mentioned methods for measuring the height of aluminum electrolysis butts.

[0020] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0021] The present application provides a method, device, equipment, medium and product for measuring the height of aluminum electrolysis butts, which obtains a preprocessed image by performing image preprocessing on image data to be processed acquired by multiple image acquisition devices; obtains target image data by extracting the image area corresponding to the aluminum electrolysis butts in the preprocessed image; obtains a measurement result by identifying the feature points of the target image data and measuring the residual height of the aluminum electrolysis based on the feature points of the target image data; image data of the aluminum electrolysis butts at different angles can be acquired by multiple image acquisition devices, and measurement results of the aluminum electrolysis butts can be obtained by analyzing the image data of the aluminum electrolysis butts at different angles, thereby effectively improving the measurement accuracy of the aluminum electrolysis butts; in addition, in this process, no human intervention is required, which can maximize the personal safety of the staff and improve the measurement safety of the aluminum electrolysis butts. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 This is a diagram showing an application environment of a method for measuring the height of aluminum electrolysis butts in one embodiment of the present application;

[0024] Figure 2 A schematic flow chart of a method for measuring the height of aluminum electrolysis butts provided in one embodiment of the present application;

[0025] Figure 3 A schematic diagram of the functional modules of a device for measuring the height of aluminum electrolysis butts provided in one embodiment of the present application;

[0026] Figure 4 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0028] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0029] The aluminum electrolysis butt height measurement method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set up separately, integrated on the server 104, or placed on the cloud or other servers. The terminal 102 can send the image data to be processed collected by multiple image acquisition devices to the server 104. After the server 104 receives the image data to be processed collected by multiple image acquisition devices, the server 104 performs image preprocessing on the image data to be processed to obtain a preprocessed image; extracts the image area corresponding to the aluminum electrolysis residual pole in the preprocessed image to obtain the target image data; identifies the feature points of the target image data and measures the residual height of the aluminum electrolysis based on the feature points of the target image data to obtain a measurement result. In addition, in some embodiments, the aluminum electrolysis residual pole height measurement method can also be implemented independently by the server 104 or the terminal 102. For example, the terminal 102 can directly analyze the image data to be processed to obtain the measurement results, or the server 104 can obtain the image data to be processed acquired by multiple image acquisition devices from the data storage system, and analyze the image data to be processed to obtain the measurement results.

[0030] Terminal 102 may include, but is not limited to, various desktop computers, laptops, smartphones, tablet computers, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, and smart car devices. Portable wearable devices may include smart watches, smart bracelets, and head-mounted devices. Server 104 may be implemented as a standalone server or a server cluster consisting of multiple servers, or may be a cloud server.

[0031] In an exemplary embodiment, Figure 2 As shown, a method for measuring the height of aluminum electrolytic butts is provided. The method is executed by a computer device, specifically a computer device such as a terminal or a server, or a terminal and a server. In the embodiment of the present application, the method is applied to Figure 1 The server 104 in the example is used as an example to illustrate the process, including the following steps S201 to S204.

[0032] Step S201: Acquire image data to be processed acquired by multiple image acquisition devices.

[0033] In an exemplary embodiment, multiple image acquisition devices capture aluminum electrolytic butts at different angles to obtain image data of the aluminum electrolytic butts at different angles. Specifically, the multiple image acquisition devices are distributed at different angles for different specifications of aluminum electrolytic butts (e.g., butts from different slot types and production cycles). For example, three industrial cameras are used, two of which are tilted and horizontally spaced 500 mm apart, and the other is positioned directly above the centerline of the two tilted cameras.

[0034] It should be noted that in order to improve the quality of image data collected by multiple image acquisition devices, light sources can be arranged around the aluminum electrolytic butts. For example, LED ring light can be used in combination with a polarizing plate to illuminate the aluminum electrolytic butts at multiple angles, thereby highlighting the edge contours of the aluminum electrolytic butts and effectively eliminating surface shadows of the aluminum electrolytic butts.

[0035] Step S202: performing image preprocessing on the image data to be processed to obtain a preprocessed image.

[0036] In an example embodiment, image preprocessing is performed on the image data to be processed, including noise processing, grayscale processing, contrast processing, background processing, etc. By performing image preprocessing on the image data to be processed, subsequent feature extraction of the image is facilitated, thereby providing a guarantee for the effectiveness of feature extraction.

[0037] Optionally, the above step S202 may include the following steps S2021 to S2024, namely:

[0038] Step S2021: Use median filtering to remove salt and pepper noise and Gaussian noise from the image data to be processed to obtain a first preprocessed image.

[0039] Median filtering is used to remove salt and pepper noise and Gaussian noise from the image data to be processed. It can suppress the bright light area while retaining the edge area of ​​the image data to be processed, providing data support for subsequent contrast processing.

[0040] Step S2022: grayscale processing is performed on the first preprocessed image to obtain a second preprocessed image.

[0041] As you can understand, the color image (e.g., RGB three-channel) of the first preprocessed image contains three color values ​​(R / G / B) per pixel, and the data volume is three times that of the grayscale image. After converting to a grayscale image, only single-channel data needs to be processed subsequently, which can reduce the amount of calculation.

[0042] Step S2023: histogram equalization is used to increase the contrast of the second preprocessed image to obtain a third preprocessed image.

[0043] It is understandable that the contrast between the aluminum electrolysis butts and the background is improved by using the following formula (1), namely:

[0044]

[0045] Among them, r k is the original grayscale, s k is the gray level after equalization, n j is the number of pixels at each gray level.

[0046] It should be noted that in the embodiments of this application, the core of height measurement for aluminum electrolytic butts is edge detection, and edges are essentially sudden changes in brightness. Increasing the contrast between the aluminum electrolytic butts and the background in the grayscale image can improve the image's brightness distribution and prevent interference from color information (such as the color of the oxide film on the surface of the aluminum electrolytic butts) on detection.

[0047] Step S2024: Use a threshold segmentation method to remove the background area of ​​the third pre-processed image to obtain a pre-processed image.

[0048] As can be understood from the above embodiments, a histogram of the second preprocessed image is plotted, and the frequency of occurrence of each grayscale value in the histogram is counted to observe whether the grayscale distribution of the foreground and background has a clear bimodal characteristic (i.e., two peaks, corresponding to the grayscale concentrated areas of the foreground and background, respectively). If a clear bimodal characteristic exists, the segmentation threshold can be set at the valley between the two peaks. If the histogram does not have a clear bimodal characteristic, the segmentation threshold needs to be automatically calculated using other algorithms (such as the Otsu method). For example, if the background grayscale value is generally less than 100 and the grayscale value of the aluminum electrolytic butt is greater than 150, the segmentation threshold can be set to 120, and pixels with a grayscale value greater than or equal to 120 in the third preprocessed image are considered to be the foreground (the aluminum electrolytic butt area), and pixels with a grayscale value less than 120 are considered to be the background (removed).

[0049] Step S203: extracting the image area corresponding to the aluminum electrolysis butts in the pre-processed image to obtain target image data.

[0050] In an example embodiment, the Canny edge detection algorithm can be used to process the edge area in the preprocessed image, and then the findContours function is used to extract the closed contours in the preprocessed image. The interference area is eliminated through contour area screening (setting a minimum area threshold, such as 5000 pixels) to obtain the target area.

[0051] Optionally, the above step S203 may include the following steps S2031 to S2034, namely:

[0052] Step S2031, using non-maximum values ​​to refine the edge region of the pre-processed image to obtain first target image data;

[0053] Step S2032, using a dual threshold algorithm to perform continuity processing on the edge area of ​​the first target image data to obtain second target image data;

[0054] Step S2033, filling the holes in the edge area of ​​the second target image data to obtain third target image data;

[0055] Step S2034: extract the contour features of the third target image data to obtain fourth target image data.

[0056] It should be noted that the pixels in the non-edge area of ​​the preprocessed image are suppressed by non-maximum value, and the pixels with the largest local gradient are retained, that is, the contour of the aluminum electrolytic butts with obvious grayscale value changes in the preprocessed image is retained, so that the edge width of the aluminum electrolytic butts is refined to the single pixel level, and only the pixels with the local gradient maximum value in each edge direction are retained, and the remaining pixels are set to 0 (non-edge area); by setting two thresholds (high threshold T H and low threshold T L , usually T H=2T L ) The edge area of ​​the first target image data is processed to retain the continuity of the edge of the aluminum electrolysis butt, suppress the false edge caused by noise, and avoid edge breakage or redundant strong edges caused by a single threshold; by filling the holes in the edge area of ​​the second target image data, the integrity of the edge of the aluminum electrolysis butt can be further increased, which is convenient for the subsequent feature extraction of the contour of the aluminum electrolysis butt.

[0057] In addition, in other embodiments, the fourth target image data may be optimized by morphological operations, which may further facilitate subsequent feature extraction of the contour of the aluminum electrolysis butts. For example, the following formula (2) may be used to remove scattered noise points outside the contour of the aluminum electrolysis butts in the fourth target image data.

[0058]

[0059] Wherein, A is the fourth target image data, B is a structure element, and the structure element is essentially a small matrix or set. For example, a circular structure element with a radius of 1 corresponds to a 3×3 matrix.

[0060] Step S204 , identifying feature points of the target image data and measuring the residual height of the aluminum electrolysis based on the feature points of the target image data to obtain a measurement result.

[0061] In an exemplary embodiment, the feature points of the target image data may include: the extreme points of the top contour of the aluminum electrolytic butts, the two corners of the bottom contour of the aluminum electrolytic butts, and the inflection band of the aluminum electrolytic butts contour. The measurement results include the butts height value, the butts verticality, and the edge angle.

[0062] In a specific embodiment, the above-mentioned step S204 may include the following steps S2041 and S2042, wherein: step S2041, angle correction is performed on the fourth target image data based on the correction matrix, and the angle-corrected fourth target image data is converted from the pixel coordinate system to the actual physical coordinate system.

[0063] It should be noted that the correction matrix is ​​used to correct the tilt of the image caused by the shooting angle (such as perspective distortion caused by the non-vertical camera installation); for example, if the preset image rotation angle is θ, the rotation matrix is:

[0064]

[0065] For example, the intrinsic parameter matrix K and extrinsic parameter matrix [R|t] of an industrial camera, the pixel coordinates (u, v) are converted to the actual physical coordinate system (X, Y, Z), which is expressed as follows (3):

[0066]

[0067] Simplifying the above formula (3) into homogeneous coordinates, the transformation is as follows (4):

[0068]

[0069] Here, λ is a scale factor (determined by calibration), for example, the pixel size of a calibrated industrial camera is 1 pixel = 0.1 mm.

[0070] Step S2042 : extracting feature points of the fourth target image data in the actual physical coordinate system, and obtaining a measurement result based on the extracted feature points.

[0071] Furthermore, the above-mentioned step S2042 may include: extracting the contour features of the fourth target image data in the actual physical coordinate system to obtain the contour of the aluminum electrolysis butt pole; aligning the coordinates of the pre-set standard contour and the aluminum electrolysis butt pole contour in the actual physical coordinate system, and performing point-to-point matching on the aligned pre-set standard contour and the aluminum electrolysis butt pole contour to obtain the coordinate difference of the corresponding points; and obtaining the measurement result based on the coordinate difference of the corresponding points.

[0072] It can be understood that the measurement results include the butt pole height value, the butt pole verticality and the edge angle.

[0073] For example, to calculate the verticality of the butts, first calculate the moment of inertia of the aluminum electrolysis butts profile, and obtain the formula for the main axis direction θ:

[0074]

[0075] Among them, m pq is the contour moment, θ reflects the inclination angle of the residual pole relative to the vertical direction, and is used to determine the verticality of the residual pole installation.

[0076] For example, to calculate the height value of the butts, align the contour of the aluminum electrolysis butts with the coordinates of the standard aluminum electrolysis anode contour, and obtain the height of the aluminum electrolysis butts by taking the difference between the vertex coordinates of the aluminum electrolysis butt contour and the vertex coordinates of the standard aluminum electrolysis anode contour.

[0077] For example, to calculate the edge angle, we extract the boundary between the top and vertical surfaces of the aluminum electrolytic butts outline, use Hough line detection to fit a straight line, and calculate the angle between the two lines to obtain the edge angle. This calculation can be used to determine the degree of wear on the butts' edges.

[0078] By implementing the above-mentioned steps S201 to S204, image preprocessing is performed on the image data to be processed acquired by multiple image acquisition devices to obtain a preprocessed image; target image data is obtained by extracting the image area corresponding to the aluminum electrolysis butts in the preprocessed image; and the residual height of the aluminum electrolysis is measured based on the feature points of the target image data to obtain a measurement result. Image data of the aluminum electrolysis butts at different angles can be acquired by multiple image acquisition devices, and measurement results of the aluminum electrolysis butts can be obtained by analyzing the image data of the aluminum electrolysis butts at different angles, thereby effectively improving the measurement accuracy of the aluminum electrolysis butts. In addition, in this process, no human intervention is required, which can maximize the personal safety of the staff and improve the measurement safety of the aluminum electrolysis butts.

[0079] In another exemplary embodiment of the present application, in order to increase the amount of electrolyte in aluminum electrolysis and improve the practicality of the measurement results, the above method also includes: dynamically adjusting the current and electrolyte temperature in the electrolytic cell based on the measurement results to obtain the target current and target electrolyte temperature.

[0080] It's understandable that the height H of aluminum electrolysis butts directly affects the inter-electrode distance d, which is the distance from the bottom of the butts to the cathode surface. Changes in inter-electrode distance d cause changes in the cell resistance R. According to Ohm's law, the intensity of the current I must be adjusted to maintain a stable cell voltage U. For example, for every 1mm change in inter-electrode distance d, the cell resistance R changes by approximately 0.5%, requiring an adjustment of the current I by approximately 1% to compensate for voltage fluctuations.

[0081] Furthermore, decreasing butt height reduces the electrolyte coverage thickness, accelerating heat dissipation and requiring a higher temperature setting to maintain thermal equilibrium. For example, when the butt height standard deviation exceeds 5mm, the electrolyte agitator (at 20Hz) is activated for 10 minutes to even out the temperature distribution. Gradient heating: Heating is performed in zones based on butt position (e.g., if the front row has the highest butts, the power in that zone is reduced) to avoid local overheating.

[0082] Based on the same inventive concept, embodiments of the present application also provide an aluminum electrolysis butt height measurement device for implementing the aforementioned aluminum electrolysis butt height measurement method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more embodiments of the aluminum electrolysis butt height measurement device provided below can be found in the limitations of the aluminum electrolysis butt height measurement method described above and will not be further elaborated here.

[0083] In an exemplary embodiment, Figure 3 As shown, a device for measuring the height of aluminum electrolysis butts is provided. The device 300 for measuring the height of aluminum electrolysis butts may include: an acquisition module 301, a preprocessing module 302, an extraction module 303, and a measurement module 304, wherein:

[0084] The acquisition module 301 is used to acquire image data to be processed acquired by multiple image acquisition devices;

[0085] The preprocessing module 302 is used to perform image preprocessing on the image data to be processed to obtain a preprocessed image;

[0086] The extraction module 303 is used to extract the image area corresponding to the aluminum electrolysis butts in the pre-processed image to obtain target image data;

[0087] The measurement module 304 is used to identify feature points of the target image data and measure the residual height of the aluminum electrolysis butts based on the feature points of the target image data to obtain a measurement result.

[0088] As an optional implementation, the above-mentioned preprocessing module 302 is specifically used to use median filtering to remove salt and pepper noise and Gaussian noise of the image data to be processed to obtain a first preprocessed image; perform grayscale processing on the first preprocessed image to obtain a second preprocessed image; use histogram equalization to increase the contrast of the second preprocessed image to obtain a third preprocessed image; use threshold segmentation method to remove the background area of ​​the third preprocessed image to obtain a preprocessed image.

[0089] As an optional implementation, the above-mentioned extraction module 303 is specifically used to use non-maximum values ​​to refine the edge area of ​​the preprocessed image to obtain first target image data; use a dual threshold algorithm to perform continuity processing on the edge area of ​​the first target image data to obtain second target image data; fill the holes in the edge area of ​​the second target image data to obtain third target image data; and extract the contour features of the third target image data to obtain fourth target image data.

[0090] As an optional implementation, the above-mentioned measurement module 304 is specifically used to perform angle correction on the fourth target image data based on the correction matrix, and convert the angle-corrected fourth target image data from the pixel coordinate system to the actual physical coordinate system; extract the feature points of the fourth target image data in the actual physical coordinate system, and obtain measurement results based on the extracted feature points.

[0091] As an optional implementation, the above-mentioned measurement module 304 is further specifically used to extract the contour features of the fourth target image data in the actual physical coordinate system to obtain the contour of the aluminum electrolysis residual pole; align the preset standard contour with the aluminum electrolysis residual pole contour coordinates in the actual physical coordinate system, and perform point-to-point matching on the aligned preset standard contour and the aluminum electrolysis residual pole contour to obtain the coordinate difference of the corresponding points; obtain the measurement results based on the coordinate difference of the corresponding points, and the measurement results include the residual pole height value, the residual pole verticality and the edge angle.

[0092] As an optional embodiment, the above-mentioned aluminum electrolysis butt height measuring device 300 further includes an adjustment module, which is used to dynamically adjust the current and electrolyte temperature in the electrolytic cell based on the measurement results to obtain the target current and target electrolyte temperature.

[0093] Among them, this embodiment is implemented by performing image preprocessing on the image data to be processed acquired by multiple image acquisition devices to obtain a preprocessed image; by extracting the image area corresponding to the aluminum electrolysis butt in the preprocessed image, the target image data is obtained; by identifying the feature points of the target image data and measuring the residual height of the aluminum electrolysis based on the feature points of the target image data, the measurement result is obtained; the image data of the aluminum electrolysis butt at different angles can be acquired by multiple image acquisition devices, and the measurement result of the aluminum electrolysis butt can be obtained by analyzing the image data of the aluminum electrolysis butt at different angles, thereby effectively improving the measurement accuracy of the aluminum electrolysis butt; in addition, in this process, no human participation is required, which can ensure the personal safety of the staff to the greatest extent and improve the measurement safety of the aluminum electrolysis butt.

[0094] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store aluminum electrolytic butt height measurement data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for measuring the height of aluminum electrolytic butt is realized.

[0095] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0096] In an exemplary embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0097] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0098] In an exemplary embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0099] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0100] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0101] The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may include, but are not limited to, general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic units, data processing logic units based on quantum computing, and the like.

[0102] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0103] This document uses specific examples to illustrate the principles and implementation methods of this application. The description of the above examples is only intended to help understand the method and core concept of this application. At the same time, for those skilled in the art, based on the concept of this application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for measuring the height of aluminum electrolysis butts, characterized in that: The aluminum electrolysis butt height measurement method comprises: Acquiring image data to be processed acquired by multiple image acquisition devices; Performing image preprocessing on the image data to be processed to obtain a preprocessed image; Extracting an image region corresponding to the aluminum electrolysis butts from the preprocessed image to obtain target image data; The characteristic points of the target image data are identified and the residual height of the aluminum electrolysis is measured based on the characteristic points of the target image data to obtain a measurement result.

2. The method for measuring the height of aluminum electrolysis butts according to claim 1, characterized in that: The performing image preprocessing on the image data to be processed to obtain a preprocessed image includes: Using median filtering to remove salt and pepper noise and Gaussian noise from the image data to be processed to obtain a first preprocessed image; performing grayscale processing on the first preprocessed image to obtain a second preprocessed image; increasing the contrast of the second preprocessed image using histogram equalization to obtain a third preprocessed image; A threshold segmentation method is used to remove the background area of ​​the third pre-processed image to obtain the pre-processed image.

3. The method for measuring the height of aluminum electrolysis butts according to claim 1, wherein: The extracting the image area corresponding to the aluminum electrolysis butts in the pre-processed image to obtain target image data includes: Refining the edge region of the preprocessed image using a non-maximum value to obtain first target image data; Using a double-threshold algorithm to perform continuity processing on the edge area of ​​the first target image data to obtain second target image data; Filling holes in edge areas of the second target image data to obtain third target image data; The contour features of the third target image data are extracted to obtain fourth target image data.

4. The method for measuring the height of aluminum electrolysis butts according to claim 3, characterized in that: The identifying feature points of the target image data and measuring the residual height of the aluminum electrolysis based on the feature points of the target image data to obtain a measurement result includes: Performing angle correction on the fourth target image data based on a correction matrix, and converting the angle-corrected fourth target image data from a pixel coordinate system into an actual physical coordinate system; Feature points of the fourth target image data in the actual physical coordinate system are extracted, and the measurement result is obtained based on the extracted feature points.

5. The method for measuring the height of aluminum electrolysis butts according to claim 4, characterized in that: The extracting feature points of the fourth target image data in the actual physical coordinate system and obtaining the measurement result based on the extracted feature points includes: Extracting contour features of the fourth target image data in an actual physical coordinate system to obtain an aluminum electrolysis butt contour; Aligning the preset standard contour with the contour of the aluminum electrolysis butts in an actual physical coordinate system, and performing point-to-point matching on the aligned preset standard contour and the contour of the aluminum electrolysis butts to obtain coordinate differences of corresponding points; The measurement result is obtained based on the coordinate difference of the corresponding points, and the measurement result includes a residual pole height value, a residual pole verticality, and an edge angle.

6. The method for measuring the height of aluminum electrolysis butts according to claim 1, characterized in that: The aluminum electrolysis butt height measurement method further includes: Based on the measurement results, the current and the electrolyte temperature in the electrolytic cell are dynamically adjusted to obtain a target current and a target electrolyte temperature.

7. A device for measuring the height of aluminum electrolysis butts, characterized in that: The aluminum electrolysis butt height measuring device comprises: An acquisition module, used to acquire image data to be processed acquired by multiple image acquisition devices; A preprocessing module, configured to perform image preprocessing on the image data to be processed to obtain a preprocessed image; an extraction module, configured to extract an image region corresponding to the aluminum electrolysis butts in the preprocessed image to obtain target image data; The measuring module is used to identify the characteristic points of the target image data and measure the residual height of the aluminum electrolysis butts based on the characteristic points of the target image data to obtain a measurement result.

8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for measuring the height of aluminum electrolysis butts according to any one of claims 1 to 6.

9. 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 for measuring the height of aluminum electrolysis butts according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for measuring the height of aluminum electrolysis butts according to any one of claims 1 to 6 are implemented.