WO2014019293A1 - 基于智能手机的二维码标签防伪识别系统及方法 - Google Patents

基于智能手机的二维码标签防伪识别系统及方法 Download PDF

Info

Publication number
WO2014019293A1
WO2014019293A1 PCT/CN2012/083444 CN2012083444W WO2014019293A1 WO 2014019293 A1 WO2014019293 A1 WO 2014019293A1 CN 2012083444 W CN2012083444 W CN 2012083444W WO 2014019293 A1 WO2014019293 A1 WO 2014019293A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional code
image
data
counterfeiting
label
Prior art date
Application number
PCT/CN2012/083444
Other languages
English (en)
French (fr)
Inventor
王建程
Original Assignee
Wang Jiancheng
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 Wang Jiancheng filed Critical Wang Jiancheng
Publication of WO2014019293A1 publication Critical patent/WO2014019293A1/zh

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/06Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using wave or particle radiation
    • G07D7/12Visible light, infrared or ultraviolet radiation
    • G07D7/128Viewing devices
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/004Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using digital security elements, e.g. information coded on a magnetic thread or strip
    • G07D7/0047Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using digital security elements, e.g. information coded on a magnetic thread or strip using checkcodes, e.g. coded numbers derived from serial number and denomination

Definitions

  • the invention relates to an anti-counterfeiting identification system and method, in particular to a two-dimensional code label anti-counterfeiting identification system and method based on a smart phone.
  • a two-dimensional bar code/dimensional barcode is a black and white graphic that records data symbol information in a plane (two-dimensional direction) by a certain geometric pattern in a certain regular manner; Using the concept of the "0", "1" bit stream that forms the basis of the computer's internal logic, several geometric shapes corresponding to the binary are used to represent the literal value information, and the information is automatically read by the image input device or the photoelectric scanning device to realize the information.
  • Automatic processing It has some commonalities of bar code technology: Each code system has its own specific character set; each character occupies a certain width; has a certain check function. At the same time, it also has the functions of automatic identification of different lines of information, and processing of graphic rotation changes.
  • the commonly used code systems are: Data Matrix, Maxi Code, Aztec, QR Code,
  • the two-dimensional code has been widely used in forms, security, tracking, license, inventory counting due to its high-capacity high-density encoding, strong fault tolerance, high decoding reliability, anti-counterfeiting, and low-level production. Data backup and other aspects.
  • the anti-counterfeiting technology used in the prior art generally uses a laser tag, or a query-type digital anti-counterfeit tag, or a texture anti-counterfeit tag, or a security line anti-counterfeiting paper technology, although these methods are easy to identify, safe and difficult to forge
  • there is no fault such as fault tolerance.
  • the anti-counterfeiting code is fouled and some of them are unrecognizable, the anti-counterfeiting loses its effect.
  • an embodiment of the present invention provides a two-dimensional code label anti-counterfeiting identification system based on a smart phone, including an image acquisition module, a two-dimensional code recognition module, a remote access module, a database query module, and an anti-counterfeit label image.
  • the image acquisition module acquires a two-dimensional code image on the security label
  • the two-dimensional code recognition module preprocesses the two-dimensional code image, converts it into an identifiable binary image, and extracts decoded data of the two-dimensional code therein;
  • the database query module acquires the decoded data of the two-dimensional code included in the request service sent by the remote access module, and searches for the image data of the corresponding anti-counterfeit tag by querying the database; the anti-counterfeit tag image acquisition return module For converting image data of the security label into
  • the XML file is returned to the remote access module and displayed on the mobile terminal.
  • the two-dimensional code identification module includes an image pre-processing unit and a two-dimensional code data identification unit;
  • the image pre-processing unit performs image gradation processing on the two-dimensional code image by weighted averaging method, and performs binarization processing to set the image gradation value to 0 or 255, and the image pre-processing unit further utilizes
  • the Sobd edge detection method acquires an edge feature point of the binarized image, and extracts an image of a continuous complete boundary;
  • the two-dimensional code data identification unit identifies a format and version information of the image of the continuous complete boundary, and performs a mode on the coding region in the matrix by using a mask pattern to obtain a codeword, and extracts the codeword from the codeword. And a data codeword stream and an error correction codeword stream, performing error correction processing on the data codeword stream according to the error correction codeword stream, and decoding the error-corrected data codeword stream to obtain decoded data.
  • the image pre-processing unit further performs median filtering on the gray-scaled graphics to remove part of the noise.
  • the image pre-processing unit obtains the tilt angle of the binarized image using Hough transform, and performs tilt correction processing.
  • the mobile terminal acquires the image data information in the XML file and converts it into an image file format for display.
  • the embodiment of the present invention further provides a method for identifying an anti-counterfeiting code of a two-dimensional code label based on a smart phone, and acquiring decoding data of a two-dimensional code submitted by the mobile terminal, and matching the decoded data of the two-dimensional code by querying a database.
  • Image data of the security label; User and entity tags are used for anti-counterfeiting identification.
  • the two-dimensional code image on the anti-counterfeit label acquired by the mobile phone terminal is subjected to a two-dimensional code recognition operation to obtain decoded data of the two-dimensional code;
  • the two-dimensional code recognition operation includes performing the two-dimensional code image Image preprocessing step and step of performing two-dimensional code data identification;
  • the image pre-processing step is to gray-scale the two-dimensional code image, remove partial noise by median filtering, perform binarization processing on the pixel points, and perform edge extraction on the binarized image to calculate Performing a correction process on the angle of the image deflection;
  • the two-dimensional code data identifying step extracts the two-dimensional code format information and the mask pattern from the image that is completed by the correction process, and performs or processes the image coding region to remove the mask.
  • the two-dimensional code format extracts a data codeword stream and an error correction codeword stream, and decodes the data codeword stream using an error correcting codeword stream to obtain decoded data.
  • the obtaining the decoded data of the two-dimensional code submitted by the mobile terminal to obtain the request further acquires the user password for security request processing.
  • the mobile phone terminal further converts the image data of the anti-counterfeit tag that is requested to be returned into an image file for presentation.
  • the fake information is returned to the mobile phone terminal.
  • the implementation of the embodiments of the present invention has the following beneficial effects: combining the two-dimensional code with the mobile phone Internet of Things to realize the anti-counterfeiting technology, and performing preprocessing on the acquired two-dimensional code image by gray level, binarization, positioning, correction, etc.
  • the two-dimensional code image recognized by the easy-to-identify, and the data codeword stream and the error-correction codeword stream are extracted according to the two-dimensional code standard, and the corresponding anti-counterfeit label image is obtained from the decoded data to be displayed on the user's mobile phone.
  • anti-counterfeiting identification with the physical tag so as to achieve the anti-counterfeiting requirements of fault tolerance.
  • Figure 1 is a schematic view of the overall structure of the present invention
  • Figure 2 is a schematic flow chart of the present invention
  • FIG. 3 is a schematic flow chart of obtaining a two-dimensional code image according to the present invention.
  • FIG. 5 is a schematic diagram of a process of identifying a two-dimensional code image data
  • Fig. 6 is a flow chart for acquiring image data of an anti-counterfeit label.
  • FIG. 1 a schematic diagram of the overall structure of a smart phone-based two-dimensional code tag anti-counterfeiting identification system of the present invention is shown.
  • the embodiment of the invention consists of the image acquisition module 10, the two-dimensional code recognition module 20, the remote access module 30 on the mobile phone terminal, the database query module 40 on the remote WebService network server, and the anti-counterfeiting label image acquisition and return module 50.
  • the image acquisition module 10 is configured to acquire a two-dimensional code image on the security label, and use the API function provided by the operating system of the smart phone to drive the hardware part of the camera of the smart phone by using the underlying driver. Realize the preview size according to the screen orientation, realize the image autofocus function when the image is previewed, and complete the analysis and recording of the image data.
  • the two-dimensional code recognition module 20 preprocesses the two-dimensional code image collected by the image acquisition module 10, and converts it into an identifiable binarized image to obtain decoded data of the two-dimensional code therein.
  • the two-dimensional code recognition module 20 includes an image pre-processing unit 201 and a two-dimensional code data identification unit 202.
  • the image pre-processing unit 201 performs pre-processing on the two-dimensional code image by image graying, median filtering, binarization, edge extraction, image angle detection, and correction processing, wherein the image grayscale is the second on the anti-counterfeit label.
  • the image of the coded image is processed by the weighted average method for image graying; the median filtering is to remove some noise by neighborhood filtering or neighborhood mean filtering; binarization is the gray value of the pixel on the image.
  • edge extraction is to determine the edge feature points in the image through the Sobel edge detection method, forming a continuous complete boundary image processing
  • image angle detection is to obtain the tilt angle of the image by using Hough transform
  • Correction processing is the angle at which the calculated image is tilted, and the tilted image is corrected using the two-line interpolation method.
  • the two-dimensional code data identification unit 202 extracts the decoded data of the preprocessed two-dimensional code image by reading the two-dimensional code image format, de-masking, codeword extraction, error correction, and data decoding, wherein the two-dimensional code image is extracted.
  • the code image format is to extract the format of the two-dimensional code, the version information, the recognition error correction level and the mask pattern, and perform or de-mask using the obtained mask pattern and the coding region in the matrix of the two-dimensional code image.
  • Mode in the data matrix of the demasking, according to the arrangement of the data template, the 0, 1 data is extracted, and the data codeword stream and the error correcting codeword stream are obtained, and the data codeword stream is compared according to the error correcting codeword stream.
  • Error correction The level information is subjected to codeword error detection, and the error-corrected data is decoded according to the mode used, and the decoded data is obtained and the result is output.
  • the remote access module 30 takes the decoded data of the two-dimensional code data identifying unit 202 and the user password as parameters, generates a SOAP request, and embeds the SOAP into an HTTP POST request.
  • the WebService web server receives the SOAP request from the mobile terminal and authenticates it for security.
  • the database query module 40 obtains the two-dimensional code decoding data therein, queries the database, retrieves the image data of the corresponding security label, and converts the anti-forgery label image acquisition and return module 50 into an XML file, and returns the XML information to the database.
  • the WebService web server returns to the mobile terminal, and the mobile terminal analyzes the XML file and converts it into a JPG file for display, so that the user can compare the anti-counterfeit graphics under the two-dimensional code image for authenticity identification.
  • the embodiment of the invention further provides a method for anti-counterfeiting identification of a two-dimensional code label based on a smart phone, wherein the main idea is to complete the collection of the two-dimensional code image through the camera of the smart phone, and display the collected two-dimensional code image on the screen. And pre-processing grayscale, binarization, positioning, correction, etc., to prepare for the next step of two-dimensional code recognition, the two-dimensional code recognition is mainly based on the two-dimensional code standard to extract the decoded data, and Through remote access, the decoded data is used as a parameter to query the database to obtain the corresponding anti-counterfeit label picture, and return to the user's mobile phone for anti-counterfeiting purposes.
  • Step S10 enabling a camera of the mobile terminal
  • Step S11 obtaining a two-dimensional code image on the anti-counterfeit label
  • the specific process of this step is as shown in FIG. 3, and the hardware of the camera part is driven by the bottom layer driver S112 through the API function S111 provided by the mobile phone operating system through the embedded programming technology.
  • S113 and setting the pre-tightening size according to the direction in which the mobile phone is placed, analyzing the two-dimensional code image by autofocus, and recording S114.
  • Step S12 preprocessing the obtained two-dimensional code image, and the specific process thereof is as shown in FIG. 4, and the two-dimensional code image is grayed out S121, and each pixel of the two-dimensional code image is R, G, B uses the weighted average method for image graying processing, which reduces the requirements for storage and operation of smart phones, and reduces the hardware requirements for subsequent work, and improves the processing efficiency to a certain extent; Filtering S122, removing partial noise by neighborhood value filtering or neighborhood mean filtering.
  • the binarization of the image facilitates the further processing of the image, making the image into a single, and the amount of data is reduced, which can highlight the useful target contour; extracting the edge of the two-dimensional code image S124, through the Sobd edge measurement method, An image processing method for determining edge feature points in the image to form a continuous complete boundary; calculating a deflection angle S125 of the image using a Hough transform, and correcting the tilted image using a two-line interpolation method according to the calculated deflection angle.
  • Step S13 After the edge of the two-dimensional image is extracted, whether the two-dimensional code image is successfully positioned is determined to ensure that the acquired image is a valid identifiable image.
  • Step S14 performing two-dimensional code data recognition on the processed two-dimensional code image, and the specific process is as shown in FIG. 5, and extracting the format S141 step for the two-dimensional code image, including extracting the format, version information, identifying the error correction level, and using a mask pattern; a step S142 of removing the mask, using the mask pattern to perform an OR operation on the coded region in the two-dimensional code matrix to implement a demasking; a codeword extraction step S143, removing the two-dimensional code matrix of the mask According to the arrangement of the data template, the 0, 1 data is extracted to obtain the data codeword stream and the error correction codeword stream; the error detection step S144 uses the error correction codeword corresponding to the error correction level information to detect the error, If an error is found, error correction is performed; the data decoding step S145 decodes the error-corrected data according to the mode used, obtains decoded data, and outputs the result.
  • Step S15 The WebService network server receives the SOAP request generated by the mobile terminal by using the two-dimensional code decoding data and the user password as parameters, and performs security verification on the submitted request, and obtains the decoded data in the verification after passing the verification.
  • Step S16 Querying the database, and the WebService network server retrieves the image information data of the corresponding security label by using the ADO method of the database to use the database storage process in the remote database.
  • Step S17 Determine whether the image information data of the corresponding anti-counterfeit tag exists. If yes, the image data of the anti-alias tag is generated and sent back to the WebService network server for transmission to the mobile terminal. When it does not exist, the branch information is returned to the mobile terminal.
  • the mobile terminal obtains the XML file of the anti-counterfeit image from the Web Service server through the http protocol, analyzes the XML file, and converts the image information data of the anti-counterfeit tag into a mobile phone client by converting the JPG file.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

本发明实施例公开了一种基于智能手机的二维码标签防伪识别系统,通过二维码图像的采集,并将采集到的二维码图像进行灰度、二值化、定位、矫正等预处理,二维码识别则是主要根据二维码标准来提取出解码数据,并通过远程访问的方式,以解码数据作为参数向数据库查询以获得相对应的防伪标签图片,本发明实施例还公开了基于智能手机的二维码标签防伪识别方法。采用本发明,将二维码与手机物联网结合起来实现防伪技术,通过对采集到的二维码图进行灰度、二值化、定位、矫正等预处理,转换成易识别的二维码图像,并按二维码标准提取出数据码字流与纠错码字流,再由其中的解码数据向远程数据库中获取相应的防伪标签图片,显示于用户手机上,从而达到容错的防伪的要求。

Description

基于智能手机的二维码标签防伪识别系统及方法 技术领域
本发明涉及一种防伪识别系统及方法, 尤其涉及一种基于智能手机的二维 码标签防伪识别系统及方法。
背景技术 二维条码 /二维码( dimensional barcode )是用某种特定的几何图形按一定规 律在平面 (二维方向上)分布的黑白相间的图形记录数据符号信息的; 在代码 编制上巧妙地利用构成计算机内部逻辑基础的 "0"、 " 1" 比特流的概念, 使用 若干个与二进制相对应的几何形体来表示文字数值信息, 通过图象输入设备或 光电扫描设备自动识读以实现信息自动处理: 它具有条码技术的一些共性: 每 种码制有其特定的字符集; 每个字符占有一定的宽度; 具有一定的校验功能等。 同时还具有对不同行的信息自动识别功能、 及处理图形旋转变化等特点。 在许 多种类的二维条码中, 常用的码制有: Data Matrix, Maxi Code, Aztec, QR Code,
Vericode, PDF417, Ultracode, Code 49, Code 16K等。
二维码由于具有大容量的高密度编码、 容错能力强、 译码可靠性高、 可加 密的防伪、 制作成低低等优点, 已广泛应用于表单、 安全保密、 追踪、 证照、 存货盘点、 资料备援等方面。
而在现有技术中所采用的防伪技术一般采用的是激光标签, 或查询式数码 防伪标签, 或纹理防伪标签, 或安全线防伪纸技术, 这几种方式虽然筒单易识 别、 安全难度伪造, 但不具有容错性等缺陷, 如当防伪码出现污损造成其中部 分无法识别时, 防伪失去作用。
发明内容 本发明实施例所要解决的技术问题在于, 提供一种基于智能手机的二维码 标签防伪识别系统及方法。 可采用二维码结合手机物联网实现防伪技术。 为了解决上述技术问题, 本发明实施例提供了一种基于智能手机的二维码 标签防伪识别系统, 包括图像采集模块、 二维码识别模块、 远程访问模块、 数 据库查询模块、 防伪标签图片获取返回模块;
所述图像采集模块获取防伪标签上的二维码图像;
所述二维码识别模块对所述二维码图像进行预处理, 转换为可识别的二值 化图像, 并提取其中的二维码的解码数据;
所述数据库查询模块获取所述远程访问模块发出的请求服务中所包含的所 述二维码的解码数据, 通过查询数据库, 检索出相应的防伪标签的图像数据; 所述防伪标签图片获取返回模块用于将所述防伪标签的图像数据转化为
XML文件并返回于所述远程访问模块, 显示于手机终端上。
进一步地, 所述二维码识别模块包括图像预处理单元和二维码数据识别单 元;
所述图像预处理单元将所述二维码图像进行加权平均法的图像灰度化处 理, 并进行二值化处理, 使图像灰度值设置为 0或 255, 所述图像预处理单元还 利用 Sobd边缘检测方法获取所述二值化处理后的图像的边缘特征点,提取连续 完整边界的图像;
所述二维码数据识别单元识别所述连续完整边界的图像的格式以及版本信 息, 用掩模图形对矩阵中的编码区域进行或处量去俺模获取码字, 并从码字中 提取出数据码字流与糾错码字流, 根据所述糾错码字流对所述数据码字流进行 纠错处理, 并对纠错完毕的数据码字流进行解码, 得出解码数据。
进一步地, 所述图像预处理单元还将所述灰度化处理的图形进行中值滤波, 去除部分噪声。
进一步地, 所述图像预处理单元使用 Hough变换求出二值化处理后的图像 的倾斜角度, 并进行倾斜校正处理。
更进一步地,所述手机终端获取所述 XML文件中的图像数据信息转换为图 像文件格式进行显示。
相应地, 本发明实施例还提供了基于智能手机的二维码标签防伪识别方法, 获取手机终端提交请求的二维码的解码数据, 通过查询数据库, 匹配所述二维 码的解码数据相对应的防伪标签的图像数据; 用户与实体标签进行防伪识别。
进一步地, 所述手机终端获取的防伪标签上的二维码图像并进行二维码识 别操作获得所述二维码的解码数据; 所述二维码识别操作包括将所述二维码图 像进行图像预处理步骤与进行二维码数据识别步骤;
所述图像预处理步骤为将所述二维码图像进行灰度化, 利用中值滤波去除 部分噪声, 并将像素点进行二值化处理, 将二值化后的图形进行边缘提取, 计 算出图像偏转的角度, 进行校正处理; 所述二维码数据识别步骤为对校正处理 完成的图像提取出二维码格式信息、 掩模图形, 对图像编码区进行或处理, 去 除掩模, 根据所述的二维码格式提取出数据码字流与纠错码字流, 使用纠错码 字流对所述数据码字流进行解码, 得出解码数据。
进一步地, 所述获取手机终端提交请求的二维码的解码数据还获取用户密 码进行安全请求处理。
更进一步地, 所述手机终端还将请求返回的所述防伪标签的图像数据转换 成图像文件进行展现。
更进一步地, 当通过查询数据库匹配不到所述二维码的解码数据相对应的 防伪标签的图像数据时, 返回假标信息于手机终端。
实施本发明实施例, 具有如下有益效果: 将二维码与手机物联网结合起来 实现防伪技术, 通过对采集到的二维码图进行灰度、 二值化、 定位、 矫正等预 处理, 转换成易识别的二维码图像, 并按二维码标准提取出数据码字流与纠错 码字流, 再由其中的解码数据向远程数据库中获取相应的防伪标签图片, 显示 于用户手机上, 与实体标签进行防伪识别, 从而达到容错的防伪的要求。 附图说明
图 1是本发明的整体结构示意图;
图 2是本发明的流程示意图;
图 3是本发明获取二维码图像的流程示意图;
图 4是本发明图像预处理的流程示意图;
图 5是二维码图像数据识别流程示意图;
图 6是获取防伪标签的图像数据的流程图。 具体实施方式 为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明 作进一步地详细描述。
参照图 1 所示的本发明基于智能手机的二维码标签防伪识别系统的整体结 构示意图。
本发明实施例由手机终端上的图像采集模块 10、 二维码识别模块 20、 远程 访问模块 30与远程的 WebService网络服务器上的数据库查询模块 40、 防伪标 签图片获取返回模块 50组成。
图像采集模块 10用于获取防伪标签上的二维码图像, 通过智能手机的操作 系统提供的 API函数, 利用其底层驱动来驱动智能手机的摄像头的硬件部份。 实现根据屏幕方向设置预览尺寸、 图像预览时实现图像自动对焦功能、 完成图 像数据的分析、 记录。
二维码识别模块 20对图像采集模块 10所采集到的二维码图像进行预处理, 并转换成可识别的二值化图像, 以获得其中的二维码的解码数据。 二维码识别 模块 20包含了图像预处理单元 201和二维码数据识别单元 202。
图像预处理单元 201 通过图像灰度化、 中值滤波、 二值化、 边缘提取、 图 像角度检测、 校正处理对二维码图像进行预处理, 其中, 图像灰度化为将防伪 标签上的二维码图像使用加权平均法进行图像灰度化处理; 中值滤波为通过邻 域中值滤波或者邻域均值滤波方式, 去除部份噪声; 二值化是将图像上的像素 点的灰度值设置为 0或 255 , 筒化图像的处理; 边缘提取为通过 Sobel边缘检测 方法, 确定图像中边缘特征点, 形成连续完整边界的图像处理; 图像角度检测 为通过使用 Hough变换求出图像的倾斜角度; 校正处理为对计算出来的图像倾 斜的角度, 使用双线插值法校正倾斜的图像。
二维码数据识别单元 202通过识读二维码图像格式、 去掩模、 码字提取、 纠错、 数据解码实现对经过预处理的二维码图像进行解码数据的提取, 其中别 读二维码图像格式为提取二维码的格式、 版本信息、 识别纠错等级与掩模图形, 并利用获得的掩模图形与二维码图像的矩阵中的编码区域进行或处量, 从而实 现去掩模, 对去掩模的数据矩阵中, 按照数据模板的排列方式, 将 0, 1数据提 取出来, 得到数据码字流和纠错码字流, 根据纠错码字流对数据码字流与纠错 等级信息进行码字错误检错, 对纠错后的数据按照使用的模式进行解码, 得出 解码数据并输出结果。
远程访问模块 30将二维码数据识别单元 202的解码数据与用户密码作为参 数, 生成 SOAP请求, 并将 SOAP嵌入到一个 HTTP POST请求中。
WebService网络服务器接收手机终端的 SOAP请求, 并对其进行访问安全 进行验证。
数据库查询模块 40获出其中的二维码解码数据, 对数据库进行查询, 检索 出相应的防伪标签的图像数据,并由防伪标签图片获取返回模块 50转换成 XML 文件, 并把 XML信息回传给 WebService网络服务器返回手机终端上, 手机终 端将 XML文件进行分析,转换成 JPG文件进行显示,供用户对比二维码图像下 的防伪图形进行真伪鉴别。
本发明实施例还提供了基于智能手机的二维码标签防伪识别方法, 其主要 思想是通过智能手机的摄像头来完成二维码图像的采集, 并将采集到的二维码 图像在屏幕上显示, 并对其进行灰度、 二值化、 定位、 矫正等预处理, 为下一 步进行二维码识别做好准备, 二维码识别则是主要根据二维码标准来提取出解 码数据, 并通过远程访问的方式, 以解码数据作为参数向数据库查询以获得相 对应的防伪标签图片, 并返回显示到用户手机上, 达到防伪的目的。
具体实施过程如图 2所示, 包括如下步骤内容:
步骤 S10, 启用手机终端的摄像头;
步骤 S11 , 获取防伪标签上的二维码图像, 此步骤具体过程如图 3所示, 通 过嵌入式编程技术, 通过手机操作系统提供的 API函数 S111 , 利用其底层驱动 S112来驱动摄像头部分的硬件 S113, 并根据手机的摆放方向设置预紧尺寸, 通 过自动对焦对二维码图像进行分析、 记录 S114。
步骤 S12,对所获取得到的二维码图像进行预处理,其具体过程如图 4所示, 将二维码图像进行灰度化 S121 , 将二维码图像的每个像素的 R、 G、 B使用加权 平均法进行图像灰度化处理, 达到了降低对智能手机存储和运算的要求, 同时 降低后续工作对硬件的要求, 在一定程度上提高了处理效率; 对二维码图像进 行中值滤波 S122, 通过邻域中值滤波或者邻域均值滤波方式, 去除部份噪声。 主要解决标签条码污损的问题, 为二维码的识别工作提供了准备性; 对二维码 图像进行二值化 S123, 把灰度图像转成黑白图像, 将图像上的像素点的灰度值 设置为 0或 255, 即将整个图像呈现出明显的黑白效果。 这样更有利于图像处理 的判别。 图像的二值化有利于图像的进一步处理, 使图像变得筒单, 而且数据 量减小, 能凸显出有用的目标轮廓; 对二维码图像的边缘进行提取 S124, 通过 Sobd边 测方法, 确定图像中边缘特征点, 形成连续完整边界的图像处理方 法; 使用 Hough变换计算图像的偏转角度 S125, 根据计算出来的偏转角度, 使 用双线插值法校正倾斜的图像。
步骤 S13,在对二维图像的边缘进行提取后还对的二维码图像是否定位成功 进行判断, 以确保所获取的图像是有效的可识别的图像。
步骤 S14, 对经过处理的二维码图像进行二维码数据识别, 其具体过程如图 5所示, 对二维码图像提取格式 S141步骤, 包括提取格式、 版本信息、 识别纠 错级与使用的掩模图形; 去掩模的步骤 S142, 使用其掩模图形对二维码矩阵中 的编码区域进行或运算, 实现去掩模; 码字提取步骤 S143, 从去除掩模的二维 码矩阵中按数据模版的排列方式, 将 0, 1数据提取出来, 得到数据码字流和纠 错码字流; 错误检错步骤 S144, 使用与纠错等级信息相对应的纠错码字检测错 误, 如果发现错误, 则进行纠错; 数据解码步骤 S145对纠错后的数据按照使用 的模式进行解码, 得出解码数据并输出结果。
步骤 S15, WebService网络服务器接收手机终端以二维码解码数据及用户密 码为参数生成的 SOAP请求, 对提交的请求进行安全验证, 验证通过后获取其 中的解码数据。 如图 6所示 的流程示意图。
步骤 S16, 查询数据库, WebService网络服务器通过数据库的 ADO方式, 对远数据库使用数据库存储过程的方式检索出相应的防伪标签的图像信息数 据。
步骤 S17, 判断相应的防伪标签的图像信息数据是否存在, 如果存在则将防 伪标签的图像数据生成 XML文件回传给 WebService网络服务器发送给手机终 端。 而当不存在时, 返回 支标信息于手机终端。
手机终端通过 http协议从 Web Service服务器获取防伪图像的 XML文件, 并对 XML文件进行分析,把防伪标签的图像信息数据转换 JPG文件显示到手机 客户端。
以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技 术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这 些改进和润饰也视为本发明的保护范围。

Claims

权 利 要 求
1. 一种基于智能手机的二维码标签防伪识别系统, 其特征在于, 包括图像采集 模块、 二维码识别模块、 远程访问模块、 数据库查询模块、 防伪标签图片获取返回 模块;
所述图像采集模块获取防伪标签上的二维码图像;
所述二维码识别模块对所述二维码图像进行预处理, 转换为可识别的二值化图 像, 并提取其中的二维码的解码数据;
所述数据库查询模块获取所述远程访问模块发出的请求服务中所包含的所述二 维码的解码数据, 通过查询数据库, 检索出相应的防伪标签的图像数据;
所述防伪标签图片获取返回模块用于将所述防伪标签的图像数据转化为 XML 文件并返回于所述远程访问模块, 显示于手机终端上。
2.根据权利要求 1所述的基于智能手机的二维码标签防伪识别系统, 其特征在 于, 所述二维码识别模块包括图像预处理单元和二维码数据识别单元;
所述图像预处理单元将所述二维码图像进行加权平均法的图像灰度化处理, 并 进行二值化处理, 使图像灰度值设置为 0或 255, 所述图像预处理单元还利用 Sobd 边 测方法获取所述二值化处理后的图像的边缘特征点, 提取连续完整边界的图 像;
所述二维码数据识别单元识别所述连续完整边界的图像的格式以及版本信息, 用掩模图形对矩阵中的编码区域进行或处量去俺模获取码字, 并从码字中提取出数 据码字流与纠错码字流, 根据所述纠错码字流对所述数据码字流进行纠错处理, 并 对纠错完毕的数据码字流进行解码, 得出解码数据。
3.根据权利要求 2所述的基于智能手机的二维码标签防伪识别系统, 其特征在 于, 所述图像预处理单元还将所述灰度化处理的图形进行中值滤波, 去除部分噪声。
4.根据权利要求 2或 3所述的基于智能手机的二维码标签防伪识别系统, 其特 征在于, 所述图像预处理单元使用 Hough 变换求出二值化处理后的图像的倾斜角 度, 并进行倾斜校正处理。
5.根据权利要求 1所述的基于智能手机的二维码标签防伪识别系统, 其特征在 于, 所述手机终端获取所述 XML文件中的图像数据信息转换为图像文件格式进行显 示。
6. 一种基于智能手机的二维码标签防伪识别方法, 其特征在于, 获取手机终端提交请求的二维码的解码数据, 通过查询数据库, 匹配所述二维 码的解码数据相对应的防伪标签的图像数据; 与实体标签进行防伪识别。
7.根据权利要求 6所述的基于智能手机的二维码标签防伪识别方法, 其特征在 于, 所述手机终端获取的防伪标签上的二维码图像并进行二维码识别操作获得所述 二维码的解码数据; 所述二维码识别操作包括将所述二维码图像进行图像预处理步 骤与进行二维码数据识别步骤;
所述图像预处理步骤为将所述二维码图像进行灰度化, 利用中值滤波去除部分 噪声, 并将像素点进行二值化处理, 将二值化后的图形进行边缘提取, 计算出图像 偏转的角度, 进行校正处理; 所述二维码数据识别步骤为对校正处理完成的图像提 取出二维码格式信息、 掩模图形, 对图像编码区进行或处理, 去除掩模, 根据所述 的二维码格式提取出数据码字流与纠错码字流, 使用纠错码字流对所述数据码字流 进行解码, 得出解码数据。
8.根据权利要求 6或 7所述的基于智能手机的二维码标签防伪识别方法, 其特 征在于, 所述获取手机终端提交请求的二维码的解码数据还获取用户密码进行安全 请求处理。
9.根据权利要求 6或 7所述的基于智能手机的二维码标签防伪识别方法, 其特 征在于, 所述手机终端还将请求返回的所述防伪标签的图像数据转换成图像文件进 行展现。
10.根据权利要求 6或 7所述的基于智能手机的二维码标签防伪识别方法, 其特 征在于, 当通过查询数据库匹配不到所述二维码的解码数据相对应的防伪标签的图 像数据时, 返回假标信息于手机终端。
PCT/CN2012/083444 2012-08-02 2012-10-24 基于智能手机的二维码标签防伪识别系统及方法 WO2014019293A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012102729854A CN102819724A (zh) 2012-08-02 2012-08-02 基于智能手机的二维码标签防伪识别系统及方法
CN201210272985.4 2012-08-02

Publications (1)

Publication Number Publication Date
WO2014019293A1 true WO2014019293A1 (zh) 2014-02-06

Family

ID=47303834

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/083444 WO2014019293A1 (zh) 2012-08-02 2012-10-24 基于智能手机的二维码标签防伪识别系统及方法

Country Status (2)

Country Link
CN (1) CN102819724A (zh)
WO (1) WO2014019293A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794420A (zh) * 2015-04-27 2015-07-22 江苏中科贯微自动化科技有限公司 面向工业自动化生产的code128码自动识别方法
CN105574573A (zh) * 2015-02-11 2016-05-11 黄世纬 一种产品销售激活查询防伪标签
CN105678360A (zh) * 2015-02-11 2016-06-15 黄世纬 一种运用于退货换新的产品防伪方法
CN109559129A (zh) * 2018-10-12 2019-04-02 北京印刷学院 商标图形互补识别的二维码防伪方法
CN111583150A (zh) * 2020-05-07 2020-08-25 湖南优象科技有限公司 一种二维码图像处理方法与系统
CN114095501A (zh) * 2021-11-18 2022-02-25 艾斯芸防伪科技(福建)有限公司 跨区域高可用防伪数据查询方法、系统、设备及介质
CN117057377A (zh) * 2023-10-11 2023-11-14 青岛冠成软件有限公司 码的识别匹配方法

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136676A (zh) * 2013-02-19 2013-06-05 祝启忠 一种手机自动识别的二维码防伪系统及其使用方法
CN104104657B (zh) * 2013-04-07 2018-09-04 腾讯科技(深圳)有限公司 信息验证方法、服务器、终端及系统
CN103400100A (zh) * 2013-07-30 2013-11-20 上海盛本通讯科技有限公司 基于高通平台的二维码数据处理方法及其系统
CN103412902A (zh) * 2013-07-30 2013-11-27 上海盛本通讯科技有限公司 灰阶数据转化为yuv422格式数据的方法及其装置
CN104376523B (zh) * 2013-08-12 2019-06-18 天津市阿波罗信息技术有限公司 一种面向谷歌眼镜的图像代码防伪系统构成方法
CN103679241B (zh) * 2013-12-17 2016-08-17 深圳市美哲点读技术有限公司 一种隐形二维码防伪标签的生成方法及识别方法
CN104796379A (zh) * 2014-01-16 2015-07-22 中国电信股份有限公司 二维码认证方法、平台和系统
CN104796252A (zh) * 2014-01-20 2015-07-22 北京大学 可变数据标签防伪的方法、装置及其认证的方法、系统
CN105320081A (zh) * 2014-06-13 2016-02-10 上海仪电控股(集团)公司 一种基于二维码的物联网设备统一控制和管理方法
CN104573782B (zh) * 2014-12-05 2017-10-17 中国科学院信息工程研究所 一种一维条码编码及解码方法
CN105809223A (zh) * 2014-12-30 2016-07-27 陕西昱鑫科技发展有限责任公司 一种印迹真伪识别方法
CN105138946A (zh) * 2015-10-09 2015-12-09 巴罗克(济南)生物技术有限公司 一种借助智能手机识别Datamatrix二维码的方法
CN106874818B (zh) 2016-08-30 2019-11-22 阿里巴巴集团控股有限公司 一种数字对象唯一标识符doi识别方法与装置
CN106650546A (zh) * 2016-10-20 2017-05-10 国家电网公司 一种基于二维码的变电站开关柜设备对象自动识别方法
CN106779734A (zh) * 2016-11-28 2017-05-31 乔兆宝 一种基于二维码的防伪方法
CN107563479A (zh) * 2017-08-28 2018-01-09 宁夏软件工程院有限公司 一种隐形二维码的制备及识别方法
CN108596001B (zh) * 2017-09-21 2021-02-02 北京三快在线科技有限公司 二维码纠错译码方法、装置、电子设备及计算机可读介质
WO2019095172A1 (zh) * 2017-11-15 2019-05-23 深圳大学 二维码复制过程中的二维码生成、解码方法及装置
CN108764419A (zh) * 2018-04-03 2018-11-06 上海链井信息科技有限公司 一种识别具随机纹理的防伪标签的方法
CN109961383A (zh) * 2018-09-29 2019-07-02 大连艾米移动科技有限公司 一种基于二维码扫描的养老院宣传系统
CN111325043A (zh) * 2018-12-14 2020-06-23 中移(杭州)信息技术有限公司 一种二维码的解析方法、装置、设备及介质
CN109918957A (zh) * 2019-03-05 2019-06-21 大连民族大学 一种双瞳远距离二维码扫描的终端、系统和方法
CN110010237A (zh) * 2019-03-18 2019-07-12 江苏省肿瘤医院 一种智能化护士pda系统
CN110275132B (zh) * 2019-06-18 2023-03-28 西京学院 一种基于二维码映射的室内定位方法
CN110443623A (zh) * 2019-07-22 2019-11-12 杭州沃朴物联科技有限公司 针对防伪标签的识别验伪方法、装置、设备及介质
CN110341330A (zh) * 2019-07-25 2019-10-18 南京脑科医院 一种病例整理器

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727637A (zh) * 2009-06-26 2010-06-09 广州宽度信息技术有限公司 一种手机二维码防伪识别系统
CN101789199A (zh) * 2009-01-24 2010-07-28 郑阿奇 手机识别埋有信息印刷品随机纹理防伪产品及方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001167222A (ja) * 1999-09-29 2001-06-22 Denso Corp 誤り訂正方法、2次元コード読取方法、2次元コード読取装置及び記録媒体
CN202939903U (zh) * 2012-02-11 2013-05-15 海南亚元防伪技术研究所 物联网纹理防伪手机自动识别系统

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789199A (zh) * 2009-01-24 2010-07-28 郑阿奇 手机识别埋有信息印刷品随机纹理防伪产品及方法
CN101727637A (zh) * 2009-06-26 2010-06-09 广州宽度信息技术有限公司 一种手机二维码防伪识别系统

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574573A (zh) * 2015-02-11 2016-05-11 黄世纬 一种产品销售激活查询防伪标签
CN105678360A (zh) * 2015-02-11 2016-06-15 黄世纬 一种运用于退货换新的产品防伪方法
CN104794420A (zh) * 2015-04-27 2015-07-22 江苏中科贯微自动化科技有限公司 面向工业自动化生产的code128码自动识别方法
CN109559129A (zh) * 2018-10-12 2019-04-02 北京印刷学院 商标图形互补识别的二维码防伪方法
CN111583150A (zh) * 2020-05-07 2020-08-25 湖南优象科技有限公司 一种二维码图像处理方法与系统
CN111583150B (zh) * 2020-05-07 2023-06-16 湖南优象科技有限公司 一种二维码图像处理方法与系统
CN114095501A (zh) * 2021-11-18 2022-02-25 艾斯芸防伪科技(福建)有限公司 跨区域高可用防伪数据查询方法、系统、设备及介质
CN114095501B (zh) * 2021-11-18 2024-02-27 艾斯芸防伪科技(福建)有限公司 跨区域高可用防伪数据查询方法、系统、设备及介质
CN117057377A (zh) * 2023-10-11 2023-11-14 青岛冠成软件有限公司 码的识别匹配方法
CN117057377B (zh) * 2023-10-11 2024-01-12 青岛冠成软件有限公司 码的识别匹配方法

Also Published As

Publication number Publication date
CN102819724A (zh) 2012-12-12

Similar Documents

Publication Publication Date Title
WO2014019293A1 (zh) 基于智能手机的二维码标签防伪识别系统及方法
CN103336939A (zh) 利用手机识别二维码的系统及方法
US11036949B2 (en) Scanner with control logic for resolving package labeling conflicts
US10019646B2 (en) Method for object recognition and/or verification on portable devices
CN102663600B (zh) 基于数字水印和条码的防伪系统及其防伪方法和应用
US20080181450A1 (en) Methods Combining Multiple Frames of Image Data
Saber et al. A survey on image forgery detection using different forensic approaches
US20160188938A1 (en) Image identification marker and method
Yan et al. An IoT-based anti-counterfeiting system using visual features on QR code
CN110428028B (zh) 基于准动态镭射标签的识别验伪方法、装置、设备及介质
CA2954089A1 (en) Systems and methods for authentication of physical features on identification documents
Sirajudeen et al. Forgery document detection in information management system using cognitive techniques
Bulatov et al. Towards a unified framework for identity documents analysis and recognition
CN1209732C (zh) 基于小波分析和过零点描述的虹膜识别方法
Liu Anti-counterfeit system based on mobile phone QR code and fingerprint
KR100726473B1 (ko) 이미지 분별 장치 및 그 방법
Chakraborty et al. Review of various image processing techniques for currency note authentication
CN114757317B (zh) 防伪纹理图案的制作及其验证方法
CN115035533B (zh) 一种数据鉴真处理方法、装置、计算机设备及存储介质
JP5998090B2 (ja) 画像照合装置、画像照合方法、画像照合プログラム
EP3929806A2 (en) Local encoding of intrinsic authentication data
Chapel et al. Authentication of holograms with mixed patterns by direct LBP comparison
Duraipandi et al. A grid based iris biometric watermarking using wavelet transform
Chen et al. Multi Barcode Scanning and Decoding Technology Based on AR Smart Glasses.
CN117291787B (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: 12882503

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: 12882503

Country of ref document: EP

Kind code of ref document: A1