CN109325383B - Product packaging label identification method and system - Google Patents

Product packaging label identification method and system Download PDF

Info

Publication number
CN109325383B
CN109325383B CN201811286073.6A CN201811286073A CN109325383B CN 109325383 B CN109325383 B CN 109325383B CN 201811286073 A CN201811286073 A CN 201811286073A CN 109325383 B CN109325383 B CN 109325383B
Authority
CN
China
Prior art keywords
product
image
product information
dimensional code
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811286073.6A
Other languages
Chinese (zh)
Other versions
CN109325383A (en
Inventor
冯妙贤
余德墩
李炳良
严垲堉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Gaoshengda Technology Co Ltd
Original Assignee
Huizhou Gaoshengda Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Gaoshengda Technology Co Ltd filed Critical Huizhou Gaoshengda Technology Co Ltd
Priority to CN201811286073.6A priority Critical patent/CN109325383B/en
Publication of CN109325383A publication Critical patent/CN109325383A/en
Application granted granted Critical
Publication of CN109325383B publication Critical patent/CN109325383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1447Methods for optical code recognition including a method step for retrieval of the optical code extracting optical codes from image or text carrying said optical code
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses a method and a system for identifying product packaging labels, which comprises the steps of placing products on a production line and transmitting the products to an image acquisition area; controlling a camera to photograph the product and acquiring a product image; analyzing the product image, and reading the two-dimensional code of the label in the product image; reading current product information of the two-dimensional code, storing the current product information, and uploading the current product information; comparing the current product information with preset product information, judging whether the current product information meets the packaging requirement, and if so, displaying the current product information on a product information image; and sending the product information image to a display screen, and controlling the display screen to display the product information image on a display interface. According to the invention, the products are placed on the production line, and the scanning record of 50-60 products can be realized at one time through the image acquisition area, so that the manual operation is reduced, the working efficiency is improved, and the cost is saved.

Description

Product packaging label identification method and system
Technical Field
The invention relates to the field of product packaging methods, in particular to a method and a system for identifying a product packaging label.
Background
The product package refers to a general term for decoration attached to a product by using containers, materials, auxiliary materials and the like according to a certain technical method in order to protect the product and facilitate storage and sales in the circulation process of product transportation, storage, sales and the like. The product package is not only beneficial to ensuring the safety and the product quality of special products, but also can well protect the legal rights and interests of the warehousers, transporters, sellers and consumers of the products.
At present, when a WIFI product is packaged, each WIFI product needs to be scanned and filed to store product information, however, when the existing WIFI product is scanned and stored, a scanning gun is used for scanning and recording the product, and the method mainly has the following defects: 1. the scanning guns scan in sequence, and product records are carried out individually, so that the efficiency is seriously influenced; 2. in the using process, the manual operation is complicated, the phenomenon of missing scanning or repeated scanning is easy to occur, and the product information is not favorably stored.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides the product packaging label identification method and the product packaging label identification system which reduce manual operation, improve working efficiency and save cost.
The purpose of the invention is realized by the following technical scheme:
a method of identifying a product packaging label, comprising the steps of:
initializing a system, and electrifying the camera to make the camera enter preparation work before photographing;
placing the product on a production line, and conveying the product to an image acquisition area;
controlling a camera to photograph the product and acquiring a product image;
analyzing the product image, and reading the two-dimensional code of the label in the product image;
reading current product information of the two-dimensional code, storing the current product information, and uploading the current product information;
comparing the current product information with preset product information, judging whether the current product information meets the packaging requirement, and if so, displaying the current product information on a product information image;
and sending the product information image to a display screen, and controlling the display screen to display the product information image on a display interface.
In one embodiment, the analyzing the product image and the reading the two-dimensional code of the tag in the product image specifically include the following steps:
judging whether the two-dimension code of the label in the product image can be found, and if so, reporting a two-dimension code identification command which can successfully identify the label; otherwise, reporting a failure instruction for identifying the two-dimension code.
In one embodiment, after the operation of reporting the two-dimensional code failure identification instruction, the method further includes the following steps:
controlling a camera to take pictures of the product for multiple times and acquiring a product image;
judging whether the two-dimension code of the label in the product image can be found, and if so, reporting a two-dimension code identification command which can successfully identify the label; otherwise, reporting a failure instruction for identifying the two-dimension code.
In one embodiment, the reading of the current product information of the two-dimensional code and the saving of the current product information specifically include the following steps:
reading current product information of the two-dimensional code, storing the current product information into a product information table, and storing the product information table into a memory;
and generating a storage instruction for the stored product information, and sending the storage instruction.
In one embodiment, the operation of placing the product on the production line and conveying the product into the image capturing area specifically includes the following steps:
placing each product on a tray, and then placing the tray with the products on a conveyor belt;
controlling the conveyor belt to start so that the tray enters an image acquisition area.
The present invention also provides an identification system for a product packaging label, comprising:
the starting unit is used for initializing the system and electrifying the camera so that the camera enters preparation work before photographing;
the feeding unit is used for placing products on a production line and conveying the products to an image acquisition area;
the system comprises an image acquisition unit, a display unit and a control unit, wherein the image acquisition unit is used for controlling a camera, photographing a product and acquiring a product image;
the two-dimensional code identification unit is used for analyzing the product image and reading the two-dimensional code of the label in the product image;
the information storage unit is used for reading the current product information of the two-dimensional code, storing the current product information and uploading the current product information;
the image display unit is used for comparing the current product information with preset product information, judging whether the current product information meets the packaging requirement, and if the current product information meets the packaging requirement, displaying the current product information on a product information image;
and the result display unit is used for sending the product information image to a display screen and controlling the display screen to display the product information image on a display interface.
In one embodiment, the identification system further comprises a judging unit, wherein the judging unit is used for judging whether the two-dimensional code of the label in the product image can be found, and if so, reporting a two-dimensional code identification success instruction; otherwise, reporting a failure instruction for identifying the two-dimension code.
In one embodiment, the image acquiring unit is further configured to control the camera to take multiple photographs of the product and acquire an image of the product.
In one embodiment, the information storage unit is further configured to read product information of the two-dimensional code, store the product information into a product information table, and store the product information table into a memory; and generating a storage instruction for the stored product information, and sending the storage instruction.
In one embodiment, the feeding unit is further configured to place each product on a tray, and then place the tray with the product on a conveyor belt; and controlling the conveyor belt to start so that the tray enters an image acquisition area.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the invention relates to a product packaging label identification method and system, which can realize scanning record of 50-60 products at one time by placing the products on a production line and in an image acquisition area, thereby reducing manual operation, improving working efficiency and saving cost. And moreover, the two-dimension code can be acquired in real time, and the information of the product is stored, so that the scanning efficiency and the working efficiency of the product can be further improved, the automatic rapid production is realized, and the production efficiency of the product is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a method for identifying a product packaging label according to an embodiment of the present invention;
fig. 2 is a functional block diagram of an identification system for a product packaging label according to an embodiment of the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only and do not represent the only embodiments.
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. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, a method for identifying a product packaging label includes the following steps:
and S110, initializing a system, and electrifying the camera to enable the camera to enter preparation work before photographing. It can be understood that, during the power-on operation, the system is firstly opened, then the flowchart of the script folder is analyzed, the interface and the camera are initialized, and the input of the operation by the user is waited; the script is compiled by adopting LUA language and is stored in a special folder; the flow chart is used as the processing logic of the whole system, so that the normal and orderly operation of the system is ensured, and the stability of the system is improved.
And S120, placing the product on the production line, and conveying the product to an image acquisition area. It can be understood that when the product needs to be photographed, the WIFI product is placed on the production line, namely, the WIFI product is placed in an image acquisition area of the camera, and a plurality of images are acquired.
S130, controlling the camera to shoot the product and acquiring a product image. It can be understood that after the WIFI product is placed in the image acquisition area, through setting up the camera, can take many photos in succession, ensure to have clear, complete two-dimensional code label in the photo of shooing to can realize more accurate acquireing of image, improve image acquisition's efficiency.
S140, analyzing the product image, and reading the two-dimensional code of the label in the product image. It is understood that after the product has the two-dimensional code, the product information contained therein, including the product model, the product lot, the product serial number, etc., can be read by scanning the two-dimensional code.
S150, reading the current product information of the two-dimensional code, storing the current product information, and uploading the current product information. It can be understood that after the two-dimensional code product information is read, the product information is stored, and an instruction is sent to an upper computer or a server, so that the condition that the upper computer can display work can be ensured.
And S160, comparing the current product information with preset product information, judging whether the packaging requirements are met, and if so, displaying the current product information on a product information image. It can be understood that after current product information is obtained through the two-dimensional code, the current product information can be directly compared with preset product information, if the current product information is the same as the preset product information, the requirement of current packaging is met, errors do not occur in packaging, and if the current product information is not met, packaging error information needs to be reported, so that the reason of the packaging errors can be checked, the problem can be timely checked, and the packaging efficiency and accuracy are improved.
And S170, sending the product information image to a display screen, and controlling the display screen to display the product information image on a display interface. It can be understood that if the current product information accords with the preset product information, the product information image can be sent to the display screen, and after the display screen receives the image, the image is displayed, so that the user can see the product information image on the display screen to see the product information.
Therefore, the product packaging label identification method and the product packaging label identification system can realize scanning record of 50 products at one time by placing the products on a production line and in an image acquisition area, reduce manual operation, improve working efficiency and save cost. And moreover, the two-dimension code can be acquired in real time, and the information of the product is stored, so that the scanning efficiency and the working efficiency of the product can be further improved, the automatic rapid production is realized, and the production efficiency of the product is improved.
In an embodiment, the analyzing the product image and the reading the two-dimensional code of the tag in the product image specifically include the following steps: judging whether the two-dimension code of the label in the product image can be found, and if so, reporting a two-dimension code identification command which can successfully identify the label; otherwise, reporting a failure instruction for identifying the two-dimension code.
In one embodiment, after the operation of reporting the two-dimensional code failure identification instruction, the method further includes the following steps: controlling a camera to take pictures of the product for multiple times and acquiring a product image; judging whether the two-dimension code of the label in the product image can be found, and if so, reporting a two-dimension code identification command which can successfully identify the label; otherwise, reporting a failure instruction for identifying the two-dimension code.
In one embodiment, the reading of the current product information of the two-dimensional code, the saving of the current product information, and the uploading of the current product information specifically include the following steps: reading current product information of the two-dimensional code, storing the current product information into a product information table, and storing the product information table into a memory; and generating a storage instruction for the stored product information, and sending the storage instruction.
In one embodiment, the operation of placing the product on the production line and conveying the product into the image capturing area specifically includes the following steps: placing each product on a tray, and then placing the tray with the products on a conveyor belt; controlling the conveyor belt to start so that the tray enters an image acquisition area.
The two-dimensional code recognition method has the advantages that the recognition accuracy and precision of the two-dimensional code are improved, and the recognition effectiveness is further improved; for example, the operation of analyzing the product image and reading the two-dimensional code of the label in the product image further includes the following steps: s1, carrying out graying operation on the product image to obtain a grayscale picture; s2, carrying out corrosion operation on the gray-scale picture to obtain a corrosion picture; s3, performing expansion operation on the gray level picture to obtain an expansion picture; s4, subtracting the expansion picture from the corrosion picture to obtain the side length of the label on the product image; s5, performing watershed algorithm operation on the label side length to obtain a side length outline; s6, dividing the side length outline into left and right, and determining the coordinate position of the two-dimensional code on the product image; s7, carrying out ZXing library analysis operation on the coordinate position of the two-dimensional code to obtain two-dimensional code information, and storing the coordinate position and the two-dimensional code information. Therefore, the accuracy and precision of the two-dimensional code identification can be improved, and the effectiveness of the identification is further improved.
In order to further improve the accuracy and precision of the two-dimensional code identification and further improve the effectiveness of the identification; if the image analysis fails, a plurality of pictures are continuously taken in step S130 to obtain a plurality of product images, and after the first product image fails to be analyzed, the method further includes the following steps: s21, analyzing by adopting a second product picture, repeating the steps S1-S7 to obtain side length outlines of all the two-dimensional codes, namely coordinate positions of all the two-dimensional codes, and calculating the current number of the obtained side length outlines; s22, judging whether the current number is equal to the number of the preset two-dimensional codes or not, and if so, successfully analyzing the image; if the number is not equal, go to step S23; s23, determining the positions of the rest two-dimensional code labels according to the coordinate position of each two-dimensional code, and calculating the coordinate position of a blank two-dimensional code label; s24, repeating the steps S1-S7 to obtain side length outlines of all the two-dimensional codes, and calculating the final number of the obtained side length outlines; s25, judging whether the final number is equal to the number of the preset two-dimensional codes or not, and if so, successfully analyzing the image; and if the number is not equal, sending an image analysis failure instruction. Therefore, the accuracy and precision of the two-dimensional code identification can be further improved, and the effectiveness of the identification is further improved.
It can be understood that in the process that the tray moves to the image acquisition area, the tray needs to be still on the conveyor belt and needs to stay in the image acquisition area, and in the process that the tray moves, position deviation is easy to occur, so that the tray cannot accurately stay in the image acquisition area, the photos shot by the camera are not focused accurately, and the identification accuracy and effectiveness of the two-dimensional codes are reduced, therefore, in order to ensure that the tray can accurately stay in the image acquisition area, the focusing effectiveness of the camera is improved, the definition of the two-dimensional codes of the shot images is further improved, and the identification accuracy and effectiveness of the two-dimensional codes are improved; for example, in an embodiment, the operation of placing the product on the production line and conveying the product into the image capturing area specifically further includes: s311, placing the product on a tray, placing the tray on a conveyor belt, starting the conveyor belt to work, and driving the tray to move towards an image acquisition area by the conveyor belt; s312, when the tray completely enters the image acquisition area, controlling the conveyor belt to stop conveying and sending an image acquisition instruction; and S313, receiving the image acquisition instruction and triggering the camera to take a picture. So, can guarantee that the tray can accurately stop in image acquisition region, improve the camera validity of focusing on, and then improve the definition of the two-dimensional code of the image of shooting, improve the discernment accuracy and the validity of two-dimensional code.
Furthermore, in order to improve the definition of the two-dimensional code of the shot image, the identification accuracy and effectiveness of the two-dimensional code are improved; for example, in one embodiment, the operation of placing the product on the production line and conveying the product into the image capturing area specifically further includes: s321, placing the product on a tray, placing the tray on a conveyor belt, starting the conveyor belt to work, and driving the tray to move towards an image acquisition area by the conveyor belt; s322, when the tray starts to enter an image acquisition area, triggering an infrared sensor to send out a first sensing signal, and starting to accurately enter an image acquisition operation; s323, when the tray completely enters an image acquisition area, triggering an infrared sensor to send a second sensing signal, controlling the conveyor belt to stop conveying, and sending an image acquisition instruction; and S324, receiving the image acquisition instruction and triggering the camera to take a picture. Therefore, the definition of the two-dimensional code of the shot image can be further improved, and the identification accuracy and effectiveness of the two-dimensional code are further improved.
Furthermore, in order to improve the definition of the two-dimensional code of the shot image, the identification accuracy and effectiveness of the two-dimensional code are improved; for example, in one embodiment, the operation of placing the product on the production line and conveying the product into the image capturing area specifically further includes: s331, placing a product on a tray, wherein the tray is placed on a conveyor belt, the conveyor belt starts to work, and the conveyor belt drives the tray to move towards a position close to an image acquisition area; s332, when the tray starts to enter an image acquisition area, triggering an NFC sensor to send an NFC sensing signal, controlling the conveyor belt to stop transmitting, and sending an image acquisition instruction; and S333, receiving the image acquisition instruction and triggering the camera to take a picture. Therefore, the definition of the two-dimensional code of the shot image can be guaranteed to be improved, and the identification accuracy and effectiveness of the two-dimensional code are improved.
It can be understood that when the WIFI product is placed on the tray, the WIFI product is placed directionally, so that the identification accuracy and effectiveness of the two-dimensional code are further improved in order to prevent the product from being placed reversely and identify whether the product is placed reversely; in an embodiment, the step S6, dividing the side length outline into left and right sides, and determining the coordinate position of the two-dimensional code on the product image specifically includes the following steps: s61, presetting the coordinate position of the two-dimensional code at the left side position of the side length outline; s62, judging whether the coordinate position of the two-dimensional code on the product image is at the left side position of the side length outline or not, if not, executing a step S63, and if so, executing a step S7; s63, the product is placed on the tray again, and the steps S1-S7 are executed again. So, can discern whether the product appears putting the circumstances of turning over, can prevent to put the product back, and then can improve the discernment accuracy and the validity of two-dimensional code, guarantee that the product after the shipment places the direction correct.
Referring to fig. 2, the present invention further provides an identification system for a product packaging label, including: the system comprises a starting unit 100, a feeding unit 200, an image acquiring unit 300, a two-dimensional code identifying unit 400, an information storing unit 500, an image display unit 600 and a result display unit 700, wherein the starting unit, the feeding unit, the image acquiring unit, the two-dimensional code identifying unit, the information storing unit, the image display unit and the result display unit are sequentially connected.
The starting unit is used for initializing the system and carrying out power-on operation on the camera so that the camera enters preparation work before photographing. It should be noted that, during the power-on operation, the system is firstly opened, then the flowchart of the script folder is analyzed, the interface and the camera are initialized, and the user is waited for the input of the operation; the script is compiled by adopting LUA language and is stored in a special folder; the flow chart is used as the processing logic of the whole system, so that the normal and orderly operation of the system is ensured, and the stability of the system is improved.
The feeding unit is used for placing products on a production line and conveying the products to an image acquisition area. It should be noted that, when the product needs to be photographed, the WIFI product is placed on the pipeline, that is, the WIFI product is placed in an image acquisition area of the camera, and a plurality of images are acquired.
The image acquisition unit is used for controlling the camera, photographing the product and acquiring the image of the product. It should be noted that, after the WIFI product is placed in the image acquisition area, through setting up the camera, can take many photos in succession, ensure to have clear, complete two-dimensional code label in the photo of shooing to can realize more accurate acquisition of image, improve image acquisition's efficiency.
The two-dimension code identification unit is used for analyzing the product image and reading the two-dimension code of the label in the product image. It should be noted that, after a product has a two-dimensional code, product information contained therein may be read by scanning the two-dimensional code, where the product information includes a product model, a product batch, a product serial number, and the like.
The information storage unit is used for reading the current product information of the two-dimensional code, storing the current product information and uploading the current product information. It should be noted that after the two-dimensional code product information is read, the product information is stored, and an instruction is sent to an upper computer or a server, so that the condition that the upper computer can display work can be ensured.
The image display unit is used for comparing the current product information with preset product information, judging whether the current product information meets the packaging requirement, and if the current product information meets the packaging requirement, displaying the current product information on a product information image. It should be noted that, after the current product information is obtained through the two-dimensional code, the current product information can be directly compared with the preset product information, if the current product information is the same as the preset product information, the current packaging requirement is met, the packaging is not wrong, and if the current product information is not consistent with the preset product information, the packaging error information needs to be reported, so that the reason of the packaging error can be checked, the problem can be timely checked, and the packaging efficiency and accuracy are improved.
And the result display unit is used for sending the product information image to a display screen and controlling the display screen to display the product information image on a display interface. It should be noted that, when the current product information conforms to the preset product information, the product information image can be sent to the display screen, and after the display screen receives the image, the image is displayed, so that the user can see the product information image and see the product information on the display screen.
It should be further noted that the identification system further includes a determining unit, where the determining unit is configured to determine whether the two-dimensional code of the label in the product image can be found, and if the two-dimensional code can be found, report a command that the two-dimensional code can be successfully identified; otherwise, reporting a failure instruction for identifying the two-dimension code.
Specifically, the judging unit is further configured to preset a position of a coordinate of the two-dimensional code at a left side of the side length profile; and judging whether the coordinate position of the two-dimensional code on the product image is at the left side position of the side length outline or not. So, can discern whether the product appears putting the circumstances of turning over, can prevent to put the product back, and then can improve the discernment accuracy and the validity of two-dimensional code, guarantee that the product after the shipment places the direction correct.
It should be further noted that the image acquiring unit is further configured to control the camera to take multiple photographs of the product and acquire an image of the product.
It should be further noted that the information storage unit is further configured to read product information of the two-dimensional code, store the product information in a product information table, and store the product information table in a memory; and generating a storage instruction for the stored product information, and sending the storage instruction.
It should be noted that the feeding unit is also used for placing each product on a tray, and then placing the tray with the products on the conveyor belt; and controlling the conveyor belt to start so that the tray enters an image acquisition area.
It should be further noted that the identification system further includes a display screen, wherein the display screen includes a display of a computer or a display of a mobile terminal.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the invention relates to a product packaging label identification method and system, which can realize scanning record of 50 products at one time by placing the products on a production line and in an image acquisition area, thereby reducing manual operation, improving working efficiency and saving cost. And moreover, the two-dimension code can be acquired in real time, and the information of the product is stored, so that the scanning efficiency and the working efficiency of the product can be further improved, the automatic rapid production is realized, and the production efficiency of the product is improved.
It should be noted that the present invention is implemented in a multi-language hierarchy, including a bottom layer function implementation, a middle layer logic call, and a UI interface. Developing a bottom layer function based on a QT platform, calling a camera to acquire original image resources, realizing label two-dimensional code identification, recording success or failure of a result and the like, and generating a dll file of a function; the middle layer is designed through a flow chart, the functional nodes are connected, and dll files are called by functions to realize the logic function of the whole program; the UI interface is designed by the front end and provides function selection and result display for a user. The design can realize the scanning record of 50 products at one time and report the scanning record to the server side for recording.
The above embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A method for identifying a product packaging label is characterized by comprising the following steps:
initializing a system, and electrifying the camera to make the camera enter preparation work before photographing;
placing the product on a production line, and conveying the product to an image acquisition area;
controlling a camera to photograph the product and acquiring a product image;
analyzing the product image, and reading the two-dimensional code of the label in the product image;
reading current product information of the two-dimensional code, storing the current product information, and uploading the current product information;
comparing the current product information with preset product information, judging whether the current product information meets the packaging requirement, and if so, displaying the current product information on a product information image;
sending the product information image to a display screen, and controlling the display screen to display the product information image on a display interface;
the operation of placing the product on the production line and conveying the product to the image acquisition area specifically comprises the following steps:
placing each product on a tray, and then placing the tray with the products on a conveyor belt;
controlling the conveyor belt to start so that the tray enters an image acquisition area;
the operation of analyzing the product image and reading the two-dimensional code of the label in the product image specifically comprises the following steps: s1, carrying out graying operation on the product image to obtain a grayscale picture; s2, carrying out corrosion operation on the gray-scale picture to obtain a corrosion picture; s3, performing expansion operation on the gray level picture to obtain an expansion picture; s4, subtracting the expansion picture from the corrosion picture to obtain the side length of the label on the product image; s5, then performing watershed algorithm operation on the label side length to obtain a side length outline; s6, dividing the side length outline into left and right, and determining the coordinate position of the two-dimensional code on the product image; s7, performing ZXing library analysis operation on the coordinate position of the two-dimensional code to obtain two-dimensional code information, and storing the coordinate position and the two-dimensional code information;
in step S130, multiple pictures are continuously taken, multiple product images are obtained, and when the first product image fails to be analyzed, the method further includes the following steps: s21, analyzing by adopting a second product picture, repeating the steps S1-S7 to obtain side length outlines of all the two-dimensional codes, namely coordinate positions of all the two-dimensional codes, and calculating the current number of the obtained side length outlines; s22, judging whether the current number is equal to the number of the preset two-dimensional codes or not, and if so, successfully analyzing the image; if the number is not equal, go to step S23; s23, determining the positions of the rest two-dimensional code labels according to the coordinate position of each two-dimensional code, and calculating the coordinate position of a blank two-dimensional code label; s24, repeating the steps S1-S7 to obtain side length outlines of all the two-dimensional codes, and calculating the final number of the obtained side length outlines; s25, judging whether the final number is equal to the number of the preset two-dimensional codes or not, and if so, successfully analyzing the image; if the number is not equal, sending an image analysis failure instruction;
the step S6, dividing the side length outline into left and right, and the operation of determining the coordinate position of the two-dimensional code on the product image specifically includes the following steps: s61, presetting the coordinate position of the two-dimensional code at the left side position of the side length outline; s62, judging whether the coordinate position of the two-dimensional code on the product image is at the left side position of the side length outline or not, if not, executing a step S63, and if so, executing a step S7; s63, putting the product on the tray again, and executing the steps S1-S7 again;
the operation of placing the product on the production line and conveying the product to the image acquisition area specifically further comprises: s331, placing a product on a tray, wherein the tray is placed on a conveyor belt, the conveyor belt starts to work, and the conveyor belt drives the tray to move towards a position close to an image acquisition area; s332, when the tray starts to enter an image acquisition area, triggering an NFC sensor to send an NFC sensing signal, controlling the conveyor belt to stop transmitting, and sending an image acquisition instruction; and S333, receiving the image acquisition instruction and triggering the camera to take a picture.
2. The method for identifying a product packaging label according to claim 1, wherein the operation of analyzing the product image and reading the two-dimensional code of the label in the product image specifically comprises the following steps:
judging whether the two-dimension code of the label in the product image can be found, and if so, reporting a two-dimension code identification command which can successfully identify the label; otherwise, reporting a failure instruction for identifying the two-dimension code.
3. The method for identifying the product packaging label according to claim 2, wherein after the operation of reporting the two-dimensional code identification failure instruction, the method further comprises the following steps:
controlling a camera to take pictures of the product for multiple times and acquiring a product image;
judging whether the two-dimension code of the label in the product image can be found, and if so, reporting a two-dimension code identification command which can successfully identify the label; otherwise, reporting a failure instruction for identifying the two-dimension code.
4. The method for identifying a product packaging label according to claim 1, wherein the operation of reading the current product information of the two-dimensional code, saving the current product information, and uploading the current product information specifically comprises the following steps:
reading current product information of the two-dimensional code, storing the current product information into a product information table, and storing the product information table into a memory;
and generating a storage instruction for the stored product information, and sending the storage instruction.
5. An identification system for a product packaging label, comprising:
the starting unit is used for initializing the system and electrifying the camera so that the camera enters preparation work before photographing;
the feeding unit is used for placing products on a production line and conveying the products to an image acquisition area;
the system comprises an image acquisition unit, a display unit and a control unit, wherein the image acquisition unit is used for controlling a camera, photographing a product and acquiring a product image;
the two-dimensional code identification unit is used for analyzing the product image and reading the two-dimensional code of the label in the product image;
the information storage unit is used for reading the current product information of the two-dimensional code, storing the current product information and uploading the current product information;
the image display unit is used for comparing the current product information with preset product information, judging whether the current product information meets the packaging requirement, and if the current product information meets the packaging requirement, displaying the current product information on a product information image;
the result display unit is used for sending the product information image to a display screen and controlling the display screen to display the product information image on a display interface;
the feeding unit is also used for placing each product on a tray, and then placing the tray with the products on a conveyor belt; and controlling the conveyor belt to start so that the tray enters an image acquisition area.
6. The product packaging label identification system of claim 5, further comprising a determination unit, wherein the determination unit is configured to determine whether the two-dimensional code of the label in the product image can be found, and if so, report a command that the two-dimensional code can be successfully identified; otherwise, reporting a failure instruction for identifying the two-dimension code.
7. The product packaging label identification system of claim 6, wherein the image acquisition unit is further configured to control a camera to take multiple photographs of the product and acquire an image of the product.
8. The product packaging label identification system of claim 5, wherein the information storage unit is further configured to read product information of the two-dimensional code, store the product information into a product information table, and store the product information table into a memory; and generating a storage instruction for the stored product information, and sending the storage instruction.
CN201811286073.6A 2018-10-31 2018-10-31 Product packaging label identification method and system Active CN109325383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811286073.6A CN109325383B (en) 2018-10-31 2018-10-31 Product packaging label identification method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811286073.6A CN109325383B (en) 2018-10-31 2018-10-31 Product packaging label identification method and system

Publications (2)

Publication Number Publication Date
CN109325383A CN109325383A (en) 2019-02-12
CN109325383B true CN109325383B (en) 2022-06-07

Family

ID=65260216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811286073.6A Active CN109325383B (en) 2018-10-31 2018-10-31 Product packaging label identification method and system

Country Status (1)

Country Link
CN (1) CN109325383B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110239997B (en) * 2019-06-13 2024-04-19 华中科技大学 Automatic waste rejecting method and equipment for rewinder
CN110263594B (en) * 2019-06-25 2022-07-22 重庆三千一百科技发展股份有限公司 Batch two-dimensional code identification method
CN110406250B (en) * 2019-07-15 2021-02-12 杭州恢弘科技有限公司 Auxiliary printing and ironing setting method, auxiliary printing and ironing method and auxiliary printing and ironing system
CN110598808A (en) * 2019-08-13 2019-12-20 中山一麟包装设备有限公司 Control system and method for material packaging machine
CN110633587A (en) * 2019-09-12 2019-12-31 汕头东风印刷股份有限公司 Waste-kicking method and device for two-dimensional code on production line
CN112525914A (en) * 2019-09-17 2021-03-19 合肥京东方视讯科技有限公司 Product detection device and method and product assembly line
EP4075413A4 (en) * 2019-12-13 2023-11-22 Japan Tobacco, Inc. Information processing device, program, and information provision method
CN111242258B (en) * 2020-02-23 2023-05-02 安徽古井贡酒股份有限公司 White spirit front end detection system and method
CN111562267B (en) * 2020-05-29 2023-07-21 重庆施鲁逊智能科技有限公司 Visual inspection system for automobile fuse box assembly
CN111882332A (en) * 2020-07-31 2020-11-03 浙江水晶光电科技股份有限公司 Information verification method and device
CN112258686A (en) * 2020-09-30 2021-01-22 晶澳太阳能有限公司 Automatic product information input device
CN112764401B (en) * 2020-12-30 2022-07-12 盛泰光电科技股份有限公司 Production management system based on MES
CN112906421A (en) * 2021-04-08 2021-06-04 苏州华兴源创科技股份有限公司 Product two-dimensional code identification method
CN114184143A (en) * 2021-11-22 2022-03-15 惠州高盛达科技有限公司 PCB flatness measuring method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201066508Y (en) * 2007-06-05 2008-05-28 宁波赛盟科技发展有限公司 A high-speed bar detection device for fully automatic product line
CN103632246A (en) * 2013-11-20 2014-03-12 海南拍拍看网络科技有限公司 Inward-looking system for commodity package
CN203806245U (en) * 2014-04-29 2014-09-03 成都邦得科技有限公司 System for checking product packaging labels
CN104691853A (en) * 2014-06-24 2015-06-10 纷美(北京)贸易有限公司 Product tracking online control system and control method on basis of information borne by food packaging materials
CN106295735A (en) * 2016-07-22 2017-01-04 纷美(北京)贸易有限公司 By calculating the method and device obtaining code information
CN108268907A (en) * 2016-12-30 2018-07-10 康美包(苏州)有限公司 A kind of bad products checkout system and method
CN108280497A (en) * 2018-02-07 2018-07-13 江南大学 A kind of recognition methods of commodity packaging information
CN108454983A (en) * 2017-12-30 2018-08-28 惠州高盛达科技有限公司 A kind of statistical method of wireless module automatic packaging

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5507134B2 (en) * 2009-07-03 2014-05-28 株式会社富士通コンピュータテクノロジーズ Two-dimensional code reading method, two-dimensional code recognition method, and two-dimensional code reading apparatus
US20130038694A1 (en) * 2010-04-27 2013-02-14 Sanjay Nichani Method for moving object detection using an image sensor and structured light
CN103971098B (en) * 2014-05-19 2017-05-10 北京明兰网络科技有限公司 Method for recognizing wall in house type image and method for automatically correcting length ratio of house type image

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201066508Y (en) * 2007-06-05 2008-05-28 宁波赛盟科技发展有限公司 A high-speed bar detection device for fully automatic product line
CN103632246A (en) * 2013-11-20 2014-03-12 海南拍拍看网络科技有限公司 Inward-looking system for commodity package
CN203806245U (en) * 2014-04-29 2014-09-03 成都邦得科技有限公司 System for checking product packaging labels
CN104691853A (en) * 2014-06-24 2015-06-10 纷美(北京)贸易有限公司 Product tracking online control system and control method on basis of information borne by food packaging materials
CN106295735A (en) * 2016-07-22 2017-01-04 纷美(北京)贸易有限公司 By calculating the method and device obtaining code information
CN108268907A (en) * 2016-12-30 2018-07-10 康美包(苏州)有限公司 A kind of bad products checkout system and method
CN108454983A (en) * 2017-12-30 2018-08-28 惠州高盛达科技有限公司 A kind of statistical method of wireless module automatic packaging
CN108280497A (en) * 2018-02-07 2018-07-13 江南大学 A kind of recognition methods of commodity packaging information

Also Published As

Publication number Publication date
CN109325383A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN109325383B (en) Product packaging label identification method and system
US20210370607A1 (en) Systems and methods for identifying three-dimensional printed objects
CN111340126B (en) Article identification method, apparatus, computer device, and storage medium
US10095943B2 (en) Image recognition apparatus
CN113689578B (en) Human body data set generation method and device
EP3158505B1 (en) A method and a system for object recognition
KR101758054B1 (en) On-line and off-line integrated inventory management system using POS system
CN112508109B (en) Training method and device for image recognition model
CN113627411A (en) Super-resolution-based commodity identification and price matching method and system
US11113680B2 (en) Self-service checkout counter checkout
KR20220093187A (en) Positioning method and apparatus, electronic device, computer readable storage medium
CN111310706A (en) Commodity price tag identification method and device, electronic equipment and storage medium
US10402777B2 (en) Method and a system for object recognition
JP2017083915A (en) Two-dimensional code, two-dimensional code system, two-dimensional code imaging terminal and information processing method using two-dimensional code
CN112307944A (en) Dish inventory information processing method, dish delivery method and related device
CN107577973B (en) image display method, image identification method and equipment
JP2019174959A (en) Commodity shelf position registration program and information processing apparatus
CN114022999A (en) Method, device, equipment and medium for detecting shortage of goods of vending machine
CN110291771B (en) Depth information acquisition method of target object and movable platform
CN112308869A (en) Image acquisition method and device, electronic equipment and computer storage medium
US11455481B2 (en) Image processing apparatus, image processing method, and storage medium storing program
US20230316552A1 (en) Repairing image depth values for an object with a light absorbing surface
CN107609448B (en) Bar code decoding method and bar code decoding device
US20230130674A1 (en) Computer-readable recording medium storing learning program, learning method, and information processing apparatus
CN112560563A (en) Article layout identification method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant