CN105654019B - Quick Response Code fast decoding method and device - Google Patents
Quick Response Code fast decoding method and device Download PDFInfo
- Publication number
- CN105654019B CN105654019B CN201610100825.XA CN201610100825A CN105654019B CN 105654019 B CN105654019 B CN 105654019B CN 201610100825 A CN201610100825 A CN 201610100825A CN 105654019 B CN105654019 B CN 105654019B
- Authority
- CN
- China
- Prior art keywords
- quick response
- response code
- video image
- scanned
- view finding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
Abstract
A kind of Quick Response Code fast decoding method of present invention offer and device, video image is scanned with the first preset scanning density first, determine the region of Quick Response Code, the video image in the region of Quick Response Code is scanned and is decoded with the second preset scanning density again, since first time scanning only determines the region of Quick Response Code, sweep speed is fast, time is short, only two-dimension code area is scanned and is decoded for the second time, scanning and decoding region are small, alleviate the processing load of Quick Response Code Quick decoding device, shorten positioning and the decoding time of Quick Response Code, improve the decoding efficiency of Quick Response Code.
Description
Technical field
The present invention relates to image analyzing and processing technology field more particularly to a kind of Quick Response Code fast decoding methods and device.
Background technology
Quick Response Code (Quick Response Code, abbreviation QR code) is one and surpasses stream in mobile device in recent years
A kind of capable coding mode.Quick Response Code, can be in horizontal and vertical two orientation simultaneously with avatars information, therefore, can be
The a large amount of information of expression in the area of very little.
Currently, for the Quick Response Code such as occurred in the video image of the video playing terminals such as TV, due to its display
After area is small, the residence time is shorter, therefore this kind of Quick Response Code is typically first decoded Quick Response Code by the terminal of two-dimensional code display,
The larger Quick Response Code of display area is generated further according to the content of Quick Response Code and is shown in terminal screen, to facilitate scanning input.
Wherein, terminal is when being decoded Quick Response Code, typically by way of being progressively scanned to current video image, next pair
Quick Response Code is positioned and is decoded in current video image.
But the Quick Response Code due to occurring in video image, compared with video image, area is very small, if to entirely regarding
Frequency image is scanned and decodes, and the processing load of terminal can be made big, correspondingly, the positioning of Quick Response Code and decoding time are long.
Invention content
The present invention provides a kind of Quick Response Code fast decoding method and terminal, for solving for occurring in video image
Quick Response Code, using existing Quick Response Code coding/decoding method so that the processing load of terminal is big, and the positioning of Quick Response Code and decoding time are long.
The first aspect of the invention provides a kind of Quick Response Code fast decoding method, including:
Video image is scanned with the first preset scanning density, determines the area of Quick Response Code in the video image
Domain;
The video image in the region of the Quick Response Code is scanned and is decoded with the second preset scanning density, is determined
The content of Quick Response Code, wherein the first preset scanning density is higher than the second preset scanning density.
Further aspect of the present invention provides a kind of Quick Response Code Quick decoding device, including:
First scan module determines the video for being scanned to video image with the first preset scanning density
The region of Quick Response Code in image;
Second scan module, for the second preset scanning density to the video image in the region of the Quick Response Code into
Row scanning and decoding, determine the content of Quick Response Code, wherein the first preset scanning density is higher than the second preset scanning density.
Quick Response Code fast decoding method and device provided by the invention, first with the first preset scanning density to video figure
As being scanned, the region of Quick Response Code is determined, then with the second preset scanning density to the video image in the region of Quick Response Code
It is scanned and decodes, since first time scanning only determines the region of Quick Response Code, sweep speed is fast, and the time is short, only right for the second time
Two-dimension code area is scanned and decodes, and scanning and decoding region are small, alleviate the processing load of Quick Response Code Quick decoding device,
Positioning and the decoding time for shortening Quick Response Code, improve the decoding efficiency of Quick Response Code.
Description of the drawings
Fig. 1 is a kind of flow diagram for Quick Response Code fast decoding method that the embodiment of the present invention one provides;
Fig. 2 is common QR Quick Response Codes schematic diagram;
Fig. 3 is the schematic diagram of view finding figure in Quick Response Code shown in Fig. 2;
Fig. 4 is another Quick Response Code fast decoding method flow diagram provided by Embodiment 2 of the present invention;
Fig. 5 is to carry out interleaved schematic diagram to the Quick Response Code in video image;
Fig. 6 is another Quick Response Code fast decoding method flow diagram that the embodiment of the present invention three provides;
Fig. 7 is position view of the Quick Response Code in video image;
Fig. 8 is another Quick Response Code fast decoding method flow diagram that the embodiment of the present invention four provides;
Fig. 9 is another Quick Response Code fast decoding method flow diagram that the embodiment of the present invention five provides;
Figure 10 is a kind of Quick Response Code Quick decoding device structural schematic diagram that the embodiment of the present invention six provides;
Figure 11 is that the present invention implements the seven another Quick Response Code Quick decoding device structural schematic diagrams provided;
Figure 12 is a kind of structural schematic diagram for the quick decoding device of Quick Response Code that the embodiment of the present invention eight provides.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
For in the prior art, after terminal needs the decoding decoding of the Quick Response Code in the video image shown, further according to
The content of Quick Response Code generates the Quick Response Code for showing that area is larger, and is shown in terminal screen, is obtained with facilitating scanning input
2 D code information, wherein in the Quick Response Code in decoding the video image that it shows, terminal is needed to entire video image terminal
It is analyzed and is decoded, the content of Quick Response Code in video image could be obtained, the Quick Response Code decoding process processing load of terminal is big,
The positioning of Quick Response Code and decoding time are long.The embodiment of the present invention provides a kind of Quick Response Code quickly decoded method and apparatus.This two
Code fast decoding method and device are tieed up, can be configured in the terminal that can carry out video playing, such as mobile phone, computer, TV
It is illustrated so that terminal is TV as an example Deng, various embodiments of the present invention.When in the video image played in TV include Quick Response Code
When, which can be scanned current video image with the first preset scanning density, quickly really
Determine the region of Quick Response Code, then two-dimension code area is scanned and is decoded with the second preset sweep speed, so that it is determined that two
The content for tieing up code, is carried out twice by will be divided into the scanning of video image, only determines the region of Quick Response Code, scanning speed for the first time
Degree is fast, and the time is short, is only scanned and decodes to two-dimension code area for the second time, and scanning and decoding region are small, and speed is fast, alleviates
The processing load of TV shortens positioning and the decoding time of Quick Response Code.
Fig. 1 is a kind of flow diagram for Quick Response Code fast decoding method that the embodiment of the present invention one provides, such as Fig. 1 institutes
Show, this method includes:
S11 is scanned video image with the first preset scanning density, determines Quick Response Code in the video image
Region.
S12 is scanned and is decoded to the video image in the region of the Quick Response Code with the second preset scanning density,
The content of Quick Response Code is determined, wherein the first preset scanning density is higher than the second preset scanning density.
Specifically, the executive agent of Quick Response Code fast decoding method provided in this embodiment, provides for the embodiment of the present invention
Quick Response Code Quick decoding device.The device can be integrated in smart television, in the video image for analyzing smart television
Whether include Quick Response Code and parses content corresponding to the Quick Response Code.
Wherein, the process that Quick Response Code Quick decoding device is scanned video image in various embodiments of the present invention is different
Quick Response Code is scanned with camera arrangement in traditional sense, and refers to the terminal of display video image, such as smart television
The video image of oneself display is analyzed and decoded, to obtain the process of the QR code content in video image.Citing comes
It says, Quick Response Code, which quickly positions decoding apparatus, can obtain each frame video image of smart television, later to each frame of acquisition
Video image is scanned and parses, to obtain the content of Quick Response Code in the video image, and then according in the Quick Response Code
Hold the Quick Response Code for generating and showing area bigger, and is shown in the corresponding position of smart television display curtain.
In general, the most widely used in Quick Response Code is fast reaction Quick Response Code (Quick Response Code, abbreviation
QR code), it belongs to a type in matrix two-dimensional code.As shown in Figures 2 and 3, Fig. 2 illustrates for common QR Quick Response Codes
Figure, Fig. 3 are the schematic diagram of view finding figure in Quick Response Code shown in Fig. 2.As shown in Fig. 2, QR codes are made of multiple square modules
One square matrices, including coding region and functional graphic composition, functional graphic includes view finding figure, separator, positioning figure
Shape and correction graph.Wherein view finding figure is exactly the region for determining positioning Quick Response Code.As shown in Fig. 2, view finding figure is by A, B
It is formed with C three parts.As shown in figure 3, each view finding figure is made of the data cell for fixing depth color.Each data cell
Color sequence be dark-light color-it is dark-light color-is dark, and the width ratio of each section is 1:1:3:1:1.
Specifically, Quick Response Code Quick decoding device can be the composition feature according to Quick Response Code, the region of Quick Response Code is determined,
For example, the characteristics of according to the coding region of Quick Response Code or view finding image, determine the region of Quick Response Code in video image.With reference to
Fig. 4 is described in detail to determining the process of two-dimension code area according to view finding image.
Fig. 4 is another Quick Response Code fast decoding method flow diagram provided by Embodiment 2 of the present invention.Such as Fig. 4 institutes
Show, above-mentioned S11 is specifically included:
S11a is scanned the video image with the first preset scanning density, determines two in the video image
Tie up the coordinate of each view finding figure of code;
S11b determines the region of the Quick Response Code according to the coordinate of each view finding figure of the Quick Response Code.
In actual use, Quick Response Code Quick decoding device, you can the characteristics of according to above-mentioned view finding figure, to video image into
Row scanning, when the color of continuous five data cells of determination be followed successively by dark-light color-it is dark-light color-it is dark when, and this five
The width ratio of a data cell is 1:1:3:1:When 1, you can determine that continuous 5 data cells are one of view finding figure
Point.
For example, if as shown in Fig. 2, Quick Response Code Quick decoding device, is right with sequence from top to bottom, from left to right
Video image is scanned, then the view finding figure swept to first is A, at this point it is possible to according to continuous five data cells
Abscissa determines the abscissa of the view finding figure, according to the vertical seat of the data cell of the leftmost side in continuous five data cells
Mark, determines the ordinate of view finding figure A.It is with sequence from top to bottom, from right to left to obtaining if Quick Response Code Quick decoding device
The video image taken is scanned, then the view finding figure swept to first is B, at this point it is possible to according to continuous five data
The abscissa of unit determines the abscissa of view finding figure B, according to the data cell of the rightmost side in continuous five data cells
Ordinate, determine the ordinate of view finding figure B.
After the coordinate of three view finding figures in Quick Response Code determines, entire Quick Response Code area corresponding in video image
Domain can determine, once the region of Quick Response Code determines, Quick Response Code Quick decoding device, you can remove Quick Response Code area in video image
All parts except domain are only scanned decoding process to the region of Quick Response Code with the second preset scanning density.QR two dimensions
The coding principle of code is to respectively represent binary one and 0 using dark and light color, and table is patterned to information using binary system
Show.Graphical information is reduced into the text or data information of script by decoding again.
It when being decoded to Quick Response Code, needs to scan entire two-dimension code area and decodes each minimum data block, according to face
Color depth is shallow to be denoted as 1 or 0.Minimum data block often occupies the indefinite multiple pixels of number according to the size of practical Quick Response Code.
Under normal conditions, in the case that the data block in the good Quick Response Code of image quality is not destroyed, it is all scanning is not needed to
Row.Fig. 5 is to carry out interleaved schematic diagram to the Quick Response Code in video image.Assuming that as shown in figure 5, each minimum number
9 pixel units are occupied according to block, then the sure value for sweeping to all data blocks of interleaved mode.It is with black data block
Example goes and scans Xn, Xn+1 and Xn+2, column scan Yn, Yn+1 and Yn+2, then black data block is scanned twice, is respectively
[Xn, Yn+1] and [Xn+1, Yn+1].The case where what is provided in figure is interlacing scan can be often swept across multirow in actual conditions
Most Quick Response Codes can be successfully decoded by retouching, so as to further increase the decoding speed to Quick Response Code.
In general, in order to realize the accurate positionin to Quick Response Code view finding figure, what the first preset scanning density can be arranged
It is higher than the second preset scanning density, for example every row pixel unit row is all scanned, i.e., the first preset scanning density is
Progressive scan.And due in two-dimensional code data region, each minimum data block often occupies several pixel units, therefore can be with
Lower scanning density is arranged to be decoded, two-dimension code area is scanned and is decoded, for example uses interlacing scan, every two rows
Scanning etc., i.e., the first preset scanning density is higher than the second preset scanning density.
It should be noted that the first preset scanning density and the second preset scanning density can be according to terminal display screens
The size of video image, the pixel size of terminal display screen video image and Quick Response Code quickly position the processing speed of decoding apparatus
It determines.For example, if terminal is mobile phone, since the display screen of mobile phone is relatively small, then the video image that mobile phone is shown is opposite
Smaller, Quick Response Code accounts for the large percentage that whole frame shows image, thus the first preset scanning density can select it is relatively low
Value, and if terminal is TV, since the display screen of TV is relatively large, then the video image that TV show is relatively large, two-dimentional
The ratio that code accounts for whole frame video image is smaller, therefore the first preset scanning density can select relatively high value.
It is understood that when Quick Response Code Quick decoding device can be according to two dimension after decoding the information of Quick Response Code
The content for including in code information regenerates the larger Quick Response Code of display area, and is shown on the display screen of terminal, with convenient
User is scanned acquisition 2 D code information, or can also terminate the information preservation of Quick Response Code in video image broadcasting
Afterwards, big Quick Response Code is regenerated, and is shown in corresponding position on the display screen of terminal, to facilitate user to be scanned acquisition
2 D code information, if alternatively, terminal is smart television or computer, Quick Response Code Quick decoding device can also will decode
2 D code information be sent to the smart television or the associated mobile terminal of computer, such as mobile phone or tablet computer etc., for
Family uses.
Quick Response Code fast decoding method provided in this embodiment, first with the first preset scanning density to video image into
Row scanning is determined the region of Quick Response Code, then is carried out to the video image in the region of Quick Response Code with the second preset scanning density
Scanning and decoding, since first time scanning only determines the coordinate of view finding figure, sweep speed is fast, and the time is short, for the second time only to two
Dimension code region is scanned and decodes, and scanning and decoding region are small, to alleviate the processing load of terminal, shorten Quick Response Code
Positioning and decoding time, improve the decoding efficiency of Quick Response Code.
It, can be with lower scanning density to determining two dimension by above-mentioned analysis it is found that Quick Response Code Quick decoding device
Code region is scanned and decodes.But due to different film source or channel, the quality of video image and the quality of Quick Response Code
Often difference is very big, and Quick Response Code is of different sizes, and corresponding minimum data block size and shared pixel number are inevitable different, separately
Outside, the noise of picture may cause the loss of a part of two-dimensional code data block so as to the Quick Response Code of same size, with identical
When second preset scanning density is scanned, can may also there are problems that scan decoder failure.With reference to Fig. 6, to
The case where two preset scanning densities decode failure to the sector scanning of Quick Response Code, is further described.
Fig. 6 is another Quick Response Code fast decoding method flow diagram that the embodiment of the present invention three provides.Such as Fig. 6 institutes
Show, this method after S12, further includes on the basis of above-mentioned shown in fig. 5:
S13, if decoding failure, with the preset scanning density of third to the video image in the region of the Quick Response Code into
Row scanning and decoding, wherein the preset scanning density of third is higher than the second preset scanning density.
If specifically, Quick Response Code Quick decoding device, with the second preset scanning density to regarding in the region of Quick Response Code
After frequency image is scanned, fails to be resolved to the information for including in Quick Response Code, or decoding failure, then illustrate determining Quick Response Code
Region in have Quick Response Code, but the second default scanning density is too low, leads to drain sweep data block, later can be fast by scanning density
Speed switches to the preset scanning density of third, is rescaned to the video image in the region of Quick Response Code, since third is pre-
If scanning density it is higher than the second preset scanning density, so as to which the data block in two-dimension code area is completely swept
It retouches, so as to accurately be decoded to Quick Response Code.
It should be noted that when switching to the preset scanning density of third from the second preset scanning density, it can basis
The image quality of current video image selects the preset scanning density of suitable third, for example, if the second preset scanning
Density is every two rows, run-down, and current video image is super clear picture, then the preset scanning density of third can be selected every one
Row run-down, and if current video image is high definition picture, the preset scanning density of third can select to every row successively
Scanning etc..
Further, all can include not Quick Response Code always due to the video image occurred on the display screen of terminal, if two
Dimension code quickly position decoding apparatus always to the video image occurred on the display screen of terminal all carries out two-dimensional code scanning positioning with
Decoding, can cause the unnecessary wasting of resources, influence the processing speed of terminal.Therefore, this method is also wrapped before above-mentioned S11
It includes:
S14 receives Quick Response Code solution code instruction.
Wherein, which can be that user triggers, and can also be Quick Response Code Quick decoding device active
Triggering.
When specific implementation, user using terminal when watching video frequency program, if wishing the video image of acquisition current video
The information of the Quick Response Code of middle display can then be triggered by clicking two-dimension code area on the display screen of the terminal to video figure
The positioning and decoding of Quick Response Code as in;Or it can also be touched by pressing the physical button on remote control corresponding with terminal
Send out the positioning and decoding to Quick Response Code in video image;Alternatively, can also be that Quick Response Code quickly positions decoding device monitoring terminal
The display situation of middle video image, once detect include the video image of Quick Response Code when, that is, start to current video image
It is scanned, to decode the information carried in the Quick Response Code that the video image includes.
Quick Response Code fast decoding method provided in this embodiment, first with the first preset scanning density to video image into
Row scanning, determines the coordinate of each view finding figure of Quick Response Code, then according to the coordinate of each view finding figure, determines the region of Quick Response Code,
The video image in the region of Quick Response Code is scanned and is decoded with the second preset scanning density again, if decoding failure, then
The video image in the region of Quick Response Code is scanned and is decoded with third preset scanning density, only due to first time scanning
Determine the coordinate of view finding figure, sweep speed is fast, and the time is short, is only scanned and decodes to two-dimension code area for the second time, scanning
Small with decoding region, speed is fast so that user can in real time, quickly obtain the 2 D code information in video image, and
Rescan decoding failure after, scanning density is switched to higher scanning density, to two-dimension code area re-start scanning and
Decoding, improves the decoded success rate of Quick Response Code.
In general, in order to not influence ornamental experience, video image is generally appeared at for the Quick Response Code in video image
Bottom, as shown in fig. 7, Fig. 7 is position view of the Quick Response Code in video image.Other than form shown in Fig. 7, Quick Response Code
It usually there is also in the lower left of entire video image.Therefore, the present embodiment is in order to further improve the solution to Quick Response Code
Code speed, may be used method shown in Fig. 8 and is scanned to video image, and Fig. 8 provides another for the embodiment of the present invention four
Kind Quick Response Code fast decoding method flow diagram.As shown in figure 8, above-mentioned S11a, including:
S15 is scanned video image with the first preset scanning density, determines in the video image from bottom to top
The coordinate of each view finding figure of Quick Response Code.
Specifically, by taking the Quick Response Code in video image shown in fig. 7 as an example, it is assumed that scan from top to bottom, need to scan
The pixel of Sa_Y line numbers determines the position of view finding figure A;And it scans the pixel for scanning Sb_Y line numbers is needed to have determined that from bottom to top
The position of view finding figure B.In order to which good hint effect does not carry out the big of picture Quick Response Code view finding figure by actual ratio completely in figure
Small and position.Actual conditions are that Sa_Y and Sb_Y meets following ratio under most of scene:
Sa_Y/Sb_Y>5
I.e. under normal conditions, the time scanned from bottom to top probably only takes up the 1/5 of sweep time from top to bottom.Therefore,
Using being scanned from bottom to top to video image, the position of Quick Response Code can be determined at a terrific speed and then reduces target area
Domain, subsequently the video image in two-dimension code area to be scanned and being decoded and switching at runtime scanning density provides condition.
In addition, Quick Response Code Quick decoding device can be from video figure when carrying out scanning from bottom to top to video image
Start on the right side of picture, can also be since on the left of video image, i.e., Quick Response Code quickly positions decoding apparatus, can be to video figure
As carry out from bottom to top and from a left side and the right side mode be scanned, can also use from bottom to top and from the right side and a left side by the way of into
Row scanning.The present embodiment does not limit this.
Quick Response Code fast decoding method provided in this embodiment, it is preset with first first by the way of from bottom to top
Scanning density is scanned video image, determines the coordinate of each view finding figure of Quick Response Code, then according to the seat of each view finding figure
Mark, determines the region of Quick Response Code, then be scanned to the video image in the region of Quick Response Code with the second preset scanning density
And decoding, if decoding failure, then with third preset scanning density the video image in the region of Quick Response Code is scanned and
Decoding, since first time scanning only determines the coordinate of view finding figure, sweep speed is fast, and the time is short, for the second time only to Quick Response Code area
Domain is scanned and decodes, and scanning and decoding region are small, and the processing load of terminal is small, and the decoding process of Quick Response Code is short, and speed is fast,
User is allow in real time, quickly to obtain the 2 D code information in video image, and after second of scan decoder failure, it will
Scanning density is switched to higher scanning density, and scanning and decoding are re-started to two-dimension code area, improves Quick Response Code decoding
Success rate.
Further, in order to shorten the time of scanning for the first time as possible, Quick Response Code Quick decoding device is determining Quick Response Code
When the coordinate of each view finding figure, mode shown in Fig. 9 may be used and carry out.
Fig. 9 is another Quick Response Code fast decoding method flow diagram that the embodiment of the present invention four provides.Such as Fig. 9 institutes
Show, above-mentioned S15, including:
S15a is scanned video image with the first preset scanning density from bottom to top, determines the first view finding figure
Coordinate.
S15b is scanned corresponding row on the video image according to the ordinate value of the first view finding figure,
Determine the abscissa of the second view finding figure.
S15c is scanned corresponding row on the video image according to the abscissa value of the second view finding figure,
Determine the ordinate of third view finding figure.
Specifically, by taking Fig. 2 as an example, the first view finding figure be C, the second view finding figure in figure be A in figure, third view finding
Figure is the B in figure.
If Quick Response Code Quick decoding device is scanned using from bottom to top and from the right side by the way of a left side, then to Fig. 7 institutes
When the video image shown is scanned, the as coordinate of view finding figure C confirmable first, it is to be understood that Quick Response Code
Quick decoding device, when can arrive view finding figure C according to first time scanning, the coordinate of the point on view finding figure C determines view finding figure
The coordinate of shape C, for example, the coordinate of the lower-right most point of view finding figure C is determined as to the coordinate of view finding figure C, alternatively, can be with
After by view finding figure C-scan, by the coordinate of the point on the last view finding figure C scanned, such as the view finding figure in Fig. 7
The coordinate of the upper right angular vertex of C, is determined as the coordinate of view finding figure C.The present embodiment does not limit this.
After the coordinate that the first view finding figure C is determined, due to the second view finding figure A with the first view finding figure C identical
Row, then corresponding row on video image can be scanned, so that it is determined that second according to the ordinate value of view finding figure C
The coordinate of view finding figure A, likewise, since third view finding figure B and the second view finding figure A is in identical row, in determination
After the coordinate of second view finding figure A, you can according to the abscissa of view finding figure A, swept to corresponding row on video image
It retouches, so that it is determined that the coordinate of view finding figure B, to according to the coordinate of A, B and C, you can determine the region of Quick Response Code.
It is understood that make determining two-dimension code area cover all coding regions, above-mentioned first view finding figure,
The coordinate of second view finding figure and third view finding figure can determine according to boundary point of each view finding figure far from coding region, than
Such as, the coordinate of the first view finding figure C is determined according to its bottom right angular vertex, and the coordinate of the second view finding figure A is pushed up according to its upper left corner
Point determines that the coordinate of third view finding figure B is determined according to its upper right angular vertex.
Quick Response Code fast decoding method provided in this embodiment is only sought to first after determining the first view finding figure coordinate
Video image where the corresponding row of ordinate of image pattern is scanned, so that it is determined that the coordinate of the second view finding figure, later
Video image where the corresponding row of abscissa of second view finding figure is scanned, so that it is determined that the seat of third view finding figure
Mark, further shortens the time scanned for the first time in Quick Response Code decoding process, is carried for second of scanning and third time scanning
Condition has been supplied, the decoded speed of Quick Response Code and efficiency are improved.
Figure 10 is a kind of Quick Response Code Quick decoding device structural schematic diagram that the embodiment of the present invention five provides.Such as Figure 10 institutes
Show, which includes:First scan module 101 and the second scan module 102.
Wherein, the first scan module 101 is determined for being scanned to video image with the first preset scanning density
The region of Quick Response Code in the video image;Second scan module 102 is used for the second preset scanning density to the two dimension
Video image in the region of code is scanned and decodes, and the content of Quick Response Code is determined, wherein the first preset scanning density ratio
Second preset scanning density is high.
Specifically, Quick Response Code Quick decoding device provided in this embodiment, for executing the offer of the embodiment of the present invention one
The quick definite decoding method of Quick Response Code, whether which can integrate in the terminal, for being wrapped in the video image in analysing terminal
It includes Quick Response Code and parses the content corresponding to the Quick Response Code.
Wherein, Quick Response Code quickly positions the process that decoding apparatus is scanned video image in various embodiments of the present invention,
Quick Response Code is scanned with camera arrangement different from traditional sense, and refers to the terminal of display video image, such as intelligently
The video image that TV shows oneself is analyzed and is decoded, to obtain the process of the QR code content in video image.It lifts
For example, Quick Response Code Quick decoding device can obtain each frame video image of smart television, later to each frame of acquisition
Video image is scanned and parses, to obtain the content of Quick Response Code in the video image, and then according in the Quick Response Code
Hold the Quick Response Code for generating and showing area bigger, and is shown in the corresponding position of smart television display curtain.
Specifically, Quick Response Code Quick decoding device can be the composition feature according to Quick Response Code, the region of Quick Response Code is determined,
For example, the characteristics of according to the coding region of Quick Response Code or view finding image, determine the coding region of Quick Response Code in video image.If two
The characteristics of code Quick decoding device is according to view finding image is tieed up, determines the region of Quick Response Code, then above-mentioned first scan module 101, is had
Body is used for:
The video image is scanned with the first preset scanning density, determines Quick Response Code in the video image
The coordinate of each view finding figure;
According to the coordinate of each view finding figure of the Quick Response Code, the region of the Quick Response Code is determined.
In actual use, Quick Response Code Quick decoding device, you can the characteristics of according to above-mentioned view finding figure, to video image into
Row scanning, when the color of continuous five data cells of determination be followed successively by dark-light color-it is dark-light color-it is dark when, and this five
The width ratio of a data cell is 1:1:3:1:When 1, you can determine that continuous 5 data cells are one of view finding figure
Point.
For example, if as shown in Fig. 2, Quick Response Code Quick decoding device, is right with sequence from top to bottom, from left to right
Video image is scanned, then the view finding figure swept to first is A, at this point it is possible to according to continuous five data cells
Abscissa determines the abscissa of the view finding figure, according to the vertical seat of the data cell of the leftmost side in continuous five data cells
Mark, determines the ordinate of view finding figure A.
After the coordinate of three view finding figures in Quick Response Code determines, the region of entire Quick Response Code can determine, once it is two-dimentional
The region determination of code, Quick Response Code Quick decoding device, you can remove all parts except two-dimension code area in video image, only
To the region of Quick Response Code with the second preset scanning density, it is scanned decoding process.
Under normal conditions, it in the case that the data block in the good Quick Response Code of image quality is not destroyed, does not need to
Scan all rows.Fig. 5 is to carry out interleaved schematic diagram to the Quick Response Code in video image.As shown in figure 5, each minimum
Data block occupy 9 pixel units, the then sure value for sweeping to all data blocks of interleaved mode.With black data
For block, row scanning Xn, Xn+1 and Xn+2, column scan Yn, Yn+1 and Yn+2, then black data block be scanned twice, respectively
It is [Xn, Yn+1] and [Xn+1, Yn+1].The case where what is provided in figure is interlacing scan, often can be across multirow in actual conditions
Most Quick Response Codes can be successfully decoded in scanning, so as to further increase the decoding speed to Quick Response Code.
In general, in order to realize the accurate positionin to Quick Response Code view finding figure, what the first preset scanning density can be arranged
It is higher than the second preset scanning density, for example every row pixel unit row is all scanned, i.e., the first preset scanning density is
Often row scanning.And due in two-dimensional code data region, each minimum data block often occupies several pixel units, therefore can be with
Lower scanning density is set, two-dimension code area is scanned and is decoded, for example uses each row scanning, twin-interlaced scanning etc.,
I.e. first preset scanning density is higher than the second preset scanning density.
It should be noted that the first preset scanning density and the second preset scanning density can be according to terminal display screens
Size, terminal display screen pixel size and Quick Response Code Quick decoding device processing speed determine.For example, if terminal
For mobile phone, since the display screen of mobile phone is relatively small, then the video image that mobile phone is shown is relatively small, and Quick Response Code accounts for whole frame and shows
The large percentage of image, therefore the first preset scanning density can select relatively low value, and if terminal is TV, due to
The display screen of TV is relatively large, then the video image that TV is shown is relatively large, and Quick Response Code accounts for the ratio of whole frame video image
It is smaller, therefore the first preset scanning density can select relatively high value.
It is understood that when Quick Response Code Quick decoding device can be according to two dimension after parsing the information of Quick Response Code
The content for including in code information, regenerates big Quick Response Code, and be shown on the display screen of terminal, to facilitate user to sweep
Acquisition 2 D code information is retouched, or the information preservation of Quick Response Code can also be regenerated after the video image plays
Big Quick Response Code, and be shown on the display screen of terminal, to facilitate user to be scanned acquisition 2 D code information, if alternatively, eventually
End be smart television or computer, then Quick Response Code Quick decoding device the 2 D code information decoded can also be sent to should
Smart television or the associated mobile terminal of computer, such as mobile phone or tablet computer etc., for users to use.
Quick Response Code Quick decoding device provided in this embodiment, first with the first preset scanning density to video image into
Row scanning is determined the region of Quick Response Code, then is carried out to the video image in the region of Quick Response Code with the second preset scanning density
Scanning and decoding, since first time scanning only determines the coordinate of view finding figure, sweep speed is fast, and the time is short, for the second time only to two
Dimension code region is scanned and decodes, and scanning and decoding region are small, alleviate the processing load of terminal, shorten determining for Quick Response Code
Position and decoding time.
It, can be with lower scanning density to determining two dimension by above-mentioned analysis it is found that Quick Response Code Quick decoding device
Code region is scanned and decodes.But due to different film source or channel, the quality of video image and the quality of Quick Response Code
Often difference is very big, and Quick Response Code is of different sizes, and corresponding minimum data block size and shared pixel number are inevitable different, separately
Outside, the noise of picture may cause the loss of a part of two-dimensional code data block so as to the Quick Response Code of same size, with identical
When second preset scanning density is scanned, can may also there are problems that scan decoder failure.With reference to Figure 11, to
The case where two preset scanning densities decode failure to the sector scanning of Quick Response Code, is further described.
Figure 11 is another Quick Response Code Quick decoding device structural schematic diagram that the embodiment of the present invention seven provides.Such as Figure 11 institutes
Show, on the basis of above-mentioned Figure 10, which further includes:
Third scan module 103, if for decoding failure, with the preset scanning density of third to the area of the Quick Response Code
Video image in domain is scanned and decodes, wherein the preset scanning density of third is higher than the second preset scanning density.
If specifically, Quick Response Code Quick decoding device, with the second preset scanning density to regarding in the region of Quick Response Code
After frequency image is scanned, fails to be decoded to the information in Quick Response Code included, or parsing failure, then illustrate determining two
Tieing up in the region of code has Quick Response Code, but the second default scanning density is too low, leads to drain sweep data block, can will scan later close
Degree is rapidly switched to the preset scanning density of third, is rescaned to the video image in the region of Quick Response Code, due to the
Three preset scanning densities are higher than the second preset scanning density, complete so as to carry out the data block in two-dimension code area
Scanning, so as to accurately be decoded to Quick Response Code.
It should be noted that when switching to the preset scanning density of third from the second preset scanning density, it can basis
The image quality of current video image selects the preset scanning density of suitable third, for example, if the second preset scanning
Density is every two rows, run-down, and current video image is super clear picture, then the preset scanning density of third can be selected every one
Row run-down, and if current video image is high definition picture, the preset scanning density of third can select to every row successively
Scanning etc..
Further, all can include not Quick Response Code always due to the video image occurred on the display screen of terminal, if two
Dimension code Quick decoding device all carries out two-dimensional code scanning positioning and decoding to the video image occurred on the display screen of terminal always,
The unnecessary wasting of resources can be caused, the processing speed of terminal is influenced.Therefore, on the basis of above-mentioned Figure 10, with reference to 11 institute of figure
Show, which further includes:
Receiving module 104, for receiving Quick Response Code solution code instruction.
Wherein, which can be that user triggers, and can also be Quick Response Code Quick decoding device active
Triggering.
When specific implementation, user using terminal when watching video frequency program, if wishing the video image of acquisition current video
The information of the Quick Response Code of middle display can then be triggered by clicking two-dimension code area on the display screen of the terminal to video figure
The positioning and decoding of Quick Response Code as in;Or it can also be touched by pressing the physical button on remote control corresponding with terminal
Send out the positioning and decoding to Quick Response Code in video image;It is regarded in Quick Response Code Quick decoding device monitoring terminal alternatively, can also be
The display situation of frequency image, once detect include the video image of Quick Response Code when, that is, start to current video image carry out
Scanning, to decode the information carried in the Quick Response Code that the video image includes.
Quick Response Code Quick decoding device provided in this embodiment, first with the first preset scanning density to video image into
Row scanning, determines the coordinate of each view finding figure of Quick Response Code, then according to the coordinate of each view finding figure, determines the region of Quick Response Code,
The video image in the region of Quick Response Code is scanned and is decoded with the second preset scanning density again, if decoding failure, then
The video image in the region of Quick Response Code is scanned and is decoded with third preset scanning density, only due to first time scanning
Determine the coordinate of view finding figure, sweep speed is fast, and the time is short, is only scanned and decodes to two-dimension code area for the second time, scanning
It is small with decoding region so that the decoding speed of Quick Response Code is fast, and user can in real time, quickly obtain the Quick Response Code in video image
Information, and after second of scan decoder failure, scanning density is switched to higher scanning density, again to two-dimension code area
It is scanned and decodes, improve the decoded success rate of Quick Response Code.
In general, in order to not influence ornamental experience, video image is generally appeared at for the Quick Response Code in video image
Bottom, as shown in fig. 7, Quick Response Code typically occurs in the lower left or lower right of entire video image.Therefore, in order to further
The decoding speed to Quick Response Code is improved, above-mentioned first scan module 101 is specifically used for:
Video image is scanned from bottom to top with the first preset scanning density, is determined two-dimentional in the video image
The coordinate of each view finding figure of code.
Specifically, by taking the Quick Response Code in video image shown in fig. 7 as an example, it is assumed that scan from top to bottom, need to scan
The pixel of Sa_Y line numbers determines the position of view finding figure A;And it scans the pixel for scanning Sb_Y line numbers is needed to have determined that from bottom to top
The position of view finding figure B.In order to which good hint effect does not carry out the big of picture Quick Response Code view finding figure by actual ratio completely in figure
Small and position.Actual conditions are that Sa_Y and Sb_Y meets following ratio under most of scene:
Sa_Y/Sb_Y>5
I.e. under normal conditions, the time scanned from bottom to top probably only takes up the 1/5 of sweep time from top to bottom.Therefore,
Using being scanned from bottom to top to video image, the position of Quick Response Code can be determined at a terrific speed and then reduces target area
Domain, subsequently the video image in two-dimension code area to be scanned and being decoded and switching at runtime scanning density provides condition.
Further, in order to shorten the time of scanning for the first time as possible, Quick Response Code Quick decoding device is determining Quick Response Code
When the coordinate of each view finding figure, mode as described below may be used and carry out, is i.e. the first scan module 101, is specifically used for:
Video image is scanned with the first preset scanning density, determines the coordinate of the first view finding figure;
According to the ordinate value of the first view finding figure, corresponding row on the video image are scanned, are determined
The abscissa of second view finding figure;
According to the abscissa value of the second view finding figure, corresponding row on the video image is scanned, is determined
The ordinate of third view finding figure.
Specifically, by taking Fig. 2 as an example, the first view finding figure be C, the second view finding figure in figure be A in figure, third view finding
Figure is the B in figure.
If Quick Response Code Quick decoding device is scanned using from bottom to top and from the right side by the way of a left side, then to Fig. 7 institutes
When the video image shown is scanned, the as coordinate of view finding figure C confirmable first, it is to be understood that Quick Response Code
Quick decoding device, when can arrive view finding figure C according to first time scanning, the coordinate of the point on view finding figure C determines view finding figure
The coordinate of shape C, for example, the coordinate of the lower-right most point of view finding figure C is determined as to the coordinate of view finding figure C, alternatively, can be with
After by view finding figure C-scan, by the coordinate of the point on the last view finding figure C scanned, such as the view finding figure in Fig. 6
The coordinate of the upper right angular vertex of C, is determined as the coordinate of view finding figure C.The present embodiment does not limit this.
After the coordinate that the first view finding figure C is determined, due to the second view finding figure A with the first view finding figure C identical
Row, then corresponding row on video image can be scanned, so that it is determined that second according to the ordinate value of view finding figure C
The coordinate of view finding figure A, likewise, since third view finding figure B and the second view finding figure A is in identical row, in determination
After the coordinate of second view finding figure A, you can according to the abscissa of view finding figure A, swept to corresponding row on video image
It retouches, so that it is determined that the coordinate of view finding figure B, to according to the coordinate of A, B and C, you can determine the region of Quick Response Code.
It is understood that make determining two-dimension code area cover all coding regions, above-mentioned first view finding figure,
The coordinate of second view finding figure and third view finding figure can determine according to boundary point of each view finding figure far from coding region, than
Such as, the coordinate of the first view finding figure C is determined according to its bottom right angular vertex, and the coordinate of the second view finding figure A is pushed up according to its upper left corner
Point determines that the coordinate of third view finding figure B is determined according to its upper right angular vertex.
In the present embodiment, Quick Response Code Quick decoding device, after determining the first view finding figure coordinate, only to the first view finding figure
Video image where the corresponding row of ordinate of shape is scanned, so that it is determined that the coordinate of the second view finding figure, later to
Video image where the corresponding row of abscissa of two view finding figures is scanned, so that it is determined that the coordinate of third view finding figure,
The time scanned for the first time in Quick Response Code decoding process is further shortened, is provided for second of scanning and third time scanning
Condition improves the decoded speed of Quick Response Code and efficiency.
Figure 12 is a kind of structural schematic diagram for the quick decoding device of Quick Response Code that the embodiment of the present invention seven provides, such as Figure 12 institutes
Show, which includes:Communication component 121, for the video image in acquisition terminal;Memory 122, for storing program;Place
Device 123 is managed, the program for executing the memory storage is scanned video image with the first preset scanning density,
Determine the region of Quick Response Code in the video image;And with the second preset scanning density to regarding in the region of the Quick Response Code
Frequency image is scanned and decodes, and determines the content of Quick Response Code, wherein the scanning more preset than second of the first preset scanning density
Density is high.
Wherein, processor 123 may be a central processing unit or specific integrated circuit, or be arranged to
Implement one or more integrated circuits of the embodiment of the present invention.
Specifically, above-mentioned processor 123, is specifically used for:
The video image is scanned with the first preset scanning density, determines Quick Response Code in the video image
The coordinate of each view finding figure;According to the coordinate of each view finding figure of the Quick Response Code, the region of the Quick Response Code is determined.
Specifically, Quick Response Code Quick decoding device can be according to the composition feature according to Quick Response Code, Quick Response Code is determined
Region determines the coding region of Quick Response Code for example, the characteristics of according to the coding region of Quick Response Code or view finding image.If according to seeking
As the characteristics of image, the region of Quick Response Code is determined, then above-mentioned processor 123, is specifically used for:
The video image is scanned with the first preset scanning density, determines Quick Response Code in the video image
The coordinate of each view finding figure;
According to the coordinate of each view finding figure of the Quick Response Code, the region of the Quick Response Code is determined.
In actual use, processor, you can the characteristics of according to above-mentioned view finding figure, video image is scanned, when true
When the color of fixed continuous five data cells is followed successively by dark-light-dark-light-dark, and five data cells
Width ratio is 1:1:3:1:When 1, you can determine that continuous 5 data cells are a part for view finding figure.
After the coordinate of three view finding figures in Quick Response Code determines, the region of entire Quick Response Code can determine, once it is two-dimentional
The region determination of code, processor, you can remove all parts except two-dimension code area in video image, only to the area of Quick Response Code
Domain is scanned decoding process with the second preset scanning density.
In general, in order to realize the accurate positionin to Quick Response Code view finding figure, what the first preset scanning density can be arranged
It is higher than the second preset scanning density, for example every row pixel unit row is all scanned, i.e., the first preset scanning density is
Often row scanning.And due in two-dimensional code data region, each minimum data block often occupies several pixel units, therefore can be with
Lower scanning density is set, two-dimension code area is scanned and is decoded, for example uses interlacing scan, twin-interlaced scanning etc.,
I.e. first preset scanning density is higher than the second preset scanning density.
Optionally, above-mentioned processor 123, is additionally operable to:If decoding failure, with the preset scanning density of third to described two
The video image tieed up in the region of code is scanned and decodes, wherein the scanning more preset than second of the preset scanning density of third
Density is high.
Specifically, if processor, sweeps the video image in the region of Quick Response Code with the second preset scanning density
After retouching, fails to be decoded to the information for including in Quick Response Code, or decoding failure, then illustrate there is two in the region of determining Quick Response Code
Code is tieed up, but the second default scanning density is too low, leads to drain sweep data block, can scanning density be rapidly switched to third later
Preset scanning density rescans the video image in the region of Quick Response Code, due to the preset scanning density of third
It is higher than the second preset scanning density, so as to completely be scanned the data block in two-dimension code area, so as to right
Quick Response Code is accurately decoded.
Further, all can include always not Quick Response Code, if place due to the video image occurred on the display screen of terminal
Reason device all carries out two-dimensional code scanning positioning and decoding to the video image occurred on the display screen of terminal always, and it is unnecessary to cause
The wasting of resources, influence the processing speed of terminal.Then above-mentioned communication component 121, is additionally operable to:
Receive Quick Response Code solution code instruction.
Wherein, which can be that user triggers, and can also be that Quick Response Code quickly positions decoding apparatus
Actively trigger.
When specific implementation, user using terminal when watching video frequency program, if wishing the video image of acquisition current video
The information of the Quick Response Code of middle display can then be triggered by clicking two-dimension code area on the display screen of the terminal to video figure
The positioning and decoding of Quick Response Code as in;Or it can also be touched by pressing the physical button on remote control corresponding with terminal
Send out the positioning and decoding to Quick Response Code in video image;It is regarded in the quick decoding device monitoring terminal of Quick Response Code alternatively, can also be
The display situation of frequency image, once detect include the video image of Quick Response Code when, that is, start to current video image carry out
Scanning, to decode the information carried in the Quick Response Code that the video image includes.
Further, due to generally appearing at the bottom of video image for the Quick Response Code in video image, this
Embodiment is specifically used in order to further improve the decoding speed to Quick Response Code, above-mentioned processor 123:
Video image is scanned from bottom to top with the first preset scanning density, determines each view finding figure of Quick Response Code
Coordinate.
Further, in order to shorten the time of scanning for the first time as possible, processor can specifically use following manner, determine
The coordinate of each view finding figure of Quick Response Code:
Video image is scanned with the first preset scanning density, determines the coordinate of the first view finding figure;
According to the ordinate value of the first view finding figure, corresponding row on the video image are scanned, are determined
The abscissa of second view finding figure;
According to the abscissa value of the second view finding figure, corresponding row on the video image is scanned, is determined
The ordinate of third view finding figure.
Specifically, by taking Fig. 2 as an example, the first view finding figure be C, the second view finding figure in figure be A in figure, third view finding
Figure is the B in figure.If the quick decoding device of Quick Response Code is scanned using from bottom to top and from the right side by the way of a left side, then
When being scanned to video image shown in Fig. 7, the as coordinate of view finding figure C confirmable first is determining first
It, then can be according to view finding figure since the second view finding figure A and the first view finding figure C is in identical row after the coordinate of view finding figure C
The ordinate value of shape C is scanned corresponding row on video image, so that it is determined that the coordinate of the second view finding figure A, equally
, since third view finding figure B and the second view finding figure A is in identical row, in the seat that the second view finding figure A is determined
After mark, you can according to the abscissa of view finding figure A, be scanned to corresponding row on video image, so that it is determined that view finding figure B
Coordinate, to according to the coordinate of A, B and C, you can determine the region of Quick Response Code.
It is apparent to those skilled in the art that for convenience and simplicity of description, the two dimension of foregoing description
The specific work process of the quick decoding device of code, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
The quick decoding device of Quick Response Code provided in this embodiment, first with the first preset scanning density to video image into
Row scanning, determines the coordinate of each view finding figure of Quick Response Code, then according to the coordinate of each view finding figure, determines the region of Quick Response Code,
The video image in the region of Quick Response Code is scanned and is decoded with the second preset scanning density again, since first time is scanned
Only determine the coordinate of view finding figure, sweep speed is fast, and the time is short, is only scanned and decodes to two-dimension code area for the second time, sweeps
Retouch small with decoding region, alleviate the processing load of the quick decoding device of Quick Response Code, shorten Quick Response Code positioning and it is decoded when
Between.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of Quick Response Code fast decoding method, which is characterized in that including:
Video image is scanned with the first preset scanning density, determines the region of Quick Response Code in the video image;
The video image in the region of the Quick Response Code is scanned and is decoded with the second preset scanning density, determines two dimension
The content of code, wherein the first preset scanning density is higher than the second preset scanning density;
If decoding failure, the video image in the region of the Quick Response Code is scanned with third preset scanning density and
Decoding, wherein the preset scanning density of third is higher than the second preset scanning density.
2. according to the method described in claim 1, it is characterized in that, it is described with the first preset scanning density to video image into
Row scanning, determines the region of Quick Response Code in the video image, including:
The video image is scanned with the first preset scanning density, determines respectively seeking for Quick Response Code in the video image
The coordinate of image pattern;
According to the coordinate of each view finding figure of the Quick Response Code, the region of the Quick Response Code is determined.
3. according to the method described in claim 2, it is characterized in that, it is described with the first preset scanning density to video image into
Row scanning, determines the coordinate of each view finding figure of Quick Response Code in the video image, including:
Video image is scanned from bottom to top with the first preset scanning density, determines Quick Response Code in the video image
The coordinate of each view finding figure.
4. according to the method described in claim 3, it is characterized in that, it is described with the first preset scanning density to video image from
It is scanned on down, determines the coordinate of each view finding figure of Quick Response Code in the video image, including:
Video image is scanned from bottom to top with the first preset scanning density, determines the coordinate of the first view finding figure;
According to the ordinate value of the first view finding figure, corresponding row on the video image are scanned, determine second
The abscissa of view finding figure;
According to the abscissa value of the second view finding figure, corresponding row on the video image is scanned, determines third
The ordinate of view finding figure.
5. according to the method described in claim 4, it is characterized in that, it is described with the first preset scanning density to video image into
Row scans, and before the coordinate for determining each view finding figure of Quick Response Code, further includes:
Receive Quick Response Code solution code instruction.
6. a kind of Quick Response Code Quick decoding device, which is characterized in that including:
First scan module determines the video image for being scanned to video image with the first preset scanning density
The region of middle Quick Response Code;
Second scan module, for being swept to the video image in the region of the Quick Response Code with the second preset scanning density
It retouches and decodes, determine the content of Quick Response Code, wherein the first preset scanning density is higher than the second preset scanning density;
Third scan module, if for decoding failure, with the preset scanning density of third in the region of the Quick Response Code
Video image is scanned and decodes, wherein the preset scanning density of third is higher than the second preset scanning density.
7. device according to claim 6, which is characterized in that first scan module is specifically used for:
The video image is scanned with the first preset scanning density, determines respectively seeking for Quick Response Code in the video image
The coordinate of image pattern;
According to the coordinate of each view finding figure of the Quick Response Code, the region of the Quick Response Code is determined.
8. device according to claim 7, which is characterized in that first scan module is specifically used for:
Video image is scanned from bottom to top with the first preset scanning density, determines Quick Response Code in the video image
The coordinate of each view finding figure.
9. device according to claim 8, which is characterized in that first scan module is specifically used for:
Video image is scanned with the first preset scanning density, determines the coordinate of the first view finding figure;
According to the ordinate value of the first view finding figure, corresponding row on the video image are scanned, determine second
The abscissa of view finding figure;
According to the abscissa value of the second view finding figure, corresponding row on the video image is scanned, determines third
The ordinate of view finding figure.
10. device according to claim 9, which is characterized in that further include:
Receiving module, for receiving Quick Response Code solution code instruction.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610100825.XA CN105654019B (en) | 2016-02-23 | 2016-02-23 | Quick Response Code fast decoding method and device |
CN201810501793.3A CN108764000B (en) | 2016-02-23 | 2016-02-23 | Two-dimensional code fast decoding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610100825.XA CN105654019B (en) | 2016-02-23 | 2016-02-23 | Quick Response Code fast decoding method and device |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810501793.3A Division CN108764000B (en) | 2016-02-23 | 2016-02-23 | Two-dimensional code fast decoding method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105654019A CN105654019A (en) | 2016-06-08 |
CN105654019B true CN105654019B (en) | 2018-09-04 |
Family
ID=56488689
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810501793.3A Active CN108764000B (en) | 2016-02-23 | 2016-02-23 | Two-dimensional code fast decoding method |
CN201610100825.XA Active CN105654019B (en) | 2016-02-23 | 2016-02-23 | Quick Response Code fast decoding method and device |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810501793.3A Active CN108764000B (en) | 2016-02-23 | 2016-02-23 | Two-dimensional code fast decoding method |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN108764000B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423653B (en) * | 2017-07-06 | 2021-06-08 | 上海动联信息技术股份有限公司 | Two-dimensional code preprocessing method, system and decoding method |
CN108737849A (en) * | 2018-05-02 | 2018-11-02 | 王林 | Video deployment method, device and terminal device and server |
CN109062648B (en) * | 2018-07-23 | 2021-10-22 | Oppo广东移动通信有限公司 | Information processing method and device, mobile terminal and storage medium |
CN109117919A (en) * | 2018-11-14 | 2019-01-01 | 苏州巨能图像检测技术有限公司 | Image encoding method applied to the position number identification of harbour shellfish |
CN111507120A (en) * | 2019-01-31 | 2020-08-07 | 北京骑胜科技有限公司 | Two-dimensional code positioning frame identification method and device, electronic equipment and storage medium |
CN112036205A (en) * | 2020-08-03 | 2020-12-04 | 浙江大华技术股份有限公司 | Two-dimensional code identification method, electronic device and storage medium |
CN112686073A (en) * | 2020-12-29 | 2021-04-20 | 深圳市新锐科技有限公司 | Two-dimensional code identification method and device |
CN113297867A (en) * | 2021-05-21 | 2021-08-24 | 苏州视印智能系统有限公司 | On-site distributed deployment self-adaptive learning industrial code reader |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227581A (en) * | 2007-01-19 | 2008-07-23 | 报联新动力(北京)科技有限公司 | Two-dimension bar code application system oriented to TV and implementing method thereof |
CN102521558A (en) * | 2011-11-18 | 2012-06-27 | 深圳市宝捷信科技有限公司 | Bar code identifying method and device |
KR101161247B1 (en) * | 2011-04-19 | 2012-07-02 | 서강대학교산학협력단 | Method of extracting the barcode |
CN103065148A (en) * | 2012-12-03 | 2013-04-24 | 黄敏 | Method and device of acquiring clothing two-dimension code in video |
CN103914675A (en) * | 2014-03-17 | 2014-07-09 | 东华大学 | Garment QD code recognition method |
CN104966042A (en) * | 2015-06-23 | 2015-10-07 | 青岛海信传媒网络技术有限公司 | Method of scanning two-dimensional code on television by mobile phone and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5343028A (en) * | 1992-08-10 | 1994-08-30 | United Parcel Service Of America, Inc. | Method and apparatus for detecting and decoding bar code symbols using two-dimensional digital pixel images |
US7455231B2 (en) * | 2005-06-21 | 2008-11-25 | Symbol Technologies, Inc. | System and method for locating a predetermined pattern within an image |
US7857219B2 (en) * | 2006-05-26 | 2010-12-28 | Symbol Technologies, Inc. | Imaging reader target object finder system |
CN104268615A (en) * | 2014-10-24 | 2015-01-07 | 重庆思根科技有限公司 | Encoding method and decoding method for color two-dimensional code |
CN105069389B (en) * | 2015-07-27 | 2017-10-31 | 福建联迪商用设备有限公司 | Quick Response Code piecemeal coding/decoding method and system |
-
2016
- 2016-02-23 CN CN201810501793.3A patent/CN108764000B/en active Active
- 2016-02-23 CN CN201610100825.XA patent/CN105654019B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227581A (en) * | 2007-01-19 | 2008-07-23 | 报联新动力(北京)科技有限公司 | Two-dimension bar code application system oriented to TV and implementing method thereof |
KR101161247B1 (en) * | 2011-04-19 | 2012-07-02 | 서강대학교산학협력단 | Method of extracting the barcode |
CN102521558A (en) * | 2011-11-18 | 2012-06-27 | 深圳市宝捷信科技有限公司 | Bar code identifying method and device |
CN103065148A (en) * | 2012-12-03 | 2013-04-24 | 黄敏 | Method and device of acquiring clothing two-dimension code in video |
CN103914675A (en) * | 2014-03-17 | 2014-07-09 | 东华大学 | Garment QD code recognition method |
CN104966042A (en) * | 2015-06-23 | 2015-10-07 | 青岛海信传媒网络技术有限公司 | Method of scanning two-dimensional code on television by mobile phone and device |
Also Published As
Publication number | Publication date |
---|---|
CN108764000A (en) | 2018-11-06 |
CN105654019A (en) | 2016-06-08 |
CN108764000B (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105654019B (en) | Quick Response Code fast decoding method and device | |
CN109862373B (en) | Method and apparatus for encoding a bitstream | |
EP1803095B1 (en) | A method and apparatus for reading film grain patterns in a raster order in film grain simulation | |
JP6383753B2 (en) | High capacity 2D color barcode design and processing method for camera-based applications | |
US20150104113A1 (en) | Method and Apparatus for Producing a Cinemagraph | |
CN103136746A (en) | Image processing device and image processing method | |
CN109214999A (en) | A kind of removing method and device of video caption | |
US20170163902A1 (en) | Method and electronic device for generating high dynamic range image | |
WO2018127695A2 (en) | Codec | |
CN105049695A (en) | Video recording method and device | |
JP7249766B2 (en) | Information processing device, system, control method for information processing device, and program | |
JP2011119974A (en) | Panoramic image synthesizer, panoramic image synthesis method, and program | |
CN103002212A (en) | Image processor, image processing method, and computer readable medium | |
US20220360798A1 (en) | Method and apparatus for parallelizing context selection in video processing | |
CN110012235B (en) | Imaging exposure control method and device, computer readable storage medium and system | |
US20150365685A1 (en) | Method and system for encoding and decoding, encoder and decoder | |
CN110572713B (en) | Transcoding method and processing terminal for adaptive video bandwidth ratio | |
US10440391B2 (en) | Method and apparatus of video coding | |
CN102447869A (en) | Role replacement method | |
JP2007310675A (en) | Qr code recognition device, qr code recognition device control method, qr code recognition device control program and computer-readable recording medium having program recorded thereon | |
JP2018198468A (en) | Video processing apparatus and video processing method | |
CN112188269A (en) | Video playing method and device and video generating method and device | |
RU97119861A (en) | IMPROVED METHOD FOR FINAL PROCESSING AND DEVICE FOR USE IN THE IMAGE SIGNAL DECODING SYSTEM | |
JP6016424B2 (en) | Imaging apparatus and image processing method | |
JP2014183493A (en) | Device, method and program for information correction, and information recording medium |
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 |