Code reading system and code reading methodTechnical Field
The invention relates to a code reading system and a code reading method. Belongs to the field of bar code and two-dimensional code reading statistics.
Background
In the general production industry, product identification is one of the important links, and generally, one or a group of code readers are installed at a place where code reading identification is needed for reading codes, the number of the read codes is usually one or two, and the type of the codes is single. However, the identification codes have different shapes and sizes, and general code readers cannot identify all the identification codes, and cannot collect all the identification codes such as logistics codes, two-dimensional QR codes and commodity codes on products in place at one time.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a code reading system and a code reading method, which can quickly and effectively acquire an identification code and analyze the identification code.
In order to achieve the above object, the present invention adopts the following technical solutions: a code reading system, comprising: a feeding module, a conveying module, a camera module, an analysis processing module, a server and a control module, wherein the control module is connected with the feeding module and the conveying module, the analysis processing module is connected with the control module, the camera module and the server, the server is connected with an ERP system,
the feeding module is used for placing the product with the identification code on the conveying module;
a conveying module for conveying the product;
the camera module is used for shooting the identification code of the product on the conveying module;
the control module controls the conveying speed of the conveying module and controls the feeding speed and the feeding position of the feeding module;
the analysis processing module is used for analyzing the product identification codes shot by the camera module and calculating the number of products;
and the server is used for displaying and storing the analysis processing result and sharing the analysis processing result to the ERP system.
Further, the control module controls the feeding module to arrange the products into a column.
The system further comprises a detection module, the detection module is connected with the camera module and the analysis processing module, and the detection module is used for detecting whether the product shot by the camera module has an identification code and whether the product identification code is interrupted before and after detection.
And further, the analysis processing module is also used for analyzing the distance between the product identification codes on the conveying module according to the conveying speed of the conveying module and the feeding speed of the feeding module, judging whether the product identification codes are interrupted before and after according to the distance, and if the product identification codes are interrupted before and after detection, the analysis processing module calculates the product quantity according to the shooting time of the camera module, the conveying speed of the conveying module, the feeding speed of the feeding module and the detection result.
A code reading method is characterized by comprising the following steps:
the method comprises the following steps: the feeding module places the product on the conveying module;
step two: the shooting module shoots the product identification code;
step three: the analysis processing module analyzes the product identification codes shot by the camera module and calculates the number of products;
step four: the analysis processing module sends the analysis processing result to the server, and the server displays and stores the analysis processing result;
step five: and the server shares the analysis processing result to the ERP system.
Further, the first step also comprises the steps of controlling the conveying speed of the conveying module and controlling the feeding speed and the feeding position of the feeding module through the control module.
Further, the step three, the analyzing and processing module analyzes the product identification code photographed by the camera module and calculates the number of products includes:
step 3 a: the detection module detects whether the product shot by the camera module has an identification code;
and step 3 b: the analysis processing module analyzes the conventional distance between the product identification codes according to the conveying speed of the conveying module and the feeding speed of the feeding module;
and step 3 c: detecting whether the product identification codes are interrupted before and after according to the conventional distance between the product identification codes;
and step 3 d: and if the interruption exists between the detected product identification codes before and after the detection, the analysis processing module calculates the product quantity according to the shooting time of the camera module, the conveying speed of the conveying module, the feeding speed of the feeding module and the detection results of the step 3a and the step 3 c.
Further, the method for detecting whether there is an interruption between the product identification codes before and after the detection according to the regular interval between the product identification codes in step 3c is to determine whether the actual interval between the product identification codes is equal to the regular interval.
The invention has the advantages that: the identification code is quickly acquired through the camera module and then analyzed, so that simplicity and high efficiency are realized; the product quantity is calculated according to the shooting time, the feeding speed, the conveying speed and the detection result, so that the accuracy is improved; and the data are sent to the server and shared to an ERP system, so that data interconnection is realized, and management is facilitated.
Drawings
FIG. 1 is a schematic diagram of a code reading system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a code reading method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a code reading method according to another embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the embodiments.
Referring to fig. 1, a code reading system of the present invention includes: the system comprises a feeding module, a conveying module, a camera module, an analysis processing module, a server and a control module, wherein the control module is connected with the feeding module and the conveying module, the analysis processing module is connected with the control module, the camera module and the server, and the server is connected with an ERP system.
In one embodiment, the code reading system comprises a loading module, a conveying module, a control module, a camera module, an analysis processing module, a server and an ERP system, wherein the loading module is used for placing a product with an identification code on the conveying module, the conveying module is used for conveying the product, the control module is used for controlling the conveying speed of the conveying module and controlling the loading speed and the loading position of the loading module, the camera module is used for shooting the identification code of the product on the conveying module, the analysis processing module is used for analyzing the identification code of the product shot by the camera module and calculating the quantity of the product, and the server is used for displaying and storing an analysis processing result and sharing the analysis processing result to the ERP system.
Preferably, the control module controls the loading module to arrange the products into a column.
In an embodiment, the code reading system further includes a detection module, the detection module is connected to the camera module and the analysis processing module, and the detection module is configured to detect whether the product shot by the camera module has the identification code and whether there is an interruption between the product identification codes before and after the detection.
The analysis processing module is also used for analyzing the distance between the product identification codes on the conveying module according to the conveying speed of the conveying module and the feeding speed of the feeding module, judging whether the product identification codes are interrupted before and after according to the distance, and if the product identification codes are interrupted before and after detection, the analysis processing module calculates the product quantity according to the shooting time of the camera module, the conveying speed of the conveying module, the feeding speed of the feeding module and the detection result.
Referring to fig. 2, a method for reading a code includes the following steps:
s1: the feeding module places the product on the conveying module;
the step S1 is preceded by controlling the conveying speed of the conveying module and controlling the feeding speed and the feeding position of the feeding module by the control module.
S2: the shooting module shoots the product identification code;
s3: the analysis processing module analyzes the product identification codes shot by the camera module and calculates the number of products;
the step of analyzing the product identification code photographed by the camera module and calculating the product quantity in the analysis processing module in the step S3 includes:
s3 a: the detection module detects whether the products shot by the camera module have identification codes or not, and if the products do not have the identification codes, the products without the identification codes are taken out or the product number without the product identification codes is added when the product number is calculated;
s3 b: the analysis processing module analyzes the conventional distance between the product identification codes according to the conveying speed of the conveying module and the feeding speed of the feeding module;
s3 c: detecting whether the product identification codes are interrupted before and after according to the conventional distance between the product identification codes; the method for detecting whether the interruption exists between the product identification codes before and after the product identification codes according to the conventional distance between the product identification codes comprises the step of judging whether the actual distance between the product identification codes is equal to the conventional distance.
S3 d: and if the product identification codes before and after detection are interrupted, the analysis processing module calculates the product quantity according to the shooting time of the camera module, the conveying speed of the conveying module, the feeding speed of the feeding module and the detection result.
S4: the analysis processing module sends the analysis processing result to the server, and the server displays and stores the analysis processing result;
s5: and the server shares the analysis processing result to the ERP system.
One embodiment, as shown in fig. 3, the control module controls the conveying speed of the conveying module and controls the feeding speed and the feeding position of the feeding module, the control module controls the feeding module to arrange the products into a row, the feeding module places the products on the conveying module, the photographing module photographs the product identification codes on the conveying module, the detection module detects whether the products photographed by the photographing module have identification codes, if no identification code exists, the products without identification codes are taken out or the number of products without product identification codes is added when the number of products is calculated, the analysis processing module analyzes the regular spacing between the product identification codes according to the conveying speed of the conveying module and the feeding speed of the feeding module, detects whether there is a break between the front and rear product identification codes according to whether the regular spacing between the product identification codes is equal to the actual spacing between the product identification codes, if there is a break between the front and rear product identification codes, and judging the actual distance, subtracting the difference between the actual distance and the conventional distance from the total conveying distance, calculating the product quantity by the analysis processing module according to the shooting time of the camera module, the conveying speed of the conveying module, the feeding speed of the feeding module and the detection result, finally sending the analysis processing result to the server by the analysis processing module, displaying and storing the analysis processing result by the server, and sharing the analysis processing result to the ERP system by the server.
According to the invention, the identification code is rapidly acquired through the camera module and then analyzed, so that the method is simple and efficient; the product quantity is calculated according to the shooting time, the feeding speed, the conveying speed and the detection result, so that the accuracy is improved; and the data are sent to the server and shared to an ERP system, so that data interconnection is realized, and management is facilitated.
The foregoing illustrates and describes the principles, general features, and advantages of the present invention. It should be understood by those skilled in the art that the above embodiments do not limit the present invention in any way, and all technical solutions obtained by using equivalent alternatives or equivalent variations fall within the scope of the present invention.