It is a kind of to improve the method that on-line continuous gather bar code successfully decoded rateTechnical field
The present invention relates to decoding technique field, and in particular to a kind of raising on-line continuous gather the side of bar code successfully decoded rateMethod.
Background technology
Bar code was proposed first in 1949 by the N.T.Woodland in the U.S..In recent years, with computer applicationContinuous popularization, the application of bar code obtained very big development.Bar code can mark the producing country of commodity, manufacturing firm,The information such as trade name, date of manufacture, book classification number, mail start-stop place, classification, date, thus in commodity circulation, booksMany fields such as management, PTT, banking system are obtained for and are widely applied.
The product or packaging material of bearing bar code (bar codes of one-dimension code, Quick Response Code or other code systems), based on market and productProduct demand, it is necessary in the motion process for manufacturing link or streamline Product transport online acquisition bar code information.Current pinThe technology for being gathered to bar code information and being decoded mainly has two kinds:
(1) barcode scanner:The method directly reads the bar code information on product and according to the decoding time set in advanceDecoded, decoded result to specified address is exported if successful acquisition, failure signal is exported if failure is gathered.
(2) OCR bar code readings:The image transmitting taken pictures to the bar code on product and will photographed is to processor (as calculatedMachine), the image for obtaining is decoded according to the decoding time of setting by processor, decoded result is exported if successful acquisitionTo address is specified, failure signal is exported if failure is gathered.
But, inventor has found that existing bar code decoding technology is when in use, however it remains many defects, concrete reason existsIn:
First, in the setting of decoding time, processor must provide the knot of success or failure within the decoding time of settingReally, the decoding time is more long, and successfully decoded probability is bigger, but the decoding overlong time for setting, decoding speed can be caused excessively slow, solveCode efficiency is too low.
Secondly as be online acquisition, so be collected in first bar code and started into decoding ring section, it is extremely nextTime when bar code collection period starts is restricted, and it is flexible relatively low, and decoding mechanism compares fixed single.
Again, the power that is decoded into of bar code is easily influenceed that (bar code grade higher, and the decoding time gets over by bar code quality gradeIt is short;Lower grade, decodes world-class more long);Meanwhile, in gatherer process, the quality of bar code collection image is also easily subject to existingThe influence of the environmental factors such as field light, shake, causes IMAQ Quality Down, influences decoding efficiency.
Finally, bar code gathers unsuccessful product, generally to be regarded as defective products, and so, due to gathering, bar code is unsuccessful to be ledThe defective products rate of cause can rise, to production activity be normally carried out bring misleading with the accurate judgement of product percent of pass.
Therefore, the present invention provides a kind of method for improving on-line continuous collection bar code successfully decoded rate, solves prior artThe bar code decoding of presence is less efficient, it is not high to be decoded into power, easily to production bring the deficiency and defect that qualification rate judges by accident.
The content of the invention
The purpose of the present invention is that:The method that on-line continuous gather bar code successfully decoded rate is improved for a kind of, is solved existingWith the presence of technology bar code decoding it is less efficient, be decoded into power it is not high, to production bring qualification rate judge by accident deficiency and defect.
To achieve these goals, the technical solution adopted by the present invention is:
A kind of to improve the method that on-line continuous gather bar code successfully decoded rate, methods described passes through OCR technique on-line continuousPicture collection is carried out to bar code, the bar code picture transfer that will be gathered carries out decoding process to processor by processor:If being decoded intoWork(, then be transferred to specified address by decoded result;If decoding failure, the bar code picture for decoding failure is preserved, and rememberThe corresponding transmission address of bar code of record decoding failure, is then decoded and manually decoded again by software program, each bar code solutionSuccessfully result is transferred back into its corresponding address to code, and the bar code picture of previous step decoding failure is in subsequent decoding successIt is deleted afterwards;
Methods described specifically includes following steps:
(1) first, the decoding time to the processor set, determine the decoding time of single bar code;
(2) secondly, bar code is scanned online by the barcode scanner and is taken pictures, gather bar code picture, and will adoptThe bar code picture transfer of collection is to the processor;
(3) information of bar code picture is decoded according to the decoding time of setting by the processor, if successfully decoded,Decoded result is then transferred to the transmission address specified;If decoding failure, the bar code picture to decoding failure is preserved, andRecord the corresponding transmission address of bar code that the picture is included;
(4) the bar code picture using the software program again to decoding failure is decoded, if successfully decoded, will solutionCode result is transferred back into the corresponding transmission address of the bar code, while the bar code picture of decoding failure is deleted;If decoding failure,Then the bar code picture of decoding failure is continued to preserve, and record the corresponding transmission address of bar code that the picture is included;
(5) by the bar code picture of decoding failure in manual type opening steps (4), by corresponding to the bar code on the picturePlain code be manually entered in the input frame of the software program, complete artificial decoding;
(6) after after artificial successfully decoded, the decoded result of bar code picture is transferred back into the transmission ground corresponding to the bar codeLocation, while deleting the picture, completes the decoding effort of final bar code.
Preferably, the bar code includes the bar code of one-dimension code, Quick Response Code and other code systems, makes decoding ranges of the inventionIt is broader.
Preferably, the processor can for computer or other, man-machine interactive operation and system can be facilitated to control.
Preferably, the software program is installed on the processor, is conducive to the visualization of the software to open and operateOperation.
By adopting the above-described technical solution, the beneficial effects of the invention are as follows:
First, on-line continuous are improve by the present invention and gathers bar code (one-dimension code, Quick Response Code or other code system bar codes) solutionCode success rate;Secondly, solve the problems, such as to carry out the rising of defective products rate because being decoded into power low strap, it is ensured that sentence by decoding processDetermine the accuracy rate of defective products rate;Again, the present invention can effectively solve the problem that because decoding time restriction and bar code quality is not good bringsInfluence be decoded into the problem of power, realize effective connected applications of machine decoding and artificial decoding.
Brief description of the drawings
Fig. 1 is decoding effort flow chart of the invention;
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 inventionIn accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment isA 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 artThe every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Embodiment 1, as shown in Figure 1:
A kind of to improve the method that on-line continuous gather bar code successfully decoded rate, methods described passes through on-line continuous acquisition modePicture collection is carried out to bar code, the bar code picture transfer that will be gathered carries out decoding process to processor by processor:If being decoded intoWork(, then delete the bar code picture and decoded result be transferred into specified address;If decoding failure, the bar code figure of failure will be decodedPiece is preserved, and carrying recorded decoding failure the corresponding transmission address of bar code, then decoded again by software program and manuallyDecoding, each successful result of bar code decoding is transferred back into its corresponding address, and the bar code picture of successfully decoded is deletedRemove;
Methods described specifically includes following steps:
(1) first, the decoding time to the processor set, determine the decoding time of the single bar code;
(2) secondly, continuous scanning is carried out to bar code online by the barcode scanner to take pictures, gathers bar code picture, andThe bar code picture transfer that will be gathered is to the processor;
(3) information of the bar code picture is decoded according to the decoding time of setting by the processor, if decodingSuccess, then decoded result is transferred to the transmission address specified;If decoding failure, the bar code picture to decoding failure entersRow is preserved, and records the corresponding transmission address of bar code that the picture is included;
(4) the bar code picture using the software program again to decoding failure is decoded, if successfully decoded,Decoded result is transferred back into the corresponding transmission address of the bar code, while the bar code picture of decoding failure is deleted;If solutionCode failure, then continue to preserve, and record the corresponding biography of bar code that the picture is included by the bar code picture of decoding failureDefeated address;
(5) by the bar code picture of decoding failure in manual type opening steps (4), by the plain code letter on the pictureBreath is manually entered in the input frame of the software program, completes artificial decoding;
(6) after after artificial successfully decoded, the decoded result of the bar code picture is transferred back into the corresponding transmission of the bar codeAddress, while deleting the picture, completes the decoding effort of final bar code.
Preferably, the bar code includes the bar code of one-dimension code, Quick Response Code and other code systems, makes decoding ranges of the inventionIt is broader.
Preferably, the processor can for computer or other, man-machine interactive operation and system can be facilitated to control.
Preferably, the software program is installed on the processor, is conducive to the visualization of the software to open and operateOperation.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is anyThose familiar with the art can readily occur in change or replacement in the technical scope of present disclosure, should all containCover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.