CN105956510A - Bar code processing method and bar code scanning device - Google Patents

Bar code processing method and bar code scanning device Download PDF

Info

Publication number
CN105956510A
CN105956510A CN201610278226.7A CN201610278226A CN105956510A CN 105956510 A CN105956510 A CN 105956510A CN 201610278226 A CN201610278226 A CN 201610278226A CN 105956510 A CN105956510 A CN 105956510A
Authority
CN
China
Prior art keywords
bar code
image
light source
retroreflective regions
source module
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
CN201610278226.7A
Other languages
Chinese (zh)
Other versions
CN105956510B (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.)
Qisda Optronics Suzhou Co Ltd
Qisda Corp
Original Assignee
Qisda Optronics Suzhou Co Ltd
Qisda Corp
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 Qisda Optronics Suzhou Co Ltd, Qisda Corp filed Critical Qisda Optronics Suzhou Co Ltd
Priority to CN201610278226.7A priority Critical patent/CN105956510B/en
Publication of CN105956510A publication Critical patent/CN105956510A/en
Application granted granted Critical
Publication of CN105956510B publication Critical patent/CN105956510B/en
Expired - Fee Related 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/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14131D bar codes

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention provides a bar code processing method and a bar code scanning device. The method comprises the steps of: obtaining a first bar code image; judging whether a reflection area in a first bar code area exceeds a predetermined size range; if yes, obtaining N second bar code images, and judging the change trend of reflection areas according to the reflection areas in the first bar code image and the N second bar code; if the reflection areas increase gradually, obtaining a current bar code image; and according to the relative relation between the reflection area in the current bar code image and a third bar code area, adjusting an aiming light source module until the reflection area in the third bar code area of a current bar code image newly obtained after the adjustment of the aiming light source module is within the predetermined size range, using the current bar code image whose reflection area is within the predetermined size range as a decoding image, and carrying out processing so as to obtain data.

Description

Bar code processing method and bar code scanner
Technical field
The present invention relates to bar code scan field, particularly relate to a kind of bar code processing method and bar code scanner.
Background technology
Bar code or to claim bar code (barcode) be by width multiple secret notes (bar) not etc. and informal voucher (space), According to certain coding rule arrangement, in order to express the figure recognizing unit of one group of information.Common bar code is The pattern of parallel lines that the secret note differed greatly by reflectance and informal voucher are lined up.Bar code can mark the production of article State, manufacturing firm, trade name, date of manufacture, book classification number, mail start-stop place, classification, day The information such as phase, are therefore widely used in the fields such as commodity circulation, taking care of books, postal management, banking system. According to different application field, the coded format of bar code has again various different specification, such as bar code just to include Code39, Code11, Code128, EAN (European Article Number, European Article Number (EAN)), The forms such as UPC (Universal Product Code, Universial Product Code).
In order to help user scanning barcode, during the scanning of bar code scan instrument, aim at assembly and can get aiming light source Pattern (aiming pattern).User utilizes the aiming light source pattern got alignment target barcode to make mesh Mark bar code is positioned at and is projeced into the imaging central authorities aiming at light source pattern on scanning object, generates the figure being relatively beneficial to decoding Picture.Especially when an image comprises more than one bar code, can be by being positioned at the one-tenth aiming at light source pattern As the bar code of central authorities selects in scanogram as the bar code decoding target.Generally, in bar code scan instrument also Being provided with supplementary lighting sources, supplementary lighting sources is for beating bright wisp code, it is to avoid light source deficiency cause bar code information to be short of or Noise is excessive is unfavorable for decoding.
As it has been described above, aim at the bar code acting as selecting to carry out needing decoding of light source pattern.But bar code is at certain Can cause reflective because of supplementary lighting sources in a little materials, this method actually used may suffer from user and aim at Bar code but makes because of reflective cannot to be successfully decoded according to scanogram.
Summary of the invention
It is an object of the invention to provide a kind of bar code processing method and bar code scanner, to solve above-mentioned asking Topic.
In order to achieve the above object, first aspect, the present invention provides a kind of bar code processing method, for bar code Scanning means, this bar code scanner comprises aiming light source module, comprises:
Obtain the first bar code image, this first bar code image has the first bar code region;
Judge whether the retroreflective regions in this first bar code region exceedes predetermined size range;
If the retroreflective regions in this first bar code region exceedes this predetermined size range, obtain N and open the second bar code Image, judges reflective areas according to the retroreflective regions that this first bar code image and this N are opened in the second bar code image Territory variation tendency, N is the positive integer more than or equal to 1;
Being gradually increased if this retroreflective regions variation tendency is retroreflective regions, obtain current bar code image, this is current Bar code image has Article 3 code region, and this Article 3 code region has retroreflective regions;
According to retroreflective regions in bar code image before deserving and the relativeness in this Article 3 code region, adjust this and take aim at Quasi-optical source module, until judging in adjusting the of the current bar code image that reacquires after this aiming light source module Retroreflective regions in three bar code regions is positioned at this predetermined size range, and retroreflective regions is positioned at this preliminary dimension In the range of current bar code image as decoding image carry out processing to obtain barcode data.
It is also preferred that the left the method also comprises: if the retroreflective regions in this first bar code region is not less than this pre-scale Very little scope, carries out processing to obtain this barcode data as this decoding image using this first bar code image.
It is also preferred that the left the method also comprises: be gradually reduced, then if this retroreflective regions variation tendency is retroreflective regions Determine that this N opens one of them second bar code image in the second bar code image according to this retroreflective regions variation tendency For this decoding image, process to obtain this barcode data to this decoding image.
It is also preferred that the left this bar code scanner also comprises: image capture module;According in bar code image before deserving Retroreflective regions and the relativeness in Article 3 code region, the step adjusting this aiming light source module comprises:
According to retroreflective regions in bar code image before deserving and the relative position relation in Article 3 code region, determine this Aim at the mobile side aiming at light source pattern projection image space on this scanning object that light source module is got To, finely tune this aiming light source module with this image space mobile and then instruction user root according to this moving direction This bar code scanner is moved to adjust this image capture module and this scanning according to the moving direction of this image space Shooting distance between object and shooting angle.
It is also preferred that the left this bar code scanner also comprises: image capture module;According in bar code image before deserving Retroreflective regions and the relativeness in Article 3 code region, the step adjusting this aiming light source module comprises:
According to the retroreflective regions of bar code image before deserving and the relative position relation in Article 3 code region, determine this Aim at the change side aiming at light source pattern projection imaged shape on this scanning object that light source module is got Formula, is that another imaged shape enters according to this this aiming light source module of fine setting that shifts gears to change this imaged shape And indicate user to adjust moving direction and the move angle of this bar code scanner according to this another imaged shape To adjust the shooting distance between this image capture module and this scanning object and shooting angle.
It is also preferred that the left according to the relativeness of retroreflective regions in bar code image before deserving with Article 3 code region, adjust The step of this aiming light source module whole comprises:
The relative dimensions of the retroreflective regions in the Article 3 code region in front bar code image is deserved in assessment, determines Adjust the mobile intensity of this aiming light source module;
Calculate the retroreflective regions of bar code image before deserving and the relative position relation in Article 3 code region, to determine The moving direction of this aiming light source module;
Move intensity according to this and this moving direction adjusts this aiming light source module.
It is also preferred that the left the aiming light source pattern that this aiming light source module is got is cross, rectangle or circle.
It is also preferred that the left the step obtaining this first bar code image comprises:
Catch image;
Position and whether this image comprises bar code region;
If this image comprises bar code region, using this image as this first bar code image;
If this image does not comprise bar code region, return the step catching this image.
Second aspect, the present invention provides a kind of bar code scanner, comprises:
Aiming at light source module, be movably arranged on housing, this aiming light source module is used for getting aiming light Source pattern;
Image capture module, for obtaining the first bar code image, this first bar code image has the first bar code district Territory, if the retroreflective regions in this first bar code region exceedes predetermined size range, obtains N and opens the second bar code figure Picture, and if retroreflective regions variation tendency be that retroreflective regions is gradually increased, obtain current bar code image, deserve Front bar code image has Article 3 code region, and this Article 3 code region has retroreflective regions;
Judging unit, for judging whether the retroreflective regions in this first bar code region exceedes this preliminary dimension model Enclose;
Retroreflective regions variation tendency determines unit, for opening Article 2 according to this first bar code image and this N Retroreflective regions in code image judges this retroreflective regions variation tendency, and N is the positive integer more than or equal to 1;
Adjustment unit, for closing according to retroreflective regions in bar code image before deserving is relative with Article 3 code region System, adjusts this aiming light source module, until judging in adjusting reacquire after this aiming light source module current Retroreflective regions in the Article 3 code region of bar code image is positioned at this predetermined size range;
Bar code resolution unit, makees for retroreflective regions is positioned at the current bar code image of this predetermined size range Carry out processing to obtain barcode data for decoding image.
It is also preferred that the left this adjustment unit is according to the phase of retroreflective regions in bar code image before deserving with Article 3 code region To position relationship, determine that what this aiming light source module got aims at light source pattern projection on this scanning object The moving direction of image space, finely tunes this aiming light source module with this image space mobile according to this moving direction And then instruction user moves this bar code scanner to adjust this image according to the moving direction of this image space Capture the shooting distance between module and this scanning object and shooting angle;Or,
This adjustment unit closes with the relative position in Article 3 code region according to the retroreflective regions of bar code image before deserving System, determines the aiming light source pattern projection imaged shape on this scanning object that this aiming light source module is got Shift gears, according to this shift gears fine setting this aiming light source module with change this imaged shape be another become As shape so that instruction user according to this another imaged shape adjust this bar code scanner moving direction and Move angle is to adjust the shooting distance between this image capture module and this scanning object and shooting angle;Or Person,
The relative size of the retroreflective regions in the Article 3 code region in front bar code image is deserved in the assessment of this adjustment unit Relation, determines the mobile intensity adjusting this aiming light source module;This adjustment unit calculates bar code image before deserving The relative position relation in retroreflective regions and Article 3 code region, to determine the mobile side of this aiming light source module To;This adjustment unit moves intensity according to this and this moving direction adjusts this aiming light source module.
Compared with prior art, the bar code processing method of present invention offer and bar code scanner, in bar code district When territory comprises reflector space, it is possible to the position adjusting aiming light source module makes in the bar code image obtained Retroreflective regions is positioned at predetermined size range, and then retroreflective regions is staggered with bar code region, bar code scan Device can obtain barcode data according to bar code image.
Accompanying drawing explanation
The schematic flow sheet of a kind of bar code processing method that Fig. 1 provides for the embodiment of the present invention;
The schematic diagram of the first bar code image that Fig. 2 provides for the embodiment of the present invention;
A kind of first bar code image that Fig. 3 A provides for the embodiment of the present invention and the signal of multiple second bar code images Figure;
Another kind the first bar code image that Fig. 3 B provides for the embodiment of the present invention shows with multiple second bar code image It is intended to;
The schematic diagram of the current bar code image that Fig. 4 A, Fig. 4 B, Fig. 4 C provide for the embodiment of the present invention;
A kind of schematic diagram adjusting process that Fig. 5 A, Fig. 5 B, Fig. 5 C provide for the embodiment of the present invention;
The schematic diagram of the another kind of adjustment process that Fig. 6 A, Fig. 6 B, Fig. 6 C provide for the embodiment of the present invention;
The block schematic diagram of a kind of bar code scanner that Fig. 7 provides for the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the present invention, structure, feature and function thereof are had further understanding, hereby coordinate reality Execute example and describe in detail as follows.
The schematic flow sheet of a kind of bar code processing method that Fig. 1 provides for the embodiment of the present invention;Fig. 2 is this The schematic diagram of the first bar code image that bright embodiment provides;The one first that Fig. 3 A provides for the embodiment of the present invention Bar code image and the schematic diagram of multiple second bar code images;The another kind that Fig. 3 B provides for the embodiment of the present invention One bar code image and the schematic diagram of multiple second bar code images;Fig. 4 A, Fig. 4 B, Fig. 4 C are that the present invention implements The schematic diagram of the current bar code image that example provides.
Bar code processing method as shown in Figure 1, is applied to bar code scanner, and bar code scanner can be The devices such as bar code scan instrument, mobile phone, flat board (Tablet).It is to be understood that in the nothing such as mobile phone, flat board Aim at the device of light source module, then use graphic user interface (Graphical User Interface, GUI) Mode directly displays and adjusts aiming pattern over the display, and for general bar code scanner comprise housing, Aim at light source module, image capture module, aim at light source module and be movably arranged on housing, this bar code Processing method comprises the steps of
S101, obtaining the first bar code image, this first bar code image has the first bar code region.Concrete, The step obtaining the first bar code image comprises: catch image;Position and whether this image comprises bar code region; If this image comprises bar code region, using this image as the first bar code image;If this image does not comprise bar Code region, returns the step catching image.
Whether S102, the retroreflective regions judged in the first bar code region exceed predetermined size range.If Article 1 Retroreflective regions in code region, not less than predetermined size range, performs step S103;If in the first bar code region Retroreflective regions exceed predetermined size range, perform step S104.Concrete, can be by judging the first bar code Whether the ratio of the area that the area of the retroreflective regions in region accounts for whole first bar code region exceedes predetermined ratio To judge whether the retroreflective regions in the first bar code region exceedes predetermined size range.
S103, using the first bar code image as decoding image carry out processing to obtain barcode data.
S104, acquisition N open the second bar code image, open the second bar code image according to the first bar code image and N In retroreflective regions judge retroreflective regions variation tendency.Wherein, N is the positive integer more than or equal to 1.If it is reflective Regional change trend is that retroreflective regions is gradually reduced, and performs step S105;If retroreflective regions variation tendency is anti- Light region is gradually increased, and performs step S106-S108.Concrete, obtain the step of every second bar code image Comprise: catch image;Position and whether this image comprises bar code region;If this image comprises bar code region, Using this image as the second bar code image;If this image does not comprise bar code region, return the step catching image Suddenly.Catch after catching this first bar code image it can be seen that this N opens the second bar code image.
S105, determine that according to retroreflective regions variation tendency N opens one of them Article 2 in the second bar code image Code image is decoding image, processes to obtain barcode data to decoding image.Concrete, select N to open In second bar code image, retroreflective regions is decoding figure not less than second bar code image of predetermined size range Picture.
S106, obtain current bar code image.Wherein, current bar code image has an Article 3 code region, and the 3rd Bar code region has retroreflective regions.Concrete, the step obtaining current bar code image comprises: catch image; Position and whether this image comprises bar code region;If this image comprises bar code region, using this image as working as Front bar code image;If this image does not comprise bar code region, return the step catching image.
S107, relativeness according to retroreflective regions in current bar code image Yu Article 3 code region, adjustment is taken aim at Quasi-optical source module.Concrete, relativeness can be relative position relation and/relative dimensions.
S108, judge in adjusting the Article 3 code district aiming at the current bar code image reacquired after light source module Whether the retroreflective regions in territory is positioned at predetermined size range.If the 3rd of the current bar code image reacquired the Retroreflective regions in bar code region is not positioned at predetermined size range, returns step S107.If Article 3 code district Retroreflective regions in territory is positioned at predetermined size range, performs step S109.
S109, retroreflective regions is positioned at the current bar code image of predetermined size range carries out as decoding image Process to obtain barcode data.
It should be noted that above-mentioned to decoding image carry out process can be to decode image carry out binaryzation, Remove noise, decoding etc. to process.
Below in conjunction with first bar code image P1, Fig. 3 A, Fig. 3 B and Fig. 4 A to Fig. 4 C couple shown in Fig. 2 Above-mentioned bar code processing method illustrates.Bar code scanner obtains the first bar code image P1, the first bar code figure As P1 comprises the first bar code region M1, the first bar code region M1 there is retroreflective regions F1, it is judged that reflective areas Whether the ratio of the area that the area of territory F1 accounts for the first bar code region M1 exceedes predetermined ratio to judge Article 1 Whether retroreflective regions F1 in code region M1 exceedes predetermined size range;If retroreflective regions F1 is not less than predetermined Size range, carries out processing to obtain the first bar code region M1 using the first bar code image P1 as decoding image In barcode data;If retroreflective regions F1 exceedes predetermined size range, obtain N and open the second bar code image, root Open the retroreflective regions in the second bar code image according to the first bar code image P1 and N and judge that retroreflective regions change becomes Gesture;In Fig. 3 A, open two second bar code images P20, P21 in the second bar code image with N and combine Article 1 Code image P1 judges retroreflective regions variation tendency, can be seen by retroreflective regions F1, F20 to F21 in Fig. 3 A Going out, retroreflective regions variation tendency is that retroreflective regions is gradually reduced, and bar code scanner can be according to retroreflective regions Variation tendency determines that one of them second bar code image that N opens in the second bar code image is decoding image, to solution Code image carries out processing acquisition barcode data;In Fig. 3 B, open two the second bar codes in the second bar code image with N Image P22, P23 combine the first bar code image P1 and judge retroreflective regions variation tendency, by reflective areas in Fig. 3 B Territory F1, F22 to F23 are it can be seen that retroreflective regions variation tendency is retroreflective regions is gradually increased, and bar code is swept Imaging apparatus catch further image with obtain current bar code image P30 (schematic diagram as shown in Figure 4 A), according to In current bar code image P30, retroreflective regions F30 and the relativeness of Article 3 code region M30, adjust and aim at Light source module;Judge that the current bar code image P31 reacquired after adjusting aiming light source module is (such as Fig. 4 B Shown schematic diagram) Article 3 code region M31 in retroreflective regions F31 whether be positioned at predetermined size range In;If retroreflective regions F31 in Article 3 code region M31 is positioned at predetermined size range, by current bar code Image P31 carries out processing to obtain barcode data as decoding image;If anti-in Article 3 code region M31 Light region F31 is not positioned at predetermined size range, according to retroreflective regions F31 in current bar code image P31 with The relativeness of Article 3 code region M31, adjusts and aims at light source module, it is judged that aim at light source module in adjusting The Article 3 code region M32 of the current bar code image P32 (schematic diagram as shown in Figure 4 C) of rear reacquisition In retroreflective regions F32 whether be positioned at predetermined size range;If the reflective areas in Article 3 code region M32 Territory F32 is positioned at predetermined size range, carries out processing to obtain as decoding image using current bar code image P32 Obtain barcode data;If retroreflective regions F32 in Article 3 code region M32 is not positioned at predetermined size range, Repeat that " according to the relativeness of retroreflective regions in current bar code image Yu Article 3 code region, adjustment is taken aim at Quasi-optical source module, it is judged that the Article 3 code of the current bar code image reacquired after adjusting aiming light source module Whether the retroreflective regions in region is positioned at predetermined size range " step, until in adjust aim at light source die Retroreflective regions in the Article 3 code region of the current bar code image reacquired after group is positioned at predetermined size range In.
A kind of schematic diagram adjusting process that Fig. 5 A, Fig. 5 B, Fig. 5 C provide for the embodiment of the present invention, Fig. 5 A Get as a example by cross aiming light source pattern by aiming light source to Fig. 5 C, certainly, aim at light source pattern and also may be used Think rectangle, circle etc..It is also preferred that the left above-mentioned steps S107 can comprise: according to anti-in current bar code image Light region and the relative position relation in Article 3 code region, determine and aim at the aiming light source figure that light source module is got Case is projeced into the moving direction of the image space on scanning object, aims at light source module according to moving direction fine setting Be moved into image position and then instruction user according to the moving direction Mobile barcode scanning means of image space with Adjust the shooting distance between image capture module and scanning object and shooting angle.Exemplary, in fine setting Before aiming at light source module, current bar code image P01 as shown in Figure 5 A, in Fig. 5 A, M01 represents bar code Region, aims at light source pattern projection image space on scanning object cross place as shown in Figure 5A Position D01, after determining moving direction, after aiming at light source module according to moving direction fine setting, current bar code Image P02 as shown in Figure 5 B, in Fig. 5 B, M02 represents bar code region, aims at light source pattern projection in sweeping Retouching the position D02 at the cross place as shown in Figure 5 B of the image space on object, now, user is observed After the image space D02 moving direction relative to image space D01, user is relative according to image space D2 Moving direction in image space D1 aims at light source module towards lower left Mobile barcode scanning means with mobile, After user Mobile barcode scanning means, the current bar code image of acquisition can as shown in Figure 5 C, in Fig. 5 C M03 represents bar code region.In this embodiment, aim at the adjustment of light source module by fine setting and be projeced into scanning thing The image space aiming at light source pattern on body, instruction user adjusts bar according to the change direction of image space Code scanning means is to adjust image capture module, and then retroreflective regions is staggered with bar code region, and bar code is swept Imaging apparatus can obtain barcode data according to bar code image.
The schematic diagram of the another kind of adjustment process that Fig. 6 A, Fig. 6 B, Fig. 6 C provide for the embodiment of the present invention, figure In 6A to Fig. 6 C as a example by aiming light source gets rectangular collimation light source pattern.It is also preferred that the left above-mentioned steps S107 Can comprise: according to retroreflective regions and the relative position relation in Article 3 code region of current bar code image, really Surely the change side aiming at light source pattern projection imaged shape on scanning object that light source module is got is aimed at Formula, aims at light source module to change over as being shaped as another imaged shape and then instruction according to the fine setting that shifts gears User adjusts the moving direction of bar code scanner and move angle to adjust image according to another imaged shape Shooting distance between capture device and scanning object and shooting angle.Exemplary, current bar code image is such as In P11 shown in Fig. 6 A, Fig. 6 A, M11 represents bar code region, aims at light source pattern projection in scanning object On imaged shape rectangle D11 as shown in Figure 6A, after determining and shifting gears, according to the fine setting that shifts gears After aiming at light source module, current bar code image P12 as depicted in figure 6b, in Fig. 6 B, M12 represents bar code Region, aims at light source pattern projection imaged shape on scanning object trapezoidal D12 as shown in Figure 6B, this Time, user aims at the mobile side of light source module according to imaged shape D12 Mobile barcode scanning means with adjustment To and move angle, after user Mobile barcode scanning means, the current bar code image of acquisition can as figure Shown in 6C, in Fig. 6 C, M13 represents bar code region.In an alternative embodiment of the invention, aiming at light source pattern can Thinking circle, after aiming at light source module according to the fine setting that shifts gears, imaged shape can be oval.At this In embodiment, by fine setting aim at light source module adjust be projeced on scanning object aim at light source pattern Imaged shape, instruction user adjusts bar code scanner to adjust image capture according to the change of imaged shape Module, and then retroreflective regions is staggered with bar code region, bar code scanner can obtain according to bar code image Obtain barcode data.
It is also preferred that the left above-mentioned steps S107 can comprise: assess Article 3 code region in current bar code image The relative dimensions of retroreflective regions, determines and adjusts the mobile intensity aiming at light source module;Calculate current bar code The retroreflective regions of image and the relative position relation in Article 3 code region, to determine the movement aiming at light source module Direction;Adjust according to mobile intensity and moving direction and aim at light source module.In this embodiment, pass through Automatic fine tuning aims at light source module and makes the retroreflective regions in the bar code image obtained be positioned at predetermined size range In, and then retroreflective regions is staggered with bar code region, bar code scanner can obtain according to bar code image Barcode data.
It is also preferred that the left after step S109 really definite decoding image, it is also possible to comprise step: reset and aim at light Source module, will aim at light source module and recover to initial position, further, it is possible to close aiming at light source module When closing, reset and aim at light source module, so, after adjusting aiming light source module, it is possible to facilitate user Next time, scanning used.
Want can be movably arranged on housing it should be noted that aim at light source module, need to be equipped with and move Dynamic structure, can finely tune aiming light source module or automatically adjust aiming light source module, and moving structure is permissible For moving structure common to those skilled in the art, this is not elaborated by the embodiment of the present invention.
The bar code processing method that the present invention provides, aims at light source module and is movably arranged at bar code scanner Housing on, when comprising reflector space in bar code region, it is possible to adjust aim at light source module position make Retroreflective regions in the bar code image obtained is positioned at predetermined size range, and then makes retroreflective regions and bar code Staggering in region, bar code scanner can obtain barcode data according to bar code image.
The block schematic diagram of a kind of bar code scanner that Fig. 7 provides for the embodiment of the present invention.As it is shown in fig. 7, Bar code scanner 6 comprises: housing (not illustrating), image capture module 60, aim at light source module 61, Judging unit 62, retroreflective regions variation tendency determine unit 63, adjustment unit 64 and bar code resolution unit 65, concrete, bar code scanner 6 can be bar code scan instrument, mobile phone etc..Aiming at light source module 61 can It is arranged at movably on housing, aims at light source module 61 and be used for getting aiming light source pattern.Image capture module 60 obtain the first bar code image, and the first bar code image has the first bar code region, if in the first bar code region Retroreflective regions exceedes predetermined size range, obtains N and opens the second bar code image, and if retroreflective regions change become Gesture is that retroreflective regions is gradually increased, and obtains current bar code image, and current bar code image has Article 3 code region, Article 3 code region has retroreflective regions;Wherein, the aiming light source pattern that aiming light source module 61 is got is permissible For cross, rectangle or circle.Judging unit 62 is for judging retroreflective regions in the first bar code region whether Exceed predetermined size range;Concrete, it is judged that unit 62 judges the face of the retroreflective regions in the first bar code region Whether the ratio of the long-pending area accounting for whole first bar code region exceedes predetermined ratio to judge in the first bar code region Retroreflective regions whether exceed predetermined size range.Retroreflective regions variation tendency determines that unit 63 is for according to One bar code image and N open the retroreflective regions in the second bar code image and judge retroreflective regions variation tendency, and N is big In the positive integer equal to 1.Adjustment unit 64 is for according to retroreflective regions in current bar code image and Article 3 code The relativeness in region, adjusts and aims at light source module 61, until judging weight after adjusting aiming light source module 61 Retroreflective regions in the Article 3 code region of the new current bar code image obtained is positioned at predetermined size range.Bar Code resolution unit 65 is for being positioned at retroreflective regions in the current bar code image of predetermined size range as decoding figure As carrying out processing to obtain barcode data.If it is reflective that bar code resolution unit 65 is additionally operable in the first bar code region First bar code image, not less than predetermined size range, is carried out processing to obtain bar code by region as decoding image Data.If it is that retroreflective regions is gradually reduced that bar code resolution unit 65 is additionally operable to retroreflective regions variation tendency, then root Determine that one of them second bar code image that N opens in the second bar code image is decoding according to retroreflective regions variation tendency Image, processes to obtain barcode data to decoding image.Above-mentioned decoding image is carried out process can be Decoding image is carried out binaryzation, removes the process such as noise, decoding.
It is also preferred that the left adjustment unit 64 is relative with Article 3 code region according to retroreflective regions in current bar code image Position relationship, determine aim at light source module 61 get aim at light source pattern projection in scanning object on imaging The moving direction of position, aims at light source module 61 to be moved into image position and then instruction according to moving direction fine setting User according to the moving direction Mobile barcode scanning means 6 of image space with adjust image capture module 60 with Shooting distance between scanning object and shooting angle.
It is also preferred that the left adjustment unit 64 is relative with Article 3 code region according to the retroreflective regions of current bar code image Position relationship, determine aim at light source module 61 get aim at light source pattern projection in scanning object on imaging Shifting gears of shape, aims at light source module 61 to change over as being shaped as another according to the fine setting that shifts gears As shape and then instruction user adjust moving direction and the shifting of bar code scanner 6 according to another imaged shape Dynamic angle is to adjust the shooting distance between image capture module 60 and scanning object and shooting angle.
It is also preferred that the left adjustment unit 64 assesses the phase of the retroreflective regions in the Article 3 code region in current bar code image To size relationship, determine and adjust the mobile intensity aiming at light source module 61;Adjustment unit 64 calculates works as preceding article The retroreflective regions of code image and the relative position relation in Article 3 code region, aim at light source module 61 to determine Moving direction;Adjustment unit 64 adjusts according to mobile intensity and moving direction and aims at light source module 61.
Image capture module 60 relies on aiming light source module 61 location acquisition bar code image (to comprise the first bar code Image, the second bar code image and Article 3 code image) mode can be: catch image;Position this figure Bar code region whether is comprised in Xiang;If this image comprises bar code region, using this image as bar code image; If this image does not comprise bar code region, continue to catch image until the image caught can be as bar code image.
The bar code scanner that the present invention provides, aims at light source module and is movably arranged at bar code scanner Housing on, when comprising reflector space in bar code region, it is possible to adjust aim at light source module position make Retroreflective regions in the bar code image obtained is positioned at predetermined size range, and then makes retroreflective regions and bar code Staggering in region, bar code scanner can obtain barcode data according to bar code image.
The present invention is been described by by above-mentioned related embodiment, but above-described embodiment is only and implements the present invention's Example.It must be noted that, the embodiment disclosed is not limiting as the scope of the present invention.On the contrary, not The change made in departing from the spirit and scope of the present invention and retouching, all belong to the scope of patent protection of the present invention.

Claims (10)

1. a bar code processing method, for bar code scanner, this bar code scanner comprises aiming light Source module, it is characterised in that this bar code processing method comprises:
Obtaining the first bar code image, this first bar code image has the first bar code region;
Judge whether the retroreflective regions in this first bar code region exceedes predetermined size range;
If the retroreflective regions in this first bar code region exceedes this predetermined size range, obtain N and open the second bar code Image, judges reflective areas according to the retroreflective regions that this first bar code image and this N are opened in the second bar code image Territory variation tendency, N is the positive integer more than or equal to 1;
Being gradually increased if this retroreflective regions variation tendency is retroreflective regions, obtain current bar code image, this is current Bar code image has Article 3 code region, and this Article 3 code region has retroreflective regions;
According to retroreflective regions in bar code image before deserving and the relativeness in this Article 3 code region, adjust this and take aim at Quasi-optical source module, until judging in adjusting the of the current bar code image that reacquires after this aiming light source module Retroreflective regions in three bar code regions is positioned at this predetermined size range, and retroreflective regions is positioned at this preliminary dimension In the range of current bar code image as decoding image carry out processing to obtain barcode data.
2. bar code processing method as claimed in claim 1, it is characterised in that the method also comprises: if should Retroreflective regions in first bar code region not less than this predetermined size range, using this first bar code image as This decoding image carries out processing to obtain this barcode data.
3. bar code processing method as claimed in claim 1, it is characterised in that the method also comprises: if should Retroreflective regions variation tendency is that retroreflective regions is gradually reduced, then determine this N according to this retroreflective regions variation tendency One of them second bar code image opened in the second bar code image is this decoding image, enters this decoding image Row processes to obtain this barcode data.
4. bar code processing method as claimed in claim 1, it is characterised in that this bar code scanner also wraps Contain: image capture module;Close according to retroreflective regions in bar code image before deserving is relative with Article 3 code region System, the step adjusting this aiming light source module comprises:
According to retroreflective regions in bar code image before deserving and the relative position relation in this Article 3 code region, determine The movement aiming at light source pattern projection image space on this scanning object that this aiming light source module is got Direction, finely tunes this aiming light source module with this image space mobile and then instruction user according to this moving direction Moving direction according to this image space moves this bar code scanner to adjust this image capture module and to be somebody's turn to do Shooting distance between scanning object and shooting angle.
5. bar code processing method as claimed in claim 1, it is characterised in that this bar code scanner also wraps Contain: image capture module;Close according to retroreflective regions in bar code image before deserving is relative with Article 3 code region System, the step adjusting this aiming light source module comprises:
According to the retroreflective regions of bar code image before deserving and the relative position relation in this Article 3 code region, determine The change aiming at light source pattern projection imaged shape on this scanning object that this aiming light source module is got Mode, is another imaged shape according to this this aiming light source module of fine setting that shifts gears to change this imaged shape And then instruction user adjusts moving direction and the movement of this bar code scanner according to this another imaged shape Angle is to adjust the shooting distance between this image capture module and this scanning object and shooting angle.
6. bar code processing method as claimed in claim 1, it is characterised in that according to bar code image before deserving Middle retroreflective regions and the relativeness in Article 3 code region, the step adjusting this aiming light source module comprises:
The relative dimensions of the retroreflective regions in the Article 3 code region in front bar code image is deserved in assessment, determines Adjust the mobile intensity of this aiming light source module;
Calculate the retroreflective regions of bar code image before deserving and the relative position relation in Article 3 code region, to determine The moving direction of this aiming light source module;
Move intensity according to this and this moving direction adjusts this aiming light source module.
7. bar code processing method as claimed in claim 1, it is characterised in that this aiming light source module is got Aiming light source pattern be cross, rectangle or circle.
8. bar code processing method as claimed in claim 1, it is characterised in that obtain this first bar code image Step comprise:
Catch image;
Position and whether this image comprises bar code region;
If this image comprises bar code region, using this image as this first bar code image;
If this image does not comprise bar code region, return the step catching this image.
9. a bar code scanner, it is characterised in that comprise:
Aiming at light source module, be movably arranged on housing, this aiming light source module is used for getting aiming light Source pattern;
Image capture module, for obtaining the first bar code image, this first bar code image has the first bar code district Territory, if the retroreflective regions in this first bar code region exceedes predetermined size range, obtains N and opens the second bar code figure Picture, and if retroreflective regions variation tendency be that retroreflective regions is gradually increased, obtain current bar code image, deserve Front bar code image has Article 3 code region, and this Article 3 code region has retroreflective regions;
Judging unit, for judging whether the retroreflective regions in this first bar code region exceedes this preliminary dimension model Enclose;
Retroreflective regions variation tendency determines unit, for opening Article 2 according to this first bar code image and this N Retroreflective regions in code image judges this retroreflective regions variation tendency, and N is the positive integer more than or equal to 1;
Adjustment unit, for closing according to retroreflective regions in bar code image before deserving is relative with Article 3 code region System, adjusts this aiming light source module, until judging in adjusting reacquire after this aiming light source module current Retroreflective regions in the Article 3 code region of bar code image is positioned at this predetermined size range;
Bar code resolution unit, makees for retroreflective regions is positioned at the current bar code image of this predetermined size range Carry out processing to obtain barcode data for decoding image.
10. bar code scanner as claimed in claim 9, it is characterised in that this adjustment unit is according to deserving In front bar code image, retroreflective regions and the relative position relation in Article 3 code region, determine this aiming light source die The moving direction aiming at light source pattern projection image space on this scanning object that group is got, according to this Moving direction is finely tuned this aiming light source module and with this image space mobile and then is indicated user according to this imaging The moving direction of position move this bar code scanner with adjust this image capture module and this scanning object it Between shooting distance and shooting angle;Or,
This adjustment unit is according to the relative position of the retroreflective regions of bar code image before deserving with Article 3 code region Relation, determines the aiming light source pattern projection imaging shape on this scanning object that this aiming light source module is got Shifting gears of shape, according to this this aiming light source module of fine setting that shifts gears to change this imaged shape for another Imaged shape and then instruction user adjust the mobile side of this bar code scanner according to this another imaged shape To and move angle with adjust the shooting distance between this image capture module and this scanning object and shooting angle Degree;Or,
The relative chi of the retroreflective regions in the Article 3 code region in front bar code image is deserved in the assessment of this adjustment unit Very little relation, determines the mobile intensity adjusting this aiming light source module;This adjustment unit calculates bar code figure before deserving The retroreflective regions of picture and the relative position relation in Article 3 code region, to determine the movement of this aiming light source module Direction;This adjustment unit moves intensity according to this and this moving direction adjusts this aiming light source module.
CN201610278226.7A 2016-04-29 2016-04-29 Bar code processing method and bar code scanner Expired - Fee Related CN105956510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610278226.7A CN105956510B (en) 2016-04-29 2016-04-29 Bar code processing method and bar code scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610278226.7A CN105956510B (en) 2016-04-29 2016-04-29 Bar code processing method and bar code scanner

Publications (2)

Publication Number Publication Date
CN105956510A true CN105956510A (en) 2016-09-21
CN105956510B CN105956510B (en) 2018-06-26

Family

ID=56916601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610278226.7A Expired - Fee Related CN105956510B (en) 2016-04-29 2016-04-29 Bar code processing method and bar code scanner

Country Status (1)

Country Link
CN (1) CN105956510B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609448A (en) * 2017-08-28 2018-01-19 苏州佳世达电通有限公司 Bar code decoding method and bar code decoding device
CN107818283A (en) * 2017-11-02 2018-03-20 深圳天珑无线科技有限公司 Quick Response Code image pickup method, mobile terminal and computer-readable recording medium
CN108805129A (en) * 2017-08-24 2018-11-13 贵州省烟草公司贵阳市公司 Tobacco laser code assists in identifying method, apparatus and tobacco laser code identification equipment
CN111581997A (en) * 2020-04-03 2020-08-25 福建新大陆自动识别技术有限公司 Small-size bar code decoding engine
CN112464681A (en) * 2020-11-26 2021-03-09 苏州摩比信通智能系统有限公司 Graphic code scanning method, device, equipment and medium
CN112560533A (en) * 2020-12-26 2021-03-26 苏州斯普锐智能系统股份有限公司 Real-time aiming designated decoding method
CN113607419A (en) * 2021-08-02 2021-11-05 广东工业大学 Engine cylinder block electronic tag detection device and method
CN113894061A (en) * 2021-10-23 2022-01-07 绍兴文理学院元培学院 Automatic cargo sorting method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061487A (en) * 2004-08-31 2007-10-24 讯宝科技公司 System and method for aiming an optical code scanning device
CN102682264A (en) * 2011-01-31 2012-09-19 霍尼韦尔国际公司 Method and apparatus for reading optical indicia using a plurality of data sources
CN104401138A (en) * 2014-11-13 2015-03-11 苏州佳世达光电有限公司 Label printing calibration method and label printer
CN105469092A (en) * 2015-12-04 2016-04-06 苏州佳世达光电有限公司 Scanning assistance positioning system, bar code scanning device, and scanning assistance positioning method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061487A (en) * 2004-08-31 2007-10-24 讯宝科技公司 System and method for aiming an optical code scanning device
CN102682264A (en) * 2011-01-31 2012-09-19 霍尼韦尔国际公司 Method and apparatus for reading optical indicia using a plurality of data sources
CN104401138A (en) * 2014-11-13 2015-03-11 苏州佳世达光电有限公司 Label printing calibration method and label printer
CN105469092A (en) * 2015-12-04 2016-04-06 苏州佳世达光电有限公司 Scanning assistance positioning system, bar code scanning device, and scanning assistance positioning method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805129A (en) * 2017-08-24 2018-11-13 贵州省烟草公司贵阳市公司 Tobacco laser code assists in identifying method, apparatus and tobacco laser code identification equipment
CN108805129B (en) * 2017-08-24 2020-03-13 贵州省烟草公司贵阳市公司 Tobacco laser code auxiliary identification method and device and tobacco laser code identification equipment
CN107609448A (en) * 2017-08-28 2018-01-19 苏州佳世达电通有限公司 Bar code decoding method and bar code decoding device
CN107609448B (en) * 2017-08-28 2020-10-20 苏州佳世达电通有限公司 Bar code decoding method and bar code decoding device
CN107818283A (en) * 2017-11-02 2018-03-20 深圳天珑无线科技有限公司 Quick Response Code image pickup method, mobile terminal and computer-readable recording medium
CN111581997A (en) * 2020-04-03 2020-08-25 福建新大陆自动识别技术有限公司 Small-size bar code decoding engine
CN111581997B (en) * 2020-04-03 2022-04-19 福建新大陆自动识别技术有限公司 Small-size bar code decoding device
CN112464681A (en) * 2020-11-26 2021-03-09 苏州摩比信通智能系统有限公司 Graphic code scanning method, device, equipment and medium
CN112464681B (en) * 2020-11-26 2024-04-30 苏州摩比信通智能系统有限公司 Graphic code scanning method, device, equipment and medium
CN112560533A (en) * 2020-12-26 2021-03-26 苏州斯普锐智能系统股份有限公司 Real-time aiming designated decoding method
CN113607419A (en) * 2021-08-02 2021-11-05 广东工业大学 Engine cylinder block electronic tag detection device and method
CN113894061A (en) * 2021-10-23 2022-01-07 绍兴文理学院元培学院 Automatic cargo sorting method and system

Also Published As

Publication number Publication date
CN105956510B (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN105956510A (en) Bar code processing method and bar code scanning device
US9135766B2 (en) Method of identifying a counterfeit bill using a portable terminal
CN105205439B (en) Method for calculating area of fingerprint overlapping region and electronic device
JP4558043B2 (en) System and method for aiming an optical code scanning device
CN104067605B (en) Filming apparatus and captured image processing system
EP3324329B1 (en) Reader for optical indicia presented under two or more imaging conditions within a single frame time
KR101865415B1 (en) Method for differentiation forgery by mobile terminal device
US20160086007A1 (en) System and method to manipulate an image
US7946491B2 (en) Method, apparatus, and computer program product for providing a camera barcode reader
CN101088104B (en) Electronic device and method in an electronic device for processing image data
KR101237158B1 (en) Image processing system and object of image capturing used therewith
US7648072B2 (en) Two-dimensional code detection system and two-dimensional code detection program
CN104006762B (en) Obtain the methods, devices and systems of object dimensional information
US20140001267A1 (en) Indicia reading terminal with non-uniform magnification
EP3736679A1 (en) Image display system, information processing apparatus, image display method, image display program, image processing apparatus, image processing method, and image processing program
DE202014011492U1 (en) Mobile device with improved user interface for reading code symbols
JP4904426B1 (en) Image processing system and imaging object used therefor
CN107423652A (en) System and method for document process
US20080069398A1 (en) Code image processing method
CN107038794A (en) A kind of method, device, equipment and the storage medium of the identification note true and false
CN104637047A (en) Image processing method and device
US8251292B2 (en) Processing method of barcode and apparatus thereof
CN111751279A (en) Optical image capturing parameter adjusting method and sensing device
TW522715B (en) Image processing method and contactless image input apparatus utilizing the method
JP2008090796A (en) Reader/writer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180626

Termination date: 20190429