CN106845301B - A kind of binocular bar code reading facility suitable for arc container - Google Patents

A kind of binocular bar code reading facility suitable for arc container Download PDF

Info

Publication number
CN106845301B
CN106845301B CN201611263035.XA CN201611263035A CN106845301B CN 106845301 B CN106845301 B CN 106845301B CN 201611263035 A CN201611263035 A CN 201611263035A CN 106845301 B CN106845301 B CN 106845301B
Authority
CN
China
Prior art keywords
bar code
camera
plane
image
rotation
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
CN201611263035.XA
Other languages
Chinese (zh)
Other versions
CN106845301A (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.)
Beijing Research Center for Information Technology in Agriculture
Original Assignee
Beijing Research Center for Information Technology in Agriculture
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 Beijing Research Center for Information Technology in Agriculture filed Critical Beijing Research Center for Information Technology in Agriculture
Priority to CN201611263035.XA priority Critical patent/CN106845301B/en
Publication of CN106845301A publication Critical patent/CN106845301A/en
Application granted granted Critical
Publication of CN106845301B publication Critical patent/CN106845301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/10544Methods 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/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning
    • 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/10544Methods 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/10821Methods 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/10861Methods 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
    • 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/1456Methods for optical code recognition including a method step for retrieval of the optical code determining the orientation of the optical code with respect to the reader and correcting therefore
    • 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/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1491Methods for optical code recognition the method including quality enhancement steps the method including a reconstruction step, e.g. stitching two pieces of bar code together to derive the full bar code

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)

Abstract

The present invention provides a kind of binocular bar code reading facilities suitable for arc container, it include: two rotatable planes, a camera and an infrared distance measurement module are provided on each Plane of rotation, two cameras are respectively used to the bar code image that acquisition is located in arc container first area and second area;Two infrared distance measurement modules are respectively used to measure corresponding Plane of rotation at a distance from arc container surface, and control corresponding Plane of rotation when detecting corresponding Plane of rotation minimum at a distance from arc container and stop rotating;Recognizing apparatus further includes processor, for carrying out the correction of bar code column width to the first bar code image and the second bar code image respectively with the first bar code image and the second bar code image after being corrected, and two spoke barcode images after correction are subjected to splicing and obtain complete target bar image, the present invention is able to solve the recognition problem of bar code on arc container, improves the bar code recognition success rate on arc container.

Description

A kind of binocular bar code reading facility suitable for arc container
Technical field
The present invention relates to bar codes to distinguish field, and in particular to a kind of binocular bar code recognition suitable for arc container is set It is standby.
Background technique
Bar code is arranged according to certain coding rule, can be expressed the graphical identifier of specific information, is widely used in quotient In product mark and the process of circulation.The expression needs of information are scanned and decode two processes in bar code, and wherein bar code is swept The quality retouched directly determines the success or failure of decoding.
For the bar code being attached on square container, bar code will not influence decoding effect without any distortion substantially when scanning Fruit;And for the bar code that is attached on arc container, especially when container arc is larger, bar code can occur seriously when scanning Deformation, seriously affects decoding effect.To avoid the problem, bar code would generally be longitudinally attached on arcuation container at present, or be set The length for counting bar code is much smaller than arc container perimeter, and in this way when its transverse direction is attached on container, crooked radian is unlikely to influence Decode effect.
Above method is to solve the mainstream solution of bar code scan on arc container, however design beauty for some pursuits The commodity of sight or nonpipeline standardized production, however it remains bar code on arc container a possibility that laterally adhering to.Work as bar code In the case that length is longer and arc container radius is shorter, recognizing apparatus obtains item, sky in bar code image in bar code scanning The ratio regular meeting of equal elements changes, if deformation is serious, decoding will generate mistake or operation failure.
Summary of the invention
For the defects in the prior art, the present invention provides a kind of binocular bar code recognitions suitable for arc container to set Standby, the present invention is able to solve bar code on arc container and distinguishes problem, improves the identification of bar code on arc container or is decoded into Power.
Specifically, the present invention provides following technical schemes:
A kind of binocular bar code reading facility suitable for arc container should be known suitable for the binocular bar code of arc container Equipment is read for distinguishing to the bar code being attached on arc container, the recognizing apparatus includes: to be arranged in the recognition Equipment back side and it is located at same horizontal line and two rotatable planes at a distance of pre-determined distance, respectively the first Plane of rotation and the Two Plane of rotations, are provided with a varifocal camera and an infrared distance measurement module on each Plane of rotation, and respectively first Camera, the first infrared distance measurement module, second camera and the second infrared distance measurement module;Wherein, first camera is used for Acquisition is located at the first bar code image in arc container first area, and the second camera is located at arc container for acquiring Second bar code image of second area;Wherein, the bar code positioned at first area and the bar code positioned at second area exist Overlapping region and be located at first area bar code and collectively form complete target bar positioned at the bar code of second area; First infrared distance measurement module and second infrared distance measurement module are respectively used to measure corresponding Plane of rotation and arc holds The distance on device surface, and corresponding Plane of rotation is controlled when detecting corresponding Plane of rotation minimum at a distance from arc container It stops rotating;
The recognizing apparatus further includes processor, the processor the first bar shaped to first camera acquisition respectively After code image and the second bar code image of second camera acquisition carry out the correction of bar code column width to obtain correction The first bar code image and correct after the second bar code image, and by after correction the first bar code image and correct after Second bar code image carries out splicing and obtains complete target bar image;
The processor is also used to carry out bar code recognition to obtained complete bar code image to be translated accordingly Code result.
Further, the recognizing apparatus further includes display screen, and the display location is used in the front of the recognizing apparatus In the complete bar code image of display and corresponding decoding result.
Further, the processor includes: image rectification unit and image mosaic unit;
Described image correct unit, for according to the radian of arc container respectively to the first bar code image and the second bar shaped Code image carries out the correction by column of bar code column width, second after respectively obtaining the first bar code image after correcting and correcting Bar code image;
Described image concatenation unit, for the second bar code figure after obtaining the first bar code image after correcting and correcting The overlapping region of picture, and the second bar code figure based on the overlapping region to the first bar code image after correction and after correcting As carrying out splicing, obtain correcting spliced bar code image.
Further, it includes: that parameter acquisition module and bar code column width correct module that described image, which corrects unit,;
The parameter acquisition module, for according to the distance between the first camera and second camera, the first rotary flat Second distance between first distance or the second Plane of rotation and arc container and the first rotation between face and arc container The rotation angle of plane or the rotation angle of the second Plane of rotation obtain arc container radius;Wherein, the first Plane of rotation and arc Describe the distance when first distance between device is the first Plane of rotation and minimum arc container distance, the second Plane of rotation and arc Describe the distance when second distance between device is the second Plane of rotation and minimum arc container distance;
The bar code column width corrects module, and the arc container radius for being obtained according to the parameter acquisition module is pressed Formula is corrected according to preset column width, and bar code column width is carried out to the first bar code image and the second bar code image respectively It corrects by column, the first bar code image and the second bar code image after being corrected;Wherein, to the first bar code image or When second bar code image carries out the correction of bar code column width, opened with the first camera or second camera central point column Begin, carries out bar code column width correction by column to two sides.
Further, the parameter acquisition module is used to obtain arc container radius according to following formula one:
R=(d2/2)/cosC-d1 formula one
Wherein, d2 indicates the distance between the first camera and second camera;D1 indicates the first Plane of rotation and arc The second distance between first distance or the second Plane of rotation and arc container between container;C=90 ° of-C1, C1For the first rotation Turn the rotation angle of plane or the rotation angle of the second Plane of rotation.
Further, the preset column width corrects formula are as follows:
Wherein, the first camera or second camera project the bar code on arc container when carrying out bar code recognition Onto imaging plane, d4 indicates the actual width of bar code column, and d5 indicates to project to the modified strip on imaging plane when bar code acquisition Code column width, d3 indicate the distance that the first camera or second camera central point are arranged to bar code to be corrected, and A indicates arc container Folded radius of circle angle between surface point and the first camera or second camera central point, B indicate arc container surface point with Angle between imaging plane, r indicate arc container radius.
Further, described image concatenation unit includes: adjustment module, determining module and splicing module;
The adjustment module, the second bar code image adjustment for the first bar code image after correcting and after correcting To same level and guarantee that the center position of two images remains unchanged;
The determining module, for determining the overlapping region of two images adjusted;
The splicing module, for being spliced according to the image information of the overlapping region to the two images.
Further, the determining module, the overlay region for determining two images adjusted for according to the following formula three Domain:
D6=2* (d/2-d2/2)=d-d2 formula three
Wherein, d6 indicates the length of the overlapping region of two images, and d2 is indicated between the first camera and second camera Distance;D indicates that the areas imaging of the first camera or second camera, the areas imaging are open and flat on imaging plane Bar code image width.
As shown from the above technical solution, the binocular bar code reading facility provided by the invention suitable for arc container, base In two varifocal cameras arranged side by side, the left and right region of bar code on arc container is captured respectively, and image to two Head obtains image and is corrected respectively, eliminates influence of the radian to image is obtained, and takes the photograph on the basis of image rectification, then by two As the overlapping region of head, two images are spliced, to provide comparatively ideal bar code image for decoding.It can be seen that the present invention It is able to solve bar code on arc container and distinguishes problem, improve the recognition success rate of bar code on arc container.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is the backside structure for the binocular bar code reading facility suitable for arc container that one embodiment of the invention provides Schematic diagram;
Fig. 2 is the Facad structure for the binocular bar code reading facility suitable for arc container that one embodiment of the invention provides Schematic diagram;
Fig. 3 is the relative position schematic diagram of the recognizing apparatus that one embodiment of the invention provides and arc container;
Fig. 4 is that the bar code column width that one embodiment of the invention provides corrects schematic diagram;
Fig. 5 is the first camera and second camera imaging relations schematic diagram that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 shows the back side of the binocular bar code reading facility suitable for arc container of one embodiment of the invention offer Structural schematic diagram.Wherein, 1 device body is indicated, 2 indicate infrared distance measurement module, and 3 indicate camera, and 4 indicate Plane of rotation.Its In, infrared distance measurement module, camera and Plane of rotation or so are each provided with one respectively, individually below referred to as the first infrared distance measurement Module, the second infrared distance measurement module, the first camera, second camera, the first Plane of rotation, the second Plane of rotation.
Binocular bar code reading facility provided in an embodiment of the present invention be used for the bar code being attached on arc container into Row recognition, referring to Fig. 1, the recognizing apparatus includes: setting at the recognizing apparatus back side and positioned at same horizontal line and apart Two rotatable planes of pre-determined distance, respectively the first Plane of rotation and the second Plane of rotation are arranged on each Plane of rotation There are a varifocal camera and an infrared distance measurement module, respectively the first camera, the first infrared distance measurement module, second are taken the photograph As head and the second infrared distance measurement module;Wherein, first camera is used to acquire the in the arc container first area One bar code image, the second camera are used to acquire the second bar code image positioned at arc container second area;Wherein, Bar code positioned at first area and the bar code positioned at second area are there are overlapping region and positioned at the bar code of first area Complete target bar is collectively formed with the bar code for being located at second area;First infrared distance measurement module and described second Infrared distance measurement module is respectively used to measure corresponding Plane of rotation at a distance from arc container surface, and is detecting corresponding rotation Turn plane and control corresponding Plane of rotation when minimum at a distance from arc container to stop rotating;
It is understood that two infrared distance measurement modules are respectively used to measure corresponding Plane of rotation in current rotation angle Degree is lower at a distance from arc container surface, i.e., for detecting whether corresponding Plane of rotation has mutually hung down with the diameter of arc container Directly;Two cameras are for obtaining corresponding bar code image within the vision;Two Plane of rotations are mainly used for fixed correspondence Camera and infrared distance measurement module, Plane of rotation can transverse rotation, the camera being fixed thereon and infrared distance measurement module It rotates with.
As it can be seen that recognizing apparatus provided in this embodiment, by setting infrared distance measurement module, dynamic adjusts rotation where camera Turn plane, search and the shortest angle of arc container surface distance, makes Plane of rotation always perpendicular to the arc container arcuation center of circle With the line of camera position.
For example, when being distinguished using the recognizing apparatus to the bar code on arc container, by the recognizing apparatus Bar code on horizontal aligument arc container, the recognizing apparatus can control corresponding Plane of rotation and rotate left and right, rotary course Middle infrared distance measurement module test constantly Plane of rotation is at a distance from arc container surface, and such as distance persistently becomes larger, then Plane of rotation It reversely rotates;If distance persistently becomes smaller, then it continues to rotate, the angle until locking the Plane of rotation of the two distance most in short-term, This angle is also Plane of rotation and the perpendicular position of vessel radius.
Further, the recognizing apparatus further includes processor, and the processor respectively acquires first camera The first bar code image and the second camera acquisition the second bar code image carry out the correction of bar code column width with The first bar code image after being corrected and the second bar code image after correcting, and by the first bar code image after correction Splicing, which is carried out, with the second bar code image after correction obtains complete target bar image;
The processor is also used to carry out bar code recognition to obtained complete bar code image to be translated accordingly Code result.
Seen from the above description, the binocular bar code reading facility provided in an embodiment of the present invention suitable for arc container, Based on two varifocal cameras arranged side by side, the left and right region of bar code on arc container is captured respectively, and two are taken the photograph It is corrected respectively as head obtains image, eliminates influence of the radian to image is obtained, on the basis of image rectification, then pass through two The overlapping region of camera, splices two images, to provide comparatively ideal bar code image for decoding.It can be seen that this hair Bright embodiment is able to solve bar code on arc container and distinguishes problem, improves the recognition success rate of bar code on arc container.
In a kind of optional embodiment, referring to fig. 2, the recognizing apparatus further includes display screen 5, the display screen 5 In the front of the recognizing apparatus, for showing complete bar code image and corresponding decoding result.
In a kind of optional embodiment, the processor includes: image rectification unit and image mosaic unit;
Described image correct unit, for according to the radian of arc container respectively to the first bar code image and the second bar shaped Code image carries out the correction by column of bar code column width, second after respectively obtaining the first bar code image after correcting and correcting Bar code image;
Described image concatenation unit, for the second bar code figure after obtaining the first bar code image after correcting and correcting The overlapping region of picture, and the second bar code figure based on the overlapping region to the first bar code image after correction and after correcting As carrying out splicing, obtain correcting spliced bar code image.
In a kind of optional embodiment, it includes: parameter acquisition module and bar code column width that described image, which corrects unit, Correct module;
The parameter acquisition module, for according to the distance between the first camera and second camera, the first rotary flat Second distance between first distance or the second Plane of rotation and arc container and the first rotation between face and arc container The rotation angle of plane or the rotation angle of the second Plane of rotation obtain arc container radius;Wherein, the first Plane of rotation and arc Describe the distance when first distance between device is the first Plane of rotation and minimum arc container distance, the second Plane of rotation and arc Describe the distance when second distance between device is the second Plane of rotation and minimum arc container distance;
The bar code column width corrects module, and the arc container radius for being obtained according to the parameter acquisition module is pressed Formula is corrected according to preset column width, and bar code column width is carried out to the first bar code image and the second bar code image respectively It corrects by column, the first bar code image and the second bar code image after being corrected;Wherein, to the first bar code image or When second bar code image carries out the correction of bar code column width, opened with the first camera or second camera central point column Begin, carries out bar code column width correction by column to two sides.
In a kind of optional embodiment, the parameter acquisition module can be used for obtaining arc container according to following formula one Radius:
R=(d2/2)/cosC-d1 formula one
Wherein, d2 indicates the distance between the first camera and second camera;D1 indicates the first Plane of rotation and arc The second distance between first distance or the second Plane of rotation and arc container between container;C=90 ° of-C1, C1For the first rotation Turn the rotation angle of plane or the rotation angle of the second Plane of rotation.
In a kind of optional embodiment, the preset column width, which corrects formula, can be used following formula two:
Wherein, the first camera or second camera project the bar code on arc container when carrying out bar code recognition Onto imaging plane, d4 indicates the actual width of bar code column, and d5 indicates to project to the modified strip on imaging plane when bar code acquisition Code column width, d3 indicate the distance that the first camera or second camera central point are arranged to bar code to be corrected, and A indicates arc container Folded radius of circle angle between surface point and the first camera or second camera central point, B indicate arc container surface point with Angle between imaging plane, r indicate arc container radius.
Below with reference to Fig. 3 and location diagram shown in Fig. 4 and correct work of the schematic diagram to described image correction unit Explanation is explained in detail in process.
It is opposite between Plane of rotation, device body and arc container after recognizing apparatus locks two Plane of rotation positions Positional relationship is as shown in Figure 3.Fig. 3 indicates top view when equipment operation, and 8 be device body in figure, and 7 be Plane of rotation, left and right Each one, 9 be Plane of rotation and device body connecting shaft, 6 be arc container, in addition, in Fig. 3 all dotted lines do not represent appoint What is in kind.
According to relative position in figure, the radius of arc container can be calculated.Due to connecting shaft control Plane of rotation rotation, so The angle at the angle B is it is known that according to angled complimentary principle in figure, then the angle C angle is equal to the angle B angle, on the other hand, Plane of rotation and appearance Distance d1 between device surface is obtained by range finder module, meanwhile, distance d2 is fixed between two cameras, is in summary become Amount, then known to arc container radius r=(d2/2)/cosC-d1, and angle A=180-2*C folded by two radiuses.
The above process is mainly adjusted camera angle, and obtains the relevant parameter of arc container, to correct item Shape code is prepared.It is remoter from camera central point since there are certain angles with arc container surface for plane where camera Arc container surface portion, be deformed can be bigger when image obtains, i.e., the parts of images can narrow, and therefore, the present invention is real Image segmentation that example obtains camera is applied into several columns, image is corrected by column in conjunction with radian value, to restore each column figure The normal width of picture.Wherein, the relationship between actual bar code and the bar code image of acquisition is as shown in Figure 4.
As shown in figure 4, camera will be in arc container 6 surface projection to imaging plane 10.D3 is camera center in figure The distance that point is arranged to bar code image to be corrected, radius of circle angle A folded between arc container surface point and camera central point, Angle of the B between arc container surface point and imaging plane, d4 are the actual width that normal bar code image column width or bar code arrange, And d5 is that bar code projects to the deformation bar code image column width on imaging plane when acquiring, the solution formula of d4 as the following formula two It is shown.
As shown in formula two above, the original that can obtain vessel surface bar code image corresponding with the position image column d5 is wide Degree, is started with camera central point column, according to above-mentioned formula two, is corrected by column to two sides to image respectively, finally Bar code on curved surface can be transformed into plane 11.By above procedure, can correct respectively acquired in two cameras in left and right Bar code part.
As it can be seen that bar code image of the recognizing apparatus provided in an embodiment of the present invention for deformation, using being corrected by column Differential method, arranged with deformed image as basic unit, to the angle for closing segmental arc corresponding to the column, by the bar shaped in cambered surface Code is transformed into plane.
In a kind of optional embodiment, described image concatenation unit includes: adjustment module, determining module and splicing mould Block;
The adjustment module, the second bar code image adjustment for the first bar code image after correcting and after correcting To same level and guarantee that the center position of two images remains unchanged;
The determining module, for determining the overlapping region of two images adjusted;
In a kind of optional embodiment, the determining module determines two width adjusted for according to the following formula three The overlapping region of image:
D6=2* (d/2-d2/2)=d-d2 formula three
Wherein, d6 indicates the length of the overlapping region of two images, and d2 is indicated between the first camera and second camera Distance;D indicates that the areas imaging of the first camera or second camera, the areas imaging are open and flat on imaging plane Bar code image width.
The splicing module, for being spliced according to the image information of the overlapping region to the two images.
It is solved in detail below with reference to the course of work of the imaging relations schematic diagram shown in fig. 5 to described image concatenation unit Release explanation.
Since bar code is obtained by two cameras of left and right jointly respectively, camera, which exists, fails that entire bar code is completely covered Both a possibility that region, need to determine the overlapping region of left and right bar code image according to the areas imaging of left and right camera, carry out Splicing.
It is corrected in step in the bar code of above-mentioned image rectification unit, using camera center line as start line, respectively to two Image column is corrected in side, and bar code image is the open and flat two spoke barcode images on imaging plane after correction, therefore, The angle of adjustable two imaging plane in splicing makes the two in same level, and two center positions are protected Hold constant, two camera imaging relationships are as shown in Figure 5 after adjustment.
As shown in Figure 5, the length d6 that two cameras obtain the overlapping region of bar code image can be by two camera central points Between the areas imaging d of distance d2 and camera obtain, areas imaging, that is, open and flat bar code image on imaging plane is wide Degree, then the length computation of overlapping region is as the following formula shown in three.
D6=2* (d/2-d2/2)=d-d2 formula three
After determining overlapping region, two images can be spliced according to the overlapping region, bar code figure after splicing As can be directly used for decoding.In addition picture traverse problem is all referred in the above process, for convenience of describing, refers both to developed width, The image distance when width can pass through imaging calculates to obtain with image distance.
By the technical solution recorded above it is found that the embodiment of the invention provides a kind of binocular items suitable for arc container Shape code recognizing apparatus, the bar code recognition for solving the problems, such as to be affixed transversely to arc container surface.The embodiment of the present invention provides Recognizing apparatus pass through camera lens adjustment first, radian detection operation obtains container parameters, then the item by getting parms to deformation Barcode image is corrected, and is finally spliced to the bar code image after correction, to eliminate the shadow that radian distinguishes bar code It rings.As it can be seen that recognizing apparatus provided in an embodiment of the present invention overcome traditional recognizing apparatus be not easy interpretation be affixed transversely to arc appearance On device the shortcomings that bar code, the success rate of bar code decoding is improved.
In the description of the present invention, it should be noted that the orientation or positional relationship of the instructions such as term " on ", "lower" is base In orientation or positional relationship shown in the drawings, it is merely for convenience of description of the present invention and simplification of the description, rather than indication or suggestion Signified device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as to this The limitation of invention.Unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " shall be understood in a broad sense, example Such as, it may be fixed connection or may be dismantle connection, or integral connection;It can be mechanical connection, be also possible to be electrically connected It connects;It can be directly connected, the connection inside two elements can also be can be indirectly connected through an intermediary.For this For the those of ordinary skill in field, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The above examples are only used to illustrate the technical scheme of the present invention, rather than its limitations;Although with reference to the foregoing embodiments Invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each implementation Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these are modified or replace It changes, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (4)

1. a kind of binocular bar code reading facility suitable for arc container, which is characterized in that should be suitable for the double of arc container For mesh bar code reading facility for distinguishing to the bar code being attached on arc container, the recognizing apparatus includes: setting At the recognizing apparatus back side and it is located at same horizontal line and is revolved at a distance of two rotatable planes of pre-determined distance, respectively first Turn plane and the second Plane of rotation, a varifocal camera and an infrared distance measurement module be provided on each Plane of rotation, Respectively the first camera, the first infrared distance measurement module, second camera and the second infrared distance measurement module;Wherein, described first Camera is used to acquire the first bar code image being located in arc container first area, and the second camera is for acquiring position In the second bar code image of arc container second area;Wherein, positioned at the bar code of first area and positioned at second area Bar code is there are overlapping region and is located at the bar code of first area and collectively forms completely positioned at the bar code of second area Target bar;First infrared distance measurement module and second infrared distance measurement module are respectively used to measure corresponding rotary flat Face controls when detecting corresponding Plane of rotation minimum at a distance from arc container and corresponds at a distance from arc container surface Plane of rotation stop rotating;
The recognizing apparatus further includes processor, and the processor is respectively to the first bar code figure of first camera acquisition As and the second bar code image of second camera acquisition carry out the correction of bar code column width with the after being corrected The second bar code image after one bar code image and correction, and second by the first bar code image after correction and after correcting Bar code image carries out splicing and obtains complete target bar image;
The processor is also used to carry out bar code recognition to obtained complete bar code image to obtain decoding knot accordingly Fruit;
Wherein, the processor includes: image rectification unit and image mosaic unit;
Described image correct unit, for according to the radian of arc container respectively to the first bar code image and the second bar code figure Correction by column as carrying out bar code column width, the second bar shaped after respectively obtaining the first bar code image after correcting and correcting Code image;
Described image concatenation unit, for the second bar code image after obtaining the first bar code image after correcting and correcting Overlapping region, and based on the overlapping region to after correction the first bar code image and correct after the second bar code image into Row splicing obtains correcting spliced bar code image;
Wherein, it includes: that parameter acquisition module and bar code column width correct module that described image, which corrects unit,;
The parameter acquisition module, for according to the distance between the first camera and second camera, the first Plane of rotation with The second distance and the first Plane of rotation between first distance or the second Plane of rotation and arc container between arc container Rotation angle or the second Plane of rotation rotation angle obtain arc container radius;Wherein, the first Plane of rotation and arc hold Distance when first distance between device is the first Plane of rotation and minimum arc container distance, the second Plane of rotation and arc hold Distance when second distance between device is the second Plane of rotation and minimum arc container distance;
The bar code column width corrects module, and the arc container radius for being obtained according to the parameter acquisition module is according to pre- If column width correct formula bar code column width carried out by column to the first bar code image and the second bar code image respectively It corrects, the first bar code image and the second bar code image after being corrected;Wherein, to the first bar code image or second When bar code image carries out the correction of bar code column width, started with the first camera or second camera central point column, to Two sides carry out bar code column width correction by column;
Wherein, the parameter acquisition module is used to obtain arc container radius according to following formula one:
R=(d2/2)/cosC-d1 formula one
Wherein, d2 indicates the distance between the first camera and second camera;D1 indicates the first Plane of rotation and arc container Between first distance or the second Plane of rotation and arc container between second distance;C=90 ° of-C1, C1For the first rotary flat The rotation angle in face or the rotation angle of the second Plane of rotation;
The preset column width corrects formula are as follows:
Wherein, the first camera or second camera project into the bar code on arc container when carrying out bar code recognition As in plane, d4 indicates that the actual width of bar code column, d5 expression bar code project to the deformation bar code column on imaging plane when acquiring Width, d3 indicate the distance that the first camera or second camera central point are arranged to bar code to be corrected, and A indicates arc container surface Folded radius of circle angle between point and the first camera or second camera central point, B indicate arc container surface point and imaging The angle of interplanar, r indicate arc container radius.
2. recognizing apparatus according to claim 1, which is characterized in that the recognizing apparatus further includes display screen, described aobvious Display screen is located at the front of the recognizing apparatus, for showing complete bar code image and corresponding decoding result.
3. recognizing apparatus according to claim 1, which is characterized in that described image concatenation unit include: adjustment module, really Cover half block and splicing module;
The adjustment module, the second bar code image for the first bar code image after correcting and after correcting are adjusted to same The center position of one horizontal plane and guarantee two images remains unchanged;
The determining module, for determining the overlapping region of two images adjusted;
The splicing module, for being spliced according to the image information of the overlapping region to the two images.
4. recognizing apparatus according to claim 3, which is characterized in that the determining module, for according to the following formula three Determine the overlapping region of two images adjusted:
D6=2* (d/2-d2/2)=d-d2 formula three
Wherein, d6 indicates the length of the overlapping region of two images, d2 indicate between the first camera and second camera away from From;D indicates that the areas imaging of the first camera or second camera, the areas imaging are the open and flat bar shaped on imaging plane Code picture traverse.
CN201611263035.XA 2016-12-30 2016-12-30 A kind of binocular bar code reading facility suitable for arc container Active CN106845301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611263035.XA CN106845301B (en) 2016-12-30 2016-12-30 A kind of binocular bar code reading facility suitable for arc container

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611263035.XA CN106845301B (en) 2016-12-30 2016-12-30 A kind of binocular bar code reading facility suitable for arc container

Publications (2)

Publication Number Publication Date
CN106845301A CN106845301A (en) 2017-06-13
CN106845301B true CN106845301B (en) 2019-04-02

Family

ID=59113829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611263035.XA Active CN106845301B (en) 2016-12-30 2016-12-30 A kind of binocular bar code reading facility suitable for arc container

Country Status (1)

Country Link
CN (1) CN106845301B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345817A (en) * 2018-02-06 2018-07-31 徐州智融图像科技有限公司 A kind of recognition methods of cylindrical surface Quick Response Code
CN109376566A (en) * 2018-12-12 2019-02-22 福州金典工业产品设计有限公司 Reading code wall and its setting method based on array camera
CN109903038A (en) * 2019-02-17 2019-06-18 北京意锐新创科技有限公司 The two dimensional code method of payment and device that multi information is superimposed under complex background

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105374008A (en) * 2015-12-11 2016-03-02 北京印刷学院 Prep-deformation method for two-dimensional code on cylindrical surface
CN205103845U (en) * 2015-10-28 2016-03-23 上海聚虹光电科技有限公司 Two mesh iris image acquisition devices of every single move formula

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IT1404187B1 (en) * 2011-02-28 2013-11-15 Datalogic Automation Srl METHOD FOR THE OPTICAL IDENTIFICATION OF OBJECTS IN MOVEMENT

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205103845U (en) * 2015-10-28 2016-03-23 上海聚虹光电科技有限公司 Two mesh iris image acquisition devices of every single move formula
CN105374008A (en) * 2015-12-11 2016-03-02 北京印刷学院 Prep-deformation method for two-dimensional code on cylindrical surface

Also Published As

Publication number Publication date
CN106845301A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106845301B (en) A kind of binocular bar code reading facility suitable for arc container
US8646690B2 (en) System and method for expansion of field of view in a vision system
CN105488503B (en) A kind of non-coding circular ring shape mark point center of circle image coordinate detection method
JP5580164B2 (en) Optical information processing apparatus, optical information processing method, optical information processing system, and optical information processing program
US8917320B2 (en) Digital optical comparator
US20110019243A1 (en) Stereoscopic form reader
US11410405B2 (en) Imaging-based sensor calibration
US8494307B2 (en) Method and apparatus for determining misalignment
RU2010122599A (en) IMAGE PROCESSING DEVICE, PHOTOGRAPHY DEVICE, PLAYBACK DEVICE, INTEGRATED SCHEME AND IMAGE PROCESSING METHOD
CN103163663A (en) Method and device for estimating the optical power of corrective lenses in a pair of eyeglasses worn by a spectator
CN109855602A (en) Move the monocular visual positioning method under visual field
Tang et al. High-precision camera distortion measurements with a “calibration harp”
CN108596837A (en) Image split-joint method, device, equipment and computer media
CN112488099B (en) Digital detection extraction element on electric power liquid crystal instrument based on video
CN107111095A (en) Camera lens module
CN109451298A (en) Angle of deviation detection method, device and the equipment of dual camera
CN113375555A (en) Power line clamp measuring method and system based on mobile phone image
WO2018087424A1 (en) Determining an intersection location of an optical axis of a lens with a camera sensor
CN114302173B (en) Two-dimensional image splicing system and method for planar coding target
Grimson et al. An active visual attention system to play\where's waldo
CN113658039A (en) Method for determining splicing sequence of label images of medicine bottles
US11460931B2 (en) Recovering perspective distortions
Frohlich et al. Region based fusion of 3D and 2D visual data for Cultural Heritage objects
KR102295987B1 (en) Calibration method and apparatus of stereo camera module, computer readable storage medium
JP2015052972A (en) Measuring computer program, measuring device, and measuring method

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