CN108764000B - Two-dimensional code fast decoding method - Google Patents

Two-dimensional code fast decoding method Download PDF

Info

Publication number
CN108764000B
CN108764000B CN201810501793.3A CN201810501793A CN108764000B CN 108764000 B CN108764000 B CN 108764000B CN 201810501793 A CN201810501793 A CN 201810501793A CN 108764000 B CN108764000 B CN 108764000B
Authority
CN
China
Prior art keywords
dimensional code
video image
scanning
image
density
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
Application number
CN201810501793.3A
Other languages
Chinese (zh)
Other versions
CN108764000A (en
Inventor
周杰
王新鲁
高同庆
王新志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Co Ltd
Original Assignee
Hisense Co Ltd
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 Hisense Co Ltd filed Critical Hisense Co Ltd
Priority to CN201810501793.3A priority Critical patent/CN108764000B/en
Publication of CN108764000A publication Critical patent/CN108764000A/en
Application granted granted Critical
Publication of CN108764000B publication Critical patent/CN108764000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention provides a method and a device for quickly decoding a two-dimensional code, which are characterized in that a video image is scanned at a first preset scanning density to determine the area of the two-dimensional code, and then the video image in the area of the two-dimensional code is scanned and decoded at a second preset scanning density.

Description

Two-dimensional code fast decoding method
The application is a divisional application of Chinese patent application 201610100825.X, entitled "two-dimension code fast decoding method and device" proposed in 2016, 02, month and 23.
Technical Field
The invention relates to the technical field of image analysis and processing, in particular to a two-dimensional code fast decoding method and device.
Background
Two-dimensional Code (QR Code) is an encoding method that is popular in mobile devices in recent years. Two-dimensional codes can express information in a graphic form in both horizontal and vertical directions, and therefore, can express a large amount of information in a small area.
At present, for two-dimensional codes appearing in video images of video playing terminals such as televisions and the like, due to small display area and short retention time, the two-dimensional codes are usually decoded by the terminals displaying the two-dimensional codes, and then the two-dimensional codes with larger display area are generated according to the content of the two-dimensional codes and displayed on a terminal screen, so that a user can conveniently scan the two-dimensional codes. When decoding the two-dimensional code, the terminal generally performs positioning and decoding on the two-dimensional code in the current video image in a progressive scanning manner on the current video image.
However, since the two-dimensional code appearing in the video image has a very small area compared to the video image, scanning and decoding the entire video image will cause a large processing load on the terminal, and accordingly, the positioning and decoding time of the two-dimensional code is long.
Disclosure of Invention
The invention provides a quick decoding method and a terminal for a two-dimensional code, which are used for solving the problems that the processing load of the terminal is large and the positioning and decoding time of the two-dimensional code is long by adopting the existing two-dimensional code decoding method for the two-dimensional code appearing in a video image.
The first aspect of the present invention provides a two-dimensional code fast decoding method, including:
scanning a video image at a first preset scanning density to determine a region of a two-dimensional code in the video image;
and scanning and decoding the video image in the area of the two-dimensional code by using a second preset scanning density to determine the content of the two-dimensional code, wherein the first preset scanning density is higher than the second preset scanning density.
In another aspect, the present invention provides a two-dimensional code fast decoding apparatus, including:
the first scanning module is used for scanning a video image at a first preset scanning density and determining the area of the two-dimensional code in the video image;
and the second scanning module is used for scanning and decoding the video image in the area of the two-dimensional code at a second preset scanning density to determine the content of the two-dimensional code, wherein the first preset scanning density is higher than the second preset scanning density.
The invention provides a method and a device for quickly decoding a two-dimensional code, which are characterized in that a video image is scanned at a first preset scanning density to determine the area of the two-dimensional code, and then the video image in the area of the two-dimensional code is scanned and decoded at a second preset scanning density.
Drawings
Fig. 1 is a schematic flowchart of a two-dimensional code fast decoding method according to an embodiment of the present invention;
FIG. 2 is a diagram of a typical QR two-dimensional code;
FIG. 3 is a diagram of a finding pattern in the two-dimensional code shown in FIG. 2;
fig. 4 is a schematic flowchart of another two-dimensional code fast decoding method according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of interlacing two-dimensional codes in a video image;
fig. 6 is a schematic flow chart of another two-dimensional code fast decoding method according to a third embodiment of the present invention;
FIG. 7 is a schematic diagram of the position of a two-dimensional code in a video image;
fig. 8 is a schematic flowchart of another two-dimensional code fast decoding method according to a fourth embodiment of the present invention;
fig. 9 is a schematic flowchart of another two-dimensional code fast decoding method according to a fifth embodiment of the present invention;
fig. 10 is a schematic structural diagram of a two-dimensional code fast decoding device according to a sixth embodiment of the present invention;
fig. 11 is a schematic structural diagram of another two-dimensional code fast decoding device according to a seventh embodiment of the present invention;
fig. 12 is a schematic structural diagram of a two-dimensional code fast decoding device according to an eighth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
The terminal generates a two-dimensional code with a large display area according to the content of the two-dimensional code after decoding the two-dimensional code in a video image displayed by the terminal, and displays the two-dimensional code in a terminal screen to facilitate a user to scan and acquire two-dimensional code information. The embodiment of the invention provides a method and a device for quickly decoding a two-dimensional code. The two-dimensional code fast decoding method and the two-dimensional code fast decoding device can be configured in a terminal capable of playing videos, such as a mobile phone, a computer, a television and the like. When the video image played in the television contains the two-dimensional code, the two-dimensional code fast decoding device can scan the current video image with a first preset scanning density, quickly determine the area of the two-dimensional code, then scan and decode the area of the two-dimensional code with a second preset scanning speed, thereby determining the content of the two-dimensional code, the scanning of the video image is divided into two times, only the area of the two-dimensional code is determined for the first time, the scanning speed is high, the scanning time is short, only the area of the two-dimensional code is scanned and decoded for the second time, the scanning and decoding area is small, the scanning speed is high, the processing burden of the television is reduced, and the positioning and decoding time of the two-dimensional code is shortened.
Fig. 1 is a schematic flowchart of a two-dimensional code fast decoding method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
s11, scanning the video image with a first preset scanning density, and determining the area of the two-dimensional code in the video image.
And S12, scanning and decoding the video image in the area of the two-dimensional code at a second preset scanning density, and determining the content of the two-dimensional code, wherein the first preset scanning density is higher than the second preset scanning density.
Specifically, the execution main body of the two-dimensional code fast decoding method provided by this embodiment is the two-dimensional code fast decoding device provided by the embodiment of the present invention. The device can be integrated in the intelligent television and is used for analyzing whether the video image of the intelligent television comprises the two-dimension code and analyzing the content corresponding to the two-dimension code.
The process of scanning the video image by the two-dimensional code quick decoding device in each embodiment of the invention is different from the process of scanning the two-dimensional code by a photographing device in the traditional sense, but refers to the process of analyzing and decoding the video image displayed by a terminal displaying the video image, such as a smart television, so as to obtain the content of the two-dimensional code in the video image. For example, the two-dimensional code fast positioning decoding device may acquire each frame of video image of the smart television, and then scan and analyze each acquired frame of video image, thereby acquiring the content of the two-dimensional code in the video image, and further generating the two-dimensional code with a larger display area according to the content of the two-dimensional code, and displaying the two-dimensional code at a corresponding position of a display screen of the smart television.
Generally, the most widely used two-dimensional Code is a Quick Response Code (QR Code), which belongs to one kind of matrix type two-dimensional Code. As shown in fig. 2 and 3, fig. 2 is a schematic diagram of a general QR two-dimensional code, and fig. 3 is a schematic diagram of a finding pattern in the two-dimensional code shown in fig. 2. As shown in fig. 2, the QR code is composed of a square matrix composed of a plurality of square modules, including a coding region and a functional pattern, where the functional pattern includes a finding pattern, a separator, a positioning pattern, and a correction pattern. Wherein the tracing pattern is used for determining the area for positioning the two-dimensional code. As shown in FIG. 2, the viewfinder pattern is composed of three parts, A, B and C. As shown in fig. 3, each seek pattern is composed of data cells of a fixed shade color. The order of the colors of the individual data elements was dark-light-dark, and the ratio of the widths of the portions was 1:1:3:1: 1.
Specifically, the two-dimensional code fast decoding device may determine the area of the two-dimensional code according to the constituent characteristics of the two-dimensional code, for example, determine the area of the two-dimensional code in the video image according to the encoding area of the two-dimensional code or the characteristics of the image-finding image. The following describes in detail a process of determining a two-dimensional code area from the scout image with reference to fig. 4.
Fig. 4 is a flowchart illustrating another two-dimensional code fast decoding method according to a second embodiment of the present invention. As shown in fig. 4, S11 specifically includes:
s11a, scanning the video image at a first preset scanning density, and determining coordinates of each image searching graph of the two-dimensional code in the video image;
s11b, determining the area of the two-dimensional code according to the coordinates of each image searching graph of the two-dimensional code.
When the two-dimensional code fast decoding device is actually used, a video image can be scanned according to the characteristics of the image searching graph, and when the colors of five continuous data units are determined to be dark color, light color, dark color, light color and dark color in sequence and the width ratio of the five data units is 1:1:3:1:1, 5 continuous data units can be determined to be a part of the image searching graph.
For example, as shown in fig. 2, if the two-dimensional code fast decoding apparatus scans the video image in the order from top to bottom and from left to right, the first scanned seek pattern is a, and at this time, the abscissa of the seek pattern can be determined according to the abscissas of five consecutive data units, and the ordinate of the seek pattern a can be determined according to the ordinate of the leftmost data unit in five consecutive data units. If the two-dimensional code fast decoding device scans the acquired video images from top to bottom and from right to left, the image-seeking pattern scanned first is B, at this time, the abscissa of the image-seeking pattern B can be determined according to the abscissas of the five consecutive data units, and the ordinate of the image-seeking pattern B can be determined according to the ordinate of the rightmost data unit in the five consecutive data units.
And once the area of the two-dimensional code is determined, the quick two-dimensional code decoding device can remove all parts except the area of the two-dimensional code in the video image, and only the area of the two-dimensional code is scanned and decoded at a second preset scanning density. The encoding principle of the QR two-dimensional code is that a dark color and a light color respectively represent 1 and 0 of a binary system, and the binary system is used for graphically representing information. Decoding means that the graphical information is restored to the original text or data information.
When the two-dimensional code is decoded, each minimum data block needs to be decoded by scanning the whole two-dimensional code region, and the color depth is marked as 1 or 0. The smallest data block often occupies a plurality of pixels of varying numbers depending on the size of the actual two-dimensional code. In general, when a data block in a two-dimensional code having good picture quality is not broken, it is not necessary to scan all lines. Fig. 5 is a schematic diagram of interlacing two-dimensional codes in a video image. Assuming that each minimum data block occupies 9 pixel units as shown in fig. 5, the interlaced scanning method can certainly scan all the values of the data blocks. Taking the black block as an example, scanning lines Xn, Xn +1 and Xn +2, and scanning columns Yn, Yn +1 and Yn +2, the black block is scanned twice, respectively [ Xn, Yn +1] and [ Xn +1, Yn +1 ]. In the figure, the interlaced scanning is given, and in practical situations, most of two-dimensional codes can be successfully decoded by scanning across multiple lines, so that the decoding speed of the two-dimensional codes can be further improved.
Generally, in order to accurately position the two-dimensional code image finding pattern, the first preset scanning density may be set to be higher than the second preset scanning density, for example, each row of pixel unit rows is scanned, that is, the first preset scanning density is progressive scanning. In the two-dimensional code data region, each minimum data block usually occupies several pixel units, so that a lower scanning density can be set for decoding, and the two-dimensional code region is scanned and decoded, for example, interlaced scanning, scanning at every two lines, and the like are adopted, that is, 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 may be determined according to the size of the video image on the display screen of the terminal, the pixel size of the video image on the display screen of the terminal, and the processing speed of the two-dimensional code fast positioning decoding device. For example, if the terminal is a mobile phone, the video image displayed by the mobile phone is relatively small and the ratio of the two-dimensional code to the whole frame of the display image is relatively large because the display screen of the mobile phone is relatively small, so the first preset scanning density may be selected to be a relatively low value, and if the terminal is a television, the video image displayed by the television is relatively large and the ratio of the two-dimensional code to the whole frame of the video image is relatively small because the display screen of the television is relatively large, so the first preset scanning density may be selected to be a relatively high value.
It can be understood that, when the two-dimension code fast decoding device, after decoding the information of the two-dimension code, the two-dimension code with a large display area can be regenerated according to the content contained in the two-dimension code information, and displayed on the display screen of the terminal, so as to facilitate the user to scan and acquire the two-dimension code information, or the information of the two-dimension code can be stored, after the video image is played, the large two-dimension code is regenerated, and displayed at the corresponding position on the display screen of the terminal, so as to facilitate the user to scan and acquire the two-dimension code information, or, if the terminal is an intelligent television or a computer, the two-dimension code fast decoding device can also send the decoded two-dimension code information to a mobile terminal associated with the intelligent television or the computer, such as a mobile phone or a tablet computer, and the like, for the user to use.
The two-dimensional code fast decoding method provided by the embodiment comprises the steps of firstly scanning a video image with a first preset scanning density to determine the area of a two-dimensional code, and then scanning and decoding the video image in the area of the two-dimensional code with a second preset scanning density.
Through the analysis, the two-dimensional code quick decoding device can scan and decode the determined two-dimensional code area with lower scanning density. However, due to different film sources or channels, the quality of the video image and the quality of the two-dimensional code are often very different, and the two-dimensional codes are different in size, and the size of the corresponding minimum data block and the number of pixels occupied by the minimum data block are inevitably different. The following further explains a case where the area scan decoding of the two-dimensional code by the second preset scan density fails with reference to fig. 6.
Fig. 6 is a flowchart illustrating another two-dimensional code fast decoding method according to a third embodiment of the present invention. As shown in fig. 6, the method further includes, after S12, based on the method shown in fig. 5:
and S13, if the decoding fails, scanning and decoding the video image in the area of the two-dimensional code at a third preset scanning density, wherein the third preset scanning density is higher than the second preset scanning density.
Specifically, if the quick decoding device of two-dimensional code, after scanning the video image in the region of two-dimensional code with the predetermined scanning density of second, can not resolve the information that contains in the two-dimensional code, or decode and fail, it has the two-dimensional code to explain the region of definite two-dimensional code, but the predetermined scanning density of second is too low, lead to missing to sweep the data piece, later can switch over the scanning density fast to the predetermined scanning density of third, video image in the region to the two-dimensional code is rescanned, because the predetermined scanning density of third is higher than the predetermined scanning density of second, thereby can carry out complete scanning with the data piece in the two-dimensional code region, thereby can carry out accurate decoding to the two-dimensional code.
It should be noted that, when the second preset scanning density is switched to the third preset scanning density, a suitable third preset scanning density may be selected according to the picture quality of the current video image, for example, if the second preset scanning density is every two lines and scans once, and the current video image is an ultra-clear picture, the third preset scanning density may select every two lines to scan once, and if the current video image is an ultra-clear picture, the third preset scanning density may select to scan each line in sequence, and the like.
Furthermore, because the video images appearing on the display screen of the terminal do not always contain the two-dimensional codes, if the two-dimensional code rapid positioning and decoding device always scans, positions and decodes the video images appearing on the display screen of the terminal, unnecessary resource waste is caused, and the processing speed of the terminal is influenced. Therefore, the method, before S11, further includes:
and S14, receiving a two-dimensional code identification instruction.
The two-dimensional code decoding instruction can be triggered by a user or actively triggered by a two-dimensional code quick decoding device.
In specific implementation, when a user watches a video program by using a terminal, if the user wants to obtain information of a two-dimensional code displayed in a video image of a current video, the user can trigger positioning and decoding of the two-dimensional code in the video image by clicking a two-dimensional code area on a display screen of the terminal; or the positioning and decoding of the two-dimensional code in the video image can be triggered by pressing an entity key on a remote control device corresponding to the terminal; or, the two-dimensional code fast positioning decoding device may monitor the display condition of the video image in the terminal, and once the video image containing the two-dimensional code is detected, the current video image is scanned to decode the information carried in the two-dimensional code contained in the video image.
The two-dimension code fast decoding method provided by this embodiment scans a video image with a first preset scanning density to determine coordinates of each image-seeking pattern of a two-dimension code, then determines an area of the two-dimension code according to the coordinates of each image-seeking pattern, scans and decodes the video image in the area of the two-dimension code with a second preset scanning density, and if the decoding fails, scans and decodes the video image in the area of the two-dimension code with a third preset scanning density, because the first scanning only determines the coordinates of the image-seeking pattern, the scanning speed is fast, the time is short, the second scanning and decoding only scans and decodes the area of the two-dimension code, the scanning and decoding area is small and the speed is fast, so that a user can quickly acquire two-dimension code information in the video image in real time, and after the second scanning and decoding fails, the scanning density is switched to a higher scanning density, and the two-dimensional code area is scanned and decoded again, so that the success rate of decoding the two-dimensional code is improved.
Generally, in order not to affect the viewing experience, the two-dimensional code in the video image generally appears at the bottom of the video image, as shown in fig. 7, and fig. 7 is a schematic diagram of the position of the two-dimensional code in the video image. In addition to the form shown in fig. 7, a two-dimensional code generally appears at the lower left of the entire video image. Therefore, in this embodiment, in order to further increase the decoding speed of the two-dimensional code, the method shown in fig. 8 may be adopted to scan a video image, and fig. 8 is a flowchart of another two-dimensional code fast decoding method provided by the fourth embodiment of the present invention. As shown in fig. 8, S11a includes:
s15, scanning the video image from bottom to top with a first preset scanning density, and determining the coordinates of each image searching graph of the two-dimensional code in the video image.
Specifically, taking the two-dimensional code in the video image shown in fig. 7 as an example, assuming that scanning is performed from top to bottom, pixels of Sa _ Y lines need to be scanned to determine the position of the finder pattern a; while bottom-up scanning requires that the pixels of Sb _ Y lines be scanned to determine the position of the seek pattern B. The size and the position of the two-dimensional code image finding graph are not drawn according to the actual scale for good schematic effect. The practical situation is that Sa _ Y and Sb _ Y satisfy the following ratio in most scenes:
Sa_Y/Sb_Y>5
that is, typically, the bottom-up scan time only occupies about 1/5 of the top-down scan time. Therefore, the video image is scanned from bottom to top, the position of the two-dimensional code can be determined at a very high speed so as to reduce the target area, and conditions are provided for subsequently scanning and decoding the video image in the two-dimensional code area and dynamically switching the scanning density.
In addition, the two-dimensional code fast decoding device may start from the right side of the video image or from the left side of the video image when scanning the video image from bottom to top, that is, the two-dimensional code fast positioning decoding device may scan the video image from bottom to top and from left to right or from bottom to top and from right to left. This embodiment is not limited to this.
The two-dimension code fast decoding method provided by the embodiment firstly adopts a mode from bottom to top, scans a video image with a first preset scanning density, determines coordinates of each image searching graph of the two-dimension code, then determines a region of the two-dimension code according to the coordinates of each image searching graph, scans and decodes the video image in the region of the two-dimension code with a second preset scanning density, and if the decoding fails, scans and decodes the video image in the region of the two-dimension code with a third preset scanning density. And after the second scanning decoding fails, the scanning density is switched to a higher scanning density, and the two-dimensional code area is scanned and decoded again, so that the success rate of the two-dimensional code decoding is improved.
Further, in order to shorten the time of the first scanning as much as possible, the two-dimensional code fast decoding apparatus may determine the coordinates of each seek pattern of the two-dimensional code in the manner shown in fig. 9.
Fig. 9 is a flowchart illustrating a further two-dimensional code fast decoding method according to a fourth embodiment of the present invention. As shown in fig. 9, S15 includes:
s15a, scanning the video image from bottom to top with a first preset scanning density, and determining coordinates of the first finding pattern.
S15b, scanning the corresponding column on the video image according to the ordinate value of the first finding pattern, and determining the abscissa of the second finding pattern.
S15c, scanning the corresponding line on the video image according to the abscissa value of the second finding pattern, and determining the ordinate of the third finding pattern.
Specifically, taking fig. 2 as an example, the first finding pattern is C in the figure, the second finding pattern is a in the figure, and the third finding pattern is B in the figure.
If the two-dimensional code fast decoding device scans from bottom to top and from right to left, the coordinate of the finding pattern C can be determined first when the video image shown in fig. 7 is scanned, and it can be understood that the two-dimensional code fast decoding device can determine the coordinate of the finding pattern C according to the coordinate of the point on the finding pattern C when the finding pattern C is scanned for the first time, for example, the coordinate of the lower right point of the finding pattern C is determined as the coordinate of the finding pattern C, or after the finding pattern C is scanned, the coordinate of the last scanned point on the finding pattern C, for example, the coordinate of the upper right vertex of the finding pattern C in fig. 7, is determined as the coordinate of the finding pattern C. This embodiment is not limited to this.
After the coordinates of the first finder pattern C are determined, since the second finder pattern a and the first finder pattern C are in the same column, the corresponding column on the video image can be scanned according to the ordinate value of the finder pattern C, thereby determining the coordinates of the second finder pattern a, and similarly, since the third finder pattern B and the second finder pattern a are in the same row, after the coordinates of the second finder pattern a are determined, the corresponding row on the video image can be scanned according to the abscissa of the finder pattern a, thereby determining the coordinates of the finder pattern B, and thus the area of the two-dimensional code can be determined according to the coordinates of A, B and C.
It is understood that, in order to make the determined two-dimensional code area cover all the coding areas, the coordinates of the first finding graph, the second finding graph and the third finding graph can be determined according to the boundary point of each finding graph far away from the coding area, for example, the coordinate of the first finding graph C is determined according to the vertex at the lower right corner, the coordinate of the second finding graph a is determined according to the vertex at the upper left corner, and the coordinate of the third finding graph B is determined according to the vertex at the upper right corner.
According to the two-dimensional code fast decoding method provided by the embodiment, after the coordinate of the first image searching graph is determined, only the video image where the column corresponding to the vertical coordinate of the first image searching graph is located is scanned, so that the coordinate of the second image searching graph is determined, then the video image where the row corresponding to the horizontal coordinate of the second image searching graph is located is scanned, so that the coordinate of the third image searching graph is determined, the time of first scanning in the two-dimensional code decoding process is further shortened, conditions are provided for second scanning and third scanning, and the speed and the efficiency of two-dimensional code decoding are improved.
Fig. 10 is a schematic structural diagram of a two-dimensional code fast decoding device according to a fifth embodiment of the present invention. As shown in fig. 10, the apparatus includes: a first scanning module 101 and a second scanning module 102.
The first scanning module 101 is configured to scan a video image at a first preset scanning density, and determine a region of a two-dimensional code in the video image; the second scanning module 102 is configured to scan and decode the video image in the area of the two-dimensional code at a second preset scanning density, and determine the content of the two-dimensional code, where the first preset scanning density is higher than the second preset scanning density.
Specifically, the two-dimensional code fast decoding device provided by this embodiment is used for executing the two-dimensional code fast fixed decoding method provided by the first embodiment of the present invention, and the device may be integrated in a terminal, and is used for analyzing whether a video image in the terminal includes a two-dimensional code and analyzing content corresponding to the two-dimensional code.
The process of scanning the video image by the two-dimensional code quick positioning and decoding device in each embodiment of the invention is different from the process of scanning the two-dimensional code by a photographing device in the traditional sense, but refers to the process of analyzing and decoding the video image displayed by a terminal displaying the video image, such as an intelligent television, so as to acquire the content of the two-dimensional code in the video image. For example, the two-dimensional code fast decoding device may acquire each frame of video image of the smart television, and then scan and analyze each acquired frame of video image, so as to acquire the content of the two-dimensional code in the video image, and further generate the two-dimensional code with a larger display area according to the content of the two-dimensional code, and display the two-dimensional code at a corresponding position of a display screen of the smart television.
Specifically, the two-dimensional code fast decoding device may determine the region of the two-dimensional code according to the constituent characteristics of the two-dimensional code, for example, determine the coding region of the two-dimensional code in the video image according to the coding region of the two-dimensional code or the characteristics of the finding image. If the two-dimensional code fast decoding device determines the area of the two-dimensional code according to the characteristics of the image-finding image, the first scanning module 101 is specifically configured to:
scanning the video image at a first preset scanning density, and determining coordinates of each image searching graph of the two-dimensional code in the video image;
and determining the area of the two-dimensional code according to the coordinates of each image searching graph of the two-dimensional code.
When the two-dimensional code fast decoding device is actually used, a video image can be scanned according to the characteristics of the image searching graph, and when the colors of five continuous data units are determined to be dark color, light color, dark color, light color and dark color in sequence and the width ratio of the five data units is 1:1:3:1:1, 5 continuous data units can be determined to be a part of the image searching graph.
For example, as shown in fig. 2, if the two-dimensional code fast decoding apparatus scans the video image in the order from top to bottom and from left to right, the first scanned seek pattern is a, and at this time, the abscissa of the seek pattern can be determined according to the abscissas of five consecutive data units, and the ordinate of the seek pattern a can be determined according to the ordinate of the leftmost data unit in five consecutive data units.
And once the area of the two-dimensional code is determined, the quick two-dimensional code decoding device can remove all parts except the area of the two-dimensional code in the video image and only scan and decode the area of the two-dimensional code at a second preset scanning density.
In general, when a data block in a two-dimensional code having good picture quality is not broken, it is not necessary to scan all lines. Fig. 5 is a schematic diagram of interlacing two-dimensional codes in a video image. As shown in fig. 5, each minimum data block occupies 9 pixel units, and the interlaced scanning method can certainly scan all the data block values. Taking the black block as an example, scanning lines Xn, Xn +1 and Xn +2, and scanning columns Yn, Yn +1 and Yn +2, the black block is scanned twice, respectively [ Xn, Yn +1] and [ Xn +1, Yn +1 ]. In the figure, the interlaced scanning is given, and in practical situations, most of two-dimensional codes can be successfully decoded by scanning across multiple lines, so that the decoding speed of the two-dimensional codes can be further improved.
Generally, in order to achieve accurate positioning of the two-dimensional code image finding pattern, the first preset scanning density may be set to be higher than the second preset scanning density, for example, scanning each row of pixel unit lines, that is, the first preset scanning density is scanning each row. In the two-dimensional code data region, each minimum data block usually occupies several pixel units, so that a lower scanning density can be set, and the two-dimensional code region is scanned and decoded, for example, each line scanning, every two lines scanning and the like are adopted, that is, 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 may be determined according to the size of the terminal display screen, the pixel size of the terminal display screen, and the processing speed of the two-dimensional code fast decoding device. For example, if the terminal is a mobile phone, the video image displayed by the mobile phone is relatively small and the ratio of the two-dimensional code to the whole frame of the display image is relatively large because the display screen of the mobile phone is relatively small, so the first preset scanning density may be selected to be a relatively low value, and if the terminal is a television, the video image displayed by the television is relatively large and the ratio of the two-dimensional code to the whole frame of the video image is relatively small because the display screen of the television is relatively large, so the first preset scanning density may be selected to be a relatively high value.
It can be understood that, when the quick decoding device of two-dimensional code, after the information of two-dimensional code is analyzed out, can be according to the content that contains in the two-dimensional code information, big two-dimensional code of regeneration, and show on the display screen at terminal, in order to make things convenient for the user to scan and obtain the two-dimensional code information, or can also keep the information of two-dimensional code, after this video image broadcast is ended, big two-dimensional code of regeneration, and show on the display screen at terminal, in order to make things convenient for the user to scan and obtain the two-dimensional code information, or, if the terminal is smart television or computer, then quick decoding device of two-dimensional code can also send the two-dimensional code information that decodes out to the mobile terminal that this smart television or computer are correlated with, for example cell-phone or panel computer etc. supply.
The two-dimensional code fast decoding device provided by the embodiment firstly scans the video image with the first preset scanning density, determines the area of the two-dimensional code, and then scans and decodes the video image in the area of the two-dimensional code with the second preset scanning density.
Through the analysis, the two-dimensional code quick decoding device can scan and decode the determined two-dimensional code area with lower scanning density. However, due to different film sources or channels, the quality of the video image and the quality of the two-dimensional code are often very different, and the two-dimensional codes are different in size, and the size of the corresponding minimum data block and the number of pixels occupied by the minimum data block are inevitably different. The following further explains a case where the area scan decoding of the two-dimensional code by the second preset scan density fails with reference to fig. 11.
Fig. 11 is a schematic structural diagram of another two-dimensional code fast decoding device according to a seventh embodiment of the present invention. As shown in fig. 11, in addition to fig. 10, the apparatus further includes:
the third scanning module 103 is configured to scan and decode the video image in the area of the two-dimensional code with a third preset scanning density if the decoding fails, where the third preset scanning density is higher than the second preset scanning density.
Specifically, if the quick decoding device of two-dimensional code, after scanning the video image in the region of two-dimensional code with the predetermined scanning density of second, can not resolve the information that decodes to containing in the two-dimensional code, or resolve the failure, it has the two-dimensional code to explain the region of definite two-dimensional code, but the predetermined scanning density of second is too low, lead to missing to sweep the data piece, later can switch over the scanning density fast to the predetermined scanning density of third, rescan the video image in the region of two-dimensional code, because the predetermined scanning density of third is higher than the predetermined scanning density of second, thereby can carry out complete scanning with the data piece in the two-dimensional code region, thereby can carry out accurate decoding to the two-dimensional code.
It should be noted that, when the second preset scanning density is switched to the third preset scanning density, a suitable third preset scanning density may be selected according to the picture quality of the current video image, for example, if the second preset scanning density is every two lines and scans once, and the current video image is an ultra-clear picture, the third preset scanning density may select every two lines to scan once, and if the current video image is an ultra-clear picture, the third preset scanning density may select to scan each line in sequence, and the like.
Furthermore, because the video images appearing on the display screen of the terminal do not always contain the two-dimensional codes, if the two-dimensional code quick decoding device always scans, positions and decodes the two-dimensional codes of the video images appearing on the display screen of the terminal, unnecessary resource waste is caused, and the processing speed of the terminal is influenced. Therefore, on the basis of the above-mentioned fig. 10, referring to fig. 11, the apparatus further includes:
the receiving module 104 is configured to receive a two-dimensional code decoding instruction.
The two-dimensional code decoding instruction can be triggered by a user or actively triggered by a two-dimensional code quick decoding device.
In specific implementation, when a user watches a video program by using a terminal, if the user wants to obtain information of a two-dimensional code displayed in a video image of a current video, the user can trigger positioning and decoding of the two-dimensional code in the video image by clicking a two-dimensional code area on a display screen of the terminal; or the positioning and decoding of the two-dimensional code in the video image can be triggered by pressing an entity key on a remote control device corresponding to the terminal; or, the two-dimensional code fast decoding device may monitor the display condition of the video image in the terminal, and once the video image containing the two-dimensional code is detected, the current video image starts to be scanned so as to decode the information carried in the two-dimensional code contained in the video image.
The two-dimension code fast decoding device provided by this embodiment scans a video image at a first preset scanning density to determine coordinates of each image-seeking pattern of a two-dimension code, then determines an area of the two-dimension code according to the coordinates of each image-seeking pattern, scans and decodes the video image in the area of the two-dimension code at a second preset scanning density, and if the decoding fails, scans and decodes the video image in the area of the two-dimension code at a third preset scanning density, because the first scanning only determines the coordinates of the image-seeking pattern, the scanning speed is fast, the time is short, the second scanning and decoding only scans and decodes the area of the two-dimension code, the scanning and decoding area is small, the decoding speed of the two-dimension code is fast, a user can quickly acquire two-dimension code information in the video image in real time, and after the second scanning and decoding fails, the scanning density is switched to a higher scanning density, and the two-dimensional code area is scanned and decoded again, so that the success rate of decoding the two-dimensional code is improved.
Generally, in order not to affect the viewing experience, the two-dimensional code in the video image generally appears at the bottom of the video image, and as shown in fig. 7, the two-dimensional code generally appears at the lower left or lower right of the whole video image. Therefore, in order to further increase the decoding speed of the two-dimensional code, the first scanning module 101 is specifically configured to:
scanning the video image from bottom to top according to a first preset scanning density, and determining the coordinates of each image searching graph of the two-dimensional code in the video image.
Specifically, taking the two-dimensional code in the video image shown in fig. 7 as an example, assuming that scanning is performed from top to bottom, pixels of Sa _ Y lines need to be scanned to determine the position of the finder pattern a; while bottom-up scanning requires that the pixels of Sb _ Y lines be scanned to determine the position of the seek pattern B. The size and the position of the two-dimensional code image finding graph are not drawn according to the actual scale for good schematic effect. The practical situation is that Sa _ Y and Sb _ Y satisfy the following ratio in most scenes:
Sa_Y/Sb_Y>5
that is, typically, the bottom-up scan time only occupies about 1/5 of the top-down scan time. Therefore, the video image is scanned from bottom to top, the position of the two-dimensional code can be determined at a very high speed so as to reduce the target area, and conditions are provided for subsequently scanning and decoding the video image in the two-dimensional code area and dynamically switching the scanning density.
Further, in order to shorten the time of the first scanning as much as possible, the two-dimensional code fast decoding apparatus may adopt the following manner when determining the coordinates of each finding pattern of the two-dimensional code, that is, the first scanning module 101 is specifically configured to:
scanning the video image with a first preset scanning density, and determining the coordinate of a first image searching graph;
scanning corresponding columns on the video image according to the ordinate values of the first image searching graphs, and determining the abscissa of a second image searching graph;
and scanning the corresponding line on the video image according to the abscissa value of the second image searching graph, and determining the ordinate of a third image searching graph.
Specifically, taking fig. 2 as an example, the first finding pattern is C in the figure, the second finding pattern is a in the figure, and the third finding pattern is B in the figure.
If the two-dimensional code fast decoding device scans from bottom to top and from right to left, the coordinate of the finding pattern C can be determined first when the video image shown in fig. 7 is scanned, and it can be understood that the two-dimensional code fast decoding device can determine the coordinate of the finding pattern C according to the coordinate of the point on the finding pattern C when the finding pattern C is scanned for the first time, for example, the coordinate of the lower right point of the finding pattern C is determined as the coordinate of the finding pattern C, or after the finding pattern C is scanned, the coordinate of the last scanned point on the finding pattern C, for example, the coordinate of the upper right vertex of the finding pattern C in fig. 6, is determined as the coordinate of the finding pattern C. This embodiment is not limited to this.
After the coordinates of the first finder pattern C are determined, since the second finder pattern a and the first finder pattern C are in the same column, the corresponding column on the video image can be scanned according to the ordinate value of the finder pattern C, thereby determining the coordinates of the second finder pattern a, and similarly, since the third finder pattern B and the second finder pattern a are in the same row, after the coordinates of the second finder pattern a are determined, the corresponding row on the video image can be scanned according to the abscissa of the finder pattern a, thereby determining the coordinates of the finder pattern B, and thus the area of the two-dimensional code can be determined according to the coordinates of A, B and C.
It is understood that, in order to make the determined two-dimensional code area cover all the coding areas, the coordinates of the first finding graph, the second finding graph and the third finding graph can be determined according to the boundary point of each finding graph far away from the coding area, for example, the coordinate of the first finding graph C is determined according to the vertex at the lower right corner, the coordinate of the second finding graph a is determined according to the vertex at the upper left corner, and the coordinate of the third finding graph B is determined according to the vertex at the upper right corner.
In this embodiment, after the coordinates of the first finding pattern are determined, the two-dimensional code fast decoding device scans only the video image where the column corresponding to the ordinate of the first finding pattern is located, so as to determine the coordinates of the second finding pattern, and then scans the video image where the row corresponding to the abscissa of the second finding pattern is located, so as to determine the coordinates of the third finding pattern, thereby further shortening the time of the first scanning in the two-dimensional code decoding process, providing conditions for the second scanning and the third scanning, and improving the speed and efficiency of the two-dimensional code decoding.
Fig. 12 is a schematic structural diagram of a two-dimensional code fast decoding device according to a seventh embodiment of the present invention, as shown in fig. 12, the device includes: a communication part 121 for acquiring a video image in the terminal; a memory 122 for storing programs; the processor 123 is configured to execute the program stored in the memory, scan a video image at a first preset scanning density, and determine a region of a two-dimensional code in the video image; and scanning and decoding the video image in the area of the two-dimensional code by using a second preset scanning density to determine the content of the two-dimensional code, wherein the first preset scanning density is higher than the second preset scanning density.
Processor 123 may be a central processing unit, or a particular integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention.
Specifically, the processor 123 is specifically configured to:
scanning the video image at a first preset scanning density, and determining coordinates of each image searching graph of the two-dimensional code in the video image; and determining the area of the two-dimensional code according to the coordinates of each image searching graph of the two-dimensional code.
Specifically, the two-dimensional code fast decoding device may determine the region of the two-dimensional code according to the constituent characteristics of the two-dimensional code, for example, determine the coding region of the two-dimensional code according to the coding region of the two-dimensional code or the characteristics of the finding image. If the area of the two-dimensional code is determined according to the characteristics of the image-finding image, the processor 123 is specifically configured to:
scanning the video image at a first preset scanning density, and determining coordinates of each image searching graph of the two-dimensional code in the video image;
and determining the area of the two-dimensional code according to the coordinates of each image searching graph of the two-dimensional code.
When the image searching graph is actually used, the processor can scan the video image according to the characteristics of the image searching graph, and when the colors of five continuous data units are determined to be dark color, light color, dark color, light color and dark color in sequence and the width ratio of the five data units is 1:1:3:1:1, 5 continuous data units can be determined to be a part of the image searching graph.
And once the area of the two-dimensional code is determined, the processor can remove all parts except the area of the two-dimensional code in the video image, and only the area of the two-dimensional code is scanned and decoded at a second preset scanning density.
Generally, in order to achieve accurate positioning of the two-dimensional code image finding pattern, the first preset scanning density may be set to be higher than the second preset scanning density, for example, scanning each row of pixel unit lines, that is, the first preset scanning density is scanning each row. In the two-dimensional code data region, each minimum data block usually occupies several pixel units, so that a lower scanning density can be set, and the two-dimensional code region is scanned and decoded, for example, interlaced scanning, scanning at every two lines, and the like are adopted, that is, the first preset scanning density is higher than the second preset scanning density.
Optionally, the processor 123 is further configured to: and if the decoding fails, scanning and decoding the video image in the area of the two-dimensional code by using a third preset scanning density, wherein the third preset scanning density is higher than the second preset scanning density.
Specifically, if the processor scans the video image in the area of the two-dimensional code with the second preset scanning density, the information contained in the two-dimensional code cannot be decoded, or the decoding fails, it is indicated that the two-dimensional code exists in the determined area of the two-dimensional code, but the second preset scanning density is too low, so that the data block is missed to be scanned, and then the scanning density can be quickly switched to the third preset scanning density to rescan the video image in the area of the two-dimensional code.
Furthermore, because the video images appearing on the display screen of the terminal do not always contain the two-dimensional codes, if the processor always scans, positions and decodes the two-dimensional codes of the video images appearing on the display screen of the terminal, unnecessary resource waste is caused, and the processing speed of the terminal is affected. The communication unit 121 is further configured to:
and receiving a two-dimensional code decoding instruction.
The two-dimensional code decoding instruction can be triggered by a user or actively triggered by a two-dimensional code quick positioning decoding device.
In specific implementation, when a user watches a video program by using a terminal, if the user wants to obtain information of a two-dimensional code displayed in a video image of a current video, the user can trigger positioning and decoding of the two-dimensional code in the video image by clicking a two-dimensional code area on a display screen of the terminal; or the positioning and decoding of the two-dimensional code in the video image can be triggered by pressing an entity key on a remote control device corresponding to the terminal; or, the two-dimensional code fast decoding device may monitor the display condition of the video image in the terminal, and once the video image containing the two-dimensional code is detected, the current video image is scanned to decode the information carried in the two-dimensional code contained in the video image.
Further, since the two-dimensional code in the video image generally appears at the bottom of the video image, in order to further increase the decoding speed of the two-dimensional code in this embodiment, the processor 123 is specifically configured to:
and scanning the video image from bottom to top by using a first preset scanning density, and determining the coordinates of each image searching graph of the two-dimensional code.
Further, in order to shorten the time of the first scanning as much as possible, the processor may specifically determine the coordinates of each finding pattern of the two-dimensional code by the following method:
scanning the video image with a first preset scanning density, and determining the coordinate of a first image searching graph;
scanning corresponding columns on the video image according to the ordinate values of the first image searching graphs, and determining the abscissa of a second image searching graph;
and scanning the corresponding line on the video image according to the abscissa value of the second image searching graph, and determining the ordinate of a third image searching graph.
Specifically, taking fig. 2 as an example, the first finding pattern is C in the figure, the second finding pattern is a in the figure, and the third finding pattern is B in the figure. If the two-dimensional code fast decoding apparatus scans in a bottom-up and right-left manner, when scanning the video image shown in fig. 7, the coordinates of the finder pattern C can be determined first, after the coordinates of the first finder pattern C are determined, since the second finder pattern a is in the same column as the first finder pattern C, it is possible to determine the coordinates of the second finder pattern C, the corresponding columns of the video image are scanned to determine the coordinates of the second finder pattern a, which, as such, since the third finder pattern B is on the same row as the second finder pattern a, after the coordinates of the second finder pattern a are determined, the corresponding line on the video image is scanned according to the abscissa of the finding graph A, so that the coordinate of the finding graph B is determined, and the area of the two-dimensional code can be determined according to the coordinates of A, B and C.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the two-dimensional code fast decoding apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The two-dimensional code fast decoding device provided by the embodiment scans a video image at first according to a first preset scanning density, determines the coordinates of each image searching graph of the two-dimensional code, determines the area of the two-dimensional code according to the coordinates of each image searching graph, and scans and decodes the video image in the area of the two-dimensional code at a second preset scanning density.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (5)

1. A two-dimensional code fast decoding method is characterized by comprising the following steps:
scanning a video image at a first preset scanning density to determine a region of a two-dimensional code in the video image;
scanning and decoding the video image in the area of the two-dimensional code by using a second preset scanning density to determine the content of the two-dimensional code, wherein the first preset scanning density is higher than the second preset scanning density; the first preset scanning density is progressive scanning; the second preset scanning density is interlaced scanning;
and if the decoding fails, scanning and decoding the video image in the area of the two-dimensional code by using a third preset scanning density, wherein the third preset scanning density is higher than the second preset scanning density.
2. The method of claim 1, wherein the scanning the video image at the first preset scanning density to determine the area of the two-dimensional code in the video image comprises:
scanning the video image at a first preset scanning density, and determining coordinates of each image searching graph of the two-dimensional code in the video image;
and determining the area of the two-dimensional code according to the coordinates of each image searching graph of the two-dimensional code.
3. The method of claim 2, wherein the scanning the video image at the first preset scanning density to determine the coordinates of each finder pattern of the two-dimensional code in the video image comprises:
scanning the video image from bottom to top according to a first preset scanning density, and determining the coordinates of each image searching graph of the two-dimensional code in the video image.
4. The method of claim 3, wherein the scanning the video image from bottom to top at the first preset scanning density to determine the coordinates of each finding pattern of the two-dimensional code in the video image comprises:
scanning the video image from bottom to top by a first preset scanning density, and determining the coordinate of a first image searching graph;
scanning corresponding columns on the video image according to the ordinate values of the first image searching graphs, and determining the abscissa of a second image searching graph;
and scanning the corresponding line on the video image according to the abscissa value of the second image searching graph, and determining the ordinate of a third image searching graph.
5. The method of claim 4, wherein before scanning the video image at the first predetermined scanning density and determining the coordinates of each finding pattern of the two-dimensional code, the method further comprises:
and receiving a two-dimensional code decoding instruction.
CN201810501793.3A 2016-02-23 2016-02-23 Two-dimensional code fast decoding method Active CN108764000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810501793.3A CN108764000B (en) 2016-02-23 2016-02-23 Two-dimensional code fast decoding method

Applications Claiming Priority (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

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201610100825.XA Division CN105654019B (en) 2016-02-23 2016-02-23 Quick Response Code fast decoding method and device

Publications (2)

Publication Number Publication Date
CN108764000A CN108764000A (en) 2018-11-06
CN108764000B true CN108764000B (en) 2021-06-08

Family

ID=56488689

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610100825.XA Active CN105654019B (en) 2016-02-23 2016-02-23 Quick Response Code fast decoding method and device
CN201810501793.3A Active CN108764000B (en) 2016-02-23 2016-02-23 Two-dimensional code fast decoding method

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201610100825.XA Active CN105654019B (en) 2016-02-23 2016-02-23 Quick Response Code fast decoding method and device

Country Status (1)

Country Link
CN (2) CN105654019B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
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 (4)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN104268615A (en) * 2014-10-24 2015-01-07 重庆思根科技有限公司 Encoding method and decoding method for color two-dimensional code
CN104966042B (en) * 2015-06-23 2017-10-27 青岛海信传媒网络技术有限公司 The method and apparatus of Quick Response Code on mobile phone scanning television set
CN105069389B (en) * 2015-07-27 2017-10-31 福建联迪商用设备有限公司 Quick Response Code piecemeal coding/decoding method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN108764000A (en) 2018-11-06
CN105654019B (en) 2018-09-04
CN105654019A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN108764000B (en) Two-dimensional code fast decoding method
US11729514B2 (en) Image processing method and apparatus
CN109862414B (en) Mask bullet screen display method and device and server
US8879639B2 (en) Adaptive video capture decode system
US10834424B2 (en) Method and device for compressing image, and electronic device
US20150222810A1 (en) Image processing apparatus and image processing method
KR20130029779A (en) Video screen display method and device
CN110944237B (en) Subtitle area positioning method and device and electronic equipment
US20140184646A1 (en) Image processor and fisheye image display method thereof
CN104967786A (en) Image selection method and device
CN110012235B (en) Imaging exposure control method and device, computer readable storage medium and system
CN110166798B (en) Down-conversion method and device based on 4K HDR editing
CN115514897A (en) Method and device for processing image
CN110991203A (en) Two-dimensional code communication method, encoding method, decryption method and device
CN111144156B (en) Image data processing method and related device
CN111126083A (en) Terminal picture real-time translation method and system
CN114222188A (en) Full-screen display method, device and equipment based on rotary screen and storage medium
JP4335229B2 (en) QR code recognition device, QR code recognition device control method, QR code recognition device control program, and computer-readable recording medium recording the same
CN102324027A (en) Scanning and identifying device and method
CN114049865B (en) Screen refreshing method and device, computer readable storage medium and computer equipment
CN113395434B (en) Preview image blurring method, storage medium and terminal equipment
CN114792283A (en) Image processing method, device and equipment and computer readable storage medium
CN108428213B (en) Image collage method, device, electronic equipment and medium
CN113810673A (en) Projector uniformity testing method and device and computer readable storage medium
CN112328145A (en) Image display method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant