Warehouse management method and device based on bar code hierarchical identification
By introducing barcode layered identification technology in warehouse management, identifying positioning barcodes and goods barcodes and updating inventory information, the problems of low search efficiency and low space utilization in warehouse management are solved, and efficient inventory management and space utilization are achieved.
Patent Information
- Application Number
- CN202510257119.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-07-04
AI Technical Summary
The existing warehouse management methods have problems such as low search efficiency, complex process of entry into small objects, and low warehouse space utilization when managing small objects.
The warehouse management method based on barcode layered identification is adopted. By collecting warehouse images, identifying positioning barcodes and goods barcodes, obtaining orientation information, and generating goods update barcodes to update the inventory information of the warehouse database.
It improves the efficiency of goods search and storage, improves the utilization rate of warehouse space, and improves the accuracy of inventory information.
Smart Images

Figure CN120258685A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of barcode recognition, and particularly to a warehouse management method and device based on hierarchical barcode recognition. Background Art
[0002] When the current warehouse management method manages small items such as medicines and chips, the following defects exist due to too many categories: 1. Since there are too many categories of small items, they can only be searched within a small range by large categories. It takes a relatively large amount of effort to find the target small item, and when there are more types of target small items, it is even more time-consuming and laborious; 2. When small items are warehoused, they need to strictly follow the placement rules of the items. The positions of small items are very fixed, and each item needs to find its fixed position, which is time-consuming and laborious. If there is not enough space at the fixed position of the small item to place the newly warehoused small item, additional space needs to be vacated, and then the space pattern of the warehouse needs to be rebuilt; 3. Since the storage positions of small items in the warehouse are fixed, there will be a situation where the warehousing quantity of small items does not match the capacity of the storage position, resulting in insufficient utilization of warehouse space.
[0003] Therefore, the current warehouse management method has problems such as low efficiency in finding small items, complex warehousing processes for small items, and low utilization rate of warehouse space. Summary of the Invention
[0004] The present invention provides a warehouse management method and device based on hierarchical barcode recognition, which can improve the accuracy of inventory information, improve the efficiency of finding goods and warehousing, and enhance the utilization rate of warehouse space.
[0005] To solve the above technical problems, the present invention provides a warehouse management method based on hierarchical barcode recognition, including:
[0006] Collecting a warehouse image;
[0007] Identifying and positioning a barcode and a plurality of goods barcodes in the warehouse image;
[0008] Obtaining orientation information according to the positioning barcode;
[0009] Adding the orientation information to each of the goods barcodes respectively to generate a plurality of updated goods barcodes;
[0010] Sending the plurality of updated goods barcodes to a warehouse processor, so that the warehouse processor updates the inventory information in the warehouse database by identifying each of the updated goods barcodes.
[0011] When the present invention is used for goods warehousing or out - warehousing, the inventory information of the warehouse database is updated by collecting warehouse images. Specifically, in the warehouse image, a positioning barcode and multiple goods barcodes are identified and located. According to the positioning information, the orientation information can be obtained, and the orientation information is marked on each goods barcode, then multiple goods update barcodes can be generated. The warehouse processor can identify the newly warehoused or out - warehoused goods according to the goods update barcodes, thereby updating the inventory information of the warehouse database. The present invention introduces barcode recognition technology in warehouse management. By recognizing barcode information to update the inventory information of the warehouse database, it can improve the searching efficiency and warehousing efficiency of goods, and enable the areas in the warehouse not to be used for storing fixed goods, which can improve the utilization rate of warehouse space. When recognizing barcodes in the warehouse image, the barcode layering technology is adopted to separately identify the positioning barcode and the goods barcodes, and the positioning information of the goods is determined according to the positioning barcode, which can effectively improve the accuracy rate of the goods update barcodes, thereby improving the accuracy of the inventory information.
[0012] Further, the step of identifying the positioning barcode and several goods barcodes in the warehouse image specifically includes:
[0013] Analyze the image source of the warehouse image;
[0014] When the warehouse image is collected by a preset image acquisition device, the positioning barcode is determined by identifying the positioning area, and several goods barcodes are determined by identifying the item area;
[0015] When the warehouse image is collected by a smart device, several barcodes are identified in the warehouse image, and the positioning barcode and several goods barcodes are determined by using the warehouse database.
[0016] The present invention analyzes the image source of the warehouse image. When the warehouse image is collected by a preset image acquisition device, the positioning barcode and the goods barcodes are respectively determined by identifying the positioning area and the item area. When the warehouse image is collected by a smart device, all barcodes are identified in the warehouse image, and the positioning barcode and the goods barcodes are determined in combination with the warehouse database. The present invention determines different identification methods for the positioning barcode and the goods barcodes according to the image sources of different warehouse images, so that targeted barcode recognition can be performed on the warehouse image, thereby improving the accuracy of barcode recognition.
[0017] Further, when the warehouse image is collected by a preset image acquisition device, the step of determining the positioning barcode by identifying the positioning area and determining several goods barcodes by identifying the item area specifically includes:
[0018] When the warehouse image is collected by a preset image acquisition device, image pre - processing is performed on the warehouse image, and the positioning area and the item area are identified in the warehouse image after image pre - processing;
[0019] Use the preset bar code recognition method to recognize the positioning bar code within the positioning area;
[0020] Use the preset bar code recognition method to recognize a number of goods bar codes within the item area.
[0021] When the warehouse image is collected by a preset image acquisition device, the present invention first performs image preprocessing on the warehouse image to identify the positioning area and the item area, and then uses the preset bar code recognition method to respectively recognize the positioning bar code and the item bar code in the positioning area and the item area. By performing image preprocessing on the image, the present invention can obtain the feature information in the image, thereby improving the accuracy of image analysis, further distinguishing different areas in the warehouse image, and realizing the recognition of the positioning bar code and the goods bar code.
[0022] Further, when the warehouse image is collected by a preset image acquisition device, perform image preprocessing on the warehouse image, and identify the positioning area and the item area in the warehouse image after image preprocessing, specifically:
[0023] Perform feature processing on the warehouse image to obtain the feature information of the warehouse image;
[0024] According to the feature information, identify the bar code sparse area and the bar code dense area in the warehouse image;
[0025] Determine the bar code sparse area as the positioning area;
[0026] Determine the bar code dense area as the item area.
[0027] When the present invention distinguishes the positioning area and the item area in the warehouse image, it first continues to perform feature processing on the warehouse image to obtain the feature information of the warehouse image. According to this feature information, the bar code sparse area and the bar code dense area in the warehouse image can be analyzed, and then the bar code sparse area and the bar code dense area are correspondingly determined as the positioning area and the item area. By performing feature processing on the image, the present invention can more easily distinguish the positioning area and the item area according to their features, improving the recognition efficiency of the positioning area and the item area in the warehouse image.
[0028] Further, when the warehouse image is collected by an intelligent device, recognize a number of bar codes in the warehouse image, and use the warehouse database to determine the positioning bar code and a number of goods bar codes, specifically:
[0029] When the warehouse image is collected by an intelligent device, use the preset bar code recognition method to recognize a number of bar codes in the warehouse image;
[0030] Respectively recognize the bar code information of a number of the bar codes;
[0031] Compare the barcode information of several of the barcodes with several pieces of positioning information in the warehouse database respectively to obtain several similarity degrees;
[0032] When the maximum similarity degree is greater than the preset similarity threshold, determine the barcode corresponding to the maximum similarity degree as the positioning barcode;
[0033] Determine all barcodes among several of the barcodes except the positioning barcode as goods barcodes.
[0034] In the present invention, when the warehouse image is collected by an intelligent device, first use the barcode recognition method to recognize all barcodes in the warehouse image, and then recognize the barcode information of each barcode respectively. Combine the positioning information in the warehouse database to perform similarity analysis on all barcodes in the warehouse image. After obtaining the maximum similarity degree, it is also required that it is greater than the preset similarity threshold to determine the barcode corresponding to the maximum similarity degree as the positioning barcode. Performing double analysis on the barcodes in the warehouse image can effectively improve the recognition accuracy rate of the positioning barcode.
[0035] Further, the preset barcode recognition method is specifically as follows:
[0036] Recognize the barcode contour image in the image to be recognized;
[0037] Extract the histogram of gradient directions of the barcode contour image;
[0038] Perform discrete Fourier transform on the histogram of gradient directions to obtain a Fourier spectrum image;
[0039] Use the Hough transform to determine the correction angle in the Fourier spectrum image;
[0040] Based on the correction angle, correct the barcode contour image;
[0041] Recognize the barcode in the corrected barcode contour image.
[0042] The present invention can use the preset barcode recognition method to recognize barcodes on an image. The preset barcode recognition method is specifically to first recognize the barcode contour image in the image to be recognized, extract the histogram of gradient directions of the barcode contour image, combine discrete Fourier transform and the Hough transform to determine the correction angle, thereby correct the barcode contour image according to the correction angle, and perform barcode recognition in the corrected barcode contour image. Before performing barcode recognition, the preset barcode recognition method of the present invention corrects the image first, which can further improve the quality of the image and provide a high-quality image basis for subsequent barcode recognition.
[0043] Further, the obtaining of the orientation information according to the positioning barcode is specifically as follows:
[0044] Recognize the barcode information of the positioning barcode;
[0045] Compare the barcode information of the positioning barcode with several pieces of positioning information in the warehouse database respectively for similarity.
[0046] Determine the positioning information with the greatest similarity to the barcode information of the positioning barcode as the orientation information.
[0047] When the warehouse image is collected by a preset image acquisition device, the present invention analyzes the similarity of the barcode information of the positioning barcode by identifying the barcode information of the positioning barcode and combining the positioning information in the warehouse database, and determines the positioning information with the greatest similarity as the orientation information. Using the positioning information in the warehouse database to determine the orientation information can ensure that the obtained orientation information actually exists in the warehouse database and improve the accuracy of barcode analysis.
[0048] Further, obtaining the orientation information according to the positioning barcode specifically includes:
[0049] When the maximum similarity is greater than a preset similarity threshold, determine the positioning information corresponding to the maximum similarity as the orientation information.
[0050] Further, the warehouse processor updates the inventory information in the warehouse database by identifying each goods update barcode, specifically including:
[0051] The warehouse processor respectively identifies the positioning information and the item information in each goods update barcode;
[0052] Determine several inventories to be updated in the warehouse database according to each piece of positioning information;
[0053] Update the inventory information in the corresponding inventories to be updated according to each piece of item information.
[0054] After obtaining the goods update barcode, the warehouse processor of the present invention obtains the positioning information and the item information by identifying the goods update barcode. According to the positioning information, the inventories to be updated can be determined, and according to the item information, the inventory information in the inventories to be updated can be updated accordingly. By determining the positioning information and the item information, the present invention can quickly locate the data to be updated in the warehouse database, thereby improving the efficiency of data update in the warehouse database.
[0055] Correspondingly, the present invention provides a warehouse management device based on barcode hierarchical recognition, including: an image acquisition module, a barcode recognition module, an information acquisition module, a barcode generation module, and an information update module;
[0056] The image acquisition module is used to acquire a warehouse image;
[0057] The barcode recognition module is used to identify a positioning barcode and several goods barcodes in the warehouse image;
[0058] The information acquisition module is used to obtain the orientation information according to the positioning barcode;
[0059] The barcode generation module is used to add the orientation information to each of the goods barcodes respectively to generate a plurality of updated goods barcodes;
[0060] The information update module is used to send the plurality of updated goods barcodes to the warehouse processor, so that the warehouse processor updates the inventory information in the warehouse database by identifying each of the updated goods barcodes.
[0061] The warehouse management device based on barcode hierarchical recognition provided by the present invention is based on the organic combination of modules. When goods are put into or taken out of the warehouse, the warehouse image is collected by the image acquisition module; the positioning barcode and a plurality of goods barcodes are identified in the warehouse image by the barcode recognition module; the orientation information can be obtained by the information acquisition module according to the positioning information; the orientation information is marked on each goods barcode by the information update module, so as to generate a plurality of updated goods barcodes, and the updated goods barcodes are sent to the warehouse processor by the information update module, so that the warehouse processor can identify the newly put-in or taken-out goods according to the updated goods barcodes, thereby updating the inventory information in the warehouse database. The present invention introduces the barcode recognition technology in warehouse management, which can improve the searching efficiency and the warehousing efficiency of goods, and enables the areas in the warehouse not to be used for storing fixed goods, which can improve the utilization rate of the warehouse space; when identifying the barcodes in the warehouse image, the barcode hierarchical technology can effectively improve the accuracy rate of the updated goods barcodes, thereby improving the accuracy of the inventory information. Description of the Drawings
[0062] Figure 1 It is a schematic flowchart of an embodiment of the warehouse management method based on barcode hierarchical recognition provided by the present invention;
[0063] Figure 2 It is a schematic flowchart of an embodiment of the warehouse image acquisition method provided by the present invention;
[0064] Figure 3 It is a schematic flowchart of another embodiment of the warehouse image acquisition method provided by the present invention;
[0065] Figure 4 It is a schematic flowchart of an embodiment of the warehouse image area recognition method provided by the present invention;
[0066] Figure 5 It is a schematic flowchart of an embodiment of the warehouse image barcode extraction method provided by the present invention;
[0067] Figure 6 It is a schematic flowchart of an embodiment of the barcode recognition method provided by the present invention;
[0068] Figure 7 This is a schematic structural diagram of an embodiment of the warehouse management device based on barcode hierarchical recognition provided by the present invention. Detailed implementation manners
[0069] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
[0070] The flowchart shown in the accompanying drawings is only an example illustration, and does not necessarily include all the content and operations / steps, nor does it necessarily execute in the described order. For example, some operations / steps can also be decomposed, combined, or partially merged. Therefore, the actual execution order may be changed according to the actual situation.
[0071] Next, some embodiments of the present invention will be described in detail in conjunction with the accompanying drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0072] Embodiment 1
[0073] As Figure 1 shown, this is a schematic flowchart of an embodiment of the warehouse management method based on barcode hierarchical recognition provided by the present invention. The method includes steps 101 to 105, and the specific steps are as follows:
[0074] Step 101: Collect warehouse images.
[0075] Step 102: Identify and locate barcodes and a number of goods barcodes in the warehouse image.
[0076] Step 103: Obtain orientation information according to the positioning barcode.
[0077] Step 104: Add the orientation information to each of the goods barcodes respectively to generate a number of goods updated barcodes.
[0078] Step 105: Send the number of goods updated barcodes to the warehouse processor so that the warehouse processor updates the inventory information in the warehouse database by identifying each of the goods updated barcodes.
[0079] In the embodiments of the present invention, when performing warehouse management, it is necessary to collect warehouse images. Among them, the collection devices for warehouse images include preset image collection devices or intelligent devices. The preset image collection device can be a camera set on the barcode positioning device. The intelligent device can be a mobile phone, which takes pictures through a specific APP.
[0080] In the embodiments of the present invention, after obtaining the warehouse image, different barcode recognition methods are selected according to different collection devices of the warehouse image to recognize the positioning barcode and the goods barcodes. When using the preset image collection device to collect the warehouse image, regional recognition can be performed on the warehouse image. After identifying the positioning area and the item area, the positioning barcode and multiple goods barcodes are recognized in the corresponding areas. When using the intelligent device to collect the warehouse image, all barcodes are respectively recognized in the warehouse image, and then each recognized barcode is distinguished based on the warehouse database to obtain the positioning barcode and multiple goods barcodes.
[0081] In the embodiments of the present invention, after the positioning barcode is recognized in the warehouse image, the barcode information of the positioning barcode is recognized, and this barcode information is compared with multiple positioning information stored in the warehouse database to obtain the orientation information.
[0082] In the embodiments of the present invention, after obtaining the orientation information according to the positioning barcode in the warehouse image, orientation marks are added to all the goods barcodes in the warehouse image according to this orientation information, so as to generate updated goods barcodes.
[0083] In the embodiments of the present invention, after generating the updated goods barcodes, the updated goods barcodes are transmitted to the warehouse processor, so that the warehouse processor can obtain the positioning information and the item information by recognizing the updated goods barcodes. According to the recognized positioning information, the warehouse shelf where the item is updated can be obtained, so the inventory to be updated can be determined correspondingly in the warehouse database. According to the recognized item information, the item update situation on the warehouse shelf can be obtained, so the corresponding goods data can be updated correspondingly in the warehouse database, that is, the inventory information in the inventory to be updated is updated.
[0084] In summary, the embodiment of the present invention provides a warehouse management method based on barcode hierarchical recognition, which includes collecting a warehouse image; identifying and locating a positioning barcode and a number of goods barcodes in the warehouse image; obtaining orientation information according to the positioning barcode; adding the orientation information to each goods barcode respectively to generate a number of updated goods barcodes; and sending the number of updated goods barcodes to a warehouse processor, so that the warehouse processor updates the inventory information in the warehouse database by identifying each updated goods barcode. The present invention introduces barcode recognition technology in warehouse management, updates the inventory information in the warehouse database by identifying barcode information, can improve the searching efficiency and warehousing efficiency of goods, and enables the areas in the warehouse not to be used for storing fixed goods, which can improve the utilization rate of warehouse space; when identifying barcodes in the warehouse image, the barcode hierarchical technology is adopted to identify and locate the positioning barcode and the goods barcode respectively, and the positioning information of the goods is determined according to the positioning barcode, which can effectively improve the accuracy rate of the updated goods barcode, thereby improving the accuracy of the inventory information.
[0085] Embodiment 2
[0086] As Figure 1 shown, it is a schematic flowchart of an embodiment of the warehouse management method based on barcode hierarchical recognition provided by the present invention. The method includes steps 101 to 105, and the specific steps are as follows:
[0087] Step 101: Collect a warehouse image.
[0088] In the embodiment of the present invention, the warehouse image can be collected by using a preset image acquisition device or a smart device. Among them, the preset image acquisition device can be a camera set on the barcode positioning device. The smart device can be a mobile phone, and photos can be taken through a specific APP.
[0089] In the embodiment of the present invention, the preset image acquisition device can adopt a camera on the barcode positioning device. The barcode positioning device is fixed by a guide rail. The barcode positioning device starts to move from the leftmost side of the guide rail. The camera on the barcode positioning device rotates within a range of 90° up and down. The image starts to scan and identify frame by frame from right to left. When the positioning barcode is not recognized, it moves 0.1 meters to the right, and the camera continues to rotate within 90° up and down, and loops in turn until the complete positioning barcode is recognized and then starts to work. After the barcode positioning device starts to work, the real-time video stream obtained by moving the camera up and down by 90° is converted into a video stream picture. After uploading the video stream picture to the warehouse management background through WIFI, the barcode positioning device continues to move 0.1 meters to the right and continues to move the camera up and down to collect video stream pictures, and so on, until the complete positioning barcode is recognized on the right side of the video stream picture, and the barcode scanning work of all items within the entire positioning range is completed. The warehouse image can be obtained according to the video stream pictures collected by the camera.
[0090] As an example of the embodiment of the present invention,Figure 2 This is a schematic flowchart of an embodiment of the warehouse image acquisition method provided by the present invention. After starting the barcode positioning device, the camera is turned on, and it is detected whether the camera is successfully turned on. When it is determined that the camera is turned on, video acquisition is performed in real time. When a positioning barcode is recognized in the acquired video, the current frame of the video acquired by the camera is read in real time. If the current frame is not empty, the current frame data is stored in the buffer queue, and after a delay of 50 milliseconds, the current frame of the video acquired by the camera is read continuously in a loop until the camera recognizes the complete positioning barcode. Among them, after completing one storage of the current frame data in the buffer queue, a delay of 50 milliseconds is to make the barcode positioning device translate 0.1 meters to the right and then acquire the video, so as to reduce resource waste. Among them, the camera can be set to low illumination and black and white before actual acquisition, so as to speed up the subsequent processing speed.
[0091] In an embodiment of the present invention, by developing an APP for a smart device (such as a mobile phone), the warehouse image can be acquired through the camera function of the APP. As an example of an embodiment of the present invention, Figure 3 This is a schematic flowchart of another embodiment of the warehouse image acquisition method provided by the present invention. The smart device connects to WIFI and logs in to the APP. When the goods in the warehouse change, take a photo of the area where the goods have changed. The photo is uploaded to the background warehouse management background through WIFI. The background determines whether the barcode recognition is successful. If the barcode can be recognized in the uploaded photo, it is determined that the photo is a warehouse image. If the barcode cannot be recognized in the uploaded photo, a failure result is returned to the APP, prompting to retake the photo. The photos acquired through the APP have clarity requirements and need to be able to recognize the barcode by the background. Only when the photos acquired by the APP meet the preset requirements can the photos be determined as warehouse images, improving the accuracy of warehouse management.
[0092] Step 102: Identify the positioning barcode and several goods barcodes in the warehouse image.
[0093] Further, in an embodiment of the present invention, identifying the positioning barcode and several goods barcodes in the warehouse image specifically includes:
[0094] Analyze the image source of the warehouse image;
[0095] When the warehouse image is acquired by a preset image acquisition device, the positioning barcode is determined by identifying the positioning area, and several goods barcodes are determined by identifying the item area;
[0096] When the warehouse image is acquired by a smart device, several barcodes are identified in the warehouse image, and the positioning barcode and several goods barcodes are determined by using the warehouse database.
[0097] In the embodiments of the present invention, the image sources of the warehouse images are of two types: a preset image acquisition device and a smart device. Two different image acquisition methods correspond to different barcode recognition methods. Among them, when the warehouse image is acquired by the preset image acquisition device, regional recognition can be performed on the warehouse image. After identifying the positioning area and the item area, the positioning barcode and multiple goods barcodes are recognized in the corresponding areas. When the warehouse image is acquired by the smart device, all barcodes are respectively recognized in the warehouse image, and then each recognized barcode is distinguished based on the warehouse database to obtain the positioning barcode and multiple goods barcodes.
[0098] Further, in the embodiments of the present invention, when the warehouse image is acquired by the preset image acquisition device, the positioning barcode is determined by recognizing the positioning area, and several goods barcodes are determined by recognizing the item area, specifically:
[0099] When the warehouse image is acquired by the preset image acquisition device, image preprocessing is performed on the warehouse image, and the positioning area and the item area are recognized in the warehouse image after image preprocessing;
[0100] Using the preset barcode recognition method, the positioning barcode is recognized within the positioning area;
[0101] Using the preset barcode recognition method, several goods barcodes are recognized within the item area.
[0102] In the embodiments of the present invention, if the warehouse image is acquired by the preset image acquisition device, first, image preprocessing is performed on the warehouse image. After the warehouse image is processed, the positioning area and the item area are recognized. Then, the preset barcode recognition method is used to recognize the positioning barcode within the positioning area and multiple goods barcodes within the item area.
[0103] Further, in the embodiments of the present invention, when the warehouse image is acquired by the preset image acquisition device, image preprocessing is performed on the warehouse image, and the positioning area and the item area are recognized in the warehouse image after image preprocessing, specifically:
[0104] Feature processing is performed on the warehouse image to obtain the feature information of the warehouse image;
[0105] According to the feature information, the barcode sparse area and the barcode dense area are recognized in the warehouse image;
[0106] The barcode sparse area is determined as the positioning area;
[0107] The barcode dense area is determined as the item area.
[0108] In an embodiment of the present invention, the positioning barcode can be set and pasted on the column of the warehouse shelf. There is a large space gap above and below it, and there are no barcodes in a relatively large vertical range of the positioning barcode. Moreover, in order to obtain the recognition result quickly, off-white paint can be brushed on the column of the shelf, which facilitates the recognition of the positioning barcode and also prevents the shelf from rusting. After small items on the warehouse shelf are pasted with goods barcodes and stacked on the warehouse shelf, a dense barcode area will be formed.
[0109] As an example of this embodiment, Figure 4 It is a schematic flowchart of an embodiment of the warehouse image area recognition provided by the present invention. After obtaining the warehouse image by using a camera, read the frame image, convert it into a grayscale image, and then perform binaryzation on the image frame. At this time, there will be an obvious size difference between the concentrated area and the positioning area of the barcodes in the warehouse image. Traverse all barcode contours on the warehouse image, extract each barcode contour and its contour center point respectively, and analyze whether there are other contours within a range of 15° in the vertical direction of the center points of each contour. If so, analyze whether the distance between the center points of the two contours exceeds 500 pixel points. If it exceeds, determine that the contour is the barcode contour of the positioning barcode. Therefore, determine the area where the contour is located as the barcode sparse area, and determine the other areas of the warehouse image as the barcode dense area.
[0110] Furthermore, in an embodiment of the present invention, when the warehouse image is collected by an intelligent device, several barcodes are recognized in the warehouse image, and the positioning barcode and several goods barcodes are determined by using the warehouse database. Specifically:
[0111] When the warehouse image is collected by an intelligent device, several barcodes are recognized in the warehouse image by using a preset barcode recognition method;
[0112] The barcode information of several barcodes is recognized respectively;
[0113] The barcode information of several barcodes is respectively compared with several positioning information in the warehouse database to obtain several similarity degrees;
[0114] When the maximum similarity degree is greater than the preset similarity threshold, the barcode corresponding to the maximum similarity degree is determined as the positioning barcode;
[0115] All barcodes other than the positioning barcode among several barcodes are determined as goods barcodes.
[0116] In an embodiment of the present invention, when using an intelligent device to collect warehouse images, there is no need to identify the positioning barcodes pasted on the shelf columns. The entire area of the warehouse image is used as the barcode recognition range to identify all barcodes in the image. After extracting all barcodes in the warehouse image, each barcode is respectively compared with multiple positioning information stored in the warehouse database for pairwise similarity. After obtaining the maximum similarity, it is determined whether the maximum similarity is greater than a preset similarity threshold (the preset similarity threshold can be set to 80%). If it is greater, it is determined that the barcode corresponding to the maximum similarity is the positioning barcode, and it is determined that all barcodes other than the positioning barcode in the warehouse image are goods barcodes.
[0117] As an example of this embodiment, Figure 5 It is a schematic flowchart of an embodiment of barcode extraction from a warehouse image provided by the present invention. After successfully determining that the warehouse management background has obtained the warehouse image, image preprocessing is performed on the warehouse image, including: converting the warehouse image into a grayscale image, calculating the XY-direction gradient of the grayscale image using the Sobel operator, and then performing binarization on the image, and performing erosion and dilation on the image. After the warehouse image completes image preprocessing, the barcode contours in the warehouse image are traversed. When a contour is recognized, the contour is extracted, and the image in the contour is copied to the buffer, so as to recognize all barcodes in the warehouse image.
[0118] In an alternative manner, the preset image acquisition device or intelligent device can be adaptively selected for warehouse image acquisition according to the changes in goods in the warehouse. For example, when the placement positions of goods in the warehouse change greatly (such as a large number of changes in the storage positions of goods, or changes in the storage areas or stacking orders), the preset image acquisition device can be enabled for warehouse image acquisition. For the change in the stacking order of goods within a small range, the APP in the intelligent device can be used to take pictures to obtain the warehouse image.
[0119] Furthermore, in an embodiment of the present invention, the preset barcode recognition method is specifically as follows:
[0120] Identify the barcode contour image in the image to be recognized;
[0121] Extract the gradient direction histogram of the barcode contour image;
[0122] Perform discrete Fourier transform on the gradient direction histogram to obtain the Fourier spectrum image;
[0123] Use the Hough transform to determine the correction angle in the Fourier spectrum image;
[0124] Based on the correction angle, correct the barcode contour image;
[0125] Identify the barcode in the corrected barcode contour image.
[0126] In the embodiment of the present invention, a preset bar code recognition method is used to extract bar codes from images. Specifically: First, the bar code contour image is recognized in the image to be recognized, and a series of processes are performed on the bar code contour image, including grayscale conversion, Gaussian smoothing filtering, Sobel x-y gradient difference, mean filtering to remove high-frequency noise, binarization, closing operation, erosion, dilation, obtaining ROI, etc. Finally, the image is scanned to obtain the bar code.
[0127] As an example of this embodiment, Figure 6 It is a schematic flowchart of an embodiment of the bar code recognition method provided by the present invention. After successfully obtaining the bar code contour image, calculate the gradient image in the XY direction of the image, perform discrete Fourier transform on the image, and use the Hough transform to locate the straight line in the Fourier spectrum image, so as to calculate the correction angle of the bar code. Among them, the brightness value in the Fourier spectrum image represents the strength of frequency change, and the direction of the straight line represents the direction of frequency change. The brightest line in the Fourier spectrum image is the direction perpendicular to the black and white striped bar code. By finding the angle of this line, the correction angle of the bar code can be calculated. After obtaining the correction angle of the bar code, correct the bar code and identify the information of the corrected bar code.
[0128] Step 103: Obtain orientation information according to the located bar code.
[0129] Further, in the embodiment of the present invention, obtaining orientation information according to the located bar code is specifically:
[0130] Identify the bar code information of the located bar code;
[0131] Compare the similarity of the bar code information of the located bar code with several pieces of location information in the warehouse database respectively;
[0132] Determine the location information with the greatest similarity to the bar code information of the located bar code as the orientation information.
[0133] In the embodiment of the present invention, when a preset image acquisition device is used to acquire warehouse images, the located bar code can be determined by recognizing the location area in the warehouse images. After obtaining the located bar code, extract the bar code information of the located bar code, and obtain multiple pieces of location information in the warehouse database. Compare the similarity of the located bar code with these location information, and determine the location information with the greatest similarity as the orientation information.
[0134] Further, in the embodiment of the present invention, obtaining orientation information according to the located bar code is specifically:
[0135] When the maximum similarity is greater than the preset similarity threshold, determine the location information corresponding to the maximum similarity as the orientation information.
[0136] In an embodiment of the present invention, when a smart device is used to collect warehouse images, the positioning information with the highest similarity to the positioning barcode has been determined in the warehouse database when determining the positioning barcode. Therefore, this positioning information is determined as the orientation information.
[0137] Step 104: Add the orientation information to each of the goods barcodes respectively to generate a number of updated goods barcodes.
[0138] In an embodiment of the present invention, after obtaining the orientation information based on the positioning barcode in the warehouse image, all the goods barcodes in the warehouse image are marked with orientation marks according to this orientation information, so as to generate updated goods barcodes.
[0139] Step 105: Send the number of updated goods barcodes to the warehouse processor so that the warehouse processor updates the inventory information in the warehouse database by identifying each of the updated goods barcodes.
[0140] Further, in an embodiment of the present invention, the warehouse processor updates the inventory information in the warehouse database by identifying each of the updated goods barcodes, specifically:
[0141] The warehouse processor respectively identifies the positioning information and the item information in each of the updated goods barcodes;
[0142] According to each of the positioning information, a number of inventories to be updated are determined in the warehouse database;
[0143] According to each of the item information, the inventory information in the corresponding inventory to be updated is updated.
[0144] In an embodiment of the present invention, after generating the updated goods barcodes, the updated goods barcodes are transmitted to the warehouse processor so that the warehouse processor obtains the positioning information and the item information by identifying the updated goods barcodes. According to the identified positioning information, the warehouse shelves where the items are updated can be obtained, so the inventories to be updated can be determined corresponding in the warehouse database. According to the identified item information, the item update situation on the warehouse shelves can be obtained, so the corresponding goods data in the warehouse database can be updated correspondingly, that is, the inventory information in the inventory to be updated is updated.
[0145] Using the warehouse management method of this embodiment for warehouse management, the storage areas and storage positions can be well divided, orientation label barcodes and item label barcodes can be affixed, and a warehouse database can be built on the warehouse management system, enabling the system to find the corresponding warehouse location and item name according to the barcodes. Different goods have corresponding binding relationships with storage positions, thus accelerating the operation speed of finding goods. When goods arrive at the warehouse, warehouse operators scan the codes to count the goods and complete the binding of the goods with the storage positions, thereby realizing inbound management. The warehouse management system can update, record, and trace the dynamic inventory data in a timely manner, improve the inventory accuracy rate, and ensure procurement, production, and sales according to the plan. At the same time, it monitors the upper and lower limits of inventory and the expiration warning function to prevent shortages, out-of-stock situations, and expiration, so as to realize inventory management. The warehouse management system can create and print outbound orders and scan them for outbound. Before loading and shipping, the goods and the outbound orders are confirmed again through scanning to realize outbound management. The warehouse management system can automatically or manually update the positions of warehouse goods according to the plan. The warehouse management system supports automatically generating diversified data reports, such as inbound reports, inventory count reports, inventory reports, outbound reports, performance reports, etc., to realize report management. The warehouse management system uses batch management of goods and one-item-one-code barcode technology to record goods information in all warehouse operation links, and can create a complete traceability chain to ensure that the flow of goods is controllable and traceable, so as to realize traceability management.
[0146] In summary, the embodiment of the present invention provides a warehouse management method based on hierarchical barcode recognition, which includes collecting a warehouse image; recognizing and positioning barcodes and a plurality of goods barcodes in the warehouse image; obtaining orientation information according to the positioning barcode; adding the orientation information to each goods barcode respectively to generate a plurality of updated goods barcodes; and sending the plurality of updated goods barcodes to a warehouse processor, so that the warehouse processor updates the inventory information in the warehouse database by recognizing each updated goods barcode. The present invention introduces barcode recognition technology in warehouse management, updates the inventory information in the warehouse database by recognizing barcode information, can improve the searching efficiency and inbound efficiency of goods, and enables the areas in the warehouse not to be used for storing fixed goods, which can improve the utilization rate of warehouse space; when recognizing barcodes in the warehouse image, the barcode hierarchical technology is used to respectively recognize and position the positioning barcode and the goods barcodes, and the positioning information of the goods is determined according to the positioning barcode, which can effectively improve the accuracy rate of the updated goods barcodes, thereby improving the accuracy of inventory information.
[0147] Embodiment 3
[0148] See Figure 7 , which is a schematic structural diagram of an embodiment of a warehouse management device based on hierarchical barcode recognition provided by the present invention. The device includes an image acquisition module 201, a barcode recognition module 202, an information acquisition module 203, a barcode generation module 204, and an information update module 205;
[0149] The image acquisition module 201 is used to acquire warehouse images;
[0150] The barcode recognition module 202 is used to identify and locate barcodes and several goods barcodes in the warehouse image;
[0151] The information acquisition module 203 is used to obtain orientation information according to the positioning barcode;
[0152] The barcode generation module 204 is used to add the orientation information to each of the goods barcodes respectively to generate several updated goods barcodes;
[0153] The information update module 205 is used to send the several updated goods barcodes to the warehouse processor, so that the warehouse processor updates the inventory information in the warehouse database by identifying each of the updated goods barcodes.
[0154] Furthermore, in the embodiment of the present invention, identifying and locating barcodes and several goods barcodes in the warehouse image specifically includes:
[0155] Analyze the image source of the warehouse image;
[0156] When the warehouse image is acquired by a preset image acquisition device, determine the positioning barcode by identifying the positioning area, and determine several goods barcodes by identifying the item area;
[0157] When the warehouse image is acquired by a smart device, identify several barcodes in the warehouse image, and use the warehouse database to determine the positioning barcode and several goods barcodes.
[0158] Furthermore, in the embodiment of the present invention, when the warehouse image is acquired by a preset image acquisition device, determining the positioning barcode by identifying the positioning area and determining several goods barcodes by identifying the item area specifically includes:
[0159] When the warehouse image is acquired by a preset image acquisition device, perform image preprocessing on the warehouse image, and identify the positioning area and the item area in the warehouse image after image preprocessing;
[0160] Use a preset barcode recognition method to identify the positioning barcode in the positioning area;
[0161] Use a preset barcode recognition method to identify several goods barcodes in the item area.
[0162] Furthermore, in the embodiment of the present invention, when the warehouse image is acquired by a preset image acquisition device, performing image preprocessing on the warehouse image and identifying the positioning area and the item area in the warehouse image after image preprocessing specifically includes:
[0163] Perform feature processing on the warehouse image to obtain the feature information of the warehouse image;
[0164] Based on the feature information, identify the barcode sparse area and the barcode dense area in the warehouse image;
[0165] Determine the positioning area as the barcode sparse area;
[0166] Determine the item area as the barcode dense area.
[0167] Further, in the embodiment of the present invention, when the warehouse image is collected by an intelligent device, identify several barcodes in the warehouse image, and use the warehouse database to determine the positioning barcode and several goods barcodes, specifically:
[0168] When the warehouse image is collected by an intelligent device, use a preset barcode recognition method to identify several barcodes in the warehouse image;
[0169] Identify the barcode information of several barcodes respectively;
[0170] Compare the barcode information of several barcodes with several positioning information in the warehouse database respectively to obtain several similarities;
[0171] When the maximum similarity is greater than the preset similarity threshold, determine the barcode corresponding to the maximum similarity as the positioning barcode;
[0172] Determine all barcodes other than the positioning barcode among several barcodes as goods barcodes.
[0173] Further, in the embodiment of the present invention, the preset barcode recognition method is specifically:
[0174] Identify the barcode contour image in the image to be recognized;
[0175] Extract the gradient direction histogram of the barcode contour image;
[0176] Perform discrete Fourier transform on the gradient direction histogram to obtain the Fourier spectrum image;
[0177] Use the Hough transform to determine the correction angle in the Fourier spectrum image;
[0178] Based on the correction angle, correct the barcode contour image;
[0179] Identify barcodes in the corrected barcode contour image.
[0180] Further, in the embodiment of the present invention, obtain the orientation information according to the positioning barcode, specifically:
[0181] Identify the barcode information of the positioning barcode;
[0182] Compare the barcode information of the positioning barcode with a number of positioning information in the warehouse database respectively for similarity;
[0183] Determine the positioning information with the greatest similarity to the barcode information of the positioning barcode as the orientation information.
[0184] Further, in the embodiment of the present invention, obtaining the orientation information according to the positioning barcode is specifically as follows:
[0185] When the maximum similarity is greater than the preset similarity threshold, determine the positioning information corresponding to the maximum similarity as the orientation information.
[0186] Further, in the embodiment of the present invention, the warehouse processor updates the inventory information of the warehouse database by identifying each of the goods update barcodes, specifically as follows:
[0187] The warehouse processor respectively identifies the positioning information and the item information in each of the goods update barcodes;
[0188] Determine a number of inventories to be updated in the warehouse database according to each of the positioning information;
[0189] Update the inventory information in the corresponding inventories to be updated according to each of the item information.
[0190] In summary, the embodiment of the present invention provides a warehouse management device based on hierarchical barcode recognition. Based on the organic combination of modules, it collects warehouse images; identifies positioning barcodes and a number of goods barcodes in the warehouse images; obtains orientation information according to the positioning barcodes; adds the said orientation information to each of the goods barcodes respectively to generate a number of goods update barcodes; and sends the number of goods update barcodes to the warehouse processor so that the warehouse processor updates the inventory information of the warehouse database by identifying each of the goods update barcodes. The present invention introduces barcode recognition technology in warehouse management. By identifying barcode information to update the inventory information of the warehouse database, it can improve the searching efficiency and warehousing efficiency of goods, and enable the areas in the warehouse not to be used for storing fixed goods, which can improve the utilization rate of warehouse space; when identifying barcodes in the warehouse image, it uses barcode hierarchical technology to respectively identify positioning barcodes and goods barcodes, and determines the positioning information of goods according to the positioning barcodes, which can effectively improve the accuracy rate of goods update barcodes, thereby improving the accuracy of inventory information.
[0191] The specific embodiments described above further elaborate on the objective, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only for the specific embodiments of the present invention and is not intended to limit the protection scope of the present invention. In particular, it is pointed out that for those skilled in the art, any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A warehouse management method based on hierarchical barcode recognition, characterized in that Including: Collecting a warehouse image; Identifying and locating a positioning barcode and a plurality of goods barcodes in the warehouse image; Obtaining orientation information according to the positioning barcode; Adding the orientation information to each of the goods barcodes respectively to generate a plurality of updated goods barcodes; Sending the plurality of updated goods barcodes to a warehouse processor, so that the warehouse processor updates the inventory information in the warehouse database by identifying each of the updated goods barcodes.
2. The warehouse management method based on bar code hierarchical recognition according to claim 1, wherein The identifying and locating a positioning barcode and a plurality of goods barcodes in the warehouse image specifically includes: Analyzing the image source of the warehouse image; When the warehouse image is collected by a preset image acquisition device, determining the positioning barcode by identifying a positioning area, and determining a plurality of goods barcodes by identifying an item area; When the warehouse image is collected by a smart device, identifying a plurality of barcodes in the warehouse image, and determining the positioning barcode and a plurality of goods barcodes by using the warehouse database.
3. The warehouse management method based on bar code hierarchical recognition according to claim 2, characterized in that, When the warehouse image is collected by a preset image acquisition device, determining the positioning barcode by identifying a positioning area, and determining a plurality of goods barcodes by identifying an item area specifically includes: When the warehouse image is collected by a preset image acquisition device, performing image preprocessing on the warehouse image, and identifying a positioning area and an item area in the warehouse image after image preprocessing; Identifying the positioning barcode in the positioning area by using a preset barcode identification method; Identifying a plurality of goods barcodes in the item area by using a preset barcode identification method.
4. The warehouse management method based on bar code hierarchical recognition according to claim 3, wherein, When the warehouse image is collected by a preset image acquisition device, performing image preprocessing on the warehouse image, and identifying a positioning area and an item area in the warehouse image after image preprocessing specifically includes: Performing feature processing on the warehouse image to obtain feature information of the warehouse image; Identifying a barcode sparse area and a barcode dense area in the warehouse image according to the feature information; Determining the barcode sparse area as the positioning area; Determining the barcode dense area as the item area.
5. The warehouse management method based on bar code hierarchical recognition according to claim 2, characterized in that, When the warehouse image is collected by a smart device, identifying a plurality of barcodes in the warehouse image, and determining the positioning barcode and a plurality of goods barcodes by using the warehouse database specifically includes: When the warehouse image is collected by a smart device, identifying a plurality of barcodes in the warehouse image by using a preset barcode identification method; Identifying the barcode information of each of the plurality of barcodes respectively; Comparing the barcode information of each of the plurality of barcodes with a plurality of positioning information in the warehouse database respectively to obtain a plurality of similarity degrees; When the maximum similarity degree is greater than a preset similarity threshold, determining the barcode corresponding to the maximum similarity degree as the positioning barcode; Determining all barcodes other than the positioning barcode among the plurality of barcodes as goods barcodes.
6. The warehouse management method based on bar code hierarchical recognition according to claim 3 or 5, characterized in that The preset barcode identification method specifically includes: Identifying a barcode contour image in an image to be identified; Extracting a gradient direction histogram of the barcode contour image; Performing discrete Fourier transform on the gradient direction histogram to obtain a Fourier spectrum image; Determining a correction angle in the Fourier spectrum image by using Hough transform; Correcting the barcode contour image based on the correction angle; Identify the barcode in the corrected barcode contour image.
7. The warehouse management method based on bar code hierarchical recognition according to claim 3, characterized in that The method for obtaining the orientation information according to the located barcode is specifically as follows: Identify the barcode information of the located barcode; Compare the barcode information of the located barcode with a number of location information in the warehouse database respectively for similarity; Determine the location information with the greatest similarity to the barcode information of the located barcode as the orientation information.
8. The warehouse management method based on barcode hierarchical recognition according to claim 5, characterized in that The method for obtaining the orientation information according to the located barcode is specifically as follows: When the maximum similarity is greater than the preset similarity threshold, determine the location information corresponding to the maximum similarity as the orientation information.
9. The warehouse management method based on bar code hierarchical recognition according to claim 1, characterized in that, The warehouse processor updates the inventory information in the warehouse database by identifying each goods update barcode, specifically as follows: The warehouse processor respectively identifies the location information and the item information in each goods update barcode; Determine a number of inventories to be updated in the warehouse database according to each location information; Update the inventory information in the corresponding inventories to be updated according to each item information.
10. A warehouse management device based on hierarchical barcode recognition, characterized in that, It includes: An image acquisition module, a barcode recognition module, an information acquisition module, a barcode generation module, and an information update module; The image acquisition module is used to acquire the warehouse image; The barcode recognition module is used to identify the located barcode and a number of goods barcodes in the warehouse image; The information acquisition module is used to obtain the orientation information according to the located barcode; The barcode generation module is used to add the orientation information to each goods barcode respectively to generate a number of goods update barcodes; The information update module is used to send the number of goods update barcodes to the warehouse processor so that the warehouse processor can update the inventory information in the warehouse database by identifying each goods update barcode.