CN112131898A - Code scanning device and graphic code identification method - Google Patents
Code scanning device and graphic code identification method Download PDFInfo
- Publication number
- CN112131898A CN112131898A CN202011015453.3A CN202011015453A CN112131898A CN 112131898 A CN112131898 A CN 112131898A CN 202011015453 A CN202011015453 A CN 202011015453A CN 112131898 A CN112131898 A CN 112131898A
- Authority
- CN
- China
- Prior art keywords
- graphic code
- image information
- code
- information
- industrial camera
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/10861—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10712—Fixed beam scanning
- G06K7/10722—Photodetector array or CCD scanning
- G06K7/10732—Light sources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10712—Fixed beam scanning
- G06K7/10722—Photodetector array or CCD scanning
- G06K7/10752—Exposure time control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10792—Special measures in relation to the object to be scanned
- G06K7/10801—Multidistance reading
- G06K7/10811—Focalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
- G06K7/1482—Methods for optical code recognition the method including quality enhancement steps using fuzzy logic or natural solvers, such as neural networks, genetic algorithms and simulated annealing
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Automation & Control Theory (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Studio Devices (AREA)
Abstract
The application relates to a scanning device and a graphic code identification method, and belongs to the technical field of image processing. Should sweep a yard equipment and include: the camera module comprises a frame, a camera module and a vision controller; the rack comprises a bracket and a beam, and the bracket is connected with the beam; the camera module is arranged on the cross beam and used for acquiring image information of the cargo box with the graphic code under the cross beam; and the visual controller is used for detecting the graphic code in the image information and identifying the detected graphic code to obtain the graphic code information. The embodiment of the application provides a no perception is full-automatic sweeps a yard equipment, realizes detecting and discerning the graphic code in the image information of the goods case that is located the camera module field of vision through computer vision, has both saved the manpower, has improved efficiency again, need not to reform transform the product line simultaneously, applicable in narrow and small spaces such as including container, carriage.
Description
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a scanning device and a graphic code identification method.
Background
At present, graphic codes (such as two-dimensional codes) are generally adopted for tracing manufactured products, particularly food, and the whole processes of production, transportation and sale of the manufactured products are monitored. The cargo counting and information statistics become essential links in the tracing process. Usually, two modes of manual code scanning and code scanning by a conveying belt are adopted. The manual code scanning requires a handheld code scanning gun to scan the cargo box provided with the two-dimensional code, and the mode has the defects of low code scanning efficiency, poor code scanning accuracy and high labor cost; and another kind of conveyer belt sweeps the sign indicating number, need transport the goods to the conveyer belt one by one, sweeps a sign indicating number rifle through arranging on the conveyer belt top, realizes sweeping the sign indicating number automatically, and the shortcoming of this kind of mode is that the product line transformation is with high costs, and is unmovable, can not be used to narrow and small spaces such as container, carriage.
Disclosure of Invention
In view of the above, an object of the present application is to provide a scanning device and a method for identifying a graphic code, so as to solve the problems of the conventional code scanning method.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method including: the camera module comprises a frame, a camera module and a vision controller; the rack comprises a bracket and a beam, and the bracket is connected with the beam; the camera module is arranged on the cross beam and used for acquiring image information of the cargo box which is positioned below the cross beam and provided with the graphic code; and the visual controller is used for detecting the graphic code in the image information and identifying the detected graphic code to obtain the graphic code information. The embodiment of the application provides a no perception is full-automatic sweeps a yard equipment, realizes detecting and discerning the graphic code in the image information of the goods case that is located the camera module field of vision through computer vision, has both saved the manpower, has improved efficiency again and has swept a yard rate of accuracy, need not to reform transform the product line simultaneously, applicable in narrow and small spaces such as container, carriage.
With reference to one possible implementation manner of the embodiment of the first aspect, the camera module includes: the device comprises a first long-focus industrial camera and a first short-focus industrial camera which are arranged in parallel, wherein the depth of field of the first long-focus industrial camera is 0-1000 mm, and the depth of field of the first short-focus industrial camera is 1000-1700 mm. In the embodiment of the application, adopt the different long burnt industrial camera of depth of field scope and short burnt industrial camera to gather the image for the camera stack of different focus goes out the big recognition scope of depth of field, and the scope that the depth of field covered is wider, thereby can gather more cargo box image, reduces the labour cost of artifical transport cargo box.
With reference to one possible implementation manner of the embodiment of the first aspect, the camera module further includes: the second long-focus industrial camera and the second short-focus industrial camera are arranged in parallel, the depth of field range of the second long-focus industrial camera is 0-1000 mm, the depth of field range of the second short-focus industrial camera is 1000-1700 mm, the visual field coverage range of the whole camera module is 1500 mm-1500 mm, and the depth of field range is 0-1700 mm; wherein, the side where the first long-focus industrial camera and the first short-focus industrial camera are located is opposite to the side where the second long-focus industrial camera and the second short-focus industrial camera are located. In the embodiment of the application, the vision coverage of a larger range is realized by adopting 4 industrial cameras, so that the vision coverage of the whole camera module is 1500mm by 1500mm, and the depth of field is 0-1700 mm; thereby can gather more goods case images, reduce the labour cost of artifical transport goods case.
With reference to a possible implementation manner of the embodiment of the first aspect, the code scanning device further includes a display screen connected to the visual controller, and the visual controller is further configured to perform deduplication on the obtained graphic code information and send the deduplicated graphic code information to the display screen for display. In the embodiment of the application, through connecting the display screen, the graphic code information after removing the weight is displayed to more audio-visual realization is to the traceing back of goods, and simultaneously after obtaining the graphic code information, still remove the weight to it, can accelerate the process of traceing back.
With reference to a possible implementation manner of the embodiment of the first aspect, the visual controller is further configured to count the de-duplicated graphic code information, and send the counted number to the display screen for displaying. In the embodiment of the application, the graphic code information after the duplication removal is counted, and the counted number is sent to the display screen to be displayed, so that a manager can visually know the tracing condition of the cargo box.
With reference to one possible implementation manner of the embodiment of the first aspect, the code scanning device further includes a light source, and the light source is disposed on the beam and used for providing illumination for the camera module when taking a picture. In this application example, through set up the light source that provides the illumination when camera module shoots on the crossbeam for the image quality that camera module shot is better, is favorable to improving image detection's efficiency.
With reference to one possible implementation manner of the embodiment of the first aspect, the rack includes a base, and the base is provided with a movable device. In the embodiment of the application, the movable device is arranged on the base of the rack, so that the code scanning equipment can be moved better, the moving cost is saved, and the moving efficiency is improved.
In a second aspect, an embodiment of the present application further provides a graphic code recognition method, which is applied to a visual controller in a code scanning device, where the scanning device further includes: the device comprises a frame, a camera module and a display screen; the frame includes: the support is connected with the cross beam; the code scanning equipment is placed at a stacking point of the cargo box, and the camera module is installed on the cross beam and used for acquiring image information of the cargo box which is positioned below the cross beam and provided with the graphic code; the method comprises the following steps: receiving image information of the cargo box which is provided with the graphic code and is positioned below the cross beam and collected and transmitted by the camera module; detecting the graphic code in the image information by using a graphic code detection model trained in advance; recognizing the detected graphic code by using a preset graphic code recognition library to obtain the graphic code information in the detected graphic code; and sending the obtained graphic code information to the display screen for display.
With reference to a possible implementation manner of the embodiment of the first aspect, sending the obtained graphic code information to the display screen for displaying includes: and removing the duplicate of the obtained graphic code information, counting the removed duplicate graphic code information, and sending the counted number and the removed duplicate graphic code information to the display screen for displaying.
With reference to a possible implementation manner of the embodiment of the first aspect, before the detecting the graphic code in the image information by using a graphic code detection model trained in advance, the method further includes: acquiring image information with a graphic code, and marking the graphic code in partial image information; and training the initial neural network model by using the marked image information and the unmarked image information to obtain the trained graphic code detection model.
In a third aspect, embodiments of the present application further provide a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method provided in the foregoing second aspect and/or any one of the possible implementation manners of the second aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a schematic structural diagram of a code scanning device provided in an embodiment of the present application.
Fig. 2 shows a block diagram of a code scanning device according to an embodiment of the present application.
Fig. 3 is a schematic view illustrating a depth-of-field and a field-of-view coverage of a camera module according to an embodiment of the present disclosure.
Fig. 4 shows a schematic flow chart of a pattern code identification method provided in an embodiment of the present application.
Icon: 100-code scanning equipment; 1-a frame; 11-a scaffold; 12-a cross beam; 13-a base; 131-an identification rod; 2-a camera module; 21-a first tele industrial camera; 22-a first short focus industrial camera; 23-a second short focus industrial camera; 24-a second tele industrial camera; 3-a vision controller; 4-a display screen; 5-a light source; 6-movable device.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In view of the shortcomings of the existing code scanning mode, the embodiment of the application provides code scanning equipment, which realizes the detection and identification of graphic codes in the carrying process through computer vision and realizes the tracing of the process of goods. Meanwhile, the code scanning equipment can be arranged at different goods stacking points as required, so that the detection and the recognition of the graphic codes in the carrying process can be automatically realized, and the code scanning equipment can be suitable for various scenes, especially narrow spaces such as containers and carriages.
For ease of understanding, the code scanning apparatus 100 shown in fig. 1 and 2 will be described. The code scanning apparatus 100 includes: a frame 1, a camera module 2 and a vision controller 3. Fig. 1 is a schematic structural diagram of the code scanning apparatus 100, and fig. 2 is a block diagram of the code scanning apparatus 100. It should be noted that the code scanning device 100 shown in fig. 1 and fig. 2 is only one of many embodiments provided in the embodiments of the present application, and therefore, the present application is not limited thereto.
The rack 1 includes a bracket 11 and a beam 12, and the bracket 11 is connected with the beam 12, which may be detachably connected or fixedly connected. Wherein, frame 1 has certain height (like 2.2m), in addition, can also realize being less than 95 degrees connection rotational positioning after support 11 and crossbeam 12 are connected to the better picture of shooing of camera module 2. Optionally, the frame 1 also comprises a base 13 (which may be a box), on which base 13 the support 11 acts in order to better fix the support 11. Optionally, for moving, a movable device 6 such as a pulley is further disposed on the base 13 to facilitate better movement of the code scanning device 100. Optionally, an indication rod 131 (including the indication rod 131 located near the left side and the indication rod 131 located near the right side in the figure) for indicating the coverage of the field of view of the camera module 2 is further disposed on the base 13, and the indication rod 131 is connected to the base 13, in one embodiment, a part of the movable devices 6 may be disposed on the indication rod 131, as shown in the figure, a schematic diagram including 6 movable devices 6 is shown, 4 are disposed on the indication rod 131, 2 are disposed on the indication rod 131 near the left side, 2 are disposed on the indication rod 131 near the right side, and the remaining 2 are disposed on the left side and the right side of the base 13 respectively. The indication rod 131 is used to indicate the view coverage of the camera module 2, and as long as the cargo box is located within the length range defined by the indication rod 131, the image of the cargo box can be collected by the camera module 2.
The camera module 2 is mounted on the beam 12 and used for collecting image information of a cargo box provided with a graphic code (such as a two-dimensional code) and located below the beam 12. The camera module 2 may be a multi-module camera. In order to better achieve the coverage of the field of view and the depth of field, in one embodiment, the camera module 2 includes: a first long-focus industrial camera 21 (being a multi-module camera) and a first short-focus industrial camera 22 (being a multi-module camera) are arranged in parallel on the first side. The depth of field of the first long-focus industrial camera 21 is 0-1000 mm, and the depth of field of the first short-focus industrial camera 22 is 1000-1700 mm. In this embodiment, the first long-focus industrial camera 21 and the first short-focus industrial camera 22 may be disposed in parallel on the same side (e.g., left or right side), and of course, the first long-focus industrial camera 21 and the first short-focus industrial camera 22 may also be disposed in parallel on opposite sides, such as the first long-focus industrial camera 21 on the left side (right side) and the first short-focus industrial camera 22 on the right side (left side).
In another embodiment, the camera module 2 further includes: a second long-focus industrial camera 24 (being a multi-module camera) and a second short-focus industrial camera 23 (being a multi-module camera) are arranged in parallel. Wherein the depth of field of the second long-focus industrial camera 24 is 0-1000 mm, and the depth of field of the second short-focus industrial camera 23 is 1000-1700 mm. The first long-focus industrial camera 21 and the second long-focus industrial camera 24 are fixed on the outermost side, and the first short-focus industrial camera 22 and the second short-focus industrial camera 23 are fixed on the inner side between the first long-focus industrial camera 21 and the second long-focus industrial camera 24, so that the visual field coverage range of the whole camera module 2 is 1500mm x 1500mm, and the depth of field range is 0-1700 mm. Wherein the first long-focus industrial camera 21 and the first short-focus industrial camera 22 are located on a side opposite to the second long-focus industrial camera 24 and the second short-focus industrial camera 23, for example, the first long-focus industrial camera 21 and the first short-focus industrial camera 22 are arranged on the left side in parallel, and the second long-focus industrial camera 24 and the second short-focus industrial camera 23 are arranged on the right side in parallel. The code scanning range coverage with a large field of view and a large depth of field is realized by adopting a multi-camera splicing mode, and a schematic view of the field depth and the field coverage is shown in fig. 3.
The vision controller 3 is configured to detect a graphical code in the image information, and identify the detected graphical code (for example, identify the detected graphical code by using a preset graphical code (e.g., zxing, zbar, etc., where zxing and zbar are python two-dimensional code decoding libraries)) to obtain graphical code information therein. In one embodiment, the vision controller 3 may be installed in a base 13 (which may be a box), and a heat dissipation hole is further formed in a sidewall of the base 13. The visual controller 3 serves as a central processing unit of the code scanning device 100, and in one embodiment, a power supply module (e.g., a DC-DC module), an intelligent processing unit (e.g., a processor), a communication module (e.g., a 4G module, a WiFi module, etc.), a storage module (e.g., a Static Random Access Memory (SRAM), a flash Memory, etc.), and the like are integrated therein. The power supply module is used for supplying power to the intelligent processing unit, the communication module, the storage module and the like. The intelligent processing unit is a graphic code detection and identification module based on a vision technology and is used for detecting the graphic code in the image information and identifying the detected graphic code to obtain the graphic code information in the image information. The communication module is used for realizing data interaction with the outside, such as receiving instruction information sent by a user operating the tablet terminal, including but not limited to operations of starting to scan codes, stopping scanning codes and the like, returning graphic code information to the tablet terminal for displaying, meanwhile, sending information to the industrial camera, controlling exposure parameters and frame rate of the camera, controlling the starting and stopping of the camera and the like, and receiving parameter information returned by the camera. The storage module is used for storing the image and the parameter information.
Optionally, the code scanning device 100 further comprises a light source 5, and the light source 5 is disposed on the top cross beam 12 and used for providing illumination for the camera module 2 during photographing so as to improve the photographing quality of the image. The light source 5 is connected to the vision controller 3 and configured to turn on or turn off the light source 5 according to an instruction of the vision controller 3, and in addition, the light source 5 further includes a brightness detection module configured to detect ambient light information where the light source is located in real time and send the detection information to the vision controller 3, and the vision controller 3 determines whether to turn on the light source 5 according to the ambient light information. Of course, in one embodiment, the light source 5 may not be connected to the visual controller 3, and a controller for controlling whether to turn on itself may be integrated into itself.
Optionally, the code scanning device 100 further includes: a display screen 4 (such as a tablet terminal) connected to the vision controller 3, wherein the display screen 4 can be installed at the middle position of the bracket 11. The vision controller 3 is further configured to send the obtained graphic code information to the display screen 4 for display, in addition, in an embodiment, there are a plurality of cargo containers provided with graphic codes and located below the beam 12, and in addition, there may be a plurality of industrial cameras, and in addition, since the camera module 2 takes pictures in real time, there may be repeated graphic code information, so the vision controller 3 is further configured to perform deduplication on the obtained graphic code information, send the deduplicated graphic code information to the display screen 4 for display, and further configured to perform statistics on the deduplicated graphic code information, and send the counted number to the display screen 4 for display. Wherein, can install application program (APP) corresponding with visual controller 3 on the display screen 4, contain graphic code information display area on this APP's the display interface, graphic code count display area to and can also contain and begin to sweep the sign indicating number/stop sweeping the sign indicating number button. In addition, a camera state display area can be further included on the display interface.
In addition, can also carry out real-time voice broadcast to the figure code information that discerns, correspondingly, should sweep yard equipment 100 and still include the voice module who is connected with visual controller 3 for carry out voice broadcast in real time to the information that visual controller 3 sent, it needs to explain that, if display screen 4 is display screen 4 who has voice module, like tablet terminal etc. then can no longer need voice module. In addition, the code scanning device 100 may further include an Uninterruptible Power Supply (UPS) for supplying Power to the entire device.
In one embodiment, the cargo box (with the graphic code on the surface) is manually transported to the lower part of the rack 1 to be stacked, the light source 5 irradiates the surface of the cargo box, the camera module 2 takes a picture of the cargo box, the collected image is transmitted to the visual controller 3, the graphic code in the image is detected through the target detection technology, the detected graphic code is identified to obtain the graphic code information in the image, the obtained graphic code information is subjected to duplication elimination, and then the duplicated graphic code information is sent to the tablet terminal to be displayed and subjected to voice broadcasting. Based on the vision technology, the code scanning is automatically realized in an intelligent image analysis mode, so that the manpower is greatly saved and the efficiency is improved. It should be noted that, in addition to manual handling of the cargo boxes (whose surfaces are provided with graphic codes) to be stacked under the frame 1, the code scanning apparatus 100 may be moved to a cargo unloading point, such as a cargo unloading point.
When detecting the graphic code in the image information, the visual controller 3 may detect the graphic code in the image information by using a graphic code detection model trained in advance, so as to improve the detection efficiency. The method comprises the following steps of firstly obtaining image information with a graphic code, marking the graphic code in partial image information, then training an initial neural network model by using the marked image information and unmarked image information, testing the performance of the model, and continuing training if the model does not meet the requirements until the model meets the requirements, so that the trained graphic code detection model can be obtained.
The vision controller 3 may be configured to automatically detect the graphic code in the received image information after being powered on, automatically recognize the graphic code, and perform deduplication, statistics, and the like on the recognized graphic code information. In addition, the operation may also be performed based on an instruction sent by a manager, for example, a user sends an instruction to the vision controller 3 by clicking a start code scanning instruction or a stop code scanning instruction on the terminal APP, and when receiving the start code scanning instruction, the user detects a graphic code in the received image information, automatically identifies the graphic code, performs deduplication, statistics, and the like on the identified graphic code information, and when receiving the stop code scanning instruction, stops the operation. Because the camera module can transmit the image information of gathering to vision controller 3 in real time, vision controller 3 can adopt the mode of thread queue to store the image information of receiving in the queue, takes out image information from the queue in proper order and detects the discernment.
The vision controller 3 may be an integrated circuit chip having signal processing capability. The vision controller 3 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. The general purpose processor may be a microprocessor or the vision controller 3 may be any conventional processor or the like.
The embodiment of the present application further provides a graphic code recognition method applied to the visual controller 3 in the code scanning device 100, and the graphic code recognition method provided in the embodiment of the present application will be described below with reference to fig. 4.
Step S101: and receiving the image information of the cargo box which is provided with the graphic code and is positioned below the beam and collected and transmitted by the camera module.
The visual controller receives the image information of the cargo box which is provided with the graphic code and is located below the beam and collected and transmitted by the camera module, and the visual controller can be placed in the queue after receiving the image information. When the graphic code of the cargo box needs to be identified, the code scanning device is moved to a proper position, if the graphic code is placed at a stacking point of the cargo box, the camera module can collect the image information of the cargo box within the visual field range of the camera module.
Step S102: and detecting the graphic code in the image information by using a graphic code detection model trained in advance.
And the vision controller detects the graphic code in the received image information by using a graphic code detection model trained in advance. The pattern code detection model is trained in advance, the training process can be that before the training process, image information with pattern codes is obtained, the pattern codes in partial image information in the image information are marked, then the marked image information and unmarked image information are used for training the initial neural network model, the model performance is tested, if the pattern codes do not meet the requirements, the training is continued until the requirements are met, and the trained pattern code detection model can be obtained.
Step S103: and identifying the detected graphic code by using a preset graphic code identification library to obtain the graphic code information in the graphic code.
After detecting the graphic code in the image information, the visual controller identifies the detected graphic code by using a preset graphic code (for example, zxing, zbar, etc., where zxing and zbar are python two-dimensional code decoding libraries), and then obtains the graphic code information therein.
Step S104: and sending the obtained graphic code information to the display screen for display.
And after the graphic code information is identified, sending the obtained graphic code information to a display screen for displaying. In one embodiment, the obtained graphic code information may be subjected to duplicate removal, the number of the obtained graphic code information subjected to duplicate removal is counted, and the counted number and the obtained graphic code information subjected to duplicate removal are sent to the display screen for display.
The method provided by the embodiment of the present application has the same implementation principle and technical effect as the device and method embodiment, and for the sake of brief description, the corresponding contents in the device and method embodiment may be referred to where the method embodiment is not mentioned in part.
The embodiment of the present application further provides a non-volatile computer-readable storage medium (hereinafter, referred to as a storage medium), where the storage medium stores a computer program, and the computer program is executed by a computer, such as the above-mentioned vision controller, to execute the above-mentioned graph code recognition method. The storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A code scanning device, comprising:
the rack comprises a bracket and a beam, and the bracket is connected with the beam;
the camera module is arranged on the cross beam and used for acquiring image information of the cargo box which is positioned below the cross beam and provided with the graphic code;
and the visual controller is used for detecting the graphic code in the image information and identifying the detected graphic code to obtain the graphic code information.
2. The code scanning device as claimed in claim 1, wherein the camera module comprises: the device comprises a first long-focus industrial camera and a first short-focus industrial camera which are arranged in parallel, wherein the depth of field of the first long-focus industrial camera is 0-1000 mm, and the depth of field of the first short-focus industrial camera is 1000-1700 mm.
3. The code scanning device as claimed in claim 2, wherein the camera module further comprises: the second long-focus industrial camera and the second short-focus industrial camera are arranged in parallel, the depth of field range of the second long-focus industrial camera is 0-1000 mm, the depth of field range of the second short-focus industrial camera is 1000-1700 mm, the view coverage range of the whole camera module is 1500 mm-1500 mm, and one side where the first long-focus industrial camera and the first short-focus industrial camera are located is opposite to one side where the second long-focus industrial camera and the second short-focus industrial camera are located.
4. A code scanning device as claimed in any one of claims 1 to 3, further comprising a display screen connected to the visual controller, wherein the visual controller is further configured to remove the duplicate of the obtained graphic code information and send the removed graphic code information to the display screen for display.
5. The code scanning device of claim 4, wherein the visual controller is further configured to count the de-duplicated graphic code information and send the counted number to the display screen for display.
6. The code scanning device as claimed in claim 1, further comprising a light source disposed on the beam for providing illumination when the camera module takes a picture.
7. The code scanning apparatus of claim 1, wherein the frame comprises a base on which the movable device is disposed.
8. A graphic code recognition method is applied to a visual controller in a code scanning device, and the scanning device further comprises: the device comprises a frame, a camera module and a display screen; the frame includes: the support is connected with the cross beam; the code scanning equipment is placed at a stacking point of the cargo box, and the camera module is installed on the cross beam and used for acquiring image information of the cargo box which is positioned below the cross beam and provided with the graphic code; the method comprises the following steps:
receiving image information of the cargo box which is provided with the graphic code and is positioned below the cross beam and collected and transmitted by the camera module;
detecting the graphic code in the image information by using a graphic code detection model trained in advance;
recognizing the detected graphic code by using a preset graphic code recognition library to obtain the graphic code information in the detected graphic code;
and sending the obtained graphic code information to the display screen for display.
9. The method of claim 8, wherein sending the obtained graphic code information to the display screen for display comprises:
and removing the duplicate of the obtained graphic code information, counting the removed duplicate graphic code information, and sending the counted number and the removed duplicate graphic code information to the display screen for displaying.
10. The method according to claim 8, wherein before the detecting the graphic code in the image information by using the graphic code detection model trained in advance, the method further comprises:
acquiring image information with a graphic code, and marking the graphic code in partial image information;
and training the initial neural network model by using the marked image information and the unmarked image information to obtain the trained graphic code detection model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011015453.3A CN112131898A (en) | 2020-09-23 | 2020-09-23 | Code scanning device and graphic code identification method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011015453.3A CN112131898A (en) | 2020-09-23 | 2020-09-23 | Code scanning device and graphic code identification method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112131898A true CN112131898A (en) | 2020-12-25 |
Family
ID=73841103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011015453.3A Pending CN112131898A (en) | 2020-09-23 | 2020-09-23 | Code scanning device and graphic code identification method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112131898A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080044061A1 (en) * | 2006-08-21 | 2008-02-21 | Sanyo Electric Co., Ltd. | Image processor and vehicle surrounding visual field support device |
CN107249089A (en) * | 2016-06-21 | 2017-10-13 | 杭州海康机器人技术有限公司 | Filming apparatus and method, video camera and logistics capturing system |
CN109409161A (en) * | 2018-10-22 | 2019-03-01 | 腾讯科技(深圳)有限公司 | Graphic code recognition methods, device, terminal and storage medium |
CN110717347A (en) * | 2019-10-08 | 2020-01-21 | 珠海格力智能装备有限公司 | Method and device for acquiring cargo information |
-
2020
- 2020-09-23 CN CN202011015453.3A patent/CN112131898A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080044061A1 (en) * | 2006-08-21 | 2008-02-21 | Sanyo Electric Co., Ltd. | Image processor and vehicle surrounding visual field support device |
CN107249089A (en) * | 2016-06-21 | 2017-10-13 | 杭州海康机器人技术有限公司 | Filming apparatus and method, video camera and logistics capturing system |
CN109409161A (en) * | 2018-10-22 | 2019-03-01 | 腾讯科技(深圳)有限公司 | Graphic code recognition methods, device, terminal and storage medium |
CN110717347A (en) * | 2019-10-08 | 2020-01-21 | 珠海格力智能装备有限公司 | Method and device for acquiring cargo information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106573381B (en) | The visualization of truck unloader | |
US10655945B2 (en) | Methods and apparatus to coordinate movement of automated vehicles and freight dimensioning components | |
CN110239997B (en) | Automatic waste rejecting method and equipment for rewinder | |
JP2007517232A (en) | Maximizing the yield of web-based goods | |
CN109409218A (en) | Reminding method, apparatus and system | |
CN110160587B (en) | Capacitance detection method and system | |
CN116593479B (en) | Method, device, equipment and storage medium for detecting appearance quality of battery cover plate | |
CN110954546A (en) | Container image acquisition and inspection system for non-fixed scene | |
CN111274951B (en) | Method and device for monitoring state of feed box and automatic feeding system | |
CN116256366A (en) | Chip defect detection method, detection system and storage medium | |
CN112131898A (en) | Code scanning device and graphic code identification method | |
CN110705620A (en) | Display image detection method and device based on copying recognition and storage medium | |
CN111832983A (en) | Detection method, device and system for asset entry information | |
CN110765825A (en) | Method and system for acquiring article placement state | |
CN113414136A (en) | Storage medium destroying method, device and system and storage medium | |
CN109191546A (en) | Map method of formation, information acquisition method, apparatus and system | |
CN110502966B (en) | Classified information acquisition equipment, method and storage device for packages | |
CN115880626A (en) | Method and system for detecting shortage of goods and replenishing goods | |
CN110632081A (en) | Bearing appearance detection equipment based on 2D and 3D vision | |
CN111105180A (en) | Commodity data processing method and device, electronic equipment and tally cart | |
CN210513211U (en) | Capacitance detection device | |
CN210983429U (en) | Automatic yard equipment of sweeping of electric power material | |
CN210558391U (en) | Automatic rejecting equipment of rewinding machine | |
US11010903B1 (en) | Computer vision and machine learning techniques for item tracking | |
CN113978987A (en) | Pallet object packaging and picking method, device, equipment and medium |
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 |