Inventory feedback device and inventory feedback method based thereon
By using servers, fixed terminals and mobile terminals of inventory feedback devices during the sorting process, combined with weight detection and image recognition technology, real-time monitoring and confirmation of storage goods is achieved, solving the lack of monitoring and accuracy in the existing sorting process. Solve the problem of low reliability and improve the sorting efficiency and accuracy.
Patent Information
- Application Number
- CN202410947128.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The lack of real-time monitoring and feedback mechanisms in the existing sorting process makes it difficult to detect abnormalities in the inventory of goods in picking storage locations in a timely manner, increasing labor and time costs. In addition, unstable weight detection and inaccurate manual identification lead to high sorting error rates.
Design an inventory feedback device, including a server, fixed terminal and mobile terminal. Through weight detection, image recognition and alarm device, it can realize real-time monitoring and confirmation of the weight and identity of goods in storage, detect abnormalities in time and prompt sorting personnel and Management staff.
It effectively reduces the labor and time costs of checking for leaks and filling gaps, improves the accuracy and efficiency of sorting, ensures the correctness of goods, and reduces the risk of incorrect goods flowing into the next process.
Smart Images

Figure CN118485384B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent technology, and in particular to an inventory feedback device and an inventory feedback method based thereon. Background Art
[0002] In current trade logistics and production logistics companies, the sorting of small goods and parts is a critical and complex link. In most cases, these companies use equipment-assisted manual sorting methods, while sorting centers with a higher degree of automation and intelligence may use fully automatic equipment for sorting. Although the degree of automation continues to increase, due to the large amount of sorting work for small goods and production parts and the high requirements for timeliness, it is difficult to completely eliminate the situation of over-picking or missed picking, whether it is manual sorting or equipment sorting. This inaccurate sorting will lead to the risk of shipping errors, and in serious cases may even affect the company's brand image and continued production.
[0003] In order to improve the accuracy of sorting as much as possible, the sorting process is usually supplemented by one or more rounds of review and more frequent inventory checks compared to large warehouses. However, this approach still has its shortcomings: first, it consumes more manpower and working hours; second, this approach is mainly a post-remediation rather than process control, so it has limited direct effect on improving sorting quality; finally, once an error occurs, it is difficult to accurately trace the link where the problem occurred and it is not easy to find improvement measures.
[0004] The core of these problems lies in the lack of real-time monitoring and feedback alarm mechanism for the inventory of picking storage locations. The lack of effective monitoring means that it is impossible to detect and prompt abnormal inventory of picking storage locations in a timely manner, which requires enterprises to invest more manpower and time costs to deal with errors and omissions.
[0005] In addition, most of the current methods only use weight detection devices to monitor the weight of storage locations. This method may cause the weight detection value to be unstable due to the sorting personnel's operation (such as the action when picking up and placing goods) or the characteristics of the goods themselves (such as the presence of liquid inside causing weight fluctuations), and it takes a longer time to obtain accurate weight data. At the same time, there is also the possibility that the sorting personnel will take the wrong goods, which further increases the uncertainty and error rate in the sorting process.
[0006] In summary, the existing sorting process has obvious shortcomings, and technological innovation is needed to solve these problems, improve sorting efficiency and accuracy, reduce the company's manpower and material costs, and optimize the operational efficiency of the entire logistics chain. Summary of the invention
[0007] In order to solve the above technical problems, the present invention provides an inventory feedback device and an inventory feedback method based thereon, which realizes intelligent detection of sorting process, inventory management, etc.
[0008] The present invention is achieved through the following technical solutions:
[0009] An inventory feedback device comprises: a server, a fixed terminal and a mobile terminal, wherein the fixed terminal is connected to the server by wired communication or wireless communication, the mobile terminal is connected to the server by wireless communication, the fixed terminal is arranged at a storage location where goods are stored, and the mobile terminal is held by a sorting staff;
[0010] The fixed terminal includes: a weight detection device, a display device and an alarm device, wherein the weight detection device is used to detect the weight of the remaining goods on the storage location, the display device is used to display part of the goods information sent by the server, and the alarm device is used to issue a warning prompt;
[0011] The mobile terminal includes: a display module, an image acquisition module and an operation module, wherein the display module is used to display part of the product information sent by the server, the image recognition module is used to acquire images of the sorted products, and the operation module is used to perform an execution confirmation operation;
[0012] The server is provided with an image recognition module, and the image recognition module is used to perform image recognition on the product image collected by the image collection module.
[0013] An inventory feedback method is based on an inventory feedback device, and the inventory feedback method includes:
[0014] Preset product information on the server, the product information includes inventory information and sorting information, the inventory information includes product name, storage location, product weight, and product quantity, and the sorting information includes product name, sorting quantity, and storage location;
[0015] The server sends the sorting information to the mobile terminal, and the mobile terminal displays the sorting information;
[0016] The server sends the inventory information and sorting information to the fixed terminal, and the fixed terminal displays the inventory information;
[0017] The fixed terminal transmits the weight data obtained by the weight detection device to the server in real time;
[0018] The sorting personnel perform the sorting operation on the goods at the storage location according to the sorting information on the mobile terminal, collect the images of the sorted goods through the image acquisition module, and perform the sorting confirmation operation through the mobile terminal;
[0019] The server performs image recognition based on the product image and obtains the product name, and determines whether the obtained product name is consistent with the product name in the sorting information. If they are inconsistent, it is determined that the product is abnormal; if they are consistent, it is determined that the product is normal;
[0020] If the goods are normal, the server calculates the expected weight data based on the inventory information and sorting information, and the server calculates the actual weight data based on the weight data;
[0021] Calculate the adaptive threshold and the difference between the expected weight data and the actual weight data. If the difference is greater than the adaptive threshold, it is determined that the sorting is abnormal; otherwise, it is determined that the sorting is normal.
[0022] Specifically, the method for the weight detection device to obtain weight data includes:
[0023] Setting a sampling interval and obtaining detection data of the weight detection device according to the sampling interval;
[0024] Set the filter window, which includes Detection data distributed in time series;
[0025] Determine the properties of the product and filter the first Set weights for each position , ;
[0026] Get new detection data and add it to the end of the filter window, while removing the old value at the front of the window;
[0027] Calculate the weighted average weight of all detection data within the filter window ,in, The first The detection data of each location, is the number of detection data, is the index variable;
[0028] The weighted average weight is transmitted to the server as weight data.
[0029] Optionally, set weights based on the attributes of the item The methods include:
[0030] If the goods in the storage location are liquid, the weight ,in, is a natural constant, is the attenuation coefficient;
[0031] If the goods in the storage location are solid, the weight .
[0032] Specifically, the method for the server to perform image recognition includes:
[0033] Preprocess the original image to obtain a processed feature image;
[0034] Determine the standard deviation of a series ;
[0035] For each standard deviation, construct the corresponding Gaussian kernel ,in, is the standard deviation The Gaussian kernel under is the pixel position;
[0036] Constructing Gaussian scale space of feature images ,in, is the standard deviation Gaussian scale space image under is the convolution operation, is the feature image;
[0037] Find extreme points in Gaussian scale space and use them as candidate points;
[0038] For each candidate point, through the key point positioning function , accurately locate the position and scale of the key points to obtain the key points, where, are the position and scale vectors in image space, For the location The DoG response value at is the DoG response value of the key point location, The DoG response value is The first-order partial derivative with respect to position is The DoG response value is The second-order partial derivative with respect to position is For vector The transpose of
[0039] By assigning a function The direction amplitude of the key points is calculated, where is the image of the scale where the key point is located, is the gradient direction of the key point;
[0040] Generate feature vectors based on the gradient information of the area around the key points;
[0041] The feature vector is input into the trained SVM model, and the original image is recognized through the SVM model.
[0042] Optionally, the method for preprocessing the image includes:
[0043] The grayscale image is obtained by graying the original image using the weighted average method. , ,in, , , are the three color channel values;
[0044] The brightness of the grayscale image is balanced by histogram averaging, and the grayscale value of each pixel in the grayscale image is mapped. , get the equalized grayscale image ,in, is the total number of gray levels, is the original gray value, is the gray value after mapping, For rounding operation, is the cumulative histogram under the original gray value;
[0045] The equalized grayscale image is enhanced by the enhancement function Perform contrast enhancement to obtain an enhanced image ,in, is the horizontal gradient of the image, is the gradient of the image in the vertical direction;
[0046] The processed feature image is obtained by mean filtering ,in, is the size of the filter, is the pixel area covered by the filter, For The gray value at is the horizontal coordinate of the pixel area covered by the filter, is the vertical coordinate within the pixel area covered by the filter.
[0047] Specifically, the training method for the SVM model includes:
[0048] Get training images, preprocess them, and build training data ,in, is the feature vector, For labels, is the number of training data;
[0049] Select kernel function Map the original feature space to a high-dimensional space;
[0050] Transform the optimization problem into a dual problem. ,in, It means to find the maximum objective function value, and is the index variable in the sum calculation, , , is the feature vector The corresponding Lagrange multiplier is, is the feature vector The corresponding Lagrange multiplier is, is the feature vector The corresponding label, is the feature vector The corresponding label, is the regularization parameter, To calculate the eigenvector by kernel function and The similarity between them; the optimal solution is obtained by solving the sequence minimum optimization algorithm , Used to indicate that the following conditions apply: Used to indicate that the constraint applies to all specified elements;
[0051] Calculate model parameters based on the optimal solution ,in, is the weight vector, is the bias term, For the The optimal Lagrange multiplier for the eigenvectors, For any one The index of For the The optimal Lagrange multiplier for the eigenvectors, For the The labels of the feature vectors, is the feature vector and The similarity between
[0052] Get the classification decision function ,in, is the new input feature vector, The new input feature vector and The similarity.
[0053] Specifically, the method for calculating the adaptive threshold includes:
[0054] Get by time series Historical sorting data, including actual weight data and expected weight data;
[0055] Calculate the average selection error of the storage location ,in, is the index, , For the The actual weight of the first sorting, For the Expected weight of the next sort;
[0056] Calculate the standard deviation of the storage position ;
[0057] Calculate dynamic adaptive threshold ,in, is the strict coefficient of the set threshold;
[0058] Get new sorting data, add the new sorting data to the historical sorting data, and remove the first historical sorting data;
[0059] Update the adaptive threshold.
[0060] Specifically, the method for performing the sorting confirmation operation through the mobile terminal includes:
[0061] After the sorting is completed, the sorting personnel enter the sorting quantity on the mobile terminal and transmit the sorting quantity to the server;
[0062] The server compares the received sorting quantity with the sorting quantity in the sorting information. If the values are the same, the server calculates the expected weight data based on the sorting quantity and the weight of the goods; if the values are different, a reconfirmation prompt message is sent to the mobile terminal.
[0063] Optionally, expected weight data=goods quantity×goods weight.
[0064] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0065] The present invention realizes real-time monitoring of the weight of remaining goods in the storage location by arranging a fixed terminal at the storage location, including a weight detection device, a display device and an alarm device, as well as a real-time communication connection with a server. It can not only detect abnormal inventory of goods in time, but also directly prompt sorting personnel and management personnel through the alarm device, thereby greatly reducing the manpower and time costs of checking for omissions and filling gaps.
[0066] By utilizing the image acquisition module of the mobile terminal and the image recognition module in the server, images of the sorted goods can be captured and recognized, ensuring the correctness of the sorted goods and reducing sorting errors caused by inaccurate manual recognition.
[0067] When the goods are abnormal or the sorting is abnormal, the system can quickly identify and feedback, such as calculating the difference between the expected weight and the actual weight through the server, and comparing it with the adaptive threshold to determine whether the sorting is abnormal. This can effectively prevent the wrong goods from entering the next process and improve the efficiency and accuracy of the entire logistics system.
[0068] Through the reasonable configuration of fixed terminals and mobile terminals, the invention effectively coordinates the relationship between manual sorting and equipment assistance, enabling sorters to complete more accurate sorting tasks in a shorter time, solving the problems of insufficient monitoring, low accuracy and low efficiency in traditional sorting processes, and providing commercial logistics and production logistics companies with an efficient, accurate and easy-to-monitor inventory feedback solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The accompanying drawings illustrate exemplary embodiments of the present invention and, together with the description thereof, are used to explain the principles of the present invention. These drawings are included to provide a further understanding of the present invention, and the accompanying drawings are included in and constitute a part of this specification and do not constitute a limitation of the embodiments of the present invention.
[0070] Figure 1 It is a flow chart of an inventory feedback method according to the present invention. DETAILED DESCRIPTION
[0071] To make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and implementation methods. It is understood that the specific implementation methods described herein are only used to explain the relevant content, rather than to limit the present invention.
[0072] It should also be noted that, for the convenience of description, only the parts related to the present invention are shown in the drawings.
[0073] In the absence of conflict, the embodiments and features of the embodiments of the present invention may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0074] Embodiment 1, an inventory feedback device includes: a server, a fixed terminal and a mobile terminal, the fixed terminal is connected to the server by wired communication or wireless communication, the mobile terminal is connected to the server by wireless communication, the fixed terminal is set at a storage location for storing goods, and the mobile terminal is held by a sorting staff.
[0075] The fixed terminal includes: a weight detection device, a display device and an alarm device. The weight detection device is used to detect the weight of the remaining goods on the storage location. The display device is used to display part of the goods information sent by the server. The alarm device is used to issue a warning prompt.
[0076] The mobile terminal includes: a display module, an image acquisition module and an operation module, wherein the display module is used to display part of the product information sent by the server, the image acquisition module is used to acquire images of the sorted products, and the operation module is used to perform execution confirmation operations;
[0077] An image recognition module is provided in the server, and the image recognition module is used to perform image recognition on the product images collected by the image collection module.
[0078] As the core of the entire inventory feedback device, the server is responsible for processing data from fixed terminals and mobile terminals, including weight data, image data, etc. The server is equipped with an image recognition module to identify the product images collected by the mobile terminal to verify the correctness of the sorted products. In addition, the server is also responsible for sending product information to fixed terminals and mobile terminals, and analyzing and processing the collected data, such as calculating the difference between expected and actual weights to determine whether the sorting is normal.
[0079] The fixed terminal is set at the storage location where the goods are stored and is connected to the server through wired or wireless communication. The fixed terminal includes a weight detection device, a display device and an alarm device. The weight detection device is used to detect the weight of the remaining goods in the storage location to achieve real-time monitoring of the inventory of goods. The display device is used to display the goods information sent by the server, such as inventory status, information on goods to be sorted, etc. The alarm device issues a warning prompt when an abnormality is detected (such as abnormal inventory of goods, sorting errors, etc.) so that timely measures can be taken.
[0080] The mobile terminal is held by the sorting personnel and is connected to the server by wireless communication. The mobile terminal includes a display module, an image acquisition module and an operation module. The display module is used to display the product information sent by the server and guide the sorting personnel to perform the sorting operation. The image acquisition module is used to collect the images of the sorted products and then send them to the server through wireless communication for image recognition to verify the accuracy of the sorting. The operation module is used for the sorting personnel to perform confirmation operations, such as confirming the sorting quantity and reporting the sorting results.
[0081] Wired communication is a communication method that transmits data through physical wires, while wireless communication is a method of transmitting information through radio waves. In this device, the fixed terminal can communicate with the server through wired or wireless means, while the mobile terminal is connected to the server through wireless communication to ensure real-time data transmission.
[0082] Image recognition module: It is an important functional module inside the server. It processes and analyzes the collected image data to identify the product information in the image. This technology can automatically identify objects in the image, such as the type and quantity of goods, and is one of the key technologies to improve sorting accuracy.
[0083] Through the organic combination of the above components and functions, the inventory feedback device realizes real-time monitoring and accurate sorting of warehouse goods, improving the efficiency and accuracy of logistics sorting.
[0084] Embodiment 2, as Figure 1As shown, this embodiment provides an inventory feedback method based on an inventory feedback device, which covers multiple links such as preset of product information, information transmission, weight monitoring, sorting operation and its confirmation.
[0085] Inventory feedback methods include:
[0086] 1. Preset product information on the server. Product information includes inventory information and sorting information. Inventory information includes product name (including product type, model, label, etc.), storage location (i.e. the storage location of the product in the warehouse), product weight, and product quantity. Sorting information includes product name, sorting quantity, and storage location. This step provides necessary data support for subsequent inventory management and sorting operations.
[0087] 2. The server sends the sorting information to the mobile terminal, which displays the sorting information. The sorting information mainly refers to the information needed in the sorting process, including the name of the goods, the quantity to be sorted, and the storage location of the goods. The mobile terminal is usually held by the sorting personnel, which ensures that the sorting personnel can view the required sorting information in real time when performing the sorting operation.
[0088] 3. The server sends the inventory information and sorting information to the fixed terminal, which displays the inventory information. The fixed terminal is set at the storage location where the goods are stored. The displayed inventory information allows the sorting personnel to understand the inventory of the goods in the current storage location and assist the sorting operation.
[0089] 4. The fixed terminal transmits the weight data obtained by the weight detection device to the server in real time; the weight detection device on the fixed terminal detects the weight of the remaining goods in the storage space and transmits the weight data back to the server in real time. This step is very critical for monitoring the real-time inventory of goods and also provides a basis for subsequent abnormal detection.
[0090] 5. The sorting personnel perform sorting operations on the goods at the storage location according to the sorting information on the mobile terminal, collect images of the sorted goods through the image acquisition module, and perform sorting confirmation operations through the mobile terminal.
[0091] The sorting personnel sort the goods at the designated storage location according to the sorting information displayed on the mobile terminal. During the sorting process, the image acquisition module of the mobile terminal is used to capture images of the sorted goods, and the correctness of the sorted goods is verified through subsequent image recognition technology.
[0092] After sorting is completed, the sorting confirmation operation is performed through the mobile terminal. This usually includes confirming whether the sorting quantity is consistent with the sorting information preset by the server, so as to ensure the accuracy of the sorting operation.
[0093] 6. The server performs image recognition based on the product image and obtains the product name, and determines whether the obtained product name is consistent with the product name in the sorting information. If they are inconsistent, it is determined that the product is abnormal; if they are consistent, it is determined that the product is normal.
[0094] The sorting personnel use the image acquisition module of the mobile terminal to take images of the sorted goods, which are then transmitted to the server. The image recognition module in the server analyzes the collected images to identify and determine the name of the goods.
[0095] The server compares the product name obtained by image recognition with the product name in the pre-set sorting information. If the two are inconsistent, it means that the sorted product is not the expected product, and the server determines this as "product abnormality"; if they are consistent, it is determined as "product normal".
[0096] 7. If the goods are normal, the server calculates the expected weight data based on the inventory information and sorting information, and the server calculates the actual weight data based on the weight data.
[0097] For each sorting operation, the server calculates the expected weight data based on the number of goods in the sorting information and the weight of each product, that is, expected weight data = number of goods × weight of goods. The server receives the actual weight data of the goods on the storage location measured by the weight detection device of the fixed terminal.
[0098] 8. The server calculates the adaptive threshold and the difference between the expected weight data and the actual weight data. If the difference is greater than the adaptive threshold, it is determined that the sorting is abnormal; otherwise, it is determined that the sorting is normal.
[0099] The server calculates the difference between the expected weight data and the actual weight data, and compares the difference with the adaptive threshold. If the difference is greater than the adaptive threshold, it means that there is a large deviation between the actual sorting weight and the expected weight, and the server determines that the sorting is "abnormal"; if the difference is within the adaptive threshold, it means that the sorting weight is consistent with the expected weight, and it is determined to be "normal".
[0100] The core of the entire inventory feedback method lies in the dual guarantee of real-time and accuracy. Through the information exchange between the server and the terminal equipment, not only the real-time update and sharing of sorting information is realized, but also the sorting process is accurately monitored and verified through weight detection and image recognition technology. This method effectively improves the efficiency of inventory management and the accuracy of sorting operations, and provides an effective technical solution for modern logistics and warehousing management.
[0101] Embodiment 3: This embodiment provides a method for the weight detection device in step 4 to obtain weight data, including:
[0102] Set the sampling interval and obtain the detection data of the weight detection device according to the sampling interval; the sampling interval refers to the time interval between two data collections of the weight detection device during continuous measurement. By setting a suitable sampling interval, the real-time nature of the detection and the complexity of data processing can be balanced to ensure the continuity and effectiveness of data collection.
[0103] Set the filter window, which includes The detection data distributed in time series is used to store a certain amount of weight data collected recently. The function of the filter window is to provide a time series data set for data processing.
[0104] Determine the properties of the product and filter the first Set weights for each position , ; Set weights based on product attributes The method includes: if the goods on the storage location are liquid, the weight ,in, is a natural constant, is the decay coefficient, a positive number used to control the speed of weight decay; if the goods on the storage position are solid, the weight .
[0105] The weight setting reflects the importance of data collected at different time points in calculating the final average weight. In this embodiment, the weight is adjusted according to the physical properties of the goods. Through this differentiated weight setting method, the weight detection device can more accurately reflect the characteristics of different types of goods in weight measurement, thereby improving the accuracy and reliability of the overall measurement.
[0106] Liquid goods are often fluid, so the weight data at the storage location may fluctuate greatly. In order to reduce the impact of such fluctuations on the final measurement results, the weight setting adopts an exponential decay function. This setting method makes the newer data in the window (i.e. near The higher weight of the data reflects that when dealing with the weight of liquid goods, the more recent measurement results are more important to offset the weight fluctuations caused by the fluidity of the liquid.
[0107] Solid goods have better weight stability and less fluctuation than liquid goods. Therefore, for solid goods, the weight is set as a linear decreasing function. This weight distribution ensures that all data within the filter window are considered, but gives higher weight to newer data, while simplifying the calculation process. For solid goods, this weight setting is sufficient to handle its relatively stable weight data.
[0108] At each sampling interval, new weight detection data is obtained and added to the end of the filter window, while the oldest value at the front of the window is removed. This process ensures that the filter window always contains the most recent N detection data.
[0109] Calculate the weighted average weight of all detection data within the filter window ,in, The first The detection data of each location, is the number of detection data, It is an index variable that effectively smooths short-term weight fluctuations and obtains more stable and accurate weight data.
[0110] The weighted average weight is transmitted to the server as weight data. The calculated weighted average weight is transmitted to the server as actual weight data. Such weight data is more stable than the original data, reducing the error caused by weight fluctuation, thereby improving the overall sorting accuracy and efficiency.
[0111] Embodiment 4 provides a method for the server to perform image recognition in step 6, comprising:
[0112] In order to improve the quality of the image, reduce the interference factors in the processing process, and make the image features more obvious, the original image is preprocessed to obtain the processed feature image;
[0113] Determine the standard deviation of a series , is the number of standard deviations; in image processing, different The values correspond to the smoothness of the image at different scales. The value allows the algorithm to detect features at multiple scales, improving the accuracy and robustness of recognition.
[0114] For each standard deviation, construct the corresponding Gaussian kernel ,in, is the standard deviation The Gaussian kernel under is the pixel position; by combining Gaussian smoothing and Laplace edge detection, the changes in the area can be effectively detected in the image.
[0115] Constructing Gaussian scale space of feature images ,in, is the standard deviation Gaussian scale space image under is the convolution operation, is the feature image; by convolving the LoG kernel with the image, a series of images at different scales are generated, which represent the image at different scales ( value).
[0116] Find extreme points in Gaussian scale space and use them as candidate points. In Gaussian scale space, the algorithm looks for local extreme points, which usually correspond to significant features in the image. These local extreme points serve as candidates for key points and enter the next step of precise positioning.
[0117] For each candidate point, through the key point positioning function , accurately locate the position and scale of the key points to obtain the key points, where, are the position and scale vectors in image space, For the location The DoG response value at is the DoG response value of the key point location, The DoG response value is The first-order partial derivative with respect to position is The DoG response value is The second-order partial derivative with respect to position is For vector The transpose of the key point is precisely determined. The optimal position and scale of each candidate point can be precisely located through Taylor expansion approximation, thereby determining the final key point.
[0118] By assigning a function The direction amplitude of the key points is calculated, where is the image of the scale where the key point is located, is the gradient direction of the key point.
[0119] Assign one or more directions to each key point so that the feature descriptor is invariant to image rotation. By calculating the gradient direction of the pixels around the key point To assign values, the gradient direction is the key point in its scale image Specifically, the arctan function is used to calculate the main direction of each key point based on the pixel differences in the horizontal and vertical directions.
[0120] Generate a feature vector based on the gradient information of the area around the key point; in order to construct a feature vector that can represent the local structure of the key point based on the gradient information of the key point and its surrounding area, this embodiment gathers the gradient information in different direction ranges in the area around the key point to form a vector. This vector takes into account the gradient direction and size around the key point, in this way, even when the image is scaled, rotated or the brightness changes, the consistency of the feature can be maintained.
[0121] The feature vector is input into the trained SVM model, and the original image is recognized through the SVM model.
[0122] The SVM model finds the optimal segmentation hyperplane in the feature space to effectively separate samples of different categories. First, the SVM model needs to be trained based on sample data of known categories. Then, the feature vector generated in the previous steps is used as input to the trained SVM model. The SVM model determines which category the input feature vector belongs to based on the input feature vector, thereby completing the recognition of objects or scenes in the original image.
[0123] This embodiment utilizes the multi-scale features of the image and identifies the key feature points in the image through an accurate mathematical model. The server can extract sufficient information from the image to perform effective image recognition. The direction assignment of the key points and the generation of feature vectors enhance the robustness of the recognition process to image transformations, and the use of the SVM model provides a powerful decision-making mechanism, making the entire image recognition process both accurate and efficient.
[0124] Embodiment 5: In embodiment 4, the method for preprocessing an image includes:
[0125] In order to reduce the amount of calculation and eliminate the influence of color information on image processing, the focus is placed on the brightness of the image, and the original image is grayed out by the weighted average method to obtain a grayscale image. , ,in, , , For The three color channel values at .
[0126] The brightness of the grayscale image is balanced by histogram averaging, and the grayscale value of each pixel in the grayscale image is mapped. , get the equalized grayscale image ,in, is the total number of gray levels, is the original gray value, is the gray value after mapping, For rounding operation, is the cumulative histogram under the original grayscale value; by mapping the grayscale value of each pixel of the grayscale image and adjusting its brightness according to the cumulative histogram of the original image, the brightness distribution of the image can be expanded to the entire grayscale level range, thereby enhancing the contrast of the image.
[0127] The equalized grayscale image is enhanced by the enhancement function Perform contrast enhancement to obtain an enhanced image ,in, is the horizontal gradient of the image, is the vertical gradient of the image; the enhancement function increases the contrast based on the gradient information of the image. It calculates the gradient of each pixel in the image in the horizontal and vertical directions, and then performs square root processing on the gradient values to achieve contrast enhancement.
[0128] The processed feature image is obtained by mean filtering ,in, is the size of the filter, is the pixel area covered by the filter, For The gray value at is the horizontal coordinate of the pixel area covered by the filter, is the vertical coordinate within the pixel area covered by the filter; replacing the value of each pixel in the image with the average value of the pixels in its neighborhood can effectively remove random noise in the image, making the image smoother while retaining the main structural features of the image.
[0129] In Example 6, the basic principle of SVM is to find a hyperplane in the feature space so that the hyperplane can separate data of different categories as much as possible and maximize the distance (i.e., interval) between the data point (support vector) closest to the hyperplane and the hyperplane. By mapping to a high-dimensional space and using a kernel function, SVM can effectively handle the situation of linear inseparability in the original feature space and achieve accurate classification of complex data sets. The training method of the SVM model in Example 4 includes:
[0130] Get training images, preprocess them, and build training data ,in, is the feature vector, For labels, is the number of training data; the training data consists of feature vectors and the corresponding labels In this embodiment, the pretreatment is carried out by the method in embodiment five.
[0131] Select kernel function Map the original feature space to a high-dimensional space; the kernel function is to map the original feature space to a higher-dimensional space, so that the data that is linearly inseparable in the original space can become linearly separable in the high-dimensional space. Common kernel functions include linear kernels, polynomial kernels, radial basis function (RBF) kernels, etc.
[0132] The goal of SVM is to maximize the classification interval, which can be achieved by solving an optimization problem. By introducing Lagrange multipliers, the original optimization problem can be transformed into a dual problem, transforming the optimization problem into a dual problem. ,in, It means to find the maximum objective function value, and is the index variable in the sum calculation, , , is the feature vector The corresponding Lagrange multiplier is, is the feature vector The corresponding Lagrange multiplier is, is the feature vector The corresponding label, is the feature vector The corresponding label, is the regularization parameter, To calculate the eigenvector by kernel function and The similarity between them; the optimal solution is obtained by solving the sequence minimum optimization algorithm , Used to indicate that the following conditions apply: Used to indicate that the constraint applies to all specified elements.
[0133] Calculate model parameters based on the optimal solution ,in, is the weight vector, is the bias term. These two parameters define the optimal decision boundary in the feature space. For the The optimal Lagrange multiplier for the eigenvectors, For any one The index of For the The optimal Lagrange multiplier for the eigenvectors, For the The labels of the feature vectors, is the feature vector and The similarity between .
[0134] Get the classification decision function ,in, is the new input feature vector, The new input feature vector and This function makes predictions based on the similarity between the input vector and the training data (calculated by the kernel function) and the learned model parameters.
[0135] Embodiment 7: This embodiment provides a method for calculating the adaptive threshold in step 8, including:
[0136] Get by time series Historical sorting data, including actual weight data and expected weight data;
[0137] Calculate the average selection error of the storage location ,in, is the index, , For the The actual weight of the first sorting, For the Expected weight of the next sort; It is the average of the difference between the actual weight and the expected weight in the historical sorting data. It represents the average level of weight error in the past sorting process.
[0138] Calculate the standard deviation of the storage position ; It is an indicator to measure the degree of dispersion of sorting weight error distribution. The larger the standard deviation, the greater the fluctuation of sorting weight error.
[0139] Dynamic adaptive thresholds are calculated dynamically based on the mean selection error and standard deviation ,in, The threshold strictness coefficient is set to adjust the looseness or strictness of the threshold. The adaptive threshold is used to determine whether the new sorting is abnormal. If the weight error of the new sorting exceeds this threshold, the sorting is considered abnormal.
[0140] Get new sorting data, add the new sorting data to the historical sorting data, and remove the first historical sorting data; update the adaptive threshold.
[0141] After each sorting, new sorting data will be added to the historical data and the oldest sorting data will be removed. As new data is added, the average picking error ME, standard deviation SD and adaptive threshold T will be recalculated and updated based on the latest historical sorting data.
[0142] Adaptive thresholds enable the inventory feedback system to flexibly adapt to changes in weight errors during the sorting process, and adjust the thresholds in a timely manner to accurately determine whether the sorting is abnormal. By dynamically updating the thresholds, the system can more accurately identify sorting anomalies and improve the overall accuracy and efficiency of the sorting process.
[0143] Embodiment 8: Sorting confirmation operation is a key part of the inventory management system, which is directly related to the verification of sorting accuracy and the update of inventory data. This process mainly involves the interaction between the sorting personnel and the server to ensure that the results of the sorting operation are accurately recorded. The method for performing sorting confirmation operation through a mobile terminal includes:
[0144] After the sorting is completed, the sorting personnel enter the sorting quantity in the mobile terminal. After the sorting is completed, the sorting personnel need to enter the actual quantity they have sorted in the mobile terminal. This step is to digitize the actual sorting results for subsequent data processing and verification. The input sorting quantity represents the specific number of goods sorted by the sorting personnel according to the order or task.
[0145] The sorting quantity is transmitted to the server; the sorting quantity entered by the sorting personnel on the mobile terminal will be transmitted to the central server. The server is responsible for processing all sorting data, including sorting quantity verification, inventory update, etc.
[0146] The server compares the received sorting quantity with the sorting quantity in the sorting information. If the values are the same, the server calculates the expected weight data based on the sorting quantity and the weight of the goods; if the values are different, a reconfirmation prompt message is sent to the mobile terminal.
[0147] After receiving the sorting quantity transmitted by the mobile terminal, the server will compare it with the preset sorting information in the system. The preset sorting information is generated based on orders or inventory requirements and contains the expected sorting quantity for each item.
[0148] If the sorting quantity entered by the sorter is the same as the preset sorting quantity in the server, the server will calculate an expected weight data based on the quantity and the weight information of the goods for subsequent weight verification and inventory update.
[0149] If the sorting quantity entered by the sorter is different from the preset sorting quantity, this may indicate that there is an error or problem in the sorting process. At this time, the server will send a reconfirmation prompt message to the mobile terminal, requiring the sorter to recheck and confirm their sorting results.
[0150] This process aims to ensure that the data of all sorting operations is accurate, thereby maintaining the correctness and timely update of inventory data. The reconfirmation prompt message sent to the mobile terminal is a mechanism to prevent and correct errors, allowing sorters to self-check before submitting data, reducing the risk of errors being passed to the next process.
[0151] Embodiment 9, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned antenna interface unit testing method are implemented.
[0152] Without loss of generality, computer readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instruction data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technology, CD-ROM, DVD or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory and mass storage devices can be collectively referred to as memory.
[0153] A computer program product comprises a computer program / instruction, wherein the computer program / instruction implements the steps of any one of the above methods when executed by a processor.
[0154] A computer program product includes a computer program or set of instructions for performing specific tasks or implementing specific functions. These programs or instructions are designed to be executed by a processor to implement a series of predefined steps or operations. The program product may be stored in various forms of computer storage media, such as memory, hard disk, solid-state drive, optical disk or other forms of digital storage devices. It may exist in the form of compiled binary code or in the form of scripts or bytecodes that can be executed by an interpreter. The program product uses carefully designed algorithms and logical instructions to enable the processor to process data in a specific order and manner to complete various functions such as data analysis, user interaction, device control, etc.
[0155] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment / method or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments / methods or examples described in this specification and the features of the different embodiments / methods or examples, unless they are contradictory.
[0156] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0157] It should be understood by those skilled in the art that the above embodiments are only for the purpose of clearly illustrating the present invention, and are not intended to limit the scope of the present invention. For those skilled in the art, other changes or modifications may be made based on the above invention, and these changes or modifications are still within the scope of the present invention.
Claims
1. An inventory feedback method, characterized in that: Based on an inventory feedback device, the device includes: a server, a fixed terminal and a mobile terminal, the fixed terminal is connected to the server by wired communication or wireless communication, the mobile terminal is connected to the server by wireless communication, the fixed terminal is set at a storage location for storing goods, and the mobile terminal is held by a sorting staff; The fixed terminal includes: a weight detection device, a display device and an alarm device, wherein the weight detection device is used to detect the weight of the remaining goods on the storage location, the display device is used to display part of the goods information sent by the server, and the alarm device is used to issue a warning prompt; The mobile terminal includes: a display module, an image acquisition module and an operation module, wherein the display module is used to display part of the product information sent by the server, the image acquisition module is used to acquire images of the sorted products, and the operation module is used to perform an execution confirmation operation; The server is provided with an image recognition module, and the image recognition module is used to perform image recognition on the product image collected by the image collection module; The inventory feedback method comprises: Preset product information on the server, the product information includes inventory information and sorting information, the inventory information includes product name, storage location, product weight, and product quantity, and the sorting information includes product name, sorting quantity, and storage location; The server sends the sorting information to the mobile terminal, and the mobile terminal displays the sorting information; The server sends the inventory information and sorting information to the fixed terminal, and the fixed terminal displays the inventory information; The fixed terminal transmits the weight data obtained by the weight detection device to the server in real time; The sorting personnel perform the sorting operation on the goods at the storage location according to the sorting information on the mobile terminal, collect the images of the sorted goods through the image acquisition module, and perform the sorting confirmation operation through the mobile terminal; The server performs image recognition based on the product image and obtains the product name, and determines whether the obtained product name is consistent with the product name in the sorting information. If they are inconsistent, it is determined that the product is abnormal; if they are consistent, it is determined that the product is normal; If the goods are normal, the server calculates the expected weight data based on the inventory information and sorting information, and the server calculates the actual weight data based on the weight data; Calculate the adaptive threshold and the difference between the expected weight data and the actual weight data. If the difference is greater than the adaptive threshold, it is determined that the sorting is abnormal; otherwise, it is determined that the sorting is normal; The method for the weight detection device to obtain weight data includes: Setting a sampling interval and obtaining detection data of the weight detection device according to the sampling interval; Set the filter window, which includes Detection data distributed in time series; Determine the properties of the product and filter the first Set weights for each position , ; Get new detection data and add it to the end of the filter window, while removing the old value at the front of the window; Calculate the weighted average weight of all detection data within the filter window ,in, The first The detection data of each location, is the number of detection data, is the index variable; The weighted average weight is transmitted to the server as weight data; Among them, the weight is set according to the attributes of the goods The methods include: If the goods in the storage location are liquid, the weight ,in, is a natural constant, is the attenuation coefficient; If the goods in the storage location are solid, the weight .
2. The inventory feedback method according to claim 1, characterized in that: The method for the server to perform image recognition includes: Preprocess the original image to obtain a processed feature image; Determine the standard deviation of a series ; For each standard deviation, construct the corresponding Gaussian kernel ,in, is the standard deviation The Gaussian kernel under is the pixel position; Constructing Gaussian scale space of feature images ,in, is the standard deviation Gaussian scale space image under is the convolution operation, is the feature image; Find extreme points in Gaussian scale space and use them as candidate points; For each candidate point, through the key point positioning function , accurately locate the position and scale of the key points to obtain the key points, where, are the position and scale vectors in image space, For the location The DoG response value at is the DoG response value of the key point location, The DoG response value is The first-order partial derivative with respect to position is The DoG response value is The second-order partial derivative with respect to position is For vector The transpose of By assigning a function The direction amplitude of the key points is calculated, where is the image of the scale where the key point is located, is the gradient direction of the key point; Generate feature vectors based on the gradient information of the area around the key points; The feature vector is input into the trained SVM model, and the original image is recognized through the SVM model.
3. The inventory feedback method according to claim 2, characterized in that: Methods for preprocessing images include: The grayscale image is obtained by graying the original image using the weighted average method. , ,in, , , For The three color channel values at ; The brightness of the grayscale image is balanced by histogram averaging, and the grayscale value of each pixel in the grayscale image is mapped. , get the equalized grayscale image ,in, is the total number of gray levels, is the original gray value, is the gray value after mapping, For rounding operation, is the cumulative histogram under the original gray value; The equalized grayscale image is enhanced by the enhancement function Perform contrast enhancement to obtain an enhanced image ,in, is the horizontal gradient of the image, is the gradient of the image in the vertical direction; The processed feature image is obtained by mean filtering ,in, is the size of the filter, is the pixel area covered by the filter, For The gray value at is the horizontal coordinate of the pixel area covered by the filter, is the vertical coordinate within the pixel area covered by the filter.
4. The inventory feedback method according to claim 2, characterized in that: The training methods for the SVM model include: Get training images, preprocess them, and build training data ,in, is the feature vector, For labels, is the number of training data; Select kernel function Map the original feature space to a high-dimensional space; Transform the optimization problem into a dual problem. ,in, It means to find the maximum objective function value, and is the index variable in the sum calculation, , , is the feature vector The corresponding Lagrange multiplier is, is the feature vector The corresponding Lagrange multiplier is, is the feature vector The corresponding label, is the feature vector The corresponding label, is the regularization parameter, To calculate the eigenvector by kernel function and The similarity between them; the optimal solution is obtained by solving the sequence minimum optimization algorithm , Used to indicate that the following conditions apply: Used to indicate that the constraint applies to all specified elements; Calculate model parameters based on the optimal solution ,in, is the weight vector, is the bias term, For the The optimal Lagrange multiplier for the eigenvectors, For any one The index of For the The optimal Lagrange multiplier for the eigenvectors, For the The labels of the feature vectors, is the feature vector and The similarity between Get the classification decision function ,in, is the new input feature vector, The new input feature vector and The similarity.
5. The inventory feedback method according to claim 1, characterized in that: Methods for calculating adaptive thresholds include: Get by time series Historical sorting data, including actual weight data and expected weight data; Calculate the average selection error of the storage location ,in, is the index, , For the The actual weight of the first sorting, For the Expected weight of the next sort; Calculate the standard deviation of the storage position ; Calculate dynamic adaptive threshold ,in, is the strict coefficient of the set threshold; Get new sorting data, add the new sorting data to the historical sorting data, and remove the first historical sorting data; Update the adaptive threshold.
6. The inventory feedback method according to claim 1, characterized in that: The method for performing sorting confirmation operation through a mobile terminal includes: After the sorting is completed, the sorting personnel enter the sorting quantity on the mobile terminal and transmit the sorting quantity to the server; The server compares the received sorting quantity with the sorting quantity in the sorting information. If the values are the same, the server calculates the expected weight data based on the sorting quantity and the weight of the goods; if the values are different, a reconfirmation prompt message is sent to the mobile terminal.
7. The inventory feedback method according to claim 1, characterized in that: Expected weight data = quantity of goods × weight of goods.
