CN106845301A - 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
CN106845301A
CN106845301A CN201611263035.XA CN201611263035A CN106845301A CN 106845301 A CN106845301 A CN 106845301A CN 201611263035 A CN201611263035 A CN 201611263035A CN 106845301 A CN106845301 A CN 106845301A
Authority
CN
China
Prior art keywords
bar code
rotation
camera
plane
image
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.)
Granted
Application number
CN201611263035.XA
Other languages
Chinese (zh)
Other versions
CN106845301B (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 invention provides a kind of binocular bar code reading facility suitable for arc container, including:Two rotatable planes, are provided with a camera and an infrared distance measurement module on each Plane of rotation, two cameras are respectively used to bar code image of the collection in arc container first area and second area;Two infrared distance measurement modules are respectively used to measure the distance of corresponding Plane of rotation and arc container surface, and control corresponding Plane of rotation to stop the rotation when corresponding Plane of rotation is detected with the distance minimum of arc container;Recognizing apparatus also include processor, for carrying out the correction of bar code column width to the first bar code image and the second bar code image with the first bar code image and the second bar code image after being corrected respectively, and two spoke barcode images after correction are carried out into splicing obtain complete target bar image, the present invention can solve the problem that the recognition problem of bar code on arc container, improve 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 code recognition field, and in particular to a kind of binocular bar code recognition suitable for arc container sets It is standby.
Background technology
Bar code is arranged according to certain coding rule, can express the graphical identifier of customizing messages, is widely used in business In product mark and the process of circulation.The expression of information needs to be scanned through to be swept with two processes of decoding, wherein bar code in bar code The quality retouched directly determines the success or failure of decoding.
For the bar code being attached on square container, bar code does not interfere with decoding effect substantially without any distortion during scanning Really;And the bar code being attached on arc container is directed to, especially when container arc is larger, bar code can occur seriously during scanning Deformation, has a strong impact on decoding effect.To avoid the problem, current bar code would generally be longitudinally attached on arcuation container, or is set The length for counting bar code is much smaller than arc container girth, and so when its transverse direction is attached on container, crooked radian is unlikely to influence Decoding effect.
Above method is the main flow solution for solving bar code scan on arc container, but beautiful for some pursuit designs See, or nonpipeline standardized production commodity, however it remains the possibility that bar code is laterally adhered on arc container.Work as bar code Length is more long and in the case that arc container radius is shorter, and recognizing apparatus obtain bar, sky in bar code image in bar code scanning Ratio regular meeting Deng element changes, if deformation is serious, decoding will produce mistake or operation failure.
The content of the invention
For defect of the prior art, set the invention provides a kind of binocular bar code recognition suitable for arc container Standby, the present invention can solve the problem that on arc container bar code recognition problem, improves on arc container the identification of bar code or is decoded into Power.
Specifically, the invention provides following technical scheme:
A kind of binocular bar code reading facility suitable for arc container, the binocular bar code that should be applied to arc container is known Reading equipment is used to distinguish the bar code being attached on arc container, and the recognizing apparatus include:It is arranged on the recognition Equipment back side and positioned at same horizontal line and at a distance of two rotatable planes of predeterminable range, respectively the first Plane of rotation and the Two Plane of rotations, are provided with a varifocal camera and an infrared distance measurement module, respectively first on each Plane of rotation Camera, the first infrared distance measurement module, second camera and the second infrared distance measurement module;Wherein, first camera is used for First bar code image of the collection in arc container first area, the second camera is used to gather positioned at arc container Second bar code image of second area;Wherein, positioned at first area bar code and the bar code positioned at second area are present Overlapping region and the bar code positioned at first area and the bar code positioned at second area collectively form complete target bar; First infrared distance measurement module and second infrared distance measurement module are respectively used to measure corresponding Plane of rotation with arc appearance The distance on device surface, and control corresponding Plane of rotation when corresponding Plane of rotation is detected with the distance minimum of arc container Stop the rotation;
The recognizing apparatus also include processor, and the processor is respectively to the first bar shaped of first camera collection After code image and the second bar code image of second camera collection carry out bar code column width correction to be corrected The first bar code image and correct after the second bar code image, and by correction after the first bar code image and correct after Second bar code image carries out splicing and obtains complete target bar image;
The processor is additionally operable to that the complete bar code image for obtaining is carried out bar code recognition to be translated accordingly Code result.
Further, the recognizing apparatus also include 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, and after respectively obtaining the first bar code image after correcting and correcting second Bar code image;
Described image concatenation unit, for obtaining the first bar code image after correcting and the second bar code figure after correction The overlapping region of picture, and based on the overlapping region to correction after the first bar code image and correct after the second bar code figure As carrying out splicing, obtain correcting spliced bar code image.
Further, described image is corrected unit and is included:Parameter acquisition module and bar code column width correct module;
The parameter acquisition module, for according to the distance between the first camera and second camera, the first rotary flat The first distance between face and arc container or the second distance between the second Plane of rotation and arc container, and the first rotation The anglec of rotation of the anglec of rotation of plane or the second Plane of rotation obtains arc container radius;Wherein, the first Plane of rotation and arc Describe that the first distance between device is distance when the first Plane of rotation is minimum with arc container distance, the second Plane of rotation and arc Distance when describing that the second distance between device is the second Plane of rotation minimum with 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 Correct formula according to default column width carries out bar code column width to the first bar code image and the second bar code image respectively Correct 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, carry out bar code column width correction by column to both sides.
Further, the parameter acquisition module is used to obtain arc container radius according to equation below one:
R=(d2/2)/cosC-d1 formula one
Wherein, d2 represents the distance between the first camera and second camera;D1 represents the first Plane of rotation and arc The first distance between container or the second distance between the second Plane of rotation and arc container;C=90 ° of-C1, C1It is the first rotation Turn the anglec of rotation of plane or the anglec of rotation of the second Plane of rotation.
Further, the default column width correction formula is:
Wherein, the first camera or second camera are being carried out the bar code projection on arc container when bar code is distinguished Onto imaging plane, d2 represents the actual width of bar code row, the modified strip that d1 is projected on imaging plane when representing that bar code is gathered Code column width, d1 represents the distance that the first camera or second camera central point are arranged to bar code to be corrected, and A represents arc container Radius of circle angle folded between surface point and the first camera or second camera central point, B represent arc container surface point with Angle between imaging plane, r represents arc container radius.
Further, described image concatenation unit includes:Adjusting module, determining module and concatenation module;
The adjusting module, adjusts for the first bar code image and the second bar code image after correction after by correction Center position to same level and guarantee two images keeps constant;
The determining module, the overlapping region for determining the two images after adjustment;
The two images are spliced by the concatenation module for the image information according to the overlapping region.
Further, the determining module, the overlay region for determining the two images after adjustment according to equation below three Domain:
D3=2* (d/2-d2/2)=d-d2 formula three
Wherein, d3 represents the length of the overlapping region of two images, and d2 is represented between the first camera and second camera Distance;D represents the areas imaging of the first camera or second camera, and the areas imaging is open and flat on imaging plane Bar code image width.
As shown from the above technical solution, the binocular bar code reading facility suitable for arc container that the present invention is provided, base The varifocal camera being arranged side by side in two, catches the left and right region of bar code on arc container, and two are imaged respectively Head obtains image and is corrected respectively, eliminates radian to obtaining the influence of image, on the basis of image rectification, then is taken the photograph by two As the overlapping region of head, two images are spliced, so that for decoding provides comparatively ideal bar code image.It can be seen that the present invention Bar code recognition problem on arc container is can solve the problem that, the recognition success rate of bar code on arc container is improved.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is the backside structure of the binocular bar code reading facility suitable for arc container that one embodiment of the invention is provided Schematic diagram;
Fig. 2 is the Facad structure of the binocular bar code reading facility suitable for arc container that one embodiment of the invention is provided Schematic diagram;
Fig. 3 is the relative position schematic diagram of the recognizing apparatus that one embodiment of the invention is provided and arc container;
Fig. 4 is that the bar code column width that one embodiment of the invention is provided corrects schematic diagram;
Fig. 5 is the first camera and second camera imaging relations schematic diagram that one embodiment of the invention is provided.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, clear, complete description is carried out to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 shows the back side of the binocular bar code reading facility suitable for arc container that one embodiment of the invention is provided Structural representation.Wherein, 1 device body is represented, 2 represent infrared distance measurement module, and 3 represent camera, and 4 represent 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 is used to enter the bar code being attached on arc container Row recognition, referring to Fig. 1, the recognizing apparatus include:It is arranged on the recognizing apparatus back side and positioned at same horizontal line and apart Two rotatable planes of predeterminable range, respectively the first Plane of rotation and the second Plane of rotation, are set 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 gather the in the arc container first area One bar code image, the second camera is used to gather the second bar code image positioned at arc container second area;Wherein, There is overlapping region and positioned at the bar code of first area in the bar code positioned at first area and the bar code positioned at second area Complete target bar is collectively formed with the bar code positioned at second area;First infrared distance measurement module and described second Infrared distance measurement module is respectively used to measure the distance of corresponding Plane of rotation and arc container surface, and is detecting corresponding rotation Turn to control corresponding Plane of rotation to stop the rotation when plane is minimum with the distance of arc container;
It is understood that two infrared distance measurement modules are respectively used to measure corresponding Plane of rotation in the current anglec of rotation The lower distance with arc container surface of degree, i.e., for detecting corresponding Plane of rotation, whether the diameter with arc container mutually hangs down Directly;Two cameras are used to obtain correspondence bar code image within the vision;Two Plane of rotations are mainly used in fixed correspondence Camera and infrared distance measurement module, Plane of rotation can transverse rotation, the camera being fixed thereon and infrared distance measurement module Rotate with.
It can be seen that, the recognizing apparatus that the present embodiment is provided are by setting infrared distance measurement module, rotation where dynamic adjustment camera Turn plane, search and the most short angle of arc container surface distance, make Plane of rotation all the time perpendicular to the arc container arcuation center of circle With the line of camera position.
For example, when being distinguished to the bar code on arc container using the recognizing apparatus, by the recognizing apparatus Bar code on horizontal aligument arc container, the recognizing apparatus can control corresponding Plane of rotation left rotation and right rotation, rotary course Middle infrared distance measurement module test constantly Plane of rotation and the distance on arc container surface, such as become big, then Plane of rotation apart from lasting Reversely rotate;As distance persistently diminishes, then it continues to rotate, until the angle of both distance Plane of rotations most in short-term of locking, This angle is also Plane of rotation and the perpendicular position of vessel radius.
Further, the recognizing apparatus also include processor, and the processor is gathered to first camera respectively The first bar code image and the second camera collection 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 correction after the first bar code image Splicing is carried out with the second bar code image after correction obtain complete target bar image;
The processor is additionally operable to that the complete bar code image for obtaining is carried out bar code recognition to be translated accordingly Code result.
Seen from the above description, the binocular bar code reading facility suitable for arc container provided in an embodiment of the present invention, Based on two varifocal cameras being arranged side by side, the left and right region of bar code on arc container is caught respectively, and two are taken the photograph Corrected respectively as head obtains image, radian is eliminated to obtaining the influence of image, on the basis of image rectification, then by two Two images are spliced by the overlapping region of camera, so that for decoding provides comparatively ideal bar code image.It can be seen that this hair Bright embodiment can solve the problem that bar code recognition problem on arc container, improve the recognition success rate of bar code on arc container.
In a kind of optional embodiment, referring to Fig. 2, the recognizing apparatus also include 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, and after respectively obtaining the first bar code image after correcting and correcting second Bar code image;
Described image concatenation unit, for obtaining the first bar code image after correcting and the second bar code figure after correction The overlapping region of picture, and based on the overlapping region to correction after the first bar code image and correct after the second bar code figure As carrying out splicing, obtain correcting spliced bar code image.
In a kind of optional embodiment, described image corrects unit to be included:Parameter acquisition module and bar code column width Correct module;
The parameter acquisition module, for according to the distance between the first camera and second camera, the first rotary flat The first distance between face and arc container or the second distance between the second Plane of rotation and arc container, and the first rotation The anglec of rotation of the anglec of rotation of plane or the second Plane of rotation obtains arc container radius;Wherein, the first Plane of rotation and arc Describe that the first distance between device is distance when the first Plane of rotation is minimum with arc container distance, the second Plane of rotation and arc Distance when describing that the second distance between device is the second Plane of rotation minimum with 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 Correct formula according to default column width carries out bar code column width to the first bar code image and the second bar code image respectively Correct 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, carry out bar code column width correction by column to both sides.
In a kind of optional embodiment, the parameter acquisition module can be used to obtain arc container according to equation below one Radius:
R=(d2/2)/cosC-d1 formula one
Wherein, d2 represents the distance between the first camera and second camera;D1 represents the first Plane of rotation and arc The first distance between container or the second distance between the second Plane of rotation and arc container;C=90 ° of-C1, C1It is the first rotation Turn the anglec of rotation of plane or the anglec of rotation of the second Plane of rotation.
In a kind of optional embodiment, the default column width is corrected formula and can use equation below two:
Wherein, the first camera or second camera are being carried out the bar code projection on arc container when bar code is distinguished Onto imaging plane, d2 represents the actual width of bar code row, the modified strip that d1 is projected on imaging plane when representing that bar code is gathered Code column width, d1 represents the distance that the first camera or second camera central point are arranged to bar code to be corrected, and A represents arc container Radius of circle angle folded between surface point and the first camera or second camera central point, B represent arc container surface point with Angle between imaging plane, r represents arc container radius.
The work of unit is corrected to described image with reference to the location diagram shown in Fig. 3 and Fig. 4 and correction schematic diagram Process is explained in detail explanation.
After recognizing apparatus lock two Plane of rotation positions, Plane of rotation, device body are relative between arc container Position relationship is as shown in Figure 3.Fig. 3 represents top view during equipment operation, and 8 is device body in figure, and 7 is Plane of rotation, left and right Each one, 9 is the connecting shaft of Plane of rotation and device body, and 6 is arc container, in addition, all dotted lines are not represented and appointed in Fig. 3 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 B angles is, it is known that according to angled complimentary principle, then C angles angle is equal to B angles angle, another aspect, Plane of rotation and appearance in figure Being obtained by range finder module apart from d1 between device surface, meanwhile, apart from d2 it is fixed between two cameras, in summary become Amount, then understand arc container radius r=(d2/2)/cosC-d1, and angle A=180-2*C folded by two radiuses.
Said process is mainly camera angle is adjusted, and obtains the relevant parameter of arc container, is to correct bar Shape code is prepared.Because there is certain angle in plane where camera and arc container surface, from camera central point more away from Arc container surface portion, be deformed can be bigger when image is obtained, i.e., the parts of images can narrow, therefore, the present invention is real Image segmentation that example obtains camera is applied into several columns, image is corrected by column with reference to radian value, to recover each column figure The normal width of picture.Wherein, the relation between actual bar code and the bar code image of acquisition is as shown in Figure 4.
As shown in figure 4, camera is by the surface projection of arc container 6 to imaging plane 10.D3 is camera center in figure To the distance of bar code image to be corrected row, A is radius of circle angle folded between arc container surface point and camera central point to point, B is the angle between arc container surface point and imaging plane, and d2 is the actual width of normal bar code image column width or bar code row, And d1 is to project to the deformation bar code image column width on imaging plane when bar code is gathered, the solution formula of d2 as the following formula two It is shown.
As shown in formula two above, the original that can obtain the vessel surface bar code image corresponding with image column d1 positions is wide Degree, is started with camera central point column, according to above-mentioned formula two, image is corrected by column to both sides 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.
It can be seen that, recognizing apparatus provided in an embodiment of the present invention for deformation bar code image, using being corrected by column Differential method, arranged as base unit with the image after deformation, to close the row corresponding to segmental arc angle, by the bar shaped in cambered surface Code is transformed into plane.
In a kind of optional embodiment, described image concatenation unit includes:Adjusting module, determining module and splicing mould Block;
The adjusting module, adjusts for the first bar code image and the second bar code image after correction after by correction Center position to same level and guarantee two images keeps constant;
The determining module, the overlapping region for determining the two images after adjustment;
In a kind of optional embodiment, the determining module, for determining two width after adjustment according to equation below three The overlapping region of image:
D3=2* (d/2-d2/2)=d-d2 formula three
Wherein, d3 represents the length of the overlapping region of two images, and d2 is represented between the first camera and second camera Distance;D represents the areas imaging of the first camera or second camera, and the areas imaging is open and flat on imaging plane Bar code image width.
The two images are spliced by the concatenation module for the image information according to the overlapping region.
The course of work of described image concatenation unit is solved in detail with reference to the imaging relations schematic diagram shown in Fig. 5 Release explanation.
Because bar code is obtained jointly by two cameras of left and right respectively, camera presence fails that whole bar code is completely covered The possibility in 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 both Splicing.
In the bar code of above-mentioned image rectification unit corrects step, with camera center line as start line, respectively to two Side is corrected to image column, and bar code image is the open and flat two spoke barcode images on imaging plane after correction, therefore, The angle of two imaging planes can be adjusted in splicing, both is in same level, and two center positions are protected Hold constant, two camera imaging relations are as shown in Figure 5 after adjustment.
As shown in Figure 5, the length d3 of the overlapping region of two cameras acquisition bar code image can be by two camera central points Between apart from d2, and the areas imaging d of camera is obtained, and areas imaging is that the 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.
D3=2* (d/2-d2/2)=d-d2 formula three
It is determined that behind overlapping region, you can two images are spliced according to the overlapping region, bar code figure after splicing As can be directly used for decoding.Picture traverse problem is all referred in other said process, for convenience of describing, developed width is referred both to, The width can by being imaged when image distance and image distance calculate and obtain.
From the technical scheme recorded above, a kind of binocular bar suitable for arc container is the embodiment of the invention provides Shape code recognizing apparatus, the bar code for solving to be affixed transversely to arc container surface distinguishes problem.The embodiment of the present invention is provided Recognizing apparatus first by camera lens adjust, radian detect operation obtain container parameters, then by get parms to deform bar Barcode image is corrected, and finally the bar code image after correction is spliced, to eliminate the shadow that radian is distinguished to bar code Ring.It can be seen that, recognizing apparatus provided in an embodiment of the present invention overcome traditional recognizing apparatus be difficult interpretation be affixed transversely to arc appearance The shortcoming of bar code on device, improves the success rate of bar code decoding.
In the description of the invention, it is necessary to explanation, term " on ", the orientation of the instruction such as D score or position relationship be base In orientation shown in the drawings or position relationship, it is for only for ease of and describes of the invention and simplify description, rather than instruction or hint Signified device or element must have specific orientation, with specific azimuth configuration and operation, therefore it is not intended that to this The limitation of invention.Unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " should be interpreted broadly, example Such as, can be fixedly connected, or be detachably connected, or be integrally connected;Can mechanically connect, or be electrically connected Connect;Can be joined directly together, it is also possible to be indirectly connected to by intermediary, can be two connections of element internal.For this For the those of ordinary skill in field, above-mentioned term concrete meaning in the present invention can be as the case may be understood.
Also, it should be noted that herein, such as first and second or the like relational terms are used merely to one Entity or operation make a distinction with another entity or operation, and between not necessarily requiring or implying these entities or operate There is any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to contain Lid nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Above example is merely to illustrate technical scheme, rather than its limitations;Although with reference to the foregoing embodiments The present invention has been described in detail, it will be understood by those within the art that:It still can be to foregoing each implementation Technical scheme described in example is modified, or carries out equivalent to which part technical characteristic;And these are changed or replace Change, do not make the spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.

Claims (8)

1. a kind of binocular bar code reading facility suitable for arc container, it is characterised in that the double of arc container should be applied to Mesh bar code reading facility is used to distinguish the bar code being attached on arc container, and the recognizing apparatus include:Set At the recognizing apparatus back side and positioned at same horizontal line and at a distance of two rotatable planes of predeterminable range, the respectively first rotation Turn plane and the second Plane of rotation, a varifocal camera and an infrared distance measurement module be provided with 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 gather the first bar code image in arc container first area, and the second camera is used to gather 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 There is overlapping region in bar code and the bar code positioned at first area and the bar code positioned at second area collectively form it is complete Target bar;First infrared distance measurement module and second infrared distance measurement module are respectively used to measure corresponding rotary flat Face and the distance on arc container surface, and control is corresponding when corresponding Plane of rotation is detected with the distance minimum of arc container Plane of rotation stop the rotation;
The recognizing apparatus also include processor, and the processor is respectively to the first bar code figure of first camera collection As and the second bar code image of second camera collection carry out the correction of bar code column width with the after being corrected One bar code image and correct after the second bar code image, and by correction after the first bar code image and correct after second Bar code image carries out splicing and obtains complete target bar image;
The processor is additionally operable to carry out bar code recognition to the complete bar code image for obtaining obtain corresponding decoding knot Really.
2. recognizing apparatus according to claim 1, it is characterised in that the recognizing apparatus also include 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, it is characterised in that the processor includes:Image rectification unit and figure As concatenation 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 obtaining the first bar code image after correcting and correcting after second bar code image Overlapping region, and based on the overlapping region to correction after the first bar code image and correct after the second bar code image enter Row splicing, obtains correcting spliced bar code image.
4. recognizing apparatus according to claim 3, it is characterised in that described image corrects unit to be included:Parameter acquiring mould Block and bar code column width correct module;
The parameter acquisition module, for according to the distance between the first camera and second camera, the first Plane of rotation with The first distance between arc container or the second distance between the second Plane of rotation and arc container, and the first Plane of rotation The anglec of rotation or the second Plane of rotation the anglec of rotation obtain arc container radius;Wherein, the first Plane of rotation holds with arc The first distance between device is distance when the first Plane of rotation is minimum with arc container distance, and the second Plane of rotation holds with arc Distance when second distance between device is the second Plane of rotation minimum with arc container distance;
The bar code column width corrects module, for the arc container radius that is obtained according to the parameter acquisition module according to pre- If column width correct formula bar code column width is carried out by column to the first bar code image and the second bar code image respectively Correct, 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 Both sides carry out bar code column width correction by column.
5. recognizing apparatus according to claim 4, it is characterised in that the parameter acquisition module is used for according to equation below One obtains arc container radius:
R=(d2/2)/cosC-d1 formula one
Wherein, d2 represents the distance between the first camera and second camera;D1 represents the first Plane of rotation and arc container Between first distance or the second distance between the second Plane of rotation and arc container;C=90 ° of-C1, C1It is the first rotary flat The anglec of rotation of the anglec of rotation in face or the second Plane of rotation.
6. recognizing apparatus according to claim 4 or 5, it is characterised in that the default column width is corrected formula and is:
Wherein, the first camera or second camera project into the bar code on arc container when bar code is distinguished In image plane, d2 represents the actual width of bar code row, the deformation bar code row that d1 is projected on imaging plane when representing that bar code is gathered Width, d1 represents the distance that the first camera or second camera central point are arranged to bar code to be corrected, and A represents arc container surface Folded radius of circle angle between point and the first camera or second camera central point, B represents arc container surface point with imaging The angle of interplanar, r represents arc container radius.
7. recognizing apparatus according to claim 3, it is characterised in that described image concatenation unit includes:Adjusting module, really Cover half block and concatenation module;
The adjusting module, the second bar code image for the first bar code image after by correction and after correcting is adjusted to same The center position of one horizontal plane and guarantee two images keeps constant;
The determining module, the overlapping region for determining the two images after adjustment;
The two images are spliced by the concatenation module for the image information according to the overlapping region.
8. recognizing apparatus according to claim 7, it is characterised in that the determining module, for according to equation below three It is determined that the overlapping region of the two images after adjustment:
D3=2* (d/2-d2/2)=d-d2 formula three
Wherein, d3 represents the length of the overlapping region of two images, d2 represent between the first camera and second camera away from From;D represents the areas imaging of the first camera or second camera, and the areas imaging is 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 true CN106845301A (en) 2017-06-13
CN106845301B 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)

Cited By (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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140029796A1 (en) * 2011-02-28 2014-01-30 Datalogic Ip Tech S.R.L. Method for the optical identification of objects in motion
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140029796A1 (en) * 2011-02-28 2014-01-30 Datalogic Ip Tech S.R.L. Method for the optical identification of objects in motion
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

Cited By (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

Also Published As

Publication number Publication date
CN106845301B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN106412426A (en) Omni-focus photographing apparatus and method
CN103198487B (en) A kind of automatic marking method for video monitoring system
CN105118055B (en) Camera position amendment scaling method and system
CN105957007B (en) Image split-joint method based on characteristic point plane similarity
CN103558910B (en) A kind of intelligent display system of automatic tracking head pose
CN110000784B (en) Robot recharging positioning navigation method, system, equipment and storage medium
CN109064404A (en) It is a kind of based on polyphaser calibration panorama mosaic method, panoramic mosaic system
CN109598762A (en) A kind of high-precision binocular camera scaling method
CN107907048A (en) A kind of binocular stereo vision method for three-dimensional measurement based on line-structured light scanning
US20010026684A1 (en) Aid for panoramic image creation
US8428313B2 (en) Object image correction apparatus and method for object identification
CN106485275A (en) A kind of cover-plate glass of realizing positions, with liquid crystal display screen, the method fitted
CN105957015A (en) Thread bucket interior wall image 360 DEG panorama mosaicing method and system
CN102509093B (en) Close-range digital certificate information acquisition system
CN106845301A (en) A kind of binocular bar code reading facility suitable for arc container
CN103902953B (en) A kind of screen detecting system and method
CN101697105A (en) Camera type touch detection positioning method and camera type touch detection system
CN109949728B (en) Detection apparatus for display panel
CN103842259A (en) Device and method for aligning containers
CN106657789A (en) Thread panoramic image synthesis method
CN109146833A (en) A kind of joining method of video image, device, terminal device and storage medium
US11843865B2 (en) Method and device for generating vehicle panoramic surround view image
CN109089025A (en) A kind of image instrument digital focus method based on optical field imaging technology
CN110287913A (en) Image flame detection reminding method and device, user terminal and storage medium
CN110033407A (en) A kind of shield tunnel surface image scaling method, joining method and splicing system

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