WO2020192399A1 - 一种快速解析二维码图像的方法及装置 - Google Patents

一种快速解析二维码图像的方法及装置 Download PDF

Info

Publication number
WO2020192399A1
WO2020192399A1 PCT/CN2020/078336 CN2020078336W WO2020192399A1 WO 2020192399 A1 WO2020192399 A1 WO 2020192399A1 CN 2020078336 W CN2020078336 W CN 2020078336W WO 2020192399 A1 WO2020192399 A1 WO 2020192399A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional code
image
code image
original
type
Prior art date
Application number
PCT/CN2020/078336
Other languages
English (en)
French (fr)
Inventor
祝哲海
刘少磊
沈怡
罗年庆
Original Assignee
尤尼泰克(嘉兴)信息技术有限公司
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 尤尼泰克(嘉兴)信息技术有限公司 filed Critical 尤尼泰克(嘉兴)信息技术有限公司
Publication of WO2020192399A1 publication Critical patent/WO2020192399A1/zh

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/146Methods for optical code recognition the method including quality enhancement steps

Definitions

  • the invention relates to the field of data recognition, especially to the two-dimensional code technology.
  • URL is a uniform resource locator, a concise representation of the location and access method of resources available on the Internet, and is the address of a standard resource on the Internet. Every file on the Internet has a unique URL, which contains information that indicates the location of the file and how the browser should handle it.
  • a two-dimensional code generally relies on a URL to make a network request, it contains less content, and therefore, the density of the two-dimensional code is relatively low. In this case, it is easier to analyze the content of the QR code by scanning the camera, or the success rate of scanning the QR code with the camera is relatively high. However, as the density of the QR code increases, the success rate of scanning analysis will decrease.
  • the present invention proposes a high success rate, fast recognition speed, and low hardware dependence. Two-dimensional code image analysis method and device.
  • the present invention provides a method for quickly analyzing a two-dimensional code image, including:
  • Step 1 Call the two-dimensional code image
  • Step 2 Determine the type of the two-dimensional code image
  • Step 3 According to the judgment result, select the corresponding image analysis method
  • Step 4 Analyze the two-dimensional code image based on the image analysis method.
  • the method of invoking the two-dimensional code image in step 1 includes capturing or scanning the two-dimensional code image and/or receiving the two-dimensional code image.
  • the step 2 receiving the two-dimensional code image includes:
  • the two-dimensional code image is stored in a storage unit, and the two-dimensional code image is called in the storage unit.
  • the type of the two-dimensional code image in the step 3 includes at least the original code image and the non-original code image, the original code image is the original file of the two-dimensional code image without image noise, and the non-original code image is Image noise of the two-dimensional code to take or scan the image.
  • determining the type of the two-dimensional code image specifically includes: acquiring color gamut information of the image, determining the type of color in the image according to the color gamut information, and determining whether it is the original code image according to the type of color.
  • determining the type of the two-dimensional code image specifically includes: obtaining size information of the image, and determining the type of the two-dimensional code image according to the size information of the image, wherein the size information is the length and width of the image proportion.
  • the determining the type of the two-dimensional code image according to the size information of the image specifically includes: if the aspect ratio of the image is within the aspect ratio of the two-dimensional code, the two-dimensional code The image belongs to the original code image; otherwise, the two-dimensional code image is a non-original code image.
  • the two-dimensional code image belongs to the original code image, the two-dimensional code image is directly analyzed.
  • the two-dimensional code image is a non-original code image
  • the method further includes step 5: outputting and presenting the data obtained by the analysis.
  • a device for quickly analyzing a two-dimensional code image comprising:
  • An image judging unit for calling the two-dimensional code image and judging the type of the two-dimensional code image
  • the two-dimensional code analysis unit selects a corresponding image analysis method according to the judgment result, and analyzes the two-dimensional code image;
  • the data acquisition unit is used to acquire the data obtained by the analysis.
  • the device further includes:
  • the image receiving unit is used to obtain the two-dimensional code image.
  • the device further includes:
  • the data storage unit is used to store the two-dimensional code image.
  • the method for the image receiving unit to obtain the two-dimensional code image includes photographing or scanning to obtain the two-dimensional code image, and/or directly receiving the two-dimensional code image through the network.
  • the type of the two-dimensional code image includes at least an original code image and a non-original code image
  • the original code image refers to an original file of a two-dimensional code image without image noise
  • the non-original code image refers to an image with noisy QR code to take or scan the image.
  • determining the type of the two-dimensional code image specifically includes: acquiring color gamut information of the image, determining the type of color in the image according to the color gamut information, and determining whether it is the original code image according to the type of color.
  • determining the type of the two-dimensional code image specifically includes: obtaining size information of the image, and determining the type of the two-dimensional code image according to the size information of the image, wherein the size information is the length and width of the image proportion.
  • the determining the type of the two-dimensional code image according to the size information of the image specifically includes: if the aspect ratio of the image is within the aspect ratio of the two-dimensional code, the two-dimensional code The image belongs to the original code image; otherwise, the two-dimensional code image is a non-original code image.
  • the two-dimensional code analysis unit selecting the image analysis method corresponding to the two-dimensional code image is: directly analyzing the two-dimensional code image.
  • the two-dimensional code analysis unit unit selects the image analysis method corresponding to the two-dimensional code image as follows: firstly, perform image reduction on the two-dimensional code image. Image preprocessing for noise and image correction to obtain a preprocessed image, and then perform analysis processing on the preprocessed image.
  • the device further includes a data output unit for outputting and presenting the analyzed data.
  • the method and device for quickly analyzing the two-dimensional code image provided by the present invention
  • the QR code image stored in the device is directly called for analysis, which reduces the time required for scanning and improves the success rate of image analysis.
  • the QR code image analysis process no longer depends on the camera device, which is useful to reduce costs.
  • the present invention adopts different image analysis methods according to the type of the two-dimensional code image, which reduces unnecessary operations in the image analysis process and accelerates the speed of the two-dimensional code image analysis.
  • Fig. 1 is a flowchart of a method for analyzing a two-dimensional code image provided by the present invention.
  • the embodiment of the present invention provides a two-dimensional code Image analysis method and device.
  • This embodiment provides a method for quickly analyzing a two-dimensional code image, as shown in FIG. 1.
  • Step 1 Obtain the QR code image and store the QR code image.
  • the method of obtaining the two-dimensional code image can be to use the camera to directly capture the two-dimensional code image, and/or to receive the two-dimensional code image through the network.
  • the two-dimensional code image can also be divided into no image The original file of the noisy two-dimensional code image, that is, the original code image; and the non-original code image of the two-dimensional code with image noise, such as a captured image. If the image data is obtained through the network, the HD camera hardware is no longer needed at this time; if the camera is used to take photos, compared to the way of using the camera to scan the QR code to analyze the QR code image, the solution of the present invention requires the camera It is also low.
  • the solution of the present invention makes the two-dimensional code image analysis process no longer dependent on the camera device, which greatly reduces the development cost of the device hardware.
  • the two-dimensional code image can be stored in the device, for example, in the storage unit of the device.
  • Step 2 Call the QR code image.
  • the two-dimensional code image is called from the location where the two-dimensional code image is stored, and perform the two-dimensional code analysis processing. For example, when the two-dimensional code image is stored in the storage unit, the two-dimensional code image is called through the storage unit.
  • the QR code image is called from the local storage location, such as the storage unit, instead of relying on the camera device, directly calling the QR code image stored in the device, reducing the time required for scanning and avoiding scanning Unclear images, etc., help to improve the success rate of QR code image analysis and reduce the time required for the entire analysis process.
  • Step 3 Determine the type of QR code image.
  • the type of the image can be judged according to the size of the image, or the type of the image can be judged by the color gamut information of the image, and it can also be judged whether the image is the original code image through other simple image processing in the field.
  • the specific method is to obtain the color gamut information of the image.
  • the color gamut is a method of encoding a color, and also refers to the sum of colors that can be produced by a technical system. Determine the type of color in the image based on the color gamut information, because the original code is generally black and white, and the color gamut of the image is not strictly black and white due to other factors such as light. If the color of the two-dimensional code image is black and white, the two-dimensional code image belongs to the original code image; if it contains other colors, the two-dimensional code image belongs to the non-original code image.
  • the specific method is: to obtain the size ratio of the image, generally the size ratio of the original code image is the aspect ratio of the two-dimensional code; and for the non-original code image, the Randomness, the proportion of non-original code images is generally random. Therefore, when the aspect ratio of the image is equal to the aspect ratio of the two-dimensional code, or within the range of 10% fluctuation of the aspect ratio of the two-dimensional code, the two-dimensional code image belongs to the original code image; otherwise, the two-dimensional code The image is a non-original image.
  • Step 4 According to the judgment result, select the corresponding image analysis method.
  • step 3 it is determined whether the two-dimensional code image belongs to the original code image or the non-original code image. If the two-dimensional code image belongs to the original code image, the corresponding analysis method is selected as follows: directly analyze the two-dimensional code image; if the two-dimensional code image is a non-original code image, the corresponding analysis method is selected as follows: Perform image preprocessing including image noise reduction and image correction on the two-dimensional code image to obtain the preprocessed image, and then perform analysis processing on the preprocessed image. If the image contains noise, then image preprocessing including image noise reduction and image correction must be done. These processing are relatively time-consuming operations, but if it is the original code image (no noise), it is not The time-consuming image preprocessing described earlier is required. In this embodiment, different analysis processing methods are selected through type judgment in advance to avoid unnecessary data processing operations, which can speed up analysis and reduce time-consuming.
  • Step 5 Analyze the QR code image based on the image analysis method.
  • the current two-dimensional code image is analyzed.
  • Step 6 Obtain the analyzed data.
  • the content data contained in the QR code image is obtained from the analysis result.
  • this embodiment can also output the obtained content data and/or present it on the two-dimensional code recognition device.
  • This embodiment provides an apparatus for quickly analyzing a two-dimensional code image, including:
  • the image receiving unit is used to obtain the two-dimensional code image.
  • the two-dimensional code image can be captured by the camera, and/or the two-dimensional code image can be directly received through the network.
  • the data storage unit is used to store the two-dimensional code image, and the two-dimensional code image can be stored in the storage unit.
  • the image judgment unit is used to call the two-dimensional code image and judge the type of the two-dimensional code image.
  • the two-dimensional code image can be called through the storage unit to determine whether the two-dimensional code image is the original code image or the non-original code image.
  • the original code image refers to the original file of the QR code image without image noise
  • the non-original code image refers to the captured or scanned image of the QR code with image noise.
  • the type of the image can be judged according to the size of the image, or the type of the image can be judged by the color gamut information of the image, and it can also be judged whether the image is the original code image through other simple image processing in the field.
  • the specific judgment method is the same as that in the second embodiment, and will not be repeated in this embodiment.
  • the two-dimensional code analysis unit is used to select the corresponding image analysis method according to the judgment result. If the two-dimensional code image belongs to the original code image, the two-dimensional code analysis unit selects the image analysis method corresponding to the two-dimensional code image: directly analyze the two-dimensional code image; if the two-dimensional code image is a non-original code image, The code analysis unit selects the image analysis method corresponding to the two-dimensional code image: first, perform image preprocessing including image noise reduction and image correction on the two-dimensional code image, obtain the preprocessed image, and then analyze the preprocessed image deal with. It is used to analyze the QR code image based on the image analysis method.
  • the data acquisition unit is used to acquire the data obtained by analysis.
  • the device may also include a data output unit for outputting and presenting the analyzed data.
  • the method and device for quickly analyzing a two-dimensional code image provided by the embodiments of the present invention have the following beneficial effects:
  • the camera pixel of the device of the present invention is relatively low or damaged, or the device does not have a camera, which does not affect the recognition of the QR code, so that the QR code image analysis process no longer depends on the camera device, which greatly reduces the development cost of the device hardware ;
  • the present invention directly calls the two-dimensional code image stored in the device, reduces the time required for scanning, and avoids unclear images caused by scanning, which is beneficial to improve the analysis success rate of the two-dimensional code image and reduce the overall The time required for the analysis process;

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Toxicology (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

一种快速解析二维码图像的方法,包括:步骤1:调用所述二维码图像;步骤2:判断所述二维码图像的类型;步骤3:根据判断的结果,选择相对应的图像解析方法;步骤4:基于所述图像解析方法,解析所述二维码图像。该方法解决了高密度二维码解析成功率低,二维码解析技术对摄像头依赖性较高的技术问题,提高了识别成功率和识别速度,降低了对硬件的依赖性,节约了成本。

Description

一种快速解析二维码图像的方法及装置 技术领域
本发明涉及数据识别领域,特别是二维码技术。
背景技术
URL是统一资源定位符,对可以从互联网上得到的资源的位置和访问方法的一种简洁的表示,是互联网上标准资源的地址。互联网上的每个文件都有一个唯一的URL,它包含的信息指出文件的位置以及浏览器应该怎么处理它。现有技术中,由于二维码一般依赖URL做网络请求,其包含的内容比较少,因此,该二维码的密度是相对较低的。在这种情况下,通过摄像头扫描的方式,是比较容易解析得到二维码的内容,或者说摄像头扫描二维码的成功率比较高。但是随着二维码的密度增加,扫描解析的成功率将降低。所以针对高密度的二维码,扫码解析将成为一种很难解析二维码图像的方式。此外,当前二维码扫码解析技术对于扫码的摄像头依赖性很高,一旦摄像头设备比较老旧或者劳损,那么扫描识别的成功率将会大打折扣。
发明内容
本发明为解决现有技术存在的高密度二维码解析成功率低,二维码解析技术对摄像头依赖性较高的技术问题,提出一种成功率高、识别速度快、对硬件依赖性低的二维码图像解析方式及装置。
为实现上述目的,本发明提供一种快速解析二维码图像的方法包括:
步骤1:调用所述二维码图像;
步骤2:判断所述二维码图像的类型;
步骤3:根据判断的结果,选择相对应的图像解析方法;
步骤4:基于所述图像解析方法,解析所述二维码图像。
优选的,所述步骤1中调用所述二维码图像的方式包括拍摄或扫描获得二维码图像,和/或接收二维码图像。
优选的,所述步骤2接收二维码图像包括:
将所述二维码图像存储于存储单元中,在存储单元中调用所述二维码图像。
优选的,所述步骤3中二维码图像的类型至少包括原码图像和非原码图像, 所述原码图像为没有图像噪点的二维码图像原始文件,所述非原码图像为有图像噪点的二维码拍摄或扫描图像。
优选的,判断所述二维码图像的类型具体包括:获取图像的色域信息,根据所述色域信息判断图像中颜色的种类,根据颜色的种类判断是否为原码图像。
优选的,判断所述二维码图像的类型具体包括:获取图像的尺寸信息,根据所述图像的尺寸信息判断所述二维码图像的类型,其中,所述尺寸信息为图像的长宽尺寸比例。
优选的,所述根据所述图像的尺寸信息判断所述二维码图像的类型具体包括:若所述图像的长宽尺寸比例在二维码的长宽比例范围内,则所述二维码图像属于原码图像;否则,所述二维码图像属于非原码图像。
优选的,所述步骤4中若所述二维码图像属于原码图像,直接对所述二维码图像进行解析处理。
优选的,所述步骤4中若所述二维码图像属于非原码图像,首先对所述二维码图像进行包括图像降噪、图像矫正的图像预处理,获得预处理后的图像,然后对所述预处理后的图像进行解析处理。
优选的,所述方法还包括步骤5:输出并呈现所述解析得到的数据。
一种快速解析二维码图像的装置,所述装置包括:
图像判断单元,用于调用所述二维码图像,判断所述二维码图像的类型;
二维码解析单元,根据所述判断的结果,选择相对应的图像解析方法,解析所述二维码图像;
数据获取单元,用于获取所述解析得到的数据。
优选的,所述装置还包括:
图像接收单元,用于获取二维码图像。
优选的,所述装置还包括:
数据存储单元,用于存储所述二维码图像。
优选的,所述图像接收单元获取二维码图像的方式包括拍摄或扫描获得二维码图像,和/或直接通过网络接收二维码图像。
优选的,所述二维码图像的类型至少包括原码图像和非原码图像,所述原码图像是指没有图像噪点的二维码图像原始文件,所述非原码图像是指有图像噪点的二维码拍摄或扫描图像。
优选的,判断所述二维码图像的类型具体包括:获取图像的色域信息,根据所述色域信息判断图像中颜色的种类,根据颜色的种类判断是否为原码图像。
优选的,判断所述二维码图像的类型具体包括:获取图像的尺寸信息,根据 所述图像的尺寸信息判断所述二维码图像的类型,其中,所述尺寸信息为图像的长宽尺寸比例。
优选的,所述根据所述图像的尺寸信息判断所述二维码图像的类型具体包括:若所述图像的长宽尺寸比例在二维码的长宽比例范围内,则所述二维码图像属于原码图像;否则,所述二维码图像属于非原码图像。
优选的,若所述二维码图像属于原码图像,所述二维码解析单元选择所述二维码图像对应的图像解析方法为:直接对所述二维码图像进行解析处理。
优选的,若所述二维码图像属于非原码图像,所述二维码解析单元单元选择所述二维码图像对应的图像解析方法为:首先对所述二维码图像进行包括图像降噪、图像矫正的图像预处理,获得预处理后的图像,然后对所述预处理后的图像进行解析处理。
优选的,所述装置还包括数据输出单元,用于输出并呈现所述解析得到的数据。
为解决现有技术存在的高密度二维码扫码解析成功率低,二维码扫码解析技术对摄像头依赖性较高的技术问题,本发明提出的快速解析二维码图像的方法及装置,直接调用设备中存储的二维码图像进行解析,减少了扫描所需要的时间,提高了图像的解析成功率,二维码图像解析过程不再依赖于摄像头设备,有利用降低成本。此外,本发明根据二维码图像的类型采用不同的图像解析方法,减少了图像解析过程中不必要的操作,加快了二维码图像解析的速度。
附图说明
图1是本发明提供的一种二维码图像解析方法的流程图。
具体实施方式
下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护范围。
鉴于现有的方法不能实现快速、高成功率的高密度二维码图像解析,以及现有的二维码图像扫描解析方法对摄像头依赖性较高,本发明实施例提供了一种二维码图像解析方法及装置。
实施例一
本实施例提供一种快速解析二维码图像的方法,如图1所示。
步骤1:获取二维码图像,存储二维码图像。
获取二维码图像的方法可以是利用摄像头直接拍摄获得二维码图像,和/或通过网络接收二维码图像,根据获得二维码图像的方式不同,二维码图像也可以分为没有图像噪点的二维码图像原始文件,即原码图像;和有图像噪点的二维码非原码图像,例如拍摄图像。如果通过网络的方式获取图像数据,此时不再需要高清摄像头硬件;如果使用摄像头来拍摄照片,那相对于利用摄像头扫码解析二维码图像的方式来说,本发明的方案对摄像头的要求也是偏低的。因此,即使二维码识别设备的摄像头像素比较低或存在破损,又或者设备没有摄像头,都不再影响二维码的识别。对于用于识别二维码的设备来说,本发明的方案使得二维码图像解析过程不再依赖于摄像头设备,大大降低设备硬件的开发成本。
存储二维码图像,可以将二维码图像存储于设备中,例如存储于设备存储单元中。
步骤2:调用二维码图像。
从存储二维码图像的位置调用二维码图像,进行二维码解析处理。例如,当二维码图像存储于存储单元时,则通过存储单元调用二维码图像。通过从本地存储的位置,例如存储单元,调用获得二维码图像,不再依赖于摄像头设备,直接调用设备内存储的二维码图像,减少了扫描所需要的时间,也避免了扫描导致的图像不清晰等情况,有利于提高二维码图像的解析成功率和减少整个解析过程所需的时间。
步骤3:判断二维码图像的类型。
判断二维码图像属于原码图像还是非原码图像。
可以根据图像的尺寸判断图像的类型,也可以是通过图像的色域信息判断图像的类型,还可以通过本领域其他简单的图像处理判断图像是否为原码图像。
若通过图像的色域信息判断图像的类型,具体方法为:获取图像的色域信息,色域是对一种颜色进行编码的方法,也指一个技术系统能够产生的颜色的总和。根据色域信息判断图像中颜色的种类,因为原码一般是黑白,而一般拍摄照片由于光线等其他因素影响,其图像的色域不是严格的黑白两色。若二维码图像的颜色是黑色和白色,则二维码图像属于原码图像;若包含其他颜色,则二维码图像属于非原码图像。
通过判断图片尺寸的方法决定其是否为原码图像是一种耗时较少的处理方法。若通过图像的尺寸信息判断图像的类型,具体方法为:获取图像的尺寸比例,一般原码图像的尺寸比例,就是二维码的长宽比例;而对于非原码图像而言,由 于拍摄的随机性,其非原码图像的比例一般为随机的。因此,当图像的长宽尺寸比例等于二维码的长宽比例,或在二维码的长宽比例上下浮动10%的范围内,则二维码图像属于原码图像;否则,二维码图像属于非原码图像。
步骤4:根据判断的结果,选择相对应的图像解析方法。
步骤3中判断二维码图像属于原码图像或是非原码图像。若所述二维码图像属于原码图像,选择其对应的解析方法为:直接对二维码图像进行解析处理;若二维码图像属于非原码图像,选择其对应的解析方法为:首先对二维码图像进行包含图像降噪、图像矫正的图像预处理,获得预处理后的图像,然后对预处理后的图像进行解析处理。如果图像中含有噪点,那就必须做包括图像减噪,图像矫正等方法的图像预处理,这些处理都是比较耗时的操作,而如果是原码图像(没有噪点)的情况下,就不需要前面描述的耗时图像预处理。本实施例中预先通过类型判断选择不同的解析处理方式,避免不必要的数据处理操作,可以加快解析速度,减少耗时。
步骤5:基于图像解析方法,解析二维码图像。
基于步骤4中选择的图像解析方式,对当前的二维码图像进行解析。
步骤6:获取解析得到的数据。
从解析结果中获得二维码图像所包含的内容数据。
进一步地,本实施例还可以将所获得的内容数据输出,和/或将其呈现于二维码识别设备上。
实施例二
本实施例提供一种快速解析二维码图像的装置,包括:
图像接收单元,用于获取二维码图像。可以利用摄像头拍摄获得二维码图像,和/或直接通过网络接收二维码图像。
数据存储单元,用于存储二维码图像,可以将二维码图像存储于存储单元中。
图像判断单元,用于调用二维码图像,判断二维码图像的类型。可以通过存储单元调用二维码图像,判断二维码图像属于原码图像还是非原码图像。原码图像是指没有图像噪点的二维码图像原始文件,非原码图像是指有图像噪点的二维码拍摄或扫描图像。可以根据图像的尺寸判断图像的类型,也可以是通过图像的色域信息判断图像的类型,还可以通过本领域其他简单的图像处理判断图像是否为原码图像。具体的判断方式与实施例二相同,本实施例中不再赘述。
二维码解析单元,用于根据判断的结果,选择相对应的图像解析方法。若二维码图像属于原码图像,二维码解析单元选择二维码图像对应的图像解析方法为:直接对二维码图像进行解析处理;若二维码图像属于非原码图像,二维码解析单 元选择二维码图像对应的图像解析方法为:首先对二维码图像进行包含图像降噪、图像矫正的图像预处理,获得预处理后的图像,然后对预处理后的图像进行解析处理。用于基于图像解析方法,解析二维码图像。
数据获取单元,用于获取解析得到的数据。
进一步地,装置还可以包括数据输出单元,用于输出并呈现解析得到的数据。
综上所述,本发明的实施例提供的快速解析二维码图像的方法及装置,具有以下有益效果:
(1)本发明设备的摄像头像素比较低或存在破损,又或者设备没有摄像头,不影响二维码的识别,使得二维码图像解析过程不再依赖于摄像头设备,大大降低设备硬件的开发成本;
(2)本发明直接调用设备内存储的二维码图像,减少了扫描所需要的时间,也避免了扫描导致的图像不清晰等情况,有利于提高二维码图像的解析成功率和减少整个解析过程所需的时间;
(3)本发明图像类型的判断和解析方式的选择,可以避免不必要的数据处理操作,加快解析速度。
以上所述的具体实施例,对本发明的目的,技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (21)

  1. 一种快速解析二维码图像的方法,其特征在于,包括:
    步骤1:调用所述二维码图像;
    步骤2:判断所述二维码图像的类型;
    步骤3:根据判断的结果,选择相对应的图像解析方法;
    步骤4:基于所述图像解析方法,解析所述二维码图像。
  2. 如权利要求1所述的快速解析二维码图像的方法,其特征在于,所述步骤1中调用所述二维码图像的方式包括拍摄或扫描获得二维码图像,和/或接收二维码图像。
  3. 如权利要求2所述的快速解析二维码图像的方法,其特征在于,所述步骤2接收二维码图像包括:
    将所述二维码图像存储于存储单元中,在存储单元中调用所述二维码图像。
  4. 如权利要求1所述的快速解析二维码图像的方法,其特征在于,所述步骤3中二维码图像的类型至少包括原码图像和非原码图像,所述原码图像为没有图像噪点的二维码图像原始文件,所述非原码图像为有图像噪点的二维码拍摄或扫描图像。
  5. 如权利要求4所述的快速解析二维码图像的方法,其特征在于,判断所述二维码图像的类型具体包括:获取图像的色域信息,根据所述色域信息判断图像中颜色的种类,根据颜色的种类判断是否为原码图像。
  6. 如权利要求4所述的快速解析二维码图像的方法,其特征在于,判断所述二维码图像的类型具体包括:获取图像的尺寸信息,根据所述图像的尺寸信息判断所述二维码图像的类型,其中,所述尺寸信息为图像的长宽尺寸比例。
  7. 如权利要求6所述的快速解析二维码图像的方法,其特征在于,所述根据所述图像的尺寸信息判断所述二维码图像的类型具体包括:若所述图像的长宽尺寸比例在二维码的长宽比例范围内,则所述二维码图像属于原码图像;否则,所述二维码图像属于非原码图像。
  8. 如权利要求4-6中任一项所述的快速解析二维码图像的方法,其特征在于,所述步骤4中若所述二维码图像属于原码图像,直接对所述二维码图像进行解析处理。
  9. 如权利要求4-6中任一项所述的快速解析二维码图像的方法,其特征在于,所述步骤4中若所述二维码图像属于非原码图像,首先对所述二维码图像进行包括图像降噪、图像矫正的图像预处理,获得预处理后的图像,然后对所述预处理后的图像进行解析处理。
  10. 如权利要求1所述的快速解析二维码图像的方法,其特征在于,所述方 法还包括步骤5:输出并呈现所述解析得到的数据。
  11. 一种快速解析二维码图像的装置,其特征在于,所述装置包括:
    图像判断单元,用于调用所述二维码图像,判断所述二维码图像的类型;
    二维码解析单元,根据所述判断的结果,选择相对应的图像解析方法,解析所述二维码图像;
    数据获取单元,用于获取所述解析得到的数据。
  12. 如权利要求11所述的快速解析二维码图像的装置,其特征在于,所述装置还包括:
    图像接收单元,用于获取二维码图像。
  13. 如权利要求11所述的快速解析二维码图像的装置,其特征在于,所述装置还包括:
    数据存储单元,用于存储所述二维码图像。
  14. 如权利要求11所述的快速解析二维码图像的装置,其特征在于,所述图像接收单元获取二维码图像的方式包括拍摄或扫描获得二维码图像,和/或直接通过网络接收二维码图像。
  15. 如权利要求11所述的快速解析二维码图像的装置,其特征在于,所述二维码图像的类型包括原码图像和非原码图像,所述原码图像是指没有图像噪点的二维码图像原始文件,所述非原码图像是指有图像噪点的二维码拍摄或扫描图像。
  16. 如权利要求15所述的快速解析二维码图像的装置,其特征在于,判断所述二维码图像的类型具体包括:获取图像的色域信息,根据所述色域信息判断图像中颜色的种类,根据颜色的种类判断是否为原码图像。
  17. 如权利要求15所述的快速解析二维码图像的装置,其特征在于,判断所述二维码图像的类型具体包括:获取图像的尺寸信息,根据所述图像的尺寸信息判断所述二维码图像的类型,其中,所述尺寸信息为图像的长宽尺寸比例。
  18. 如权利要求15所述的快速解析二维码图像的装置,其特征在于,所述根据所述图像的尺寸信息判断所述二维码图像的类型具体包括:若所述图像的长宽尺寸比例接近二维码的长宽比例,则所述二维码图像属于原码图像;否则,所述二维码图像属于非原码图像。
  19. 如权利要求15-17中任一项所述的快速解析二维码图像的装置,其特征在于,若所述二维码图像属于原码图像,所述二维码解析单元选择所述二维码图像对应的图像解析方法为:直接对所述二维码图像进行解析处理。
  20. 如权利要求15-17中任一项所述的快速解析二维码图像的装置,其特征在于,若所述二维码图像属于非原码图像,所述二维码解析单元选择所述二维 码图像对应的图像解析方法为:首先对所述二维码图像进行包括图像降噪、图像矫正的图像预处理,获得预处理后的图像,然后对所述预处理后的图像进行解析处理。
  21. 如权利要求11所述的快速解析二维码图像的装置,其特征在于,所述装置还包括数据输出单元,用于输出并呈现所述解析得到的数据。
PCT/CN2020/078336 2019-03-28 2020-03-07 一种快速解析二维码图像的方法及装置 WO2020192399A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910241181.XA CN109977720B (zh) 2019-03-28 2019-03-28 一种快速解析二维码图像的方法及装置
CN201910241181.X 2019-03-28

Publications (1)

Publication Number Publication Date
WO2020192399A1 true WO2020192399A1 (zh) 2020-10-01

Family

ID=67081095

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/078336 WO2020192399A1 (zh) 2019-03-28 2020-03-07 一种快速解析二维码图像的方法及装置

Country Status (2)

Country Link
CN (1) CN109977720B (zh)
WO (1) WO2020192399A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977720B (zh) * 2019-03-28 2021-07-20 尤尼泰克(嘉兴)信息技术有限公司 一种快速解析二维码图像的方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100155464A1 (en) * 2008-12-22 2010-06-24 Canon Kabushiki Kaisha Code detection and decoding system
CN103400099A (zh) * 2013-07-29 2013-11-20 宇龙计算机通信科技(深圳)有限公司 终端和二维码识别方法
CN105046184A (zh) * 2015-07-22 2015-11-11 福建新大陆自动识别技术有限公司 基于畸变图像校正的二维码解码方法和系统
CN106682560A (zh) * 2016-12-28 2017-05-17 深圳市共进电子股份有限公司 二维码识别方法、装置和系统
CN108573184A (zh) * 2018-03-12 2018-09-25 深圳元启智能技术有限公司 一种二维码识别方法、模块及计算机可读存储介质
CN109977720A (zh) * 2019-03-28 2019-07-05 尤尼泰克(嘉兴)信息技术有限公司 一种快速解析二维码图像的方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534414A (zh) * 2008-03-11 2009-09-16 中兴通讯股份有限公司 一种流媒体播放的方法及终端
CN101339599A (zh) * 2008-08-14 2009-01-07 深圳华为通信技术有限公司 一种获取二维码的方法和终端
CN101710407A (zh) * 2009-12-29 2010-05-19 江西科技师范学院 一种基于二维码采用手机进行消费结算的支付方法及其支付系统
CN106611171A (zh) * 2015-10-22 2017-05-03 上海天涛智能科技有限公司 一种扫描录单的方法及装置
CN105574466B (zh) * 2015-12-23 2018-07-31 苏州佳世达电通有限公司 条码处理方法及条码处理装置
CN106056028B (zh) * 2016-06-29 2018-09-28 浙江速狐科技有限公司 一种快速扫描录单的方法及其装置
CN106412907B (zh) * 2016-09-14 2020-02-14 Oppo广东移动通信有限公司 一种网络接入方法、相关设备及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100155464A1 (en) * 2008-12-22 2010-06-24 Canon Kabushiki Kaisha Code detection and decoding system
CN103400099A (zh) * 2013-07-29 2013-11-20 宇龙计算机通信科技(深圳)有限公司 终端和二维码识别方法
CN105046184A (zh) * 2015-07-22 2015-11-11 福建新大陆自动识别技术有限公司 基于畸变图像校正的二维码解码方法和系统
CN106682560A (zh) * 2016-12-28 2017-05-17 深圳市共进电子股份有限公司 二维码识别方法、装置和系统
CN108573184A (zh) * 2018-03-12 2018-09-25 深圳元启智能技术有限公司 一种二维码识别方法、模块及计算机可读存储介质
CN109977720A (zh) * 2019-03-28 2019-07-05 尤尼泰克(嘉兴)信息技术有限公司 一种快速解析二维码图像的方法及装置

Also Published As

Publication number Publication date
CN109977720B (zh) 2021-07-20
CN109977720A (zh) 2019-07-05

Similar Documents

Publication Publication Date Title
Piva An overview on image forensics
US7492974B2 (en) Gray scale image cleaning system and method
US20150071484A1 (en) Steganographic encoding and decoding
CN108933935A (zh) 视频通信系统的检测方法、装置、存储介质和计算机设备
US8417052B2 (en) Instruction system, instruction apparatus, and computer readable medium
US8446652B2 (en) Image quality monitoring and tagging at scan time
WO2020108060A1 (zh) 视频处理方法、装置、电子设备以及存储介质
US20030026447A1 (en) Reliable detection of LSB steganography in color and grayscale images
US7724981B2 (en) Adaptive contrast control systems and methods
WO2020192399A1 (zh) 一种快速解析二维码图像的方法及装置
CN113469869B (zh) 一种图像管理方法和装置
CN112911341B (zh) 图像处理方法、解码器网络训练方法、装置、设备和介质
WO2019127892A1 (zh) 远程拍摄图片的方法、电子装置及计算机可读存储介质
JP2014123881A (ja) 情報処理装置、情報処理方法、コンピュータプログラム
JP6892625B2 (ja) データ処理装置、および、コンピュータプログラム
JP2003505893A (ja) 画像分類及びハ−フトーン検出の方法及び装置
WO2017219562A1 (zh) 一种二维码生成方法及装置
Patel et al. An improvement of forgery video detection technique using Error Level Analysis
CN115330661A (zh) 视频图像质量检测方法、装置、设备及可读存储介质
Wan et al. A video forensic technique for detecting frame integrity using human visual system-inspired measure
JP5629238B2 (ja) 画像処理プログラム、画像処理装置及び画像処理方法
Jiang et al. Automated image quality assessment for certificates and bills
US8004569B2 (en) Method and apparatus for obtaining still image frame with anti-vibration clearness for image processing device
CN112559111B (zh) 一种共享桌面时的截屏方法和装置
TWI703504B (zh) 序號檢測系統

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20777126

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20777126

Country of ref document: EP

Kind code of ref document: A1