CN110427794A - The method, apparatus of two dimensional code, electronic equipment and medium for identification - Google Patents

The method, apparatus of two dimensional code, electronic equipment and medium for identification Download PDF

Info

Publication number
CN110427794A
CN110427794A CN201910706785.7A CN201910706785A CN110427794A CN 110427794 A CN110427794 A CN 110427794A CN 201910706785 A CN201910706785 A CN 201910706785A CN 110427794 A CN110427794 A CN 110427794A
Authority
CN
China
Prior art keywords
position sensing
images
recognized
sensing point
compression 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.)
Pending
Application number
CN201910706785.7A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910706785.7A priority Critical patent/CN110427794A/en
Publication of CN110427794A publication Critical patent/CN110427794A/en
Pending legal-status Critical Current

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/14172D bar codes
    • 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/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image
    • 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/1495Methods for optical code recognition the method including an image compression step

Abstract

Present disclose provides a kind of methods of two dimensional code for identification, including obtaining images to be recognized, images to be recognized includes multiple pixels, by the scanning for executing at least three directions different from each other to images to be recognized, identify at least one position sensing point in images to be recognized, in response to the position sensing point identified in images to be recognized that fails, images to be recognized is compressed to obtain the first compression image, and at least one position sensing point in identification the first compression image, to identify the two dimensional code in the first compression image.Wherein, the angle between any two direction at least three directions is that not 180 degrees and at least one position sensing point are determined to be at least three different directions with predetermined characteristic.The disclosure additionally provides a kind of device of two dimensional code, a kind of electronic equipment and a kind of computer readable storage medium for identification.

Description

The method, apparatus of two dimensional code, electronic equipment and medium for identification
Technical field
This disclosure relates to a kind of method, apparatus of two dimensional code, electronic equipment and medium for identification.
Background technique
A kind of tool of the two dimensional code as equipment identification easy to remove, can carry bulk information, be widely used work In industry, many scenes of life.However, the inventors discovered that, there is identification effect during identifying two dimensional code in the relevant technologies The problem of rate and accuracy deficiency.
Summary of the invention
An aspect of this disclosure provides a kind of method of two dimensional code for identification, including obtains images to be recognized, institute Stating images to be recognized includes multiple pixels, by executing sweeping at least three directions different from each other to the images to be recognized It retouches, identifies at least one position sensing point in the images to be recognized, identify the images to be recognized in response to failing In position sensing point, compress the images to be recognized to obtain the first compression image, and identification the first compression image In at least one position sensing point, with identify it is described first compression image in two dimensional code.Wherein, at least three direction In any two direction between angle be not 180 degrees and at least one described position sensing point be determined to be in it is described There is predetermined characteristic at least three different directions.
Optionally, if the method also includes at least one position spies identified in the first compression image that fails Measuring point compresses the first compression image further then to obtain the second compression image, and identifies in the second compression image At least one position sensing point, so as to identify it is described first compression image in two dimensional code.
Optionally, the method also includes the compressed numbers of the determination images to be recognized, and if described being compressed Number be more than frequency threshold value, then stop the recognition result for identifying and exporting recognition failures.
Optionally, the method also includes the areas first kind pixel Zhan Gai in the region of the identified position sensing point of determination The ratio of whole pixels ignores the position sensing point if the ratio is unsatisfactory for specified conditions in domain.
Another aspect of the disclosure provides a kind of device of two dimensional code for identification, including obtains module, the first knowledge Other module, the first compression module and the second identification module.Module is obtained, for obtaining images to be recognized, the figure to be identified As including multiple pixels.First identification module, for by executing different from each other at least three to the images to be recognized The scanning in direction identifies at least one position sensing point in the images to be recognized.First compression module, in response to not It can successfully identify the position sensing point in the images to be recognized, compress the images to be recognized to obtain the first compression image. Second identification module, described first compresses at least one position sensing point in image for identification, to identify first pressure Two dimensional code in contract drawing picture.Wherein, the angle between any two direction at least three direction is not 180 degrees, with And at least one described position sensing point is determined to be at least three different directions with predetermined characteristic.
Optionally, described device further includes the second compression module, if identifying the first compression image for failing In at least one position sensing point, then compress the first compression image further to obtain the second compression image, and identify At least one position sensing point in the second compression image, to identify the two dimensional code in the first compression image.
Optionally, described device further includes the first determining module and stopping modular.First determining module, described in determining The compressed number of images to be recognized.Stopping modular stops identifying if being more than specific threshold for the compressed number And export the recognition result of recognition failures.
Optionally, described device further includes the second determining module and ignores module.Second determining module has been known for determination First kind pixel accounts for the ratio of whole pixels in the region in the region of other position sensing point.Ignore module, if for The ratio is unsatisfactory for specified conditions, then ignores the position sensing point.
Another aspect of the disclosure provides a kind of electronic equipment, including processor and memory, for storing one A or multiple computer-readable instructions, wherein when one or more of computer-readable instructions are by least one described processing When device executes, so that the processor executes method as described above.
Another aspect of the disclosure provides a kind of computer-readable medium, is stored thereon with computer-readable instruction, The instruction, which is performed, makes processor execute method as described above.
Another aspect of the present disclosure provides a kind of computer program, and the computer program, which includes that computer is executable, to be referred to It enables, described instruction is when executed for realizing method as described above.
Detailed description of the invention
By referring to the drawings to the description of the embodiment of the present disclosure, the above-mentioned and other purposes of the disclosure, feature and Advantage will be apparent from, in the accompanying drawings:
Fig. 1 diagrammatically illustrates the schematic diagram of the two dimensional code according to the embodiment of the present disclosure;
It is schematic diagram that Fig. 2, which is diagrammatically illustrated according to the position sensing point of the two dimensional code of the embodiment of the present disclosure,;
Fig. 3 diagrammatically illustrates the schematic diagram of the two dimensional code regional area according to the embodiment of the present disclosure;
Fig. 4 diagrammatically illustrates the schematic diagram of the position sensing point according to the two dimensional code of another embodiment of the disclosure;
Fig. 5 diagrammatically illustrates the flow chart of the method for the two dimensional code for identification according to the embodiment of the present disclosure;
Fig. 6 and Fig. 7 diagrammatically illustrates the schematic diagram of the method for the two dimensional code for identification according to the embodiment of the present disclosure;
Fig. 8 diagrammatically illustrates the block diagram of the device of the two dimensional code for identification according to the embodiment of the present disclosure;And
Fig. 9 diagrammatically illustrates the method and apparatus of two dimensional code for identification of being adapted for carrying out according to the embodiment of the present disclosure The block diagram of computer system.
Specific embodiment
Hereinafter, will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are only exemplary , and it is not intended to limit the scope of the present disclosure.In the following detailed description, to elaborate many specific thin convenient for explaining Section is to provide the comprehensive understanding to the embodiment of the present disclosure.It may be evident, however, that one or more embodiments are not having these specific thin It can also be carried out in the case where section.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoid Unnecessarily obscure the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.It uses herein The terms "include", "comprise" etc. show the presence of the feature, step, operation and/or component, but it is not excluded that in the presence of Or add other one or more features, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understood Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Meaning, without that should be explained with idealization or excessively mechanical mode.
It, in general should be according to this using statement as " at least one in A, B and C etc. " is similar to Field technical staff is generally understood the meaning of the statement to make an explanation (for example, " system at least one in A, B and C " Should include but is not limited to individually with A, individually with B, individually with C, with A and B, with A and C, have B and C, and/or System etc. with A, B, C).Using statement as " at least one in A, B or C etc. " is similar to, generally come Saying be generally understood the meaning of the statement according to those skilled in the art to make an explanation (for example, " having in A, B or C at least One system " should include but is not limited to individually with A, individually with B, individually with C, with A and B, have A and C, have B and C, and/or the system with A, B, C etc.).It should also be understood by those skilled in the art that substantially arbitrarily indicating two or more The adversative conjunction and/or phrase of optional project shall be construed as either in specification, claims or attached drawing A possibility that giving including one of these projects, either one or two projects of these projects.For example, phrase " A or B " should A possibility that being understood to include " A " or " B " or " A and B ".
Fig. 1 diagrammatically illustrates the schematic diagram of the two dimensional code according to the embodiment of the present disclosure.
As shown in Figure 1, the two dimensional code may include position sensing figure 110, positioning pattern 120 and correction graph 130.It should A little figures are used to position the position of two dimensional code, to identify to two dimensional code.Gray area shown in FIG. 1 is for recording number According to data area.The point of position sensing described in the embodiment of the present disclosure for example can be position sensing figure illustrated in Figure 1 110 or correction graph 130.
It is schematic diagram that Fig. 2, which is diagrammatically illustrated according to the position sensing point of the two dimensional code of the embodiment of the present disclosure,.
As shown in Fig. 2, a common position sensing point may include the square black of peripheral 7 length unit side lengths Frame, the square white box of 5, middle part length unit side length, and 3 × 3 internal square black region.
When scanning the position sensing point, usually scans, obtain in two directions respectively in the horizontal and vertical directions The distribution of lengths of color is all satisfied 1: 1: 3: 1: 1 characteristic point, determines it as position sensing point.As shown in Fig. 2, this 1: 1: 3: 1: 1 feature for example can be in the horizontal direction, and the arrangement of color is black for Black-White-Black-White-, and the phase of each section of length Reduced value is 1: 1: 3: 1: 1.
However, in some cases, there may be the characteristic points for meeting above-mentioned requirements for the data area in two dimensional code, thus Interfere the positioning and identification of two dimensional code.As shown in figure 3, the region from horizontal direction with scanned on vertical direction, equally meet 1: 1 : 3: 1: 1 feature, thus be easy the region recognition to be position sensing point.
On the other hand, it is also possible to occur picture quality it is poor and the case where cause position sensing point to be difficult to.For example, In When the two dimensional code for some smooth surfaces of taking pictures, locally certain positions are likely to occur the interference of interference ripple to two dimensional code, can not determine the position Set is black or white.As shown in figure 4, there is a region 410 not clear enough in the position sensing point, it is difficult to identified.
Embodiment of the disclosure provides a kind of method of two dimensional code for identification, including obtains images to be recognized, wait know Other image includes multiple pixels, by executing the scanning at least three directions different from each other to images to be recognized, identification to At least one position sensing point in image is identified, in response to the position sensing point identified in images to be recognized that fails, pressure Contracting images to be recognized is to obtain the first compression image, and at least one position sensing point in image is compressed in identification first, with Two dimensional code in identification the first compression image.Wherein, the angle between any two direction at least three directions is non-180 Degree and at least one position sensing point, which are determined to be at least three different directions, has predetermined characteristic.This method can be with Effectively improve the success rate and accuracy rate of two dimensional code identification.
Fig. 5 diagrammatically illustrates the flow chart of the method for the two dimensional code for identification according to the embodiment of the present disclosure.
As shown in figure 5, this method includes operation S510~S550.
In operation S510, images to be recognized is obtained, images to be recognized includes multiple pixels.
For example, can acquire image by the camera of mobile phone or dedicated barcode scanning equipment, collected image includes more A pixel.
It is identified by executing the scanning at least three directions different from each other to images to be recognized wait know in operation S520 At least one position sensing point in other image.Wherein, the angle between any two direction at least three directions is non- 180 degree and at least one position sensing point, which are determined to be at least three different directions, has predetermined characteristic.
According to the embodiment of the present disclosure, which for example may include that first direction and the first direction hang down Straight second direction and at least one of the first direction or second direction in the third party at 45 degree of angles or 135 degree of angles To.Certainly, it is only illustrated by taking specific three directions as an example herein, at least three directions of the embodiment of the present disclosure, which can be, appoints Why not Tong three directions.According to the embodiment of the present disclosure, scheduled feature can be scanned respectively along horizontal and vertical direction, may be used also To scan along with horizontal or vertical direction in the third direction at 45 degree of angles, which for example can be lower-left to the side of upper right To (or upper right to the direction of lower-left), it is also possible to direction (or bottom right to the direction of upper left) left to bottom right.It can also be by It scans according to four direction as above-mentioned first direction, second direction and two kinds of slanting third directions, further mentions respectively The accuracy of height identification.
According to the embodiment of the present disclosure, at least one described position sensing point, which is determined to be at least three direction, to be had There is identical predetermined characteristic.Referring to FIG. 2, as shown in Fig. 2, the position sensing point can be all satisfied 1 at least three directions: 1: 3: 1: 1 feature.
In other embodiments of the disclosure, the feature in three directions can be different.For example, at least one described position Sensing point can be determined that predetermined characteristic having the same in said two directions, and have in addition on third direction Feature.According to the embodiment of the present disclosure, described two directions for example may include first direction and vertical with the first direction Second direction, alternatively, described two directions include first direction and with the first direction at 45 degree or 135 degree angles second Direction, and the feature of third direction is different.
However, in some cases, since the picture of scanning is unintelligible, may cause reading data failure.For example, clapping According to some smooth surfaces two dimensional code when, locally certain positions are likely to occur the interference of interference ripple to two dimensional code, can not determine the position It is black or white.
Images to be recognized is compressed in response to the position sensing point identified in images to be recognized that fails in operation S530 To obtain the first compression image.
According to the embodiment of the present disclosure, the compression images to be recognized includes according to predetermined to obtain the first compression image Images to be recognized described in scale compression makes the pixel quantity in the first compression image less than institute to obtain the first compression image State the pixel quantity in images to be recognized.The compression process is alternatively referred to as the conversion of image, and the image after conversion is the first pressure Contract drawing picture.
For example, 2 × 2 adjacent four pixels of position can be processed by a pixel by image procossing, or 3 × 3 adjacent nine pixels of position can be processed into a pixel by person, and the side length of two dimensional code contracts to reach The small length in pixels for arriving half or one third.The treatment process can for example use adjacent four pixels or adjacent Pixel value of the average value of the pixel value of 3 × 3 nine pixels as new pixel.Those skilled in the art can manage Solution, can also be using the statistical information of the pixel value of such as multiple pixels of four pixels or nine pixels as new picture The pixel value of vegetarian refreshments, such as probability density function etc., as long as new pixel value is the feature that can characterize pixel value in the region .
Fig. 6 and Fig. 7 diagrammatically illustrates the schematic diagram of the method for the two dimensional code for identification according to the embodiment of the present disclosure.
As is seen in fig. 6 or fig. 7, a region 610 or 710 of two dimensional code can not be identified due to picture quality, be led to After the method for crossing the embodiment of the present disclosure is converted, the corresponding region 620 or 720 of the two dimensional code after conversion is readily identified, thus Improve recognition success rate.In the embodiment of meaning shown in Fig. 6, which may finally be identified as position sensing point, and Fig. 7 The image in embodiment illustrated then is identified as not being position sensing point.
Referring back to Fig. 5.At least one position sensing point in operation S540, identification the first compression image, with identification Two dimensional code in first compression image.After recognizing position sensing point, it can be identified in image by known method Two dimensional code.
It can also include identifying in the first compression image extremely if failing according to the method for the embodiment of the present disclosure A few position sensing point compresses the first compression image further then to obtain the second compression image, and identifies described the At least one position sensing point in two compression images, to identify the two dimensional code in the first compression image.
Can also include according to the method for the embodiment of the present disclosure determine the compressed number of the images to be recognized, and If the compressed number is more than frequency threshold value, stop the recognition result for identifying and exporting recognition failures.For example, can set Level pressure contracting number is 5 times, if cannot still identify after compression 5 times, directly returns to the recognition result of recognition failures, is conducive to improve Treatment effeciency.It will be understood by those skilled in the art that above-mentioned compression number is merely illustrative, those skilled in the art can be according to place The compromise between efficiency and calculation amount is managed to set different compression numbers.
It can also include the first kind in the region for determine identified position sensing point according to the method for the embodiment of the present disclosure The ratio that pixel accounts for whole pixels in the region ignores the position sensing if the ratio is unsatisfactory for specified conditions Point.Other than scanning in one direction, the area accounting between the different colours in a region can also be detected.Example Such as, when being directed to the scanning of position sensing point as schematically shown in Figure 2, it can further confirm that black and the area accounting of white is No about 33: 16.An error range can be set, if being identified as the first pixel of the first color and being identified as the The accounting of second pixel of second colors meets error range compared with 33: 16 characteristic value, it may be determined that the region is a position Set sensing point.This method is conducive to further increase the recognition accuracy of position sensing point.
Based on the same inventive concept, the disclosure additionally provides a kind of device of two dimensional code for identification, referring to Fig. 8 pairs The device of the two dimensional code for identification of the embodiment of the present disclosure is illustrated.
Fig. 8 diagrammatically illustrates the block diagram of the device 800 of the two dimensional code for identification according to the embodiment of the present disclosure.
As shown in figure 8, the device 800 include obtain module 810, the first identification module 820, the first compression module 830 with And second identification module 840.
Module 810 is obtained, such as executes the operation S510 described above with reference to Fig. 5, it is described for obtaining images to be recognized Images to be recognized includes multiple pixels.
First identification module 820, such as execute the operation S520 that describes above with reference to Fig. 5, for by described wait know Other image executes the scanning at least three directions different from each other, identifies at least one position sensing in the images to be recognized Point.
First compression module 830, such as the operation S530 described above with reference to Fig. 5 is executed, in response to failing It identifies the position sensing point in the images to be recognized, compresses the images to be recognized to obtain the first compression image.
Second identification module 840, such as the operation S540 described above with reference to Fig. 5 is executed, it described first presses for identification At least one position sensing point in contract drawing picture, to identify the two dimensional code in the first compression image.
Wherein, the angle between any two direction at least three direction be not 180 degrees and it is described at least One position sensing point, which is determined to be at least three different directions, has predetermined characteristic.
According to the embodiment of the present disclosure, which can also include the second compression module, if identifying institute for failing At least one position sensing point in the first compression image is stated, then compresses the first compression image further to obtain the second pressure Contract drawing picture, and identify at least one position sensing point in the second compression image, to identify the first compression image In two dimensional code.
According to the embodiment of the present disclosure, which can also include the first determining module and stopping modular.First determines mould Block, for determining the compressed number of the images to be recognized.Stopping modular, if being more than specific for the compressed number Threshold value then stops the recognition result for identifying and exporting recognition failures.
According to the embodiment of the present disclosure, which can also include the second determining module and ignore module.Second determines mould Block, first kind pixel accounts for the ratio of whole pixels in the region in the region for determining identified position sensing point. Ignore module, if being unsatisfactory for specified conditions for the ratio, ignores the position sensing point.
It is module according to an embodiment of the present disclosure, submodule, unit, any number of or in which any more in subelement A at least partly function can be realized in a module.It is single according to the module of the embodiment of the present disclosure, submodule, unit, son Any one or more in member can be split into multiple modules to realize.According to the module of the embodiment of the present disclosure, submodule, Any one or more in unit, subelement can at least be implemented partly as hardware circuit, such as field programmable gate Array (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, dedicated integrated electricity Road (ASIC), or can be by the hardware or firmware for any other rational method for integrate or encapsulate to circuit come real Show, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several appropriately combined next reality It is existing.Alternatively, can be at least by part according to one or more of the module of the embodiment of the present disclosure, submodule, unit, subelement Ground is embodied as computer program module, when the computer program module is run, can execute corresponding function.
For example, obtaining module 810, the first identification module 820, the first compression module 830, the second identification module 840, second Compression module, the first determining module, stopping modular, the second determining module and that ignores in module any number of may be incorporated in It is realized in one module or any one module therein can be split into multiple modules.Alternatively, one in these modules At least partly function of a or multiple modules can be combined at least partly function of other modules, and real in a module It is existing.In accordance with an embodiment of the present disclosure, module 810, the first identification module 820, the first compression module 830, second are obtained and identifies mould Block 840, the second compression module, the first determining module, stopping modular, the second determining module and at least one of ignore module Hardware circuit, such as field programmable gate array (FPGA), programmable logic array can be at least implemented partly as (PLA), system on chip, the system on substrate, the system in encapsulation, specific integrated circuit (ASIC), or can be by circuit The hardware such as any other rational method that is integrated or encapsulating or firmware are carried out to realize, or with software, hardware and firmware three Any one in kind of implementation several appropriately combined is realized with wherein any.Know alternatively, obtaining module 810, first Other module 820, the first compression module 830, the second identification module 840, the second compression module, the first determining module, stopping modular, Second determining module and at least one of ignore module and can at least be implemented partly as computer program module, when this When computer program module is run, corresponding function can be executed.
Fig. 9 diagrammatically illustrates the method and apparatus of two dimensional code for identification of being adapted for carrying out according to the embodiment of the present disclosure The block diagram of computer system.Computer system shown in Fig. 9 is only an example, should not be to the function of the embodiment of the present disclosure Any restrictions are brought with use scope.Computer system shown in Fig. 9 can be implemented as server cluster, including at least one Manage device (such as processor 901) and at least one processor (such as storage section 908).
As shown in figure 9, include processor 901 according to the computer system 900 of the embodiment of the present disclosure, it can be according to storage It is loaded into random access storage device (RAM) 903 in the program in read-only memory (ROM) 902 or from storage section 908 Program and execute various movements appropriate and processing.Processor 901 for example may include general purpose microprocessor (such as CPU), refer to Enable set processor and/or related chip group and/or special microprocessor (for example, specific integrated circuit (ASIC)), etc..Processing Device 901 can also include the onboard storage device for caching purposes.Processor 901 may include for executing according to disclosure reality Apply single treatment unit either multiple processing units of the different movements of the method flow of example.
In RAM 903, it is stored with system 900 and operates required various programs and data.Processor 901, ROM 902 with And RAM 903 is connected with each other by bus 904.Processor 901 is held by executing the program in ROM 902 and/or RAM 903 The various operations gone according to the method flow of the embodiment of the present disclosure.It is noted that described program also can store except ROM 902 In one or more memories other than RAM 903.Processor 901 can also be stored in one or more of by execution Program in memory executes the various operations of the method flow according to the embodiment of the present disclosure.
In accordance with an embodiment of the present disclosure, system 900 can also include input/output (I/O) interface 905, input/output (I/O) interface 905 is also connected to bus 904.System 900 can also include be connected to I/O interface 905 with one in lower component Item is multinomial: the importation 906 including keyboard, mouse etc.;Including such as cathode-ray tube (CRT), liquid crystal display (LCD) Deng and loudspeaker etc. output par, c 907;Storage section 908 including hard disk etc.;And including such as LAN card, modulatedemodulate Adjust the communications portion 909 of the network interface card of device etc..Communications portion 909 executes communication process via the network of such as internet. Driver 910 is also connected to I/O interface 905 as needed.Detachable media 911, such as disk, CD, magneto-optic disk, semiconductor Memory etc. is mounted on as needed on driver 910, in order to be pacified as needed from the computer program read thereon It is packed into storage section 908.
In accordance with an embodiment of the present disclosure, computer software journey may be implemented as according to the method flow of the embodiment of the present disclosure Sequence.For example, embodiment of the disclosure includes a kind of computer program product comprising carry meter on a computer-readable medium Calculation machine program, the computer program include the program code for method shown in execution flow chart.In such embodiments, The computer program can be downloaded and installed from network by communications portion 909, and/or be pacified from detachable media 911 Dress.When the computer program is executed by processor 901, the above-mentioned function of limiting in the system of the embodiment of the present disclosure is executed.Root According to embodiment of the disclosure, system as described above, unit, module, unit etc. can by computer program module come It realizes.
The disclosure additionally provides a kind of computer-readable medium, which, which can be in above-described embodiment, retouches Included in the equipment/device/system stated;It is also possible to individualism, and without in the supplying equipment/device/system.On It states computer-readable medium and carries one or more program, when said one or multiple programs are performed, realize root According to the method for the embodiment of the present disclosure.
In accordance with an embodiment of the present disclosure, computer-readable medium can be computer-readable signal media or computer can Read storage medium either the two any combination.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wires Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In the disclosure, computer readable storage medium can be it is any include or storage program Tangible medium, which can be commanded execution system, device or device use or in connection.And in this public affairs In opening, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium Sequence code can transmit with any suitable medium, including but not limited to: wireless, wired, optical cable, radiofrequency signal etc., or Above-mentioned any appropriate combination.
For example, in accordance with an embodiment of the present disclosure, computer-readable medium may include above-described ROM 902 and/or One or more memories other than RAM 903 and/or ROM 902 and RAM 903.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
It will be understood by those skilled in the art that the feature recorded in each embodiment and/or claim of the disclosure can To carry out multiple combinations or/or combination, even if such combination or combination are not expressly recited in the disclosure.Particularly, In In the case where not departing from disclosure spirit or teaching, the feature recorded in each embodiment and/or claim of the disclosure can To carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present disclosure.
Embodiment of the disclosure is described above.But the purpose that these embodiments are merely to illustrate that, and It is not intended to limit the scope of the present disclosure.Although respectively describing each embodiment above, but it is not intended that each reality Use cannot be advantageously combined by applying the measure in example.The scope of the present disclosure is defined by the appended claims and the equivalents thereof.It does not take off From the scope of the present disclosure, those skilled in the art can make a variety of alternatives and modifications, these alternatives and modifications should all fall in this Within scope of disclosure.

Claims (10)

1. a kind of method of two dimensional code for identification, comprising:
Images to be recognized is obtained, the images to be recognized includes multiple pixels;
By executing the scanning at least three directions different from each other to the images to be recognized, identify in the images to be recognized At least one position sensing point;
In response to the position sensing point identified in the images to be recognized that fails, the images to be recognized is compressed to obtain One compression image;And
At least one position sensing point in the first compression image is identified, to identify the two dimension in the first compression image Code,
Wherein, the angle between any two direction at least three direction be not 180 degrees and it is described at least one Position sensing point, which is determined to be at least three different directions, has predetermined characteristic.
2. according to the method described in claim 1, further include:
If failing at least one the position sensing point identified in the first compression image, described first is further compressed Image is compressed to obtain the second compression image, and identifies at least one position sensing point in the second compression image, so as to Identify the two dimensional code in the first compression image.
3. according to the method described in claim 2, further include:
Determine the compressed number of the images to be recognized;And
If the compressed number is more than frequency threshold value, stop the recognition result for identifying and exporting recognition failures.
4. according to the method described in claim 1, further include:
Determine that first kind pixel in the region of identified position sensing point accounts for the ratio of whole pixels in the region;
If the ratio is unsatisfactory for specified conditions, ignore the position sensing point.
5. a kind of device of two dimensional code for identification, comprising:
Module is obtained, for obtaining images to be recognized, the images to be recognized includes multiple pixels;
First identification module is known for the scanning by executing at least three directions different from each other to the images to be recognized At least one position sensing point in the not described images to be recognized;
First compression module, in response to the position sensing point identified in the images to be recognized that fails, described in compression Images to be recognized is to obtain the first compression image;And
Second identification module, at least one position sensing point in the first compression image for identification, to identify described the Two dimensional code in one compression image,
Wherein, the angle between any two direction at least three direction be not 180 degrees and it is described at least one Position sensing point, which is determined to be at least three different directions, has predetermined characteristic.
6. device according to claim 5, further includes:
Second compression module, if at least one the position sensing point identified in the first compression image that fails, It compresses the first compression image further to obtain the second compression image, and identifies that described second compresses at least one in image A position sensing point, to identify the two dimensional code in the first compression image.
7. device according to claim 6, further includes:
First determining module, for determining the compressed number of the images to be recognized;And
Stopping modular stops the knowledge for identifying and exporting recognition failures if being more than specific threshold for the compressed number Other result.
8. device according to claim 5, further includes:
Second determining module, first kind pixel accounts in the region all in the region for determining identified position sensing point The ratio of pixel;
Ignore module, if being unsatisfactory for specified conditions for the ratio, ignores the position sensing point.
9. a kind of electronic equipment, comprising:
Processor;And
Memory, is stored thereon with computer-readable instruction, and processor perform claim is made when described instruction is executed by processor It is required that method described in any one of 1~4.
10. a kind of computer readable storage medium is stored thereon with computer-readable instruction, when described instruction is executed by processor So that method described in any one of processor perform claim requirement 1~4.
CN201910706785.7A 2019-07-31 2019-07-31 The method, apparatus of two dimensional code, electronic equipment and medium for identification Pending CN110427794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910706785.7A CN110427794A (en) 2019-07-31 2019-07-31 The method, apparatus of two dimensional code, electronic equipment and medium for identification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910706785.7A CN110427794A (en) 2019-07-31 2019-07-31 The method, apparatus of two dimensional code, electronic equipment and medium for identification

Publications (1)

Publication Number Publication Date
CN110427794A true CN110427794A (en) 2019-11-08

Family

ID=68412067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910706785.7A Pending CN110427794A (en) 2019-07-31 2019-07-31 The method, apparatus of two dimensional code, electronic equipment and medium for identification

Country Status (1)

Country Link
CN (1) CN110427794A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611821A (en) * 2020-04-22 2020-09-01 浙江大华技术股份有限公司 Two-dimensional code identification method and device, computer equipment and readable storage medium
CN114239631A (en) * 2021-11-19 2022-03-25 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008361A (en) * 2014-06-16 2014-08-27 北京握奇智能科技有限公司 Two-dimensional code scanning, locating and prompting method and system
CN104781833A (en) * 2012-11-13 2015-07-15 共同印刷株式会社 Two-dimensional code
CN106326960A (en) * 2015-07-01 2017-01-11 佛山市顺德区美的电热电器制造有限公司 Control method for cooking device and cooking device
WO2017157034A1 (en) * 2016-03-15 2017-09-21 中兴通讯股份有限公司 Method, device, and storage medium for identifying two-dimensional code
CN109815762A (en) * 2018-12-29 2019-05-28 福建天泉教育科技有限公司 The method of remote identification two dimensional code, storage medium
CN109993019A (en) * 2019-04-15 2019-07-09 苏州国芯科技股份有限公司 Two-dimensional code identification method, system and equipment and medium based on connected domain analysis

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104781833A (en) * 2012-11-13 2015-07-15 共同印刷株式会社 Two-dimensional code
CN104008361A (en) * 2014-06-16 2014-08-27 北京握奇智能科技有限公司 Two-dimensional code scanning, locating and prompting method and system
CN106326960A (en) * 2015-07-01 2017-01-11 佛山市顺德区美的电热电器制造有限公司 Control method for cooking device and cooking device
WO2017157034A1 (en) * 2016-03-15 2017-09-21 中兴通讯股份有限公司 Method, device, and storage medium for identifying two-dimensional code
CN109815762A (en) * 2018-12-29 2019-05-28 福建天泉教育科技有限公司 The method of remote identification two dimensional code, storage medium
CN109993019A (en) * 2019-04-15 2019-07-09 苏州国芯科技股份有限公司 Two-dimensional code identification method, system and equipment and medium based on connected domain analysis

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
范泽华等: "基于OpenCV的多重干扰点二维码图像检测研究", 《河南科技》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611821A (en) * 2020-04-22 2020-09-01 浙江大华技术股份有限公司 Two-dimensional code identification method and device, computer equipment and readable storage medium
CN111611821B (en) * 2020-04-22 2023-03-21 浙江大华技术股份有限公司 Two-dimensional code identification method and device, computer equipment and readable storage medium
CN114239631A (en) * 2021-11-19 2022-03-25 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method and device, storage medium and electronic equipment
CN114239631B (en) * 2021-11-19 2024-03-26 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN110300292B (en) Projection distortion correction method, device, system and storage medium
CN110427917A (en) Method and apparatus for detecting key point
US20070106482A1 (en) Fast imaging system calibration
CN109934181A (en) Text recognition method, device, equipment and computer-readable medium
JP2021093161A (en) Computer vision system for digitization of industrial equipment gauge and alarm
US20150009226A1 (en) Color chart detection apparatus, color chart detection method, and color chart detection computer program
CN110472460A (en) Face image processing process and device
US20220027654A1 (en) Point cloud data processing apparatus, point cloud data processing method, and program
CN110427794A (en) The method, apparatus of two dimensional code, electronic equipment and medium for identification
CN110427949A (en) The method, apparatus of list verification calculates equipment and medium
CN107622504A (en) Method and apparatus for handling picture
CN109272050B (en) Image processing method and device
CN110516628A (en) Shelf vacant locations merchandise news acquisition methods, system, equipment and storage medium
CN109389096A (en) Detection method and device
CN110619807A (en) Method and device for generating global thermodynamic diagram
CN109949414A (en) The construction method and device of indoor map
CN108182457A (en) For generating the method and apparatus of information
CN110110666A (en) Object detection method and device
US20120114253A1 (en) Marker generation device, marker generation detection system, marker generation detection device, marker, marker generation method, and program therefor
CN110392239A (en) Specified area monitoring method and device
CN113177941A (en) Steel coil edge crack identification method, system, medium and terminal
CN108921838A (en) Method and apparatus for detection image
CN106248058B (en) A kind of localization method, apparatus and system for means of transport of storing in a warehouse
US11120269B2 (en) Method and apparatus for determining target rotation direction, computer readable medium and electronic device
CN110443089A (en) The method, apparatus of two dimensional code, electronic equipment and medium for identification

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191108

RJ01 Rejection of invention patent application after publication