Scrap steel material pile inventory change detection method based on machine vision
By installing multi-angle cameras in scrap steel yard, combined with filtering, stereophotographic measurement and deep learning technology, the problems of low efficiency and poor accuracy in scrap steel yard inventory detection are solved, and efficient and accurate three-dimensional data acquisition and real-time acquisition are achieved monitor.
Patent Information
- Application Number
- CN202411074396.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-22
AI Technical Summary
The prior art has problems such as low efficiency, large human error, difficulty in image processing and delay in data processing in the inventory detection of scrap steel piles. Especially under dynamic environment and unstable light conditions, it is difficult to quickly and accurately obtain and process large amounts of image data. .
Two cameras are used for multi-angle data acquisition, combining filtering and noise reduction, stereophotography measurement, image pyramid compression and deep learning technology, using bilateral filtering, histogram equalization, and multi-layer convolutional neural network and residual network to achieve three-dimensional Data acquisition and real-time monitoring.
It improves image quality and three-dimensional coordinate accuracy, optimizes data processing efficiency, enhances the accuracy of target detection and network performance, and meets the efficient, accurate and real-time requirements of scrap steel pile inventory detection.
Smart Images

Figure CN119006400A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine vision recognition and machine learning, and in particular to a method for detecting inventory changes of scrap steel piles based on machine vision. Background Art
[0002] In the rapid development of industrial automation and intelligent manufacturing, scrap steel, as an important recyclable resource, plays a vital role in resource conservation, cost control and environmental protection in terms of efficient management and precise measurement. However, traditional scrap steel inventory detection methods mainly rely on manual operation, which is not only inefficient but also susceptible to human errors and cannot meet the requirements of modern industrial production for high efficiency and high precision. In order to meet this challenge, machine vision technology has emerged. Machine vision is a technology that simulates the human visual system and acquires, processes and analyzes image data through image sensors and computer algorithms to detect and identify target objects. In the detection of scrap steel piles, machine vision can provide high-resolution image data, providing a solid foundation for subsequent data analysis and processing. In addition, the application of machine vision technology can significantly reduce labor costs and improve the degree of automation and accuracy of detection.
[0003] As an important branch of machine vision, stereo vision provides an effective means for 3D modeling of scrap piles by analyzing images taken from different angles to reconstruct 3D scenes. The application of stereo vision technology can improve the accuracy of the 3D coordinates of the target point, thereby achieving more accurate calculation of the volume and weight of the scrap pile. With the rapid development of deep learning technology, especially the powerful performance of convolutional neural networks in image recognition and classification tasks, detection methods based on deep learning have gradually become a research hotspot. CNN can automatically learn features in images through multi-layer nonlinear transformations, thereby achieving accurate detection and recognition of targets in scrap piles. In addition, the development of deep learning algorithms, such as residual networks and attention mechanisms, provides new solutions to solve some special problems in scrap pile detection, such as changes in ambient light, irregularities in the shape of scrap steel, and dynamic changes in inventory.
[0004] Although machine vision and deep learning technologies provide possibilities for automated detection of scrap piles, they still face many challenges in practical applications. For example, the environment of scrap piles is often dynamically changing, the light conditions are unstable, and the shapes of scrap steel are diverse, all of which bring difficulties to image acquisition and processing. In addition, the scale of scrap piles is often large, and how to quickly and accurately acquire and process a large amount of image data is also an urgent problem to be solved. In order to solve the above problems, researchers have proposed a variety of image processing and enhancement techniques, such as filtering noise reduction and histogram equalization, to improve image quality and reduce background interference. At the same time, in order to improve the accuracy of detection, researchers have also proposed a variety of feature fusion and multi-scale analysis methods to enhance the model's ability to distinguish features of different scales. In addition, in order to improve the real-time performance of detection, researchers have also explored how to deploy deep learning algorithms on edge computing devices to reduce the delay of data transmission and processing. In short, scrap pile inventory detection is a challenging but valuable research field. With the continuous advancement of machine vision, deep learning and related technologies, automated, accurate and efficient scrap pile inventory detection methods are expected to be further developed and improved. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In view of the deficiencies in the prior art, the present invention provides a method for detecting inventory changes in a scrap steel stockpile based on machine vision, which solves the technical problems mentioned in the background technology.
[0007] (II) Technical solution
[0008] S1. Install two cameras at different positions and angles in the scrap steel stockpile yard, and collect inventory image data of the scrap steel stockpile at different angles through the two cameras;
[0009] S2, filtering and denoising the stock image data in S1, and using stereophotogrammetry to calculate the filtered data to obtain the three-dimensional outer surface of the entire scene;
[0010] S3, performing space filling on the top and bottom of the three-dimensional outer surface data obtained in S2, and compressing the data through an image pyramid, to obtain real-time corresponding three-dimensional data of the scrap steel stockpile inventory;
[0011] S4, using deep learning to perform target detection and recognition on different images obtained in S1, and monitor the current inventory status of the scrap steel pile in real time;
[0012] S5. When a change in inventory is detected in S4, a new round of three-dimensional data acquisition of scrap steel stockpiling inventory is performed.
[0013] Preferably, in the filtering and denoising process described in S2, Gaussian filtering has a certain smoothing effect on the image while considering the influence of spatial factors on the filtering of the central pixel point, but it also has shortcomings; it only considers the influence of the spatial domain on the weight coefficient, so there are limitations in processing image edge information; in order to solve this problem, bilateral filtering adds the influence of the value range on the gray value of the central point on the basis of Gaussian filtering; unlike mean filtering and Gaussian filtering that only consider spatial factors, bilateral filtering combines spatial domain and value range to find a balance between smoothing the image and retaining edge details to obtain better filtering results; the specific formula of the bilateral filtering algorithm used is as follows:
[0014]
[0015] Among them, BF(i, j, m, n) represents the bilateral filtering value of the center point in the neighborhood, where (i, j) is the coordinate of the center point of the image, and (m, n) is the pixel coordinate of the neighborhood point; σ d and σ r are the spatial distance influencing factor and the range gray value influencing factor, respectively, and σ is set d =9 and σ r =20
[0016] Preferably, the stereophotogrammetry method of S2 is to calculate the three-dimensional physical coordinates of the point on the target based on the overlapping images captured by two different cameras in step S1; each pixel in the overlapping part of the two camera images will have a pixel coordinate (i, j) and a corresponding physical coordinate (x i ,y j ); Depth information z of each pixel on the target ij It is determined by calculating the triangulation problem after stereo calibration; the specific operation is as follows:
[0017] To simplify the depth calculation, assume that the origin of the physical coordinate system is located at the focal center of the left camera; then the physical coordinates of the optical center of the left camera and the right camera are (0,0,0) and (b,0,0) respectively, and the target point P ij The physical coordinates are (x i ,y j ,z ij );Target point P ij The depth z ij It can be calculated from the left image by triangulation as:
[0018]
[0019] Where f is the focal length of the camera; u L is the distance from the target point on the image plane to the left axis of the camera; similarly, the depth can be determined from the right image as:
[0020]
[0021] Among them, u R is the coordinate of the target point on the image plane on the right axis of the camera, in u R The axis is negative; due to P ij The physical coordinates of are unknown, so replace the x i The replacements are rearranged to:
[0022]
[0023] Among them, U L -U R is the dual-camera parallax; the units of parallax and focal length are pixels, while the units of baseline and P ij The coordinate unit is millimeter, so the depth of all objects of interest is calculated to form a depth map in millimeters.
[0024] Preferably, the three-dimensional data construction described in S3 first normalizes zij, and the specific formula is:
[0025]
[0026] Among them, z ij Normalized to the range of 0 to 1; Z max and z mi n is z ij The maximum and minimum values of ; then the normalized depth map in the ROI is converted into a continuous grayscale image, and the image pyramid is used for further spatial compression and decomposition; the image pyramid construction process is:
[0027] Design a one-dimensional low-pass S according to the following two criteria L and space Qualcomm S H The specific mathematical formula of the filter is:
[0028] |S L (ω)| 2 +|S H (ω)| 2 =1;
[0029]
[0030] Among them, S L (ω) and S H (ω) are the one-dimensional low-pass L and space Qualcomm S H Frequency response of the filter; set the filter coefficient to 2n+1, the frequency response of the one-dimensional low-pass filter can be rewritten as a trigonometric polynomial. The specific formula is as follows:
[0031]
[0032] Among them, α L The designed 1D filter S L Calculated using Chebyshev polynomials; cos(w) can be replaced by a filter T, which is the frequency response of a 3×3 two-dimensional filter in the McClellan transform, expressed as:
[0033]
[0034] Among them, ω X and ω Y Corresponding to the frequencies in the X and Y directions respectively.
[0035] Preferably, in the scrap steel stockpile inventory change detection algorithm of step S4, histogram equalization is used to eliminate color distribution distortion in the image, and the specific calculation process is:
[0036] Assume that the grayscale range of the image is [0, L-1], where L is the number of grayscale levels, and the normalized histogram is:
[0037]
[0038] Where N is the total number of pixels in the image, h(i) is the frequency (number of pixels) of each gray level i;
[0039]
[0040] Among them, the cumulative distribution function C(i) is the cumulative probability of all gray levels up to gray level i, and the range of C(i) is [0, 1]. The original gray value i is mapped to the new gray value i′, and the mapping formula is:
[0041]
[0042] in, It represents the mathematical operation of rounding down. Specifically, in the scrap steel stockpile inventory change detection algorithm, the specific operation formula is:
[0043]
[0044]
[0045] Where s is the transfer function, r is the brightness value (0-255), P r is the histogram function, s k is the process step length; by normalizing the transfer function, the input brightness value r k Mapped to the output brightness value s k , so that its maximum value is 255.
[0046] Preferably, the scrap steel stockpile inventory change detection algorithm in S4 is implemented by a multi-layer convolutional neural network, and combined with a residual network module to significantly improve the network depth and performance; the input data passes through multiple convolutional layers, and each convolutional layer is followed by a LeakyReLU activation function to enhance the nonlinear expression ability of the features and alleviate the gradient vanishing problem; then a residual module is introduced into the network structure, each residual module comprises three convolutional layers and a shortcut connection, and the calculation formula is y=F(x)+x, wherein y is the output of the residual module, x is the input of the module, and F(x) represents the main convolution operation part. This structure enables the network to effectively learn the residual mapping between input and output by directly adding the input x to F(x).
[0047] (III) Beneficial effects
[0048] The present invention provides a method for detecting changes in scrap steel stockpiles based on machine vision. It has the following beneficial effects:
[0049] The method for detecting the inventory change of scrap steel stockpiles based on machine vision includes proposing a method for detecting the inventory change of scrap steel stockpiles based on machine vision, which realizes multi-angle data collection by installing two cameras at different positions in the scrap steel stockpile yard, thereby enhancing the comprehensiveness and stereoscopic sense of the data; utilizing stereophotogrammetry combined with overlapping images captured by the two cameras to improve the accuracy of the three-dimensional coordinates of the target point; in addition, the method cleverly combines deep learning and filtering noise reduction technology, uses bilateral filtering, effectively improves the image quality while retaining edge details; through normalization processing and image pyramid technology, realizes effective compression of three-dimensional data, and optimizes data storage and processing efficiency; introduces histogram equalization technology to enhance the contrast of the image, help eliminate color distribution distortion, and improve the visual quality of the image; further, the method adopts a combination of a multi-layer convolutional neural network and a residual network module, which significantly improves the deep learning ability of the network and effectively improves the accuracy of target detection and network performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 The figure is a flow chart of a method for detecting inventory changes of scrap steel piles based on machine vision.
[0051] Figure 2 Schematic diagram of the coordinate system of the stereo camera.
[0052] Figure 3 Schematic diagram of the image pyramid structure.
[0053] Figure 4 Network structure for object detection in a scrap steel stockpile inventory. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] See also Figure 1-Figure 4 , the present invention provides a technical solution.
[0056] The present invention provides a method for detecting inventory changes in a scrap steel stockpile based on machine vision, so as to apply machine vision and deep learning technology to the detection of inventory changes in a scrap steel stockpile, thereby improving the efficiency of inventory change detection; Figure 1 Shown are the implementation steps of the present invention:
[0057] S1. Install two cameras (or more than two cameras) at different positions and angles in the scrap steel stockpile yard, and collect inventory image data of the scrap steel stockpile at different angles through the two cameras;
[0058] S2, filtering and denoising the stock image data in S1, and using stereophotogrammetry to calculate the filtered data to obtain the three-dimensional outer surface of the entire scene;
[0059] S3, performing space filling on the top and bottom of the three-dimensional outer surface data obtained in S2, and compressing the data through an image pyramid, to obtain real-time corresponding three-dimensional data of the scrap steel stockpile inventory;
[0060] S4, using deep learning to perform target detection and recognition on different images obtained in S1, and monitor the current inventory status of the scrap steel pile in real time;
[0061] S5. When a change in inventory is detected in S4, a new round of three-dimensional data acquisition of scrap steel stockpiling inventory is performed.
[0062] In the actual process of filtering and denoising described in step S2 of the present method, Gaussian filtering has a certain smoothing effect on the image while considering the influence of spatial factors on the filtering of the central pixel point, but it also has shortcomings; it only considers the influence of the spatial domain on the weight coefficient, so there are limitations in processing image edge information; in order to solve this problem, bilateral filtering adds the influence of the value range on the gray value of the central point on the basis of Gaussian filtering; unlike mean filtering and Gaussian filtering that only consider spatial factors, bilateral filtering combines spatial domain and value range to find a balance between smoothing the image and retaining edge details to obtain better filtering results; the specific formula of the bilateral filtering algorithm used is as follows:
[0063]
[0064] Among them, BF(i, j, m, n) represents the bilateral filtering value of the center point in the neighborhood, where (i, j) is the coordinate of the center point of the image, and (m, n) is the pixel coordinate of the neighborhood point; σ d and σ r are the spatial distance influencing factor and the range gray value influencing factor respectively. In the actual implementation process, σ is set d =9 and σ r =20.
[0065] As attached Figure 2 Schematic diagram of the coordinate system of the stereo camera shown in FIG. 1 , wherein FIG. (a) is the coordinate system of the overlapping images, and FIG. (b) is the stereo visual triangulation; the stereophotogrammetry method described in step S2 is to calculate the three-dimensional physical coordinates of the point on the target based on the overlapping images captured by two different cameras in step S1; each pixel in the overlapping part of the two camera images will have a pixel coordinate (i, j) and a corresponding physical coordinate (x i ,y j ); Depth information z of each pixel on the target ij It is determined by calculating the triangulation problem after stereo calibration; the specific operation is as follows:
[0066] To simplify the depth calculation, assume that the origin of the physical coordinate system is located at the focal center of the left camera; then the physical coordinates of the optical center of the left camera and the right camera are (0,0,0) and (b,0,0) respectively, and the target point P ij The physical coordinates are (x i ,y j ,z ij );Target point P ij The depth z ij It can be calculated from the left image by triangulation as:
[0067]
[0068] Where f is the focal length of the camera; u L is the distance from the target point on the image plane to the left axis of the camera; similarly, the depth can be determined from the right image as:
[0069]
[0070] Among them, u R is the coordinate of the target point on the image plane on the right axis of the camera, in u R The axis is negative; due to P ij The physical coordinates of are unknown, so replace the x i The replacements are rearranged to:
[0071]
[0072] Among them, U L -U R is the dual-camera parallax; the units of parallax and focal length are pixels, while the units of baseline and P ij The coordinate unit is millimeter, so the depth of all objects of interest is calculated to form a depth map in millimeters.
[0073] As attached Figure 3 The image is shown in the figure, where (a) is the image decomposition process and (b) is the image reconstruction process. Before the three-dimensional data is constructed in step S3, it is necessary to first convert z ij Normalization is performed, and the specific formula is:
[0074]
[0075] Among them, zij is normalized to the interval between 0 and 1; z max and z min They are z ij The maximum and minimum values of the depth map in R0I are then converted into a continuous grayscale image and the Figure 3 The image pyramid structure shown in the figure is further compressed and decomposed in space; the specific construction process of the image pyramid is as follows:
[0076] Design a one-dimensional low-pass S according to the following two criteria L and space Qualcomm S H The specific mathematical formula of the filter is:
[0077] |S L (ω)| 2 +|S H (ω)| 2 =1;
[0078]
[0079] Among them, S L (ω) and S H (ω) are the one-dimensional low-pass L and space Qualcomm S H Frequency response of the filter; set the filter coefficient to 2n+1, the frequency response of the one-dimensional low-pass filter can be rewritten as a trigonometric polynomial. The specific formula is as follows:
[0080]
[0081] Among them, α L The designed 1D filter S LCalculated using Chebyshev polynomials; cos(ω) can be replaced by a filter T, which is the frequency response of a 3×3 two-dimensional filter in the McClellan transform, expressed as:
[0082]
[0083] Among them, ω X and ω Y Corresponding to the frequencies in the X and Y directions respectively.
[0084] Furthermore, in the scrap steel stockpile inventory change detection algorithm described in step S4, histogram equalization is used to eliminate color distribution distortion in the image. The specific calculation process is:
[0085] Assume that the grayscale range of the image is [0, L-1], where L is the number of grayscale levels, and the normalized histogram is:
[0086]
[0087] Where N is the total number of pixels in the image, h(i) is the frequency (number of pixels) of each gray level i;
[0088]
[0089] Among them, the cumulative distribution function C(i) is the cumulative probability of all gray levels up to gray level i, and the range of C(i) is [0, 1]. The original gray value i is mapped to the new gray value i′, and the mapping formula is:
[0090]
[0091] in, It represents the mathematical operation of rounding down. Specifically, in the scrap steel stockpile inventory change detection algorithm, the specific operation formula is:
[0092]
[0093] Where s is the transfer function, r is the brightness value (0-255), P r is the histogram function, s k is the process step length; by normalizing the transfer function, the input brightness value r k Mapped to the output brightness value s k , so that its maximum value is 255.
[0094] As attached Figure 4The scrap steel pile inventory target detection network structure diagram shown in the scrap steel pile inventory change detection algorithm described in step S4 is implemented by a multi-layer convolutional neural network, and combined with a residual network module to significantly improve the network depth and performance; the input data passes through multiple convolutional layers, and each convolutional layer is followed by a LeakyReLU activation function to enhance the nonlinear expression ability of the features and alleviate the gradient vanishing problem; then the residual module is introduced into the network structure, each residual module contains three convolutional layers and a shortcut connection, and the calculation formula is y=F(x)+x, where y is the output of the residual module, x is the input of the module, and F(x) represents the main convolution operation part. This structure enables the network to effectively learn the residual mapping between input and output by directly adding the input x to F(x).
[0095] It should be noted that, in the description of the invention, the directions or positional relationships indicated by the terms "up", "down", "left", "right", "front", "back", etc. are descriptions of the structure of the present invention based on the accompanying drawings, and are only for the convenience of describing the present invention, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.
[0096] The "first" and "second" in this technical solution are only used to distinguish the names of the same or similar structures, or corresponding structures with similar functions, and are not an arrangement of the importance of these structures, nor do they have a ranking, comparison of size, or other meanings.
[0097] In addition, unless otherwise clearly specified and limited, the terms "installation" and "connection" should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be a connection between the two structures. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood based on the overall idea of the present invention and the specific context of the present solution.
Claims
1. A method for detecting changes in scrap steel stockpiles based on machine vision, characterized in that: The following steps are involved: S1. Install two or more cameras at different positions and angles in the scrap steel stockpile yard, and collect inventory image data of the scrap steel stockpile at different angles through the cameras; S2, using stereo photogrammetry to calculate the filtered data from the stock image data in S1 to obtain the three-dimensional outer surface of the entire scene; S3, performing space filling on the top and bottom of the three-dimensional outer surface data obtained in S2 to obtain real-time corresponding three-dimensional data of the scrap steel stockpile inventory; S4, using deep learning to perform target detection and recognition on different images obtained in S1, and monitor the current inventory status of the scrap steel pile in real time; S5. When a change in inventory is detected in S4, a new round of three-dimensional data acquisition of scrap steel stockpiling inventory is performed.
2. The method for detecting changes in scrap steel stockpiles based on machine vision according to claim 1, characterized in that: In the step S2, filtering and noise reduction are performed on the stock image data in S1.
3. The method for detecting changes in scrap steel stockpiles based on machine vision according to claim 2, characterized in that: In the filtering and noise reduction process described in S2, Gaussian filtering has a certain smoothing effect on the image while considering the influence of spatial factors on the filtering of the center pixel point, but it also has shortcomings; it only considers the influence of the spatial domain on the weight coefficient, so there are limitations in processing image edge information; in order to solve this problem, bilateral filtering adds the influence of the value range on the gray value of the center point on the basis of Gaussian filtering; unlike mean filtering and Gaussian filtering that only consider spatial factors, bilateral filtering combines spatial domain and value range to find a balance between smoothing the image and retaining edge details to obtain better filtering results; the specific formula of the bilateral filtering algorithm used is as follows: Among them, BF(i, j, m, n) represents the bilateral filtering value of the center point in the neighborhood, where (i, j) is the coordinate of the center point of the image, and (m, n) is the pixel coordinate of the neighborhood point; σ d and σ r are the spatial distance influencing factor and the range gray value influencing factor, respectively, and σ is set d =9 and σ r =20.
4. The method for detecting the inventory change of scrap steel stockpiles based on machine vision according to claim 1, characterized in that: The stereophotogrammetry method of step S2 is to calculate the three-dimensional physical coordinates of the points on the target based on the overlapping images captured by two different cameras in step S1; each pixel in the overlapping part of the two camera images will have a pixel coordinate (i, j) and a corresponding physical coordinate (x i ,y j ); Depth information z of each pixel on the target ij It is determined by calculating the triangulation problem after stereo calibration; the specific operation is as follows: To simplify the depth calculation, assume that the origin of the physical coordinate system is located at the focal center of the left camera; then the physical coordinates of the optical center of the left camera and the right camera are (0,0,0) and (b,0,0) respectively, and the target point P ij The physical coordinates are (x i ,y j ,z ij );Target point P ij The depth z ij It can be calculated from the left image by triangulation as: Where f is the focal length of the camera; u L is the distance from the target point on the image plane to the left axis of the camera; similarly, the depth can be determined from the right image as: Among them, u R is the coordinate of the target point on the image plane on the right axis of the camera, in u R The axis is negative; due to P ij The physical coordinates of are unknown, so replace the x i The replacements are rearranged to: Among them, U L -U R is the dual-camera parallax; the units of parallax and focal length are pixels, while the units of baseline and P ij The coordinate unit is millimeter, so the depth of all objects of interest is calculated to form a depth map in millimeters.
5. The method for detecting the inventory change of scrap steel stockpiles based on machine vision according to claim 1, characterized in that: The three-dimensional data construction described in S3 first normalizes zij, and the specific formula is: Among them, zij is normalized to the interval between 0 and 1; z max and z mi n is z ij The maximum and minimum values of ; then the normalized depth map in the ROI is converted into a continuous grayscale image, and the image pyramid is used for further spatial compression and decomposition; the image pyramid construction process is: Design a one-dimensional low-pass S according to the following two criteria L and space Qualcomm S H The specific mathematical formula of the filter is: |S L (oh)| 2 +|S H (oh)| 2 =1; Among them, S L (ω) and S H (ω) are the one-dimensional low-pass L and space Qualcomm S H Frequency response of the filter; set the filter coefficient to 2n+1, the frequency response of the one-dimensional low-pass filter can be rewritten as a trigonometric polynomial. The specific formula is as follows: Among them, α L The designed 1D filter S L Calculated using Chebyshev polynomials; cos(ω) can be replaced by a filter T, which is the frequency response of a 3×3 two-dimensional filter in the McClellan transform, expressed as: Among them, ω X and ω Y Corresponding to the frequencies in the X and Y directions respectively.
6. The method for detecting the inventory change of scrap steel stockpiles based on machine vision according to claim 1, characterized in that: In the scrap steel stockpile inventory change detection algorithm of step S4, histogram equalization is used to eliminate the color distribution distortion in the image. The specific calculation process is: Assume that the grayscale range of the image is [0, L-1], where L is the number of grayscale levels, and the normalized histogram is: Where N is the total number of pixels in the image, h(i) is the frequency (number of pixels) of each gray level i; Among them, the cumulative distribution function C(i) is the cumulative probability of all gray levels up to gray level i, and the range of C(i) is [0,1]. The original gray value i is mapped to the new gray value i′, and the mapping formula is: in, It represents the mathematical operation of rounding down. Specifically, in the scrap steel stockpile inventory change detection algorithm, the specific operation formula is: Where s is the transfer function, r is the brightness value (0-255), P r is the histogram function, s k is the process step length; by normalizing the transfer function, the input brightness value r k Mapped to the output brightness value s k , so that its maximum value is 255.
7. The method for detecting the inventory change of scrap steel stockpiles based on machine vision according to claim 1, characterized in that: The scrap steel stockpile inventory change detection algorithm in S4 is implemented through a multi-layer convolutional neural network, and combined with a residual network module to significantly improve the network depth and performance; the input data passes through multiple convolutional layers, and each convolutional layer is followed by a LeakyReLU activation function to enhance the nonlinear expression ability of the features and alleviate the gradient vanishing problem; then a residual module is introduced into the network structure, each residual module contains three convolutional layers and a shortcut connection, and the calculation formula is y=F(x)+x, where y is the output of the residual module, x is the input of the module, and F(x) represents the main convolution operation part. This structure enables the network to effectively learn the residual mapping between input and output by directly adding the input x to F(x).
Citation Information
Patent Citations
Target cargo pile monitoring method and related device
CN109118580A
Irregular stacking volume measurement method based on binocular camera
CN110738618A
Steel scrap stock yard inventory checking method and device
CN113947631A
Binocular recognition visual detection method for intelligent manufacturing production line
CN117764983A
Large irregular stockpile volume real-time measurement method based on binocular stereo matching
CN118134994A
