[go: up one dir, main page]

CN114819022A - Bar code encoding method, decoding method and equipment - Google Patents

Bar code encoding method, decoding method and equipment Download PDF

Info

Publication number
CN114819022A
CN114819022A CN202210385694.XA CN202210385694A CN114819022A CN 114819022 A CN114819022 A CN 114819022A CN 202210385694 A CN202210385694 A CN 202210385694A CN 114819022 A CN114819022 A CN 114819022A
Authority
CN
China
Prior art keywords
image
bar code
preset
neural network
secret information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210385694.XA
Other languages
Chinese (zh)
Inventor
孙彦飞
周俊
王俊宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Fudan Innovation Research Institute
Fudan University
Original Assignee
Zhuhai Fudan Innovation Research Institute
Fudan University
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 Zhuhai Fudan Innovation Research Institute, Fudan University filed Critical Zhuhai Fudan Innovation Research Institute
Priority to CN202210385694.XA priority Critical patent/CN114819022A/en
Publication of CN114819022A publication Critical patent/CN114819022A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06018Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding
    • G06K19/06028Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding using bar codes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The application relates to a bar code encoding method, a bar code decoding method and bar code decoding equipment. The method comprises the following steps: acquiring an original bar code image and preset secret information; inputting the original bar code image and the preset secret information into a first neural network which is constructed in advance, so that the preset secret information and the original bar code image are combined in the up-sampling process of the first neural network; after the merging operation is finished, outputting a secret-carrying bar code image through the first neural network; and the secret-carrying bar code image is a bar code image containing the preset secret information. The scheme provided by the application can embed the preset secret information in the original barcode image, and realizes the expansion of the barcode capacity information.

Description

条码的编码方法、解码方法及设备Bar code encoding method, decoding method and device

技术领域technical field

本申请涉及条码技术领域,尤其涉及一种条码的编码方法、解码方法及设备。The present application relates to the technical field of barcodes, and in particular, to a barcode encoding method, decoding method and device.

背景技术Background technique

条码(又称条形码)是商品独有的世界通用身份证,可提供机器阅读,与载入磁盘、磁带和光盘中的机器可读语言相比,是可印刷型语言。作为自动识别技术之一的条码技术在近三十年间取得了长足发展,条码标识基本覆盖所有产品。条码可以打印在包装和物品上,通过数码相机或装有相机的手机扫描后进行数字化处理,然后可以提取信息(例如产品批次、生产日期等)。条形码具有易实现信息化管理的特征,已在产品溯源领域得到了广泛应用。Barcodes (also known as barcodes) are unique worldwide identification cards that are machine-readable and are printable languages compared to machine-readable languages loaded on disks, tapes, and CDs. As one of the automatic identification technologies, barcode technology has made great progress in the past three decades, and barcode identification basically covers all products. Barcodes can be printed on packages and items, scanned by a digital camera or camera-equipped mobile phone, digitized, and information (such as product batch, production date, etc.) can be extracted. Barcodes have the characteristics of easy information management, and have been widely used in the field of product traceability.

然而,目前的条码的容量有限,难以嵌入一些其他追溯信息。条码技术中关于信息量小、加密性差的问题,目前仍没有可靠的解决方案。However, current barcodes have limited capacity, making it difficult to embed some other traceability information. There is still no reliable solution to the problems of small amount of information and poor encryption in barcode technology.

发明内容SUMMARY OF THE INVENTION

为解决或部分解决相关技术中存在的问题,本申请提供一种条码的编码方法、解码方法及设备,能够在原始条码图像上嵌入预设隐秘信息,实现对条码容量信息的扩展。In order to solve or partially solve the problems existing in the related art, the present application provides a barcode encoding method, decoding method and device, which can embed preset secret information on the original barcode image to realize the expansion of barcode capacity information.

本申请第一方面提供一种条码的编码方法,包括:A first aspect of the present application provides a barcode encoding method, including:

获取原始条码图像以及预设隐秘信息;Obtain the original barcode image and preset secret information;

将所述原始条码图像以及所述预设隐秘信息输入预先构建的第一神经网络,以使得在所述第一神经网络的上采样过程中将所述预设隐秘信息与所述原始条码图像进行合并操作;Inputting the original barcode image and the preset secret information into a pre-built first neural network, so that the preset secret information and the original barcode image are processed during the upsampling process of the first neural network. merge operation;

在合并操作完成后,通过所述第一神经网络输出载密条码图像;其中,所述载密条码图像为包含所述预设隐秘信息的条码图像。After the merging operation is completed, a password-carrying barcode image is output through the first neural network; wherein, the password-carrying barcode image is a barcode image containing the preset secret information.

在一种实施方式中,所述将所述预设隐秘信息与所述原始条码图像进行合并操作,包括:In one embodiment, the merging operation of the preset secret information and the original barcode image includes:

将所述预设隐秘信息转换为目标二维矩阵;converting the preset secret information into a target two-dimensional matrix;

将所述目标二维矩阵与所述原始条码图像对应的特征图进行合并操作。A merge operation is performed on the target two-dimensional matrix and the feature map corresponding to the original barcode image.

在一种实施方式中,所述将所述预设隐秘信息转换为目标二维矩阵,包括:In one embodiment, the converting the preset secret information into a target two-dimensional matrix includes:

将所述预设隐秘信息转换为二进制数据;converting the preset secret information into binary data;

将所述二进制数据转换为初始二维矩阵;converting the binary data into an initial two-dimensional matrix;

将所述初始二维矩阵上采样为与所述特征图的像素大小对应的目标二维矩阵。The initial two-dimensional matrix is up-sampled into a target two-dimensional matrix corresponding to the pixel size of the feature map.

在一种实施方式中,所述第一神经网络根据第一预设语义分割网络预先构建得到;其中,所述第一预设语义分割网络包括U-Net网络。In an embodiment, the first neural network is pre-built according to a first preset semantic segmentation network; wherein, the first preset semantic segmentation network includes a U-Net network.

在一种实施方式中,所述载密条码图像与所述原始条码图像像素对应;和/或,In one embodiment, the password-carrying barcode image corresponds to pixels of the original barcode image; and/or,

所述载密条码图像与所述原始条码图像均为一维条码图像。Both the password-carrying barcode image and the original barcode image are one-dimensional barcode images.

本申请第二方面提供一种条码的解码方法,包括:A second aspect of the present application provides a barcode decoding method, including:

获取载密条码图像;其中,所述载密条码图像为包含预设隐秘信息的条码图像;Obtain a password-carrying barcode image; wherein, the password-carrying barcode image is a barcode image containing preset secret information;

将所述载密条码图像输入预先构建的第二神经网络,以使得所述第二神经网络识别所述图像,得到第一识别结果;Inputting the password-carrying barcode image into a pre-built second neural network, so that the second neural network recognizes the image and obtains a first recognition result;

根据所述第一识别结果输出所述预设隐秘信息。The preset secret information is output according to the first identification result.

在一种实施方式中,所述第二神经网络识别所述图像,得到第一识别结果,包括:In one embodiment, the second neural network recognizes the image to obtain a first recognition result, including:

所述第二神经网络识别所述图像得到前置识别结果,再将所述前置识别结果进行空间变换,得到第一识别结果。The second neural network recognizes the image to obtain a pre-recognition result, and then performs spatial transformation on the pre-recognition result to obtain a first recognition result.

在一种实施方式中,所述第二神经网络根据第二预设语义分割网络以及预设空间变换网络预先构建得到;其中,所述第二预设语义分割网络包括U-Net网络。In an embodiment, the second neural network is pre-built according to a second preset semantic segmentation network and a preset spatial transformation network; wherein, the second preset semantic segmentation network includes a U-Net network.

本申请第三方面提供一种电子设备,包括:A third aspect of the present application provides an electronic device, comprising:

处理器;以及processor; and

存储器,其上存储有可执行代码,当所述可执行代码被所述处理器执行时,使所述处理器执行如上所述的方法。A memory having executable code stored thereon which, when executed by the processor, causes the processor to perform the method as described above.

本申请第四方面提供一种计算机可读存储介质,其上存储有可执行代码,当所述可执行代码被电子设备的处理器执行时,使所述处理器执行如上所述的方法。A fourth aspect of the present application provides a computer-readable storage medium on which executable codes are stored, and when the executable codes are executed by a processor of an electronic device, the processor is caused to execute the above method.

本申请提供的技术方案可以包括以下有益效果:The technical solution provided by this application can include the following beneficial effects:

本申请提供的方法,通过获取原始条码图像以及预设隐秘信息,将原始条码图像以及预设隐秘信息输入预先构建的第一神经网络,以使得在第一神经网络的上采样过程中将预设隐秘信息与原始条码图像进行合并操作,从而输出载密条码图像。这样,能够在原始条码图像上嵌入预设隐秘信息,实现对条码容量信息的扩展。In the method provided by this application, by acquiring the original barcode image and the preset secret information, the original barcode image and the preset secret information are input into the pre-built first neural network, so that the preset secret information is input during the upsampling process of the first neural network. The secret information is combined with the original barcode image to output the encrypted barcode image. In this way, the preset secret information can be embedded in the original barcode image, so as to realize the expansion of the barcode capacity information.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present application.

附图说明Description of drawings

通过结合附图对本申请示例性实施方式进行更详细地描述,本申请的上述以及其它目的、特征和优势将变得更加明显,其中,在本申请示例性实施方式中,相同的参考标号通常代表相同部件。The above and other objects, features and advantages of the present application will become more apparent from the more detailed description of the exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the exemplary embodiments of the present application. same parts.

图1是本申请实施例示出的条码的编码方法的流程示意图;1 is a schematic flowchart of a method for encoding a barcode according to an embodiment of the present application;

图2是本申请实施例示出的条码的编码方法的另一流程示意图;Fig. 2 is another schematic flowchart of the coding method of the barcode shown in the embodiment of the present application;

图3是本申请实施例示出的U-Net网络的网络结构的示意图;3 is a schematic diagram of a network structure of a U-Net network shown in an embodiment of the present application;

图4是本申请实施例示出的原始条码图像;Fig. 4 is the original barcode image shown in the embodiment of the present application;

图5是本申请实施例示出的载密条码图像;FIG. 5 is an image of a password-carrying barcode shown in an embodiment of the present application;

图6是本申请实施例示出的条码的解码方法的流程示意图;6 is a schematic flowchart of a barcode decoding method shown in an embodiment of the present application;

图7是本申请实施例示出的条码的解码方法的另一流程示意图;7 is another schematic flowchart of the barcode decoding method shown in the embodiment of the present application;

图8是本申请实施例示出的载密条码图像的应用场景示意图;8 is a schematic diagram of an application scenario of a password-carrying barcode image shown in an embodiment of the present application;

图9是本申请实施例示出的载密条码图像的另一应用场景示意图;9 is a schematic diagram of another application scenario of the password-carrying barcode image shown in the embodiment of the present application;

图10是本申请实施例示出的载密条码图像的读取结果的示意图;10 is a schematic diagram of a reading result of a password-carrying barcode image shown in an embodiment of the present application;

图11是本申请实施例示出的条码的编码装置的结构示意图;11 is a schematic structural diagram of a barcode encoding device shown in an embodiment of the present application;

图12是本申请实施例示出的条码的解码装置的结构示意图;12 is a schematic structural diagram of a barcode decoding apparatus shown in an embodiment of the present application;

图13是本申请实施例示出的条码的编码解码系统的结构示意图;13 is a schematic structural diagram of a barcode encoding and decoding system shown in an embodiment of the present application;

图14是本申请实施例示出的条码的编码解码系统的应用场景示意图;14 is a schematic diagram of an application scenario of the barcode encoding and decoding system shown in the embodiment of the present application;

图15是本申请实施例示出的条码的编码解码系统的另一结构示意图;15 is another schematic structural diagram of the barcode encoding and decoding system shown in the embodiment of the present application;

图16是本申请实施例示出的电子设备的结构示意图。FIG. 16 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.

具体实施方式Detailed ways

下面将参照附图更详细地描述本申请的实施方式。虽然附图中显示了本申请的实施方式,然而应该理解,可以以各种形式实现本申请而不应被这里阐述的实施方式所限制。相反,提供这些实施方式是为了使本申请更加透彻和完整,并且能够将本申请的范围完整地传达给本领域的技术人员。Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of this application to those skilled in the art.

在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本申请可能采用术语“第一”、“第二”、“第三”等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information without departing from the scope of the present application. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of the present application, "plurality" means two or more, unless otherwise expressly and specifically defined.

相关技术中,条码的容量有限,难以嵌入一些其他追溯信息。条码技术中关于信息量小、加密性差的问题,目前仍没有可靠的解决方案。In the related art, the capacity of the barcode is limited, and it is difficult to embed some other traceability information. There is still no reliable solution to the problems of small amount of information and poor encryption in barcode technology.

针对上述问题,本申请实施例提供一种条码的编码方法,能够在原始条码图像上嵌入预设隐秘信息,实现对条码容量信息的扩展。In view of the above problems, the embodiments of the present application provide a barcode encoding method, which can embed preset secret information on the original barcode image, so as to realize the expansion of barcode capacity information.

以下结合附图详细描述本申请实施例的技术方案。The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.

图1是本申请实施例示出的条码的编码方法的流程示意图。图1实施例的方法可以应用于电子设备,该电子设备可以是编码设备(或称编码器)。FIG. 1 is a schematic flowchart of a barcode encoding method according to an embodiment of the present application. The method in the embodiment of FIG. 1 can be applied to an electronic device, and the electronic device can be an encoding device (or called an encoder).

参见图1,该方法包括:Referring to Figure 1, the method includes:

步骤S101、获取原始条码图像以及预设隐秘信息。Step S101 , acquiring the original barcode image and preset secret information.

其中,原始条码图像可以是一维条码图像。原始条码图像可以是商品条形码(例如EAN-13码、EAN-128码等),原始条码图像所呈现的条码遵循GB12904-2008国家标准。原始条码图像中承载有商品基础信息(例如商品生产国、制造厂家、商品名称等),原始条码图像在被市场上通用的扫描式识读器(例如扫码枪、智能手机等)扫描读取后可以得到其商品基础信息。Wherein, the original barcode image may be a one-dimensional barcode image. The original barcode image may be a commodity barcode (eg, EAN-13 code, EAN-128 code, etc.), and the barcode presented by the original barcode image follows the GB12904-2008 national standard. The original barcode image carries the basic information of the product (such as the country of production, manufacturer, product name, etc.), and the original barcode image is scanned and read by a common scanning reader in the market (such as a barcode scanner, a smartphone, etc.) Then you can get the basic information of its products.

其中,预设隐秘信息可以是商品的生产批次、生产日期等商品特征信息。预设隐秘信息可以是一种文本格式数据。The preset secret information may be commodity characteristic information such as the production batch and production date of the commodity. The preset secret information may be data in a text format.

步骤S102、将原始条码图像以及预设隐秘信息输入预先构建的第一神经网络,以使得在第一神经网络的上采样过程中将预设隐秘信息与原始条码图像进行合并操作。Step S102: Input the original barcode image and the preset secret information into the pre-built first neural network, so that the preset secret information and the original barcode image are merged during the upsampling process of the first neural network.

其中,第一神经网络可以根据第一预设语义分割网络预先构建得到。其中,第一预设语义分割网络可以是U-Net网络。The first neural network may be pre-built according to the first preset semantic segmentation network. Wherein, the first preset semantic segmentation network may be a U-Net network.

在该步骤中,在第一神经网络的上采样过程中,可以将预设隐秘信息转换为目标二维矩阵,并将目标二维矩阵与原始条码图像对应的特征图进行合并操作。可以理解,在该步骤中,预设隐秘信息与原始条码图像进行了融合。In this step, during the upsampling process of the first neural network, the preset secret information can be converted into a target two-dimensional matrix, and the target two-dimensional matrix and the feature map corresponding to the original barcode image can be merged. It can be understood that in this step, the preset secret information is fused with the original barcode image.

步骤S103、在合并操作完成后,通过第一神经网络输出载密条码图像;其中,载密条码图像为包含预设隐秘信息的条码图像。Step S103: After the merging operation is completed, output the password-carrying barcode image through the first neural network; wherein, the password-carrying barcode image is a barcode image containing preset secret information.

其中,载密条码图像与原始条码图像均为一维条码图像,载密条码图像与原始条码图像像素对应。也就是说,载密条码图像也承载有与原始条码图像同样的商品基础信息,市场上通用的扫描式识读器扫描读取载密条码图像后也可以得到原始条码图像中所承载的商品基础信息。载密条码图像中所承载的预设隐秘信息,需要通过专用的扫描式识读器才可以读取获得。Wherein, both the encrypted barcode image and the original barcode image are one-dimensional barcode images, and the encrypted barcode image corresponds to the pixels of the original barcode image. That is to say, the cipher-carrying barcode image also carries the same basic commodity information as the original barcode image. After scanning and reading the cipher-carrying barcode image, the common scanning reader in the market can also obtain the basic commodity information carried in the original barcode image. information. The preset secret information carried in the password-carrying barcode image needs to be read by a dedicated scanning reader.

从该实施例可以看出,本申请实施例提供的方法,通过获取原始条码图像以及预设隐秘信息,将原始条码图像以及预设隐秘信息输入预先构建的第一神经网络,以使得在第一神经网络的上采样过程中将预设隐秘信息与原始条码图像进行合并操作,从而输出载密条码图像。这样,能够在原始条码图像上嵌入预设隐秘信息,实现对条码容量信息的扩展。It can be seen from this embodiment that in the method provided by the embodiment of the present application, by acquiring the original barcode image and the preset secret information, the original barcode image and the preset secret information are input into the pre-built first neural network, so that in the first During the upsampling process of the neural network, the preset secret information is combined with the original barcode image to output the encrypted barcode image. In this way, the preset secret information can be embedded in the original barcode image, so as to realize the expansion of the barcode capacity information.

图2是本申请实施例的条码的编码方法的另一流程示意图。图2相对图1更详细描述了本申请的方案。FIG. 2 is another schematic flowchart of a barcode encoding method according to an embodiment of the present application. FIG. 2 depicts the scheme of the present application in more detail relative to FIG. 1 .

参见图2,该方法包括:Referring to Figure 2, the method includes:

步骤S201、获取原始条码图像以及预设隐秘信息。Step S201 , acquiring the original barcode image and preset secret information.

该步骤可参见步骤S101中的描述,此处不再赘述。For this step, reference may be made to the description in step S101, and details are not repeated here.

步骤S202、将原始条码图像以及预设隐秘信息输入预先构建的第一神经网络,以使得在第一神经网络的上采样过程中将预设隐秘信息转换为目标二维矩阵,并将目标二维矩阵与原始条码图像对应的特征图进行合并操作。Step S202: Input the original barcode image and the preset secret information into the pre-built first neural network, so that the preset secret information is converted into a target two-dimensional matrix during the upsampling process of the first neural network, and the target two-dimensional The matrix is merged with the feature map corresponding to the original barcode image.

其中,第一神经网络可以根据第一预设语义分割网络预先构建得到。其中,第一预设语义分割网络可以是U-Net网络。在本申请实施例中,第一神经网络根据U-Net网络预先构建得到。在其中一种实施方式中,第一神经网络通过对U-Net网络中的卷积层进行调整修改后得到。The first neural network may be pre-built according to the first preset semantic segmentation network. Wherein, the first preset semantic segmentation network may be a U-Net network. In the embodiment of the present application, the first neural network is pre-built according to the U-Net network. In one of the embodiments, the first neural network is obtained by adjusting and modifying the convolutional layer in the U-Net network.

U-Net网络是使用全卷积网络进行语义分割的算法之一,由于U-net网络可以进行像素级的分类任务,其输出的是每个像素点的类别,且不同类别的像素会显示不同的颜色,常用在任务重、图片数据比较少的情况中。可见,条码图片符合此种情况,第一神经网络根据U-Net网络预先构建得到,可以得到包括但不限于如下两个优点:一是输出结果可以定位出目标类别的位置。二是可以进行数据增强,能够解决图像数据少的问题,U-Net网络的U型结构可以使它用更少的训练图片的同时,分割的准确度也较高。The U-Net network is one of the algorithms for semantic segmentation using a fully convolutional network. Since the U-net network can perform pixel-level classification tasks, the output is the category of each pixel, and pixels of different categories will display different The color is often used in situations where the task is heavy and the picture data is relatively small. It can be seen that the barcode picture conforms to this situation, and the first neural network is pre-built according to the U-Net network, which can obtain two advantages including but not limited to the following: First, the output result can locate the position of the target category. The second is that data enhancement can be performed, which can solve the problem of less image data. The U-shaped structure of the U-Net network can make it use fewer training images, and at the same time, the segmentation accuracy is also higher.

请参见图3,图3展示了U-Net网络的网络结构,U-Net网络的整体流程是编码(如图3左侧部分)和解码(如图3右侧侧部分)。在编码过程中通过下采样进行特征提取;也就是说,U-Net网络的左侧一边网络是特征提取网络,其使用conv和pooling。在解码过程中通过上采样将抽象的特征再还原到原图的尺寸,最终得到分割结果;也就是说,U-Net网络的右侧一边网络为特征增融合网络,其使用上采样产生特征图与concatenate级联操作,再经过设定次数(例如两次)卷积生成特征图,并用设定数量的预设卷积核(例如两个卷积核大小为1*1的卷积核)进行分类。Please refer to Figure 3. Figure 3 shows the network structure of the U-Net network. The overall process of the U-Net network is encoding (the left part of Figure 3) and decoding (the right part of Figure 3). Feature extraction is performed by downsampling during encoding; that is, the left-hand side of the U-Net network is a feature extraction network that uses conv and pooling. In the decoding process, the abstract features are restored to the size of the original image by upsampling, and finally the segmentation result is obtained; that is, the network on the right side of the U-Net network is a feature augmentation and fusion network, which uses upsampling to generate a feature map Cascade operation with concatenate, and then generate a feature map through a set number of convolutions (for example, twice), and use a set number of preset convolution kernels (for example, two convolution kernels with a size of 1*1). Classification.

由于第一神经网络根据U-Net网络预先构建得到,第一神经网络属于一种语义分割网络,第一神经网络可以识别出原始条码图像中的原始条码。在本申请中,第一神经网络的处理过程可以理解为:先对原始条码图像中的原始条码进行特征提取,然后在上采样中将提取到的特征还原为对应原始条码图像的特征图,此时将特征图与由预设隐秘信息转换的目标二维矩阵进行合并操作,并通过设定次数(例如两次)的卷积操作后输出,以得到最终所需的载密条码图像。Since the first neural network is pre-built according to the U-Net network, the first neural network belongs to a semantic segmentation network, and the first neural network can identify the original barcode in the original barcode image. In this application, the processing process of the first neural network can be understood as: first, extract features from the original barcode in the original barcode image, and then restore the extracted features to the feature map corresponding to the original barcode image in the upsampling process. When the feature map is merged with the target two-dimensional matrix converted by the preset secret information, and the convolution operation is performed for a set number of times (for example, twice), the output is obtained to obtain the final required password-carrying barcode image.

可以理解,在第一神经网络的上采样过程中可以有多次上采样操作,本申请实施方式中可以在任意一次上采样操作中将由预设隐秘信息转换的目标二维矩阵与原始条码图像对应的特征图进行合并。It can be understood that there may be multiple upsampling operations in the upsampling process of the first neural network. In the embodiment of the present application, the target two-dimensional matrix converted by the preset secret information may be corresponding to the original barcode image in any upsampling operation. The feature maps are merged.

在其中一种实施方式中,可以通过预处理将预设隐秘信息转换为目标二维矩阵,其中包括:In one embodiment, the preset secret information can be converted into a target two-dimensional matrix through preprocessing, including:

步骤A:将预设隐秘信息转换为二进制数据。Step A: Convert the preset secret information into binary data.

在该步骤中,可以将文本格式的预设隐秘信息转换为二进制数据。In this step, the preset secret information in text format can be converted into binary data.

步骤B:将二进制数据转换为初始二维矩阵。Step B: Convert the binary data to an initial 2D matrix.

其中,初始二维矩阵的长宽可以相等。Among them, the length and width of the initial two-dimensional matrix can be equal.

步骤C:将初始二维矩阵上采样为与特征图的像素大小对应的目标二维矩阵。Step C: Upsampling the initial two-dimensional matrix into a target two-dimensional matrix corresponding to the pixel size of the feature map.

在该步骤中,可以通过插值法将初始二维矩阵上采样为与特征图的像素大小对应的目标二维矩阵。In this step, the initial two-dimensional matrix may be up-sampled into a target two-dimensional matrix corresponding to the pixel size of the feature map by interpolation.

为了便于理解第一神经网络的处理过程,举如下例子进行说明,例如,原始条码图像的像素为400×400,在第一神经网络的上采样过程中还原产生对应原始条码图像的特征图为400×400;与此同时,可以将二进制数据的预设隐秘信息转换为像素是40×40的初始二维矩阵,然后通过插值法将40×40的初始二维矩阵上采样到400×400的目标二维矩阵;可见,400×400的目标二维矩阵与400×400的特征图的像素大小相对应,通过将400×400的目标二维矩阵与400×400的特征图进行合并操作,再通过卷积操作后输出载密条码图像。In order to facilitate the understanding of the processing process of the first neural network, the following example is used to illustrate. For example, the pixels of the original barcode image are 400×400, and the feature map corresponding to the original barcode image generated during the upsampling process of the first neural network is 400 ×400; at the same time, the preset secret information of binary data can be converted into an initial two-dimensional matrix with pixels of 40×40, and then the initial two-dimensional matrix of 40×40 can be upsampled to a target of 400×400 by interpolation Two-dimensional matrix; it can be seen that the target two-dimensional matrix of 400×400 corresponds to the pixel size of the feature map of 400×400. By combining the target two-dimensional matrix of 400×400 and the feature map of 400×400, and then by After the convolution operation, the encrypted barcode image is output.

又例如,原始条码图像的像素为400×400,在第一神经网络的上采样过程中还原产生的特征图为200×200;与此同时,可以将二进制数据的预设隐秘信息转换为像素是40×40的初始二维矩阵,然后通过插值法将40×40的初始二维矩阵上采样到200×200的目标二维矩阵;可见,200×200的目标二维矩阵与200×200的特征图的像素大小相对应,通过将200×200的目标二维矩阵与200×200的特征图进行合并操作,然后再次进行上采样操作至400×400的特征图,再通过卷积操作后输出载密条码图像。For another example, the pixels of the original barcode image are 400×400, and the feature map restored during the upsampling process of the first neural network is 200×200; at the same time, the preset secret information of binary data can be converted into pixels as The initial two-dimensional matrix of 40 × 40, and then the initial two-dimensional matrix of 40 × 40 is upsampled to the target two-dimensional matrix of 200 × 200 by interpolation; it can be seen that the target two-dimensional matrix of 200 × 200 and the features of 200 × 200 The pixel size of the image corresponds to the pixel size of the image. By combining the target two-dimensional matrix of 200×200 and the feature map of 200×200, the upsampling operation is performed again to the feature map of 400×400, and then the convolution operation is performed. Password barcode image.

步骤S203、在合并操作完成后,通过第一神经网络输出载密条码图像;其中,载密条码图像为包含预设隐秘信息的条码图像。Step S203: After the merging operation is completed, output the password-carrying barcode image through the first neural network; wherein, the password-carrying barcode image is a barcode image containing preset secret information.

可以理解,通过进行合并操作(例如进行矩阵相加),再经第一神经网络卷积操作后会输出载密条码图像。在本申请实施例中,载密条码图像与原始条码图像像素对应,例如,像素为400×400的载密条码图像对应像素为400×400的原始条码图像。It can be understood that, by performing a merging operation (for example, performing matrix addition), a password-carrying barcode image will be output after the first neural network convolution operation. In this embodiment of the present application, the password-carrying barcode image corresponds to the pixels of the original barcode image, for example, a password-carrying barcode image with pixels of 400×400 corresponds to an original barcode image with pixels of 400×400.

本申请实施例中,可以获取预设容量大小的预设隐秘信息,进而根据该预设容量大小的预设隐秘信息以及原始条码图像,生成载密条码图像,以实现条码容量的扩展。例如,可以根据200bit容量大小的预设隐秘信息以及预先获取到的原始条码图像,生成载密条码图像,以使得所生成的载密条码图像中嵌入有200bit的预设隐秘信息。In this embodiment of the present application, preset secret information with a preset capacity may be obtained, and then a password-carrying barcode image may be generated according to the preset secret information with the preset capacity and the original barcode image, so as to expand the barcode capacity. For example, a password-carrying barcode image can be generated according to preset secret information with a capacity of 200 bits and a pre-obtained original barcode image, so that the generated secret-carrying barcode image is embedded with 200 bits of preset secret information.

请一并参见图4与图5,图4为本申请实施例示出的原始条码图像,图5为本申请实施例示出的载密条码图像。可以发现,原始条码图像与载密条码图像的差别细微,人眼难以察觉出此种差别,换句话说,从视觉上人眼是不能明显分辨出原始条码图像与载密条码图像的差别的。载密条码图像在生成过程中利用预先构建的第一神经网络,实现对原始条码图像中像素的调制以及融合,将预设隐秘信息融入到了原始条码图像中,使得预设隐秘信息不易被发现获取,保障了载密条码图像中预设隐秘信息的加密属性。Please refer to FIG. 4 and FIG. 5 together. FIG. 4 is an original barcode image shown in an embodiment of the present application, and FIG. 5 is a password-carrying barcode image shown in an embodiment of the present application. It can be found that the difference between the original barcode image and the encrypted barcode image is subtle, and it is difficult for the human eye to detect the difference. In other words, the human eye cannot clearly distinguish the difference between the original barcode image and the encrypted barcode image. In the process of generating the encrypted barcode image, the pre-built first neural network is used to realize the modulation and fusion of the pixels in the original barcode image, and the preset secret information is integrated into the original barcode image, so that the preset secret information is not easy to be found and obtained. , which ensures the encryption properties of the preset secret information in the encrypted barcode image.

需要说明的是,本申请实施例中,载密条码图像与原始条码图像均为一维条码图像,载密条码图像与原始条码图像像素对应。也就是说,载密条码图像也承载有与原始条码图像同样的商品基础信息,市场上通用的扫描式识读器扫描读取载密条码图像后也可以得到原始条码图像中所承载的商品基础信息。载密条码图像中所承载的预设隐秘信息,需要通过专用的扫描式识读器才可以读取获得。It should be noted that, in the embodiment of the present application, both the password-carrying barcode image and the original barcode image are one-dimensional barcode images, and the password-carrying barcode image corresponds to the pixels of the original barcode image. That is to say, the cipher-carrying barcode image also carries the same basic commodity information as the original barcode image. After scanning and reading the cipher-carrying barcode image, the common scanning reader in the market can also obtain the basic commodity information carried in the original barcode image. information. The preset secret information carried in the password-carrying barcode image needs to be read by a dedicated scanning reader.

从该实施例可以看出,本申请实施例提供的方法,能够在原始条码图像上嵌入预设隐秘信息,实现对条码容量信息的扩展。可见,本申请所提供的条码的编码方法,其作为一种隐写术(隐写术是一门关于信息隐藏的技巧与科学,所谓信息隐藏指的是不让除预期的接收者之外的任何人知晓信息的传递事件或者信息的内容),能够原始条码图像实现对附加数据信息的高安全性隐藏,增大条码现有容量,并且可以在不影响市场上通用扫描式识读器(如扫码枪)识别GS1通用规范条码的基础上,实现额外信息的扩展。其次,尤其在物流行业上,为实现一码代替多码提供了可行性的解决方案,通过执行本申请的方法,能够在商品或物品包装上的原始条码图像中嵌入预设隐秘信息,从而无需再次在商品或物品包装上粘贴额外的条码,利于保障包装印刷美观,不破坏包装表面的空间布局。另外,在局域网中访问的图像、视频时,可能会导致隐私的泄露甚至内容恶意篡改,通过本申请所提供的方法,可以将条码作为嵌入载体,作为防伪信息用于图像、视频的版权保护。It can be seen from this embodiment that the method provided by the embodiment of the present application can embed preset secret information on the original barcode image, so as to realize the expansion of the barcode capacity information. It can be seen that the coding method of the barcode provided by this application, as a kind of steganography (steganography is a skill and science about information hiding, the so-called information hiding refers to not letting people other than the intended recipients Anyone who knows the transmission event of the information or the content of the information) can realize the high security hiding of the additional data information by the original barcode image, increase the existing capacity of the barcode, and can not affect the general scanning readers on the market (such as On the basis of identifying GS1 general specification barcodes, the expansion of additional information is realized. Secondly, especially in the logistics industry, a feasible solution is provided for realizing one code instead of multiple codes. By implementing the method of the present application, preset secret information can be embedded in the original barcode image on the commodity or item package, so that no need Paste additional barcodes on the product or item packaging again, which is beneficial to ensure the beautiful printing of the packaging and does not damage the spatial layout of the packaging surface. In addition, when accessing images and videos in a local area network, it may lead to leakage of privacy and even malicious tampering of content. With the method provided in this application, barcodes can be used as embedded carriers and used as anti-counterfeiting information for copyright protection of images and videos.

图6是本申请实施例示出的条码的解码方法的流程示意图。图1实施例的方法可以应用于电子设备,该电子设备可以是解码设备(或称解码器),该解码设备可以是扫描式识读器、智能手机等。FIG. 6 is a schematic flowchart of a barcode decoding method according to an embodiment of the present application. The method in the embodiment of FIG. 1 may be applied to an electronic device, and the electronic device may be a decoding device (or called a decoder), and the decoding device may be a scanning reader, a smart phone, or the like.

参见图6,该方法包括:Referring to Figure 6, the method includes:

步骤S601、获取载密条码图像;其中,载密条码图像为包含预设隐秘信息的条码图像。Step S601 , acquiring an image of a password-carrying barcode; wherein, the password-carrying barcode image is a barcode image containing preset secret information.

其中,载密条码图像的具体描述可以参见图1或图2实施例,此处不再赘述。The specific description of the password-carrying barcode image may refer to the embodiment in FIG. 1 or FIG. 2 , which will not be repeated here.

步骤S602、将载密条码图像输入预先构建的第二神经网络,以使得第二神经网络识别图像,得到第一识别结果。Step S602: Input the password-carrying barcode image into a pre-built second neural network, so that the second neural network recognizes the image and obtains a first recognition result.

在其中一种实施方式中,第二神经网络根据第二预设语义分割网络预先构建得到;其中,第二预设语义分割网络包括U-Net网络。也就是说,第二神经网络作为一种语义分割网络,第二神经网络根据载密条码图像识别出其中对应预设隐秘信息的图像数据,该图像数据即为所得到的第一识别结果。In one embodiment, the second neural network is pre-built according to a second preset semantic segmentation network; wherein the second preset semantic segmentation network includes a U-Net network. That is to say, the second neural network is a semantic segmentation network, and the second neural network identifies image data corresponding to preset secret information according to the encrypted barcode image, and the image data is the obtained first identification result.

在另一种实施方式中,第二神经网络根据第二预设语义分割网络以及预设空间变换网络预先构建得到;其中,第二预设语义分割网络包括U-Net网络。在该实施方式中,第二神经网络识别图像,得到第一识别结果,包括:第二神经网络识别图像得到前置识别结果,再将前置识别结果进行空间变换,得到第一识别结果。也就是说,第二神经网络作为一种语义分割网络,第二神经网络根据载密条码图像识别出其中对应预设隐秘信息的图像数据,该图像数据即为前置识别结果,然后将作为前置识别结果的图像数据进行空间变换,空间变换完成后的图像数据即为所得到的第一识别结果。In another embodiment, the second neural network is pre-built according to the second preset semantic segmentation network and the preset spatial transformation network; wherein the second preset semantic segmentation network includes a U-Net network. In this embodiment, recognizing the image by the second neural network to obtain the first recognition result includes: recognizing the image by the second neural network to obtain the pre-recognition result, and then performing spatial transformation on the pre-recognition result to obtain the first recognition result. That is to say, the second neural network is used as a semantic segmentation network, and the second neural network identifies the image data corresponding to the preset secret information according to the encrypted barcode image. The image data containing the recognition result is subjected to spatial transformation, and the image data after the spatial transformation is completed is the obtained first recognition result.

步骤S603、根据第一识别结果输出预设隐秘信息。Step S603, outputting preset secret information according to the first identification result.

在该步骤中,根据第一识别结果,可以根据预设算法获取其所表达的信息,即得到预设隐秘信息。In this step, according to the first identification result, the expressed information can be obtained according to a preset algorithm, that is, preset secret information can be obtained.

从该实施例可以看出,本申请实施例提供的方法,能对载密条码图像进行解码,获取载密条码图像中的预设隐秘信息。It can be seen from this embodiment that the method provided by the embodiment of the present application can decode the encrypted barcode image and obtain the preset secret information in the encrypted barcode image.

图7是本申请实施例的条码的解码方法的另一流程示意图。图7相对图6更详细描述了本申请的方案。FIG. 7 is another schematic flowchart of a barcode decoding method according to an embodiment of the present application. FIG. 7 describes the scheme of the present application in more detail relative to FIG. 6 .

参见图7,该方法包括:Referring to Figure 7, the method includes:

步骤S701、获取载密条码图像;其中,载密条码图像为包含预设隐秘信息的条码图像。Step S701 , acquiring a password-carrying barcode image; wherein, the password-carrying barcode image is a barcode image containing preset secret information.

其中,载密条码图像的具体描述可以参见图1或图2实施例,此处不再赘述。The specific description of the password-carrying barcode image may refer to the embodiment in FIG. 1 or FIG. 2 , which will not be repeated here.

需要说明的是,载密条码图像可以是电子图像,也就是说,载密条码图像在电子显示设备(例如电脑屏幕)中展示呈现。载密条码图像可以是印刷图像,也就是说,载密条码图像可以是打印出来的纸质的图像,例如可以是电脑中以电子图像形式存在的载密条码图像被打印出来的印刷图像,又例如可以是拍照设备拍摄载密条码图像后所打印出来的印刷图像。It should be noted that the password-carrying barcode image may be an electronic image, that is, the password-carrying barcode image is displayed on an electronic display device (eg, a computer screen). The password-carrying barcode image can be a printed image, that is to say, the password-carrying barcode image can be a printed paper image, for example, it can be a printed image of the password-carrying barcode image existing in the form of an electronic image in a computer. For example, it may be a printed image that is printed out after photographing a password-carrying barcode image by a photographing device.

在本申请实施例中,可以通过扫描方式来获取载密条码图像。例如,利用扫描式识读器进行扫描来获得载密条码图像。In this embodiment of the present application, the password-carrying barcode image can be acquired by scanning. For example, scanning with a scanning reader to obtain a password-bearing barcode image.

步骤S702、将载密条码图像输入预先构建的第二神经网络,以使得第二神经网络识别图像得到前置识别结果,再将前置识别结果进行空间变换,得到第一识别结果。Step S702, inputting the password-carrying barcode image into a pre-built second neural network, so that the second neural network recognizes the image to obtain a pre-recognition result, and then performs spatial transformation on the pre-recognition result to obtain a first recognition result.

在本实施例中,第二神经网络根据第二预设语义分割网络以及预设空间变换网络预先构建得到;其中,第二预设语义分割网络包括U-Net网络。在该步骤中,第二神经网络作为一种语义分割网络,第二神经网络根据载密条码图像识别出其中对应预设隐秘信息的图像数据,该图像数据即为前置识别结果,然后将作为前置识别结果的图像数据进行空间变换,空间变换完成后的图像数据即为所得到的第一识别结果。In this embodiment, the second neural network is pre-built according to the second preset semantic segmentation network and the preset spatial transformation network; wherein the second preset semantic segmentation network includes a U-Net network. In this step, the second neural network is used as a semantic segmentation network, and the second neural network recognizes the image data corresponding to the preset secret information according to the encrypted barcode image, and the image data is the pre-recognition result, which is then used as The image data of the pre-recognition result is spatially transformed, and the image data after the spatial transformation is completed is the obtained first identification result.

可以理解,将作为前置识别结果的图像数据(即feature map,特征图)进行空间变换,其目的是对图像数据进行纠正,调整图像数据姿态,将空间变换完成后的图像数据作为第一识别结果,从而便于后续从第一识别结果中获得预设隐秘信息,利于提升获得预设隐秘信息的正确性。It can be understood that the image data (ie, feature map, feature map) that is the result of the pre-recognition is subjected to spatial transformation, the purpose of which is to correct the image data, adjust the posture of the image data, and use the image data after the spatial transformation is completed as the first identification. As a result, it is convenient to obtain the preset secret information from the first identification result subsequently, which is beneficial to improve the accuracy of obtaining the preset secret information.

需要说明的是,第二神经网络是经训练过的网络,用于从载密条码图像中恢复出隐藏的预设隐秘信息。第二神经网络相比较于图1或图2实施例中的第一神经网络,第二神经网络也可以根据U-Net网络预先构建得到,第二神经网络可以看作为第一神经网络的逆变换。在第二神经网络中,为了增强鲁棒性,引入预设空间变换网络(例如SpatialTransformer Network,简称为STN网络),其为网络结构中的输入提供了相应的空间变换方式,变换的方式包括但不限于缩放、剪切和旋转,从而使得第二神经网络可以学会空间不变性的特点。载密条码图像通过一系列卷积、密集层以及S型函数处理,产生与嵌入的预设隐秘信息相同长度的最终输出,以恢复出预设隐秘信息。本申请实施例中,可以使用交叉熵损失函数对第二神经网络进行监督。It should be noted that the second neural network is a trained network for recovering the hidden preset secret information from the encrypted barcode image. Compared with the first neural network in the embodiment of FIG. 1 or FIG. 2, the second neural network can also be pre-built according to the U-Net network, and the second neural network can be regarded as the inverse transformation of the first neural network. . In the second neural network, in order to enhance the robustness, a preset spatial transformation network (such as SpatialTransformer Network, referred to as STN network) is introduced, which provides a corresponding spatial transformation method for the input in the network structure, and the transformation method includes but Not limited to scaling, shearing and rotation, so that the second neural network can learn the characteristics of space invariance. The encrypted barcode image is processed through a series of convolutions, dense layers and sigmoid functions to produce a final output of the same length as the embedded preset secret information to recover the preset secret information. In this embodiment of the present application, a cross-entropy loss function may be used to supervise the second neural network.

由于第二神经网络可以根据U-Net网络以及预设空间变换网络预先构建得到,第二神经网络也属于一种语义分割网络,第二神经网络的网络结构包括U-Net网络与空间变换网络的网络结构,第二神经网络中U-Net网络的输出为预设空间变换网络的输入,预设空间变换网络的输出作为第一识别结果。第二神经网络中的U-Net网络的卷积层可以根据需求进行调整修改。Since the second neural network can be pre-built according to the U-Net network and the preset space transformation network, the second neural network also belongs to a semantic segmentation network, and the network structure of the second neural network includes the U-Net network and the space transformation network. The network structure, the output of the U-Net network in the second neural network is the input of the preset spatial transformation network, and the output of the preset spatial transformation network is used as the first recognition result. The convolutional layer of the U-Net network in the second neural network can be adjusted and modified as required.

载密条码图像为包含预设隐秘信息的条码图像,换句话说,原始条码图像在嵌入了预设隐秘信息后,即变成为载密条码图像。在本申请实施例中,第二神经网络作为一种语义分割网络,第二神经网络不仅可以从载密条码图像中识别出对应预设隐秘信息的图像数据,还可以从载密条码图像中识别出对应原始条码图像的图像数据。在本申请实施例中,第二神经网络只选取对应预设隐秘信息的图像数据(即第一识别结果)进行输出。The password-carrying barcode image is a barcode image containing preset secret information. In other words, the original barcode image becomes an encrypted barcode image after the preset secret information is embedded. In the embodiment of the present application, the second neural network is used as a semantic segmentation network. The second neural network can not only identify the image data corresponding to the preset secret information from the encrypted barcode image, but also identify the image data from the encrypted barcode image. The image data corresponding to the original barcode image is output. In this embodiment of the present application, the second neural network only selects image data (ie, the first recognition result) corresponding to the preset secret information for output.

步骤S703、根据第一识别结果输出预设隐秘信息。Step S703, outputting preset secret information according to the first identification result.

在该步骤中,根据第一识别结果,可以根据预设算法获取其所表达的信息,即得到预设隐秘信息。在其中一种实施方式中,第一识别结果可以对应一种矩阵数据,该矩阵数据转换为文本格式的预设隐秘信息。In this step, according to the first identification result, the expressed information can be obtained according to a preset algorithm, that is, preset secret information can be obtained. In one embodiment, the first recognition result may correspond to a matrix data, and the matrix data is converted into preset secret information in a text format.

需要说明的是,载密条码图像与原始条码图像均为一维条码图像,载密条码图像与原始条码图像像素对应。也就是说,载密条码图像也承载有与原始条码图像同样的商品基础信息,市场上通用的扫描式识读器扫描读取载密条码图像后也可以得到原始条码图像中所承载的商品基础信息。载密条码图像中所承载的预设隐秘信息,需要通过专用的扫描式识读器才可以读取获得。本申请实施例中,载密条码图像中所承载的预设隐秘信息,可以通过执行如图6或图7所示实施例中的方法的解码设备读取获得,该解码设备可以是扫描式识读器(即扫码枪)。It should be noted that both the encrypted barcode image and the original barcode image are one-dimensional barcode images, and the encrypted barcode image corresponds to the pixels of the original barcode image. That is to say, the password-carrying barcode image also carries the same basic commodity information as the original barcode image. After scanning and reading the password-carrying barcode image, the general scanning reader on the market can also obtain the basic commodity information carried in the original barcode image. information. The preset secret information carried in the password-carrying barcode image needs to be read by a dedicated scanning reader. In this embodiment of the present application, the preset secret information carried in the password-carrying barcode image can be obtained by reading a decoding device that executes the method in the embodiment shown in FIG. 6 or FIG. 7 , and the decoding device may be a scanning Reader (ie scan code gun).

可以理解,载密条码图像可以是电子图像、也可以是印刷图像。请参见图8,图8实施例示出载密条码图像被市场上通用的扫描式识读器扫描读取的场景示意图。图8实施例中,载密条码图像在电子显示设备(即电脑屏幕)中以电子图像形式呈现,市场上通用的扫描式识读器可以成功扫描读取以电子图像形式呈现的载密条码图像,从而得到原始条码图像中所承载的商品基础信息(如图8中左侧区域展示的数据)。It can be understood that the image of the password-carrying barcode may be an electronic image or a printed image. Please refer to FIG. 8 , the embodiment of FIG. 8 shows a schematic diagram of a scenario in which a password-carrying barcode image is scanned and read by a scanning reader commonly used in the market. In the embodiment of FIG. 8 , the image of the password-carrying barcode is presented in the form of an electronic image in an electronic display device (ie, a computer screen), and a general-purpose scanner reader on the market can successfully scan and read the image of the password-carrying barcode presented in the form of an electronic image. , so as to obtain the basic information of the commodity carried in the original barcode image (the data shown in the left area in Figure 8).

请参见图9,图9实施例示出载密条码图像被市场上通用的扫描式识读器扫描读取的另一场景示意图。图9实施例中,载密条码图像以印刷图像形式呈现,市场上通用的扫描式识读器可以成功扫描读取以印刷图像形式呈现的载密条码图像,从而得到原始条码图像中所承载的商品基础信息(如图9中左侧区域展示的数据)。Please refer to FIG. 9 , the embodiment of FIG. 9 shows a schematic diagram of another scenario in which a password-carrying barcode image is scanned and read by a scanning reader commonly used in the market. In the embodiment of FIG. 9, the image of the password-carrying barcode is presented in the form of a printed image, and the scanning reader commonly used in the market can successfully scan and read the image of the password-carrying barcode presented in the form of a printed image, thereby obtaining the original barcode image carried in the image. Basic commodity information (data shown in the left area in Figure 9).

请参见图10,图10实施例示出载密条码图像被解码设备扫描读取的结果示意图。载密条码图像被解码设备扫描读取后,可以得到预设隐秘信息(如图10中所示条码的左上方处的数据)。解码设备执行如图6或图7所示实施例中的方法,解码设备可以是扫描式识读器(即扫码枪)。Please refer to FIG. 10 . The embodiment of FIG. 10 shows a schematic diagram of the result of scanning and reading a password-carrying barcode image by a decoding device. After the encrypted barcode image is scanned and read by the decoding device, preset secret information (the data at the upper left of the barcode as shown in FIG. 10 ) can be obtained. The decoding device executes the method in the embodiment shown in FIG. 6 or FIG. 7 , and the decoding device may be a scanning reader (ie, a scanning code gun).

从该实施例可以看出,本申请实施例提供的方法,利用预先构建的第二神经网络,能够对载密条码图像进行解码,获取载密条码图像中的预设隐秘信息。It can be seen from this embodiment that the method provided by the embodiment of the present application can decode the password-carrying barcode image by using the pre-built second neural network to obtain preset secret information in the password-carrying barcode image.

与前述应用功能实现方法实施例相对应,本申请还提供了一种条码的编码装置的实施例。Corresponding to the foregoing application function implementation method embodiments, the present application further provides an embodiment of a barcode encoding apparatus.

图11是本申请实施例示出的条码的编码装置的结构示意图。FIG. 11 is a schematic structural diagram of an apparatus for encoding a barcode according to an embodiment of the present application.

参见图11,一种条码的编码装置1100,包括:第一获取模块1110、编码模块1120、第一输出模块1130。Referring to FIG. 11 , a barcode encoding apparatus 1100 includes: a first acquisition module 1110 , an encoding module 1120 , and a first output module 1130 .

第一获取模块1110,用于获取原始条码图像以及预设隐秘信息。The first acquisition module 1110 is used to acquire the original barcode image and preset secret information.

编码模块1120,用于将原始条码图像以及预设隐秘信息输入预先构建的第一神经网络,以使得在第一神经网络的上采样过程中将预设隐秘信息与原始条码图像进行合并操作。The encoding module 1120 is configured to input the original barcode image and the preset secret information into the pre-built first neural network, so that the preset secret information and the original barcode image are merged during the upsampling process of the first neural network.

第一输出模块1130,用于在合并操作完成后,通过第一神经网络输出载密条码图像;其中,载密条码图像为包含预设隐秘信息的条码图像。The first output module 1130 is configured to output the password-carrying barcode image through the first neural network after the merging operation is completed; wherein, the password-carrying barcode image is a barcode image containing preset secret information.

从该实施例可以看出,本申请提供的条码的编码装置1100,能够在原始条码图像上嵌入预设隐秘信息,实现对条码容量信息的扩展。It can be seen from this embodiment that the barcode encoding apparatus 1100 provided by the present application can embed preset secret information on the original barcode image, so as to realize the expansion of barcode capacity information.

图12是本申请实施例示出的条码的解码装置的结构示意图。FIG. 12 is a schematic structural diagram of a barcode decoding apparatus shown in an embodiment of the present application.

参见图12,一种条码的解码装置1200,包括:第二获取模块1210、解码模块1220、第二输出模块1230。Referring to FIG. 12 , a barcode decoding apparatus 1200 includes: a second acquisition module 1210 , a decoding module 1220 , and a second output module 1230 .

第二获取模块1210,用于获取载密条码图像;其中,载密条码图像为包含预设隐秘信息的条码图像。The second acquiring module 1210 is configured to acquire a password-carrying barcode image, wherein the password-carrying barcode image is a barcode image containing preset secret information.

解码模块1220,用于将载密条码图像输入预先构建的第二神经网络,以使得第二神经网络识别图像,得到第一识别结果。The decoding module 1220 is configured to input the encrypted barcode image into the pre-built second neural network, so that the second neural network recognizes the image and obtains the first recognition result.

第二输出模块1230,用于根据第一识别结果输出预设隐秘信息。The second output module 1230 is configured to output preset secret information according to the first identification result.

从该实施例可以看出,本申请提供的条码的解码装置1200,能够对载密条码图像进行解码,获取载密条码图像中的预设隐秘信息。It can be seen from this embodiment that the barcode decoding apparatus 1200 provided by the present application can decode the encrypted barcode image and obtain the preset secret information in the encrypted barcode image.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不再做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.

图13是本申请实施例示出的条码的编码解码系统的结构示意图。FIG. 13 is a schematic structural diagram of a barcode encoding and decoding system according to an embodiment of the present application.

参见图13,一种条码的编码解码系统1300,包括:编码设备1310与解码设备1320。Referring to FIG. 13 , a barcode encoding and decoding system 1300 includes: an encoding device 1310 and a decoding device 1320 .

编码设备,用于获取原始条码图像以及预设隐秘信息;将原始条码图像以及预设隐秘信息输入预先构建的第一神经网络,以使得在第一神经网络的上采样过程中将预设隐秘信息与原始条码图像进行合并操作;在合并操作完成后,通过第一神经网络输出载密条码图像;其中,载密条码图像为包含预设隐秘信息的条码图像。The encoding device is used to obtain the original barcode image and the preset secret information; the original barcode image and the preset secret information are input into the pre-built first neural network, so that the preset secret information is stored in the up-sampling process of the first neural network. Perform a merging operation with the original barcode image; after the merging operation is completed, output the encrypted barcode image through the first neural network; wherein, the encrypted barcode image is a barcode image containing preset secret information.

解码设备,用于获取载密条码图像;其中,载密条码图像为包含预设隐秘信息的条码图像;将载密条码图像输入预先构建的第二神经网络,以使得第二神经网络识别图像,得到第一识别结果;根据第一识别结果输出预设隐秘信息。The decoding device is used to obtain the encrypted barcode image; wherein, the encrypted barcode image is a barcode image containing preset secret information; input the encrypted barcode image into a pre-built second neural network, so that the second neural network recognizes the image, Obtain a first identification result; output preset secret information according to the first identification result.

从该实施例可以看出,本申请提供的条码的编码解码系统1300,能够在原始条码图像上嵌入预设隐秘信息,得到载密条码图像,实现对条码容量信息的扩展,并且可以对载密条码图像进行解码,获取载密条码图像中的预设隐秘信息。It can be seen from this embodiment that the barcode encoding and decoding system 1300 provided by the present application can embed preset secret information on the original barcode image, obtain a barcode image carrying a password, realize the expansion of the barcode capacity information, and can The barcode image is decoded to obtain the preset secret information in the encrypted barcode image.

请参见图14,图14是本申请实施例示出的条码的编码解码系统的应用场景的示意图。图14左下角的原始条码图像与预设隐秘信息(如图14左上角示出的隐写信息,即网址信息)可以通过编码设备进行编码,从而得到载密条码图像,载密条码图像通过编码设备(如图14中的智能手机)进行编码后,可以得到载密条码图像中的预设隐秘信息(如图14右上角示出的网址信息)。Please refer to FIG. 14. FIG. 14 is a schematic diagram of an application scenario of the barcode encoding and decoding system shown in the embodiment of the present application. The original barcode image in the lower left corner of Figure 14 and the preset secret information (the steganographic information shown in the upper left corner of Figure 14, that is, the website information) can be encoded by an encoding device, so as to obtain an encrypted barcode image, and the encrypted barcode image is encoded by After encoding by the device (such as the smart phone in FIG. 14 ), the preset secret information in the password-carrying barcode image (the website information shown in the upper right corner of FIG. 14 ) can be obtained.

进一步的,请参见图15,图15是本申请实施例示出的条码的编码解码系统的另一结构示意图。条码的编码解码系统还包括:预测设备1330。预测设备1330用于从电子图像或印刷图像中检测出载密条码图像的位置区域,以便于解码设备1320对载密条码图像进行解码,从而识别出载密条码图像中的预设隐秘信息。Further, please refer to FIG. 15. FIG. 15 is another schematic structural diagram of the barcode encoding and decoding system shown in the embodiment of the present application. The barcode encoding and decoding system further includes: a prediction device 1330 . The prediction device 1330 is used to detect the location area of the encrypted barcode image from the electronic image or the printed image, so that the decoding device 1320 can decode the encrypted barcode image to identify preset secret information in the encrypted barcode image.

如图15所示,在其中一种实施方式中,编码设备1310将原始条码图像与预设隐秘信息编码生成为载密条码图像后,解码设备1320可以对载密条码图像进行解码,从而得到预设隐秘信息。在另一种实施方式中,由于载密条码图像可以以电子图像或者印刷图像的形式呈现,为了便于解码设备1320从电子图像或者印刷图像中解码识别出预设隐秘信息,电子图像或者印刷图像先经过预测设备1330进行处理,在预测设备1330检测出电子图像或印刷图像中检测出载密条码图像所占的位置区域后,再利用解码设备1320进行解码,以提升解码成功率,降低解码难度。As shown in FIG. 15 , in one of the embodiments, after the encoding device 1310 encodes the original barcode image and the preset secret information to generate an encrypted barcode image, the decoding device 1320 can decode the encrypted barcode image to obtain a pre-coded barcode image. Set up secret information. In another embodiment, since the encrypted barcode image can be presented in the form of an electronic image or a printed image, in order to facilitate the decoding device 1320 to decode and identify the preset secret information from the electronic image or the printed image, the electronic image or the printed image is first After processing by the prediction device 1330, after the prediction device 1330 detects the location area occupied by the password-carrying barcode image in the electronic image or the printed image, the decoding device 1320 is used for decoding, so as to improve the decoding success rate and reduce the decoding difficulty.

图16是本申请实施例示出的电子设备的结构示意图。电子设备可以是编码设备或解码设备,换句话说,当执行图1或图2所示实施例的方法时,电子设备为编码设备;当执行图6或图7所示实施例的方法时,电子设备为解码设备。FIG. 16 is a schematic structural diagram of an electronic device shown in an embodiment of the present application. The electronic device can be an encoding device or a decoding device. In other words, when the method of the embodiment shown in FIG. 1 or FIG. 2 is executed, the electronic device is an encoding device; when the method of the embodiment shown in FIG. 6 or FIG. 7 is executed, the electronic device is an encoding device. The electronic device is a decoding device.

参见图16,电子设备1600包括存储器1610和处理器1620。Referring to FIG. 16 , an electronic device 1600 includes a memory 1610 and a processor 1620 .

处理器1620可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 1620 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-available processor Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

存储器1610可以包括各种类型的存储单元,例如系统内存、只读存储器(ROM)和永久存储装置。其中,ROM可以存储处理器1620或者计算机的其他模块需要的静态数据或者指令。永久存储装置可以是可读写的存储装置。永久存储装置可以是即使计算机断电后也不会失去存储的指令和数据的非易失性存储设备。在一些实施方式中,永久性存储装置采用大容量存储装置(例如磁或光盘、闪存)作为永久存储装置。另外一些实施方式中,永久性存储装置可以是可移除的存储设备(例如软盘、光驱)。系统内存可以是可读写存储设备或者易失性可读写存储设备,例如动态随机访问内存。系统内存可以存储一些或者所有处理器在运行时需要的指令和数据。此外,存储器1610可以包括任意计算机可读存储媒介的组合,包括各种类型的半导体存储芯片(例如DRAM,SRAM,SDRAM,闪存,可编程只读存储器),磁盘和/或光盘也可以采用。在一些实施方式中,存储器1610可以包括可读和/或写的可移除的存储设备,例如激光唱片(CD)、只读数字多功能光盘(例如DVD-ROM,双层DVD-ROM)、只读蓝光光盘、超密度光盘、闪存卡(例如SD卡、min SD卡、Micro-SD卡等)、磁性软盘等。计算机可读存储媒介不包含载波和通过无线或有线传输的瞬间电子信号。Memory 1610 may include various types of storage units, such as system memory, read only memory (ROM), and persistent storage. The ROM may store static data or instructions required by the processor 1620 or other modules of the computer. Persistent storage devices may be readable and writable storage devices. Permanent storage may be a non-volatile storage device that does not lose stored instructions and data even if the computer is powered off. In some embodiments, persistent storage devices employ mass storage devices (eg, magnetic or optical disks, flash memory) as persistent storage devices. In other embodiments, persistent storage may be a removable storage device (eg, a floppy disk, an optical drive). System memory can be a readable and writable storage device or a volatile readable and writable storage device, such as dynamic random access memory. System memory can store some or all of the instructions and data that the processor needs at runtime. Additionally, memory 1610 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (eg, DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and magnetic and/or optical disks may also be employed. In some embodiments, memory 1610 may include a removable storage device that is readable and/or writable, such as a compact disc (CD), a read-only digital versatile disc (eg, DVD-ROM, dual-layer DVD-ROM), Read-only Blu-ray Disc, Ultra-Density Disc, Flash Card (eg SD Card, Min SD Card, Micro-SD Card, etc.), Magnetic Floppy Disk, etc. Computer-readable storage media do not contain carrier waves and transient electronic signals transmitted over wireless or wireline.

存储器1610上存储有可执行代码,当可执行代码被处理器1620处理时,可以使处理器1620执行上文述及的方法中的部分或全部。Executable codes are stored on the memory 1610, and when the executable codes are processed by the processor 1620, the processor 1620 can be caused to execute some or all of the above-mentioned methods.

此外,根据本申请的方法还可以实现为一种计算机程序或计算机程序产品,该计算机程序或计算机程序产品包括用于执行本申请的上述方法中部分或全部步骤的计算机程序代码指令。Furthermore, the method according to the present application can also be implemented as a computer program or computer program product comprising computer program code instructions for performing some or all of the steps in the above method of the present application.

或者,本申请还可以实施为一种计算机可读存储介质(或非暂时性机器可读存储介质或机器可读存储介质),其上存储有可执行代码(或计算机程序或计算机指令代码),当可执行代码(或计算机程序或计算机指令代码)被电子设备(或服务器等)的处理器执行时,使处理器执行根据本申请的上述方法的各个步骤的部分或全部。Alternatively, the present application can also be implemented as a computer-readable storage medium (or a non-transitory machine-readable storage medium or a machine-readable storage medium) on which executable codes (or computer programs or computer instruction codes) are stored, When the executable code (or computer program or computer instruction code) is executed by the processor of the electronic device (or server, etc.), the processor is caused to perform some or all of the steps of the above-mentioned method according to the present application.

以上已经描述了本申请的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其他普通技术人员能理解本文披露的各实施例。Various embodiments of the present application have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A method of encoding a barcode, comprising:
acquiring an original bar code image and preset secret information;
inputting the original bar code image and the preset secret information into a first neural network which is constructed in advance, so that the preset secret information and the original bar code image are combined in the up-sampling process of the first neural network;
after the merging operation is finished, outputting a secret-carrying bar code image through the first neural network; and the secret-carrying bar code image is a bar code image containing the preset secret information.
2. The method of claim 1, wherein the merging the predetermined covert information with the original barcode image comprises:
converting the preset secret information into a target two-dimensional matrix;
and merging the target two-dimensional matrix and the characteristic graph corresponding to the original bar code image.
3. The method according to claim 2, wherein the converting the predetermined stego information into a target two-dimensional matrix comprises:
converting the preset secret information into binary data;
converting the binary data into an initial two-dimensional matrix;
and upsampling the initial two-dimensional matrix into a target two-dimensional matrix corresponding to the pixel size of the characteristic diagram.
4. The method of claim 1, wherein:
the first neural network is obtained by pre-constructing according to a first preset semantic segmentation network; the first preset semantic segmentation network comprises a U-Net network.
5. The method of claim 1, wherein:
the secret-carrying bar code image corresponds to the original bar code image in pixel; and/or the presence of a gas in the gas,
the secret-carrying bar code image and the original bar code image are both one-dimensional bar code images.
6. A method of decoding a barcode, comprising:
acquiring a secret-carrying bar code image; the secret-carrying bar code image is a bar code image containing preset secret information;
inputting the secret bar code image into a pre-constructed second neural network so that the second neural network identifies the image to obtain a first identification result;
and outputting the preset secret information according to the first identification result.
7. The method of claim 6, wherein the second neural network identifies the image, resulting in a first identification result, comprising:
and the second neural network identifies the image to obtain a pre-identification result, and then performs spatial transformation on the pre-identification result to obtain a first identification result.
8. The method of claim 6, wherein:
the second neural network is obtained by pre-constructing according to a second preset semantic segmentation network and a preset spatial transformation network; and the second preset semantic segmentation network comprises a U-Net network.
9. An electronic device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any one of claims 1-8.
10. A computer-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method of any one of claims 1-8.
CN202210385694.XA 2022-04-13 2022-04-13 Bar code encoding method, decoding method and equipment Pending CN114819022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210385694.XA CN114819022A (en) 2022-04-13 2022-04-13 Bar code encoding method, decoding method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210385694.XA CN114819022A (en) 2022-04-13 2022-04-13 Bar code encoding method, decoding method and equipment

Publications (1)

Publication Number Publication Date
CN114819022A true CN114819022A (en) 2022-07-29

Family

ID=82536644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210385694.XA Pending CN114819022A (en) 2022-04-13 2022-04-13 Bar code encoding method, decoding method and equipment

Country Status (1)

Country Link
CN (1) CN114819022A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050021A (en) * 2019-12-17 2020-04-21 中国科学技术大学 Image privacy protection method based on two-dimensional code and reversible visual watermarking
CN111327785A (en) * 2020-01-15 2020-06-23 郑州埃文计算机科技有限公司 Information steganography communication method based on automatic image construction of countermeasure generation network
CN112417919A (en) * 2020-11-18 2021-02-26 珠海格力电器股份有限公司 Detection and identification method and system of anti-counterfeiting two-dimensional code and storage medium
CN114186576A (en) * 2021-11-09 2022-03-15 苏州斯普锐智能系统股份有限公司 Bar code positioning and decoding device, method, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050021A (en) * 2019-12-17 2020-04-21 中国科学技术大学 Image privacy protection method based on two-dimensional code and reversible visual watermarking
CN111327785A (en) * 2020-01-15 2020-06-23 郑州埃文计算机科技有限公司 Information steganography communication method based on automatic image construction of countermeasure generation network
CN112417919A (en) * 2020-11-18 2021-02-26 珠海格力电器股份有限公司 Detection and identification method and system of anti-counterfeiting two-dimensional code and storage medium
CN114186576A (en) * 2021-11-09 2022-03-15 苏州斯普锐智能系统股份有限公司 Bar code positioning and decoding device, method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11194984B2 (en) Localization of machine-readable indicia in digital capture systems
US11675985B2 (en) Systems and methods for generating and reading intrinsic matrixed bar codes
US11216631B2 (en) Contrast edge barcodes
US9984429B2 (en) Feature-based signal localization in digital capture systems
CN110766594B (en) Information hiding method and device, detection method and device and anti-counterfeiting tracing method
JP2004178560A (en) System and method for selectively processing digital image
JP2016035751A (en) Two-dimensional code with watermark, authentication system, authentication method, and program
US11875259B1 (en) Generative system and method for enhancing readability of barcodes using frequency guided computer vision
CN116978030A (en) Text information recognition method and training method of text information recognition model
Vinh Loc et al. Deep learning based-approach for quick response code verification: C. Vinh Loc et al.
US20160239935A1 (en) Digital watermarks
CN117597702A (en) Scale-independent watermark extraction
Fang et al. An optimization model for aesthetic two-dimensional barcodes
CN114819022A (en) Bar code encoding method, decoding method and equipment
Novozámský et al. Extended IMD2020: a large‐scale annotated dataset tailored for detecting manipulated images
Loc et al. An approach for tamper-proof qr code using deep learning based-data hiding
CN115035533A (en) Data authentication processing method and device, computer equipment and storage medium
Singh et al. A novel approach for encoding and decoding of high storage capacity color QR code
Udvaros et al. Recognize and decode QR codes from images
US20210203994A1 (en) Encoding data in a source image with watermark image codes
Loc et al. A real noise resistance for anti-tampering quick response code
Mishra Region identification and decoding of security markers using image processing tools
Ieswaria et al. Bin Code: Encoding and Decoding of Picture Embedded Barcodes by Novel Intensity Bin
Tripathi Perceiving QR Codes as a Way to Expand Text Mining Procedures
CN106233331B (en) Medium, computing device, and method for decoding main image using auxiliary image

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