E-commerce warehouse employee data processing method and system based on cloud system
By using cloud-based neural radiation field technology and dirt recognition methods in e-commerce warehouses to process QR code image data, the problem of low QR code scanning accuracy in traditional solutions has been solved, and the accuracy of employee attendance management has been improved. and efficiency.
Patent Information
- Application Number
- CN202410832069.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Traditional e-commerce warehouse employee QR code scanning and data processing solutions have problems with low processing efficiency and processing accuracy. This is mainly due to the fact that the QR code information is difficult to identify due to the tilted, reflective or dirty work badges, which affects the accuracy and efficiency of attendance management.
Using a data processing method based on the cloud system, the QR code image data is converted into scanned images from multiple angles through the neural radiation field, connected domains are extracted and identifiable areas are determined, combined with dirt probability identification and repair technology, verification and cloud system With a preset QR code image in , the intersection of the associated employee sets is calculated to determine the scan result.
It improves the accuracy and reliability of QR code information, improves the efficiency and accuracy of attendance management, can successfully identify employee information in the presence of reflections or dirt, and ensures the accuracy of employee attendance records.
Smart Images

Figure CN118378653B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a method and system for processing data of e-commerce warehouse employees based on a cloud system. Background Art
[0002] In the process of changing positions of e-commerce warehouse employees, it is usually necessary to scan the QR code on the employee's work badge first, match the scan result with the information stored in the cloud system, obtain the employee's information, and start working on behalf of the employee after confirmation.
[0003] In the related art, when scanning the QR code on the employee's ID card, the QR code information cannot be well recognized due to problems such as the ID card being tilted, reflective, or dirty, which in turn affects the accuracy of subsequent employee data processing, resulting in low attendance management efficiency and attendance accuracy for e-commerce warehouse employees.
[0004] Therefore, the QR code scanning and data processing solutions of traditional e-commerce warehouse employees have technical problems of low processing efficiency and processing accuracy. Summary of the invention
[0005] In order to solve the technical problems of low processing efficiency and processing accuracy of the QR code scanning and data processing solutions of traditional e-commerce warehouse employees, the purpose of the present invention is to provide an e-commerce warehouse employee data processing method and system based on a cloud system. The technical solutions adopted are as follows:
[0006] In one aspect, the present invention provides a method for processing e-commerce warehouse employee data based on a cloud system, the method comprising:
[0007] Obtain at least one set of QR code image data of an e-commerce warehouse employee;
[0008] Converting the at least one set of two-dimensional code image data into scanned images at multiple angles through a neural radiation field;
[0009] Extracting a plurality of connected domains in each of the scanned images, and determining a recognizable area of each of the scanned images from the plurality of connected domains;
[0010] According to the identifiable area, each of the scanned images is verified with a preset QR code image of each employee in the cloud system, and a plurality of associated employee sets are established according to the verification results;
[0011] The intersection of all the associated employee sets is calculated, and the QR code scanning result of the e-commerce warehouse employee is determined according to the associated employees in the intersection.
[0012] According to a method for processing e-commerce warehouse employee data based on a cloud system provided by the present invention, determining a recognizable area of each scanned image from the multiple connected domains includes:
[0013] For each of the scanned images, determining the pixel grayscale variance and the region edge angle of each connected domain;
[0014] Calculating the contamination probability of each connected domain based on the pixel grayscale variance and the region edge angle;
[0015] Comparing the contamination probability with a preset probability threshold to obtain a contamination recognition result for each connected domain;
[0016] According to the dirt recognition results of each connected domain in all the scanned images, the identifiable area of each scanned image is determined.
[0017] According to a method for processing e-commerce warehouse employee data based on a cloud system provided by the present invention, the dirt probability is compared with a preset probability threshold to obtain a dirt recognition result for each connected domain, including:
[0018] If the dirt probability is below the preset probability threshold, the dirt recognition result is that the connected domain is a valid area;
[0019] If the dirt probability is greater than the preset probability threshold, the dirt recognition result is that the connected domain is a dirty area.
[0020] According to a method for processing e-commerce warehouse employee data based on a cloud system provided by the present invention, the identifiable area of each scanned image is determined according to the dirt recognition results of each connected domain in all the scanned images, including:
[0021] Determine a local area in which pixel information in all the scanned images is consistent and in which at least one of the dirt recognition results is a valid area as a recognizable area of each of the scanned images;
[0022] The local area is the entire connected domain or a partial sub-area within the connected domain.
[0023] According to a method for processing e-commerce warehouse employee data based on a cloud system provided by the present invention, each of the scanned images is verified with a preset two-dimensional code image of each employee in the cloud system according to the identifiable area, including:
[0024] Repairing at least a portion of the area outside the identifiable area in each of the scanned images to obtain a repaired area;
[0025] The repaired area and the identifiable area are used as areas to be verified, and the area similarity between each area to be verified and the preset QR code image of each employee in the cloud system is determined respectively;
[0026] According to the area similarity and the image area ratio of the area to be verified, the image similarity between each image of the area to be verified and the preset QR code image of each employee in the cloud system is calculated, and the image similarity is used as the verification result.
[0027] According to a method for processing e-commerce warehouse employee data based on a cloud system provided by the present invention, at least a portion of the area outside the identifiable area in each of the scanned images is repaired to obtain a repaired area, including:
[0028] For each of the scanned images, extracting connected domain features of the identifiable area in the scanned image;
[0029] Determining the size of the QR code module based on the connected domain features of the identifiable area;
[0030] Dividing the scanned image into a plurality of image blocks having the same size as the two-dimensional code module;
[0031] The pattern trend information and the local decoding information of the identifiable area are determined, and based on the pattern trend information and the local decoding information of the identifiable area, each image block in at least a partial area outside the identifiable area is repaired to obtain a repaired area.
[0032] According to a method for processing e-commerce warehouse employee data based on a cloud system provided by the present invention, based on the pattern trend information and local decoding information of the identifiable area, each image block in at least a part of the area outside the identifiable area is repaired to obtain a repaired area, including:
[0033] Generate multiple repair solutions based on the pattern trend information and local decoding information of the identifiable area;
[0034] For at least a portion of the area outside the identifiable area, calculating the restoration credibility corresponding to each of the various restoration schemes for each image block;
[0035] Based on the restoration credibility, each image block in at least a partial area outside the identifiable area is restored to obtain a restoration area.
[0036] According to a method for processing e-commerce warehouse employee data based on a cloud system provided by the present invention, for at least a portion of the area outside the identifiable area, the restoration credibility corresponding to various restoration schemes of each image block is calculated, including:
[0037] Determine the maximum circumscribed rectangle of the dirty area in the scanned image;
[0038] Determine a first distance between each image block in at least a partial area outside the identifiable area and each dirty area within the maximum circumscribed rectangle, a degree of dirtiness of each dirty area, a second distance between the image block and an edge of the dirty area, and a probability that each restoration scheme of the image block is consistent with reality;
[0039] Taking the first distance corresponding to each dirty area as a quotient of the dirt degree to obtain a quotient value parameter of each dirty area;
[0040] The quotient parameters of all the dirty areas are summed up to calculate the repair credible parameters;
[0041] Taking the quotient of the restoration credible parameter and the second distance as a quotient, a restoration influencing parameter is calculated;
[0042] The restoration influence parameter is multiplied by the probability that each restoration scheme of the image block is consistent with the actual situation to obtain the restoration credibility.
[0043] According to a method for processing e-commerce warehouse employee data based on a cloud system provided by the present invention, the regional similarity between each of the to-be-verified areas and a preset two-dimensional code image of each employee in the cloud system is determined respectively, including:
[0044] For each of the areas to be verified, respectively determine the minimum distance between each feature point in the area to be verified and the dirty area in the corresponding image, the geometric consistency between each feature point and the corresponding matching point in the preset two-dimensional code image of each employee in the cloud system, and the weight of each feature point;
[0045] Based on the minimum distance, the geometric consistency and the weight, the regional similarity between the area to be verified and the preset two-dimensional code image of each employee in the cloud system is calculated.
[0046] On the other hand, the present invention also provides an e-commerce warehouse employee data processing system based on a cloud system, comprising:
[0047] A code scanning device is used to scan the QR code of the e-commerce warehouse employee to obtain at least one set of QR code image data;
[0048] A control device is connected to the code scanning device and the cloud system respectively. The control device includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, any one of the above-mentioned methods for processing e-commerce warehouse employee data based on the cloud system is implemented.
[0049] The present invention has the following beneficial effects:
[0050] At least one set of two-dimensional code image data is converted into scanned images at multiple angles through the neural radiation field, multiple connected domains in each scanned image are extracted, and the recognizable area of the scanned image is determined from the multiple connected domains. According to the recognizable area, each scanned image is verified with the preset two-dimensional code image of each employee in the cloud system, and multiple sets of associated employees are established according to the verification results, and the intersection of all associated employee sets is calculated. According to the associated employees in the intersection, the two-dimensional code scanning results of the e-commerce warehouse employees are determined. Since the scanned images at multiple angles can more comprehensively reflect the multi-angle scanning of the two-dimensional code, combined with the determination of the recognizable area and the verification process with the cloud system, the two-dimensional code information of the e-commerce warehouse employees can be accurately and reliably scanned and processed, thereby improving the efficiency and accuracy of attendance management. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A flowchart of a method for processing e-commerce warehouse employee data based on a cloud system provided by an embodiment of the present invention;
[0053] Figure 2 A schematic diagram of the structure of an e-commerce warehouse employee data processing system based on a cloud system provided by one embodiment of the present invention;
[0054] Figure 3 Schematic diagram of the structure of the control device in the embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of an e-commerce warehouse employee data processing method and system based on a cloud system proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0056] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0057] The following is combined with Figures 1 to 3 The specific scheme of the e-commerce warehouse employee data processing method and system based on the cloud system provided by the present invention is specifically described.
[0058] See also Figure 1 , which shows a flow chart of a method for processing e-commerce warehouse employee data based on a cloud system provided by an embodiment of the present invention.
[0059] like Figure 1 As shown, the e-commerce warehouse employee data processing method based on the cloud system provided by the embodiment of the present invention, the execution subject can be a control device with data receiving and sending and data processing functions, and the control device is connected to the cloud system. The method specifically includes:
[0060] Step 110: Obtain at least one set of QR code image data of an e-commerce warehouse employee.
[0061] In actual applications, the ID cards of e-commerce warehouse employees can be scanned by a barcode scanning device, and one or more sets of QR code image data on the ID card can be obtained through continuous image acquisition technology. Each frame of the QR code image data can be grayscaled and denoised to ensure the accuracy of the QR code image data used in subsequent data processing.
[0062] Step 120: Convert at least one set of two-dimensional code image data into scanned images at multiple angles through the neural radiation field.
[0063] It is understandable that due to lighting, at different angles, reflections and dirt have different effects on the recognizability of the two-dimensional code image data. Therefore, based on the acquisition of a limited number of two-dimensional code image data, this embodiment uses the neural radiance field to further acquire the images of the two-dimensional code image data at other angles to obtain scanned images at multiple angles. Neural Radiance Field (NeRF) is a neural network that can reconstruct complex three-dimensional scenes based on a partial two-dimensional image set and realize the construction of scanned images at multiple angles.
[0064] Step 130: extract multiple connected domains in each scanned image, and determine the identifiable area of each scanned image from the multiple connected domains.
[0065] In this embodiment, the scanned image can be clustered by a clustering algorithm. For example, a K-means algorithm can be used for clustering to obtain a cluster image. The connected domain in the scanned image can be extracted based on the clustering results in the cluster image.
[0066] Since the connected domains in the QR code area in the scanned image are all single color, the color change in a single connected domain in the dirty area is greater than that in the QR code area, and the edge angles near the corners of the connected domain representing the dirty area are relatively irregular, while the edge angles near the corners of the QR code area are all 90°. Therefore, the dirty area and the valid area can be simply identified by the above two-point features, and then the identifiable area of each scanned image can be determined based on the identification results.
[0067] Step 140: Verify each scanned image with a preset QR code image of each employee in the cloud system according to the identifiable area, and establish multiple associated employee sets according to the verification results.
[0068] This embodiment uses the identifiable area to compare and verify the scanned image with the preset QR code image pre-stored in the cloud system, and then establishes a set of associated employees corresponding to each scanned image. It can be understood that the associated employees in the associated employee set are most likely the employees corresponding to the current scanned image.
[0069] Step 150: Calculate the intersection of all associated employee sets, and determine the QR code scanning results of the e-commerce warehouse employees based on the associated employees in the intersection.
[0070] This embodiment can determine the associated employees corresponding to the scanned images at various angles by finding the intersection, and then determine the target employees that can be matched with the scanned QR code image data in the cloud system, so as to determine the QR code scanning results of the current e-commerce warehouse employees. The scanning and data processing process reduces the influence of light and dirt, thereby improving the data processing accuracy and processing efficiency of the e-commerce warehouse employees. In the case of possible reflections or minor dirt, the relevant employees can be successfully identified, the employees' on-the-job time can be confirmed, and the shift change of the e-commerce warehouse employees can be completed.
[0071] In one embodiment, determining the identifiable area of each scanned image from a plurality of connected domains specifically includes:
[0072] In the first step, for each scanned image, the pixel grayscale variance and the region edge angle of each connected domain are determined.
[0073] It is understandable that for a connected domain, a corner point The edge points of the connected domain on the left are recorded as points , the corner point The edge points of the connected domain on the right are recorded as points , line segment With line segment The angle formed is the area edge angle .
[0074] In the second step, the dirtiness probability of each connected domain is calculated based on the pixel grayscale variance and the region edge angle.
[0075] In this embodiment, the The grayscale variance of all pixels in a connected domain, that is, the pixel grayscale variance is , suppose there are Corner points, then The probability that a connected domain is a dirty area, that is, the dirty probability It can be expressed as:
[0076] (1)
[0077] In the formula, () represents the linear normalization function, Indicates The pixel grayscale variance of the connected domain is Indicates The edge angle of the jth region in a connected domain is Indicates The total number of corner points in a connected domain, Indicates the difference between the angle formed by the edge points near a corner point (i.e., the region edge angle) and 90°. The larger the difference corresponding to all corner points in the connected domain, the more irregular the edge angle near the corner point of the connected domain, and the greater the probability that the connected domain is a dirty area (i.e., the probability of dirtiness). The larger the pixel grayscale variance in the connected domain, the more uneven the color distribution of the pixels in the connected domain, and the greater the probability of dirtiness in the connected domain.
[0078] The third step is to compare the contamination probability with the preset probability threshold to obtain the contamination recognition result of each connected domain.
[0079] In a specific implementation, the contamination probability is compared with a preset probability threshold to obtain the contamination recognition result of each connected domain, which specifically includes:
[0080] If the dirt probability is below the preset probability threshold, the dirt recognition result is that the connected domain is a valid area.
[0081] If the dirt probability is greater than the preset probability threshold, the dirt recognition result is that the connected domain is a dirty area.
[0082] In this embodiment, a preset probability threshold can be set in advance, for example, the preset probability threshold can be set to 0.8. If the probability of dirtiness of a connected domain is greater than the preset probability threshold, it means that the probability of the connected domain being a dirty area is relatively high, and the dirtiness recognition result of the connected domain can be determined as a dirty area. If the probability of dirtiness of a connected domain is less than or equal to the preset probability threshold, it means that the probability of the connected domain being a dirty area is relatively low, and the dirtiness recognition result of the connected domain can be determined as an identifiable valid area. Through the above process, the region division of a scanned image can be completed, and each scanned image can be divided into regions in turn according to the same process.
[0083] The fourth step is to determine the identifiable area of each scanned image according to the dirt recognition results of each connected domain in all the scanned images.
[0084] In a specific implementation, determining the identifiable area of each scanned image according to the dirt recognition results of each connected domain in all scanned images specifically includes:
[0085] A local area in which pixel information in all scanned images is consistent and at least one dirt recognition result is a valid area is determined as a recognizable area of each scanned image.
[0086] The local area may be the entire connected domain or a partial sub-area within the connected domain.
[0087] In this embodiment, the scanned images at different angles can be compared. In one case, when a local area is The scanned image corresponding to the angle is identified as a dirty area, while When the scanned image corresponding to the angle is identified as a valid area, the local area can be determined as a recognizable area, and the recognizable image of the local area corresponds to At the same time, if the local area is The scanned image corresponding to the angle is identified as a dirty area, and the degree of dirtiness of the local area is recorded as .
[0088] In another case, if a local area is determined to be a valid area in the scanned images at multiple angles, but the pixel information of the local area in the scanned images corresponding to each angle is different, then the local area is still a dirty area.
[0089] That is, in this embodiment, all local areas with consistent pixel information in all scanned images and at least one dirt recognition result as a valid area are determined as the identifiable area of each scanned image. Finally, the identifiable areas and dirt areas with consistent recognition in the scanned images at various angles can be obtained.
[0090] It should be noted that the local area mentioned in this embodiment does not specifically refer to a complete connected domain, but may be a complete connected domain or a partial sub-area within a connected domain.
[0091] In one embodiment, each scanned image is verified with a preset QR code image of each employee in the cloud system according to the identifiable area, specifically including:
[0092] In the first step, at least a portion of the area outside the identifiable area in each scanned image is repaired to obtain a repaired area.
[0093] In this embodiment, for at least part of the area outside the identifiable area in each scanned image, the dirty areas that are consistent in the scanned image recognition at various angles can be repaired, thereby expanding the area of the effective identifiable area and providing more valid data points for the subsequent verification process.
[0094] In the second step, the repaired area and the identifiable area are taken as the area to be verified.
[0095] As both the repaired area and the identifiable area can be effectively identified, the above two areas can be used as areas to be verified in subsequent verification steps.
[0096] In the third step, the regional similarity between each area to be verified and the preset QR code image of each employee in the cloud system is determined respectively.
[0097] By calculating the regional similarity between the image information of the area to be verified and the image information of the preset QR code images of each employee pre-stored in the cloud system, accurate data basis can be provided for the verification of the QR code information.
[0098] The fourth step is to calculate the image similarity between the image of the area to be verified and the preset QR code image of each employee in the cloud system based on the area similarity and the image area ratio of the area to be verified, and use the image similarity as the verification result.
[0099] The data credibility of the regional similarity obtained in the area to be verified can be determined by the area ratio of the area to be verified and the scanned image, and then the image similarity of a certain scanned image can be further calculated to obtain the verification result of each scanned image.
[0100] In one embodiment, repairing at least a portion of the area outside the identifiable area in each scanned image to obtain a repaired area specifically includes:
[0101] In the first step, for each scanned image, the connected domain features of the identifiable area in the scanned image are extracted.
[0102] To ensure the quality of subsequent image matching, this embodiment attempts to repair each scanned image as much as possible before matching. The repair process is mainly aimed at dirty areas or some sub-areas within the dirty areas. The repair process is mainly based on some key features within the identifiable area, such as connected domain features.
[0103] The second step is to determine the size of the QR code module based on the connected domain features of the identifiable area.
[0104] This embodiment can find the QR code module at the angle and determine the size of the QR code module by extracting the connected domain features of the identifiable area. Usually, the QR code module is a square module, so the size of the QR code module can specifically be the length and width data of the QR code module.
[0105] The third step is to divide the scanned image into multiple image blocks of the same size as the QR code module.
[0106] According to the size of the two-dimensional code module, an image block consistent with the size of the two-dimensional code module can be determined, so that the scanned image can be divided into multiple image blocks, each of which is a square.
[0107] The fourth step is to determine the pattern trend information and local decoding information of the identifiable area, and based on the pattern trend information and local decoding information of the identifiable area, repair each image block in at least a part of the area outside the identifiable area to obtain a repaired area.
[0108] In one embodiment, based on the pattern trend information and the local decoding information of the identifiable area, each image block in at least a part of the area outside the identifiable area is repaired to obtain the repaired area, which specifically includes:
[0109] Firstly, multiple repair schemes are generated based on the pattern direction information and local decoding information of the identifiable area.
[0110] In this embodiment, the unrecognizable information of the dirty area can be inferred based on the pattern trend information and the local decoding information in the recognizable area, and multiple repair schemes can be generated to repair each image block in at least a part of the area outside the recognizable area.
[0111] Then, for at least a portion of the area outside the identifiable area, the restoration credibility corresponding to each of the various restoration schemes of each image block is calculated.
[0112] It can be understood that the probability of each repair solution being able to successfully repair can be known through the repair credibility, so that the effectiveness of each repair solution can be evaluated.
[0113] Finally, based on the restoration credibility, each image block in at least a portion of the area outside the identifiable area is restored to obtain a restored area.
[0114] In one embodiment, for at least a portion of the area outside the identifiable area, the restoration credibility corresponding to each of the various restoration schemes of each image block is calculated, specifically including:
[0115] The first step is to determine the maximum bounding rectangle of the dirty area in the scanned image.
[0116] In this embodiment, the maximum circumscribed rectangle includes all dirty areas in the scanned image, and of course, also includes a portion of the identifiable area.
[0117] The second step is to determine the first distance between each image block and each dirty area in the maximum circumscribed rectangle, the degree of dirtiness of each dirty area, the second distance between the image block and the edge of the dirty area, and the probability that each repair scheme of the image block is consistent with the actual situation in at least a part of the area outside the identifiable area.
[0118] It can be understood that if the area ratio of the dirty area within the maximum circumscribed rectangle is larger, the less information is contained in the identifiable area, and the lower the credibility of the repair scheme is; when a certain image block is farther away from the edge of the dirty area, the less relevant information is contained in the image block, and the lower the credibility of the repair result is; when a certain image block is closer to a dirty area with a high degree of dirtiness, the lower the credibility of the repair-dependent information of the image block is, and the corresponding credibility of the repair result of the image block is also lower. Therefore, this embodiment introduces a variety of relevant parameters in the repair credibility calculation link to accurately calculate the repair credibility of different repair schemes under different image blocks.
[0119] In the third step, the first distance corresponding to each dirty area is divided by the degree of dirtiness to obtain a quotient value parameter of each dirty area.
[0120] The fourth step is to sum up the quotient parameters of all dirty areas and calculate the repair credible parameters.
[0121] The fifth step is to calculate the repair influence parameter by dividing the repair credible parameter by the second distance.
[0122] In the sixth step, the restoration impact parameter is multiplied by the probability that each restoration scheme of the image block is consistent with the actual situation to obtain the restoration credibility.
[0123] In this embodiment, The image block The probability that the repair scheme is consistent with the actual situation is recorded as , the minimum distance between the image block and the edge of the dirty area, that is, the second distance is recorded as The number of areas with non-zero dirtiness within the maximum circumscribed rectangle is recorded as , the image block is at the distance The minimum distance between the dirty areas, that is, the first distance is recorded as , No. The degree of dirtiness of the dirty area is recorded as , then The image block The repair credibility of the repair scheme It can be expressed as:
[0124] (2)
[0125] In the formula, {} represents the linear normalization function, Indicates The image block The probability that the repair solution is consistent with the actual situation, represents the second distance, Indicates the number of areas with non-zero dirtiness within the maximum circumscribed rectangle. represents the first distance, Indicates The degree of dirtiness of the dirty area.
[0126] In the above process, the distance between a certain image block and the area with non-zero dirtiness is first calculated. And the degree of dirtiness of the corresponding area , and then determine the restoration credible parameter corresponding to the area where the surrounding dirtiness is not 0, and compare the restoration credible parameter with the distance between the image block and the edge of the dirty area. Combined with the above, the restoration effect parameter of the dirty image block is obtained, and finally the restoration effect parameter is used to repair the first The image block The probability that the repair solution is consistent with the actual situation After correction, we finally get The image block The repair credibility of the repair scheme.
[0127] In practical applications, after determining the restoration credibility of various restoration schemes for each image block, each image block can be restored according to the restoration scheme with the highest restoration credibility corresponding to each image block, thereby obtaining the restoration area. It is also possible to arrange and combine different restoration schemes for different image blocks to obtain multiple restoration schemes corresponding to each scanned image, and use the restoration results of multiple different dirty areas of multiple scanned images as a restoration image group, and use the restoration image group to replace the scanning image group composed of scanning images at multiple angles for the subsequent verification process.
[0128] In one embodiment, determining the regional similarity between each to-be-verified region and a preset QR code image of each employee in the cloud system includes:
[0129] First, for each area to be verified, the minimum distance between each feature point in the area to be verified and the dirty area in the image to which it belongs, the geometric consistency between each feature point and the corresponding matching point in the preset QR code image of each employee in the cloud system, and the weight of each feature point are determined respectively;
[0130] Then, based on the minimum distance, geometric consistency and weight, the regional similarity between the area to be verified and the preset QR code image of each employee in the cloud system is calculated.
[0131] This embodiment takes the establishment of a repaired image group and the use of the repaired image group for the verification process as an example. First, the repaired image in the repaired image group is compared with the preset QR code images of all employees pre-stored in the cloud system, and the image similarity between the repaired image in the repaired image group and the preset QR code image is calculated by feature matching.
[0132] Specifically, let the first The repaired image The feature point is related to the The preset QR code image of each employee pixels are identified as matching point pairs when comparing descriptors, and the geometric consistency between the two points is recorded as , the total number of matching point pairs determined in the matching phase is recorded as , then repair the first The area to be verified in the repaired image and the area represented in the cloud system The regional similarity of the preset QR code images of each employee It can be expressed as:
[0133] (3)
[0134] in,
[0135] (4)
[0136] In the above formula, Indicates In the repaired image The minimum distance from the feature point to the dirty area in the repaired image, Indicates The weight of feature points, Indicates The feature point is related to the The preset QR code image of each employee The geometric consistency between pixels. Indicates the total number of matching point pairs determined in the matching phase.
[0137] It should be noted that in the process of using the K-means clustering algorithm to identify dirty areas, dirty areas at certain angles may not be fully identified. Therefore, the farther the feature point is from the dirty area, the more likely it is that there is no dirty feature point. The geometric consistency between the point and the matching point in the preset two-dimensional code image can better illustrate the similarity between the two images, and thus the feature point can be given a higher weight. At the same time, when the feature point is a recognizable pixel point, the weight k assigned to the feature point is 1. When the pixel point is a repair pixel point with an undetermined result, the probability that the repair result of the feature point is consistent with the actual situation is given. as its weight k.
[0138] Furthermore, let the first The area of the region to be verified in the repaired image is , the total area of the repaired image is , then the first The restored image and Image similarity of preset QR code images of employees It can be expressed as:
[0139] (5)
[0140] In the above formula, ( ) represents the linear normalization function, Indicates the first The ratio of the area of the to-be-verified region in the inpainted image to the total area of the inpainted image, that is, the image area ratio of the to-be-verified region. In some embodiments, the ratio of the area of the identifiable region in the inpainted image to the total area of the inpainted image may also be used; Indicates the first The area to be verified in the repaired image and the area represented in the cloud system The regional similarity of the preset QR code images of each employee.
[0141] It should be noted that this embodiment uses The ratio of the area of the to-be-verified region in the inpainted image to the total area of the inpainted image is The area to be verified in the repaired image and the area represented in the cloud system The regional similarity of the preset QR code images of each employee When the area of the to-be-verified region in a repaired image is larger, the similarity is more capable of proving the similarity of the images, and a higher weight is given to it.
[0142] Based on the above steps, the first The restored image and Image similarity of preset QR code images of employees The associated employees corresponding to the repaired images can be found according to this rule. A total of The associated employee sets are obtained, and the intersection of these associated employee sets is obtained, so that the associated employees in the intersection are taken as target employees to obtain the results of this scan.
[0143] In practical applications, when the image similarity of the repaired image in the repaired image group When , it can be determined that the code is scanned successfully. At this time, it is considered that the e-commerce warehouse employee corresponding to the QR code is the employee in the cloud system corresponding to the maximum probability. If the maximum value of the image similarity corresponding to all the repaired images in the repaired image group is less than the preset similarity threshold , it can be determined that the code scanning has failed, and a prompt message can be sent to remind the e-commerce warehouse employee that the work badge needs to be cleaned.
[0144] Based on the same general inventive concept, the present invention also protects an e-commerce warehouse employee data processing system based on a cloud system. The e-commerce warehouse employee data processing system based on a cloud system provided by the present invention is described below. The e-commerce warehouse employee data processing system based on a cloud system described below and the e-commerce warehouse employee data processing method based on a cloud system described above can be referenced to each other.
[0145] See also Figure 2 , which shows a schematic diagram of the structure of an e-commerce warehouse employee data processing system based on a cloud system provided by an embodiment of the present invention.
[0146] like Figure 2 As shown, the e-commerce warehouse employee data processing system based on the cloud system provided by the embodiment of the present invention specifically includes:
[0147] The code scanning device 210 is used to scan the QR code of the e-commerce warehouse employee to obtain at least one set of QR code image data.
[0148] The control device 220 is connected to the code scanning device 210 and the cloud system 230 respectively. The control device 220 includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the e-commerce warehouse employee data processing method based on the cloud system provided in the above embodiments is implemented.
[0149] In this embodiment, the scanning device 210 can be a handheld barcode scanner or a fixed barcode scanner. The scanning device 210 can be connected to the control device 220 via wired or wireless means. The control device 220 can be located at the e-commerce warehouse site or in a supervision room. The cloud system 230 can be a data storage server deployed in the cloud. The control device 220 can be connected to the cloud system 230 via wireless communication.
[0150] Figure 3 Schematic diagram of the structure of the control device in the embodiment of the present invention.
[0151] like Figure 3 As shown, the control device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the e-commerce warehouse employee data processing method based on the cloud system provided in the above embodiments.
[0152] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0153] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the e-commerce warehouse employee data processing method based on the cloud system provided in the above-mentioned embodiments.
[0154] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the e-commerce warehouse employee data processing method based on a cloud system provided in the above-mentioned embodiments.
[0155] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0156] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0157] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0158] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for processing e-commerce warehouse employee data based on a cloud system, characterized in that: The method comprises: Obtain at least one set of QR code image data of an e-commerce warehouse employee; Converting the at least one set of two-dimensional code image data into scanned images at multiple angles through a neural radiation field; Extracting a plurality of connected domains in each of the scanned images, and determining a recognizable area of each of the scanned images from the plurality of connected domains; According to the identifiable area, each of the scanned images is verified with a preset QR code image of each employee in the cloud system, and a plurality of associated employee sets are established according to the verification results; Calculate the intersection of all the associated employee sets, and determine the QR code scanning result of the e-commerce warehouse employee according to the associated employees in the intersection; Determining a recognizable area of each of the scanned images from the plurality of connected domains comprises: For each of the scanned images, determining the pixel grayscale variance and the region edge angle of each connected domain; Calculating the contamination probability of each connected domain based on the pixel grayscale variance and the region edge angle; Comparing the contamination probability with a preset probability threshold to obtain a contamination recognition result for each connected domain; According to the dirt recognition results of each connected domain in all the scanned images, the identifiable area of each scanned image is determined.
2. According to the method for processing e-commerce warehouse employee data based on a cloud system in claim 1, it is characterized in that: The dirt probability is compared with a preset probability threshold to obtain a dirt recognition result for each connected domain, including: If the dirt probability is below the preset probability threshold, the dirt recognition result is that the connected domain is a valid area; If the dirt probability is greater than the preset probability threshold, the dirt recognition result is that the connected domain is a dirty area.
3. The method for processing e-commerce warehouse employee data based on a cloud system according to claim 2, characterized in that: Determining a recognizable area of each scanned image according to the dirt recognition results of each connected domain in all the scanned images includes: Determine a local area in which pixel information in all the scanned images is consistent and in which at least one of the dirt recognition results is a valid area as a recognizable area of each of the scanned images; The local area is the entire connected domain or a partial sub-area within the connected domain.
4. The method for processing e-commerce warehouse employee data based on a cloud system according to claim 1, characterized in that: According to the identifiable area, each of the scanned images is verified with a preset QR code image of each employee in the cloud system, including: Repairing at least a portion of the area outside the identifiable area in each of the scanned images to obtain a repaired area; The repaired area and the identifiable area are used as areas to be verified, and the area similarity between each area to be verified and the preset QR code image of each employee in the cloud system is determined respectively; According to the area similarity and the image area ratio of the area to be verified, the image similarity between each image of the area to be verified and the preset QR code image of each employee in the cloud system is calculated, and the image similarity is used as the verification result.
5. The method for processing e-commerce warehouse employee data based on a cloud system according to claim 4 is characterized in that: Repairing at least a portion of the area outside the identifiable area in each of the scanned images to obtain a repaired area includes: For each of the scanned images, extracting connected domain features of the identifiable area in the scanned image; Determining the size of the QR code module based on the connected domain features of the identifiable area; Dividing the scanned image into a plurality of image blocks having the same size as the two-dimensional code module; The pattern trend information and the local decoding information of the identifiable area are determined, and based on the pattern trend information and the local decoding information of the identifiable area, each image block in at least a partial area outside the identifiable area is repaired to obtain a repaired area.
6. The method for processing e-commerce warehouse employee data based on a cloud system according to claim 5, characterized in that: Based on the pattern trend information and the local decoding information of the identifiable area, each image block in at least a part of the area outside the identifiable area is repaired to obtain a repaired area, including: Generate multiple repair solutions based on the pattern trend information and local decoding information of the identifiable area; For at least a portion of the area outside the identifiable area, calculating the restoration credibility corresponding to each of the various restoration schemes for each image block; Based on the restoration credibility, each image block in at least a partial area outside the identifiable area is restored to obtain a restoration area.
7. The method for processing e-commerce warehouse employee data based on a cloud system according to claim 6, characterized in that: For at least a portion of the area outside the identifiable area, calculating the restoration credibility corresponding to each of the various restoration schemes for each image block, including: Determine the maximum circumscribed rectangle of the dirty area in the scanned image; Determine a first distance between each image block in at least a partial area outside the identifiable area and each dirty area within the maximum circumscribed rectangle, a degree of dirtiness of each dirty area, a second distance between the image block and an edge of the dirty area, and a probability that each restoration scheme of the image block is consistent with reality; Taking the first distance corresponding to each dirty area as a quotient of the dirtiness level to obtain a quotient value parameter of each dirty area; The quotient parameters of all the dirty areas are summed up to calculate the repair credible parameters; Taking the quotient of the restoration credible parameter and the second distance as a quotient, a restoration influencing parameter is calculated; The restoration influence parameter is multiplied by the probability that each restoration scheme of the image block is consistent with the actual situation to obtain the restoration credibility.
8. The method for processing e-commerce warehouse employee data based on a cloud system according to claim 4, characterized in that: Determining the regional similarity between each of the to-be-verified regions and the preset QR code images of each employee in the cloud system respectively includes: For each of the areas to be verified, respectively determine the minimum distance between each feature point in the area to be verified and the dirty area in the corresponding image, the geometric consistency between each feature point and the corresponding matching point in the preset two-dimensional code image of each employee in the cloud system, and the weight of each feature point; Based on the minimum distance, the geometric consistency and the weight, the regional similarity between the area to be verified and the preset two-dimensional code image of each employee in the cloud system is calculated.
9. An e-commerce warehouse employee data processing system based on a cloud system, characterized in that: include: A code scanning device is used to scan the QR code of the e-commerce warehouse employee to obtain at least one set of QR code image data; A control device is connected to the code scanning device and the cloud system respectively, and the control device includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, it implements the e-commerce warehouse employee data processing method based on the cloud system as described in any one of claims 1 to 8.
