CN104281865B - A method and apparatus for generating a two-dimensional code - Google Patents

A method and apparatus for generating a two-dimensional code Download PDF

Info

Publication number
CN104281865B
CN104281865B CN 201310279958 CN201310279958A CN104281865B CN 104281865 B CN104281865 B CN 104281865B CN 201310279958 CN201310279958 CN 201310279958 CN 201310279958 A CN201310279958 A CN 201310279958A CN 104281865 B CN104281865 B CN 104281865B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
dimensional code
information
corresponding
initial
plurality
Prior art date
Application number
CN 201310279958
Other languages
Chinese (zh)
Other versions
CN104281865A (en )
Inventor
李靖
夏群
齐伟
Original Assignee
百度在线网络技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Abstract

本发明的目的是提供一种生成二维码的方法与设备。 Object of the present invention is to provide a method and apparatus for generating a two-dimensional code. 与现有技术相比,本发明通过获取待处理的初始二维码以及与初始二维码相对应的多个基元样式信息,根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码,并根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码;从而使得所述初始二维码具有动态可变的样式,有助于提高信息承载能力以及屏幕受限的终端设备的屏幕资源利用率,并且,增加了二维码内容的丰富性、多样性和趣味性,使得所述二维码更加个性化,提升了二维码的外观UI效果,使得二维码易于辨识,提高用户获取信息的效率。 Compared with the prior art, the present invention is by obtaining an initial two-dimensional code to be processed and a plurality of primitives and style information corresponding to the original two-dimensional code, based on the plurality of primitives in at least one of style information, and the the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate codes corresponding to the initial two-dimensional, based on the order information and style information of the primitive two-dimensional code corresponding intermediate, combining the plurality of two-dimensional intermediate code to obtain a corresponding dynamic two-dimensional code; such that the initial two-dimensional code having dynamically variable pattern, help to improve resource utilization information carrying capacity of the screen and the screen of the terminal device is limited, and increases the two-dimensional code richness of content, diversity and fun, so that the two-dimensional code more personalized UI effects to enhance the appearance of the two-dimensional code, making the two-dimensional code is easy to identify, improve the efficiency of users to access information.

Description

一种生成二维码的方法与设备 A method and apparatus for generating a two-dimensional code

技术领域 FIELD

[0001] 本发明涉及二维码技术领域,尤其涉及一种生成二维码的技术。 [0001] The present invention relates to a two-dimensional code technology, and particularly relates to a technique for generating a two-dimensional code.

背景技术 Background technique

[0002] 随着移动互联网的不断发展,二维码的应用场合越来越多,成为了一种有效的广告宣传与娱乐互动媒介。 [0002] With the continuous development of mobile Internet, two-dimensional code applications more and more, become an effective advertising and interactive entertainment media. 然而,当前二维码仅采用纯色或黑白色以形成如传统两色相间式、 黑白交错式。 However, current two-dimensional code only with a solid color or black and white as to form two hue traditional type, black and white interlaced.

[0003] 这类二维码图案风格较为单调,内容不突出,二维码辨识度偏低。 [0003] Such two-dimensional code pattern monotonous style, content is not projecting, two-dimensional code recognition degree is low.

发明内容 SUMMARY

[0004] 本发明的目的是提供一种生成二维码的方法与设备。 [0004] The object of the present invention is to provide a method and apparatus for generating a two-dimensional code.

[0005] 根据本发明的一个方面,提供了一种生成二维码的方法,其中,该方法包括以下步骤: [0005] In accordance with one aspect of the invention, there is provided a method of generating a two-dimensional code, wherein the method comprises the steps of:

[0006] a获取待处理的初始二维码; [0006] a two-dimensional code to be the initial acquisition process;

[0007] b获取与所述初始二维码相对应的多个基元样式信息; [0007] b style information acquiring a plurality of primitives with the initial two-dimensional code corresponding to;

[0008] c根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码; [0008] c according to the plurality of primitives in at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code;

[0009] d根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 [0009] d sequentially according to the relevant information of the cell style information corresponding to the intermediate two-dimensional code, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code.

[0010] 根据本发明的另一方面,还提供了一种生成二维码的生成设备,其中,该设备包括: [0010] According to another aspect of the present invention, there is provided a method of generating two-dimensional code generating device, wherein, the apparatus comprising:

[0011] 获取装置,用于获取待处理的初始二维码; [0011] The acquisition means for acquiring an initial two-dimensional code to be processed;

[0012] 样式装置,用于获取与所述初始二维码相对应的多个基元样式信息; [0012] Style means for acquiring a plurality of primitives and the initial style information corresponding to a two-dimensional code;

[0013] 生成装置,用于根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码; [0013] generating means for said plurality of primitives according to at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code;

[0014] 合并装置,用于根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 [0014] Merge means for the order information related to the primitive style information corresponding to the intermediate two-dimensional code, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code.

[0015] 与现有技术相比,本发明通过获取待处理的初始二维码,以及与初始二维码相对应的多个基元样式信息,根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码,并根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码;从而使得所述初始二维码具有动态可变的样式,例如可变的图案或颜色等,有助于提高信息承载能力以及屏幕受限的终端设备的屏幕资源利用率,并且,增加了二维码内容的丰富性、多样性和趣味性,使得所述二维码更加个性化,提升了二维码的外观UI效果,使得二维码易于辨识,提高用户获取信息的效率。 [0015] Compared with the prior art, the present invention is by obtaining an initial two-dimensional code to be processed, and a plurality of primitives and style information corresponding to the original two-dimensional code, based on the plurality of primitives in at least one of style information , and the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate codes corresponding to the initial two-dimensional, based on the order information and style information of the primitive two-dimensional code corresponding intermediate, combining the plurality intermediate two-dimensional code to obtain a corresponding dynamic two-dimensional code; such that the initial two-dimensional code having dynamically variable pattern, or the like, for example, a variable color pattern, and help to improve the information carrying capacity of the screen is limited screen terminal device resource utilization, and increase the richness, diversity and interesting content of the two-dimensional code, so that the two-dimensional code more personalized UI effects to enhance the appearance of the two-dimensional code, making the two-dimensional code easy to identify, improve the efficiency of users to access information.

[0016] 而且,本发明还可以确定所述初始二维码所对应的色块分布矩阵,并通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码;进一步地,还可以按照预定的色块替换规则,通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码;从而更为精确的生成与所述初始二维码相对应的中间二维码,进而使得所述初始二维码具有动态可变的样式,例如可变的图案或颜色等,有助于提高信息承载能力以及屏幕受限的终端设备的屏幕资源利用率,并且,增加了二维码内容的丰富性、多样性和趣味性,使得所述二维码更加个性化,提升了二维码的外观UI效果,使得二维码易于辨识,提高用户获取信息的效率。 [0016] Further, the present invention may also determine the initial two-dimensional code corresponding to the color distribution matrix and replaced by at least one matrix patches according to the color distribution of the plurality of primitives style information processing to generate a plurality of intermediate said two-dimensional code corresponding to the initial two-dimensional code; further, can be replaced according to a predetermined rule color, through a plurality of cells according to the style information in at least one of the patch distribution of the matrix patch replacement process, the two-dimensional code to generate a plurality of intermediate codes corresponding to the initial two-dimensional; thereby generating more accurate the initial two-dimensional code corresponding to the intermediate two-dimensional code, thereby making the said original two-dimensional code having dynamically variable pattern, such as variable color pattern or the like, help to improve resource utilization information carrying capacity of the screen and the screen of the terminal device is limited, and the content of the two-dimensional code increases richness, diversity and fun, so that the two-dimensional code more personalized UI effects to enhance the appearance of the two-dimensional code, making the two-dimensional code is easy to identify, improve the efficiency of users to access information.

[0017]而且,本发明还可以对所述基元样式信息进行验证,根据通过验证的所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码;从而保证了所述基元样式信息的合法性,保证了中间二维码的生成。 [0017] Further, the present invention also can validate the primitive style information according to the plurality of primitives by verifying at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate the initial the intermediate corresponding to the plurality of two-dimensional code; style information to ensure the legitimacy of the base element, to ensure the generation of an intermediate two-dimensional code.

[0018]而且,本发明还可以确定所述多个基元样式信息所对应的基元样式序列,根据所述中间二维码所对应的基元样式信息在所述基元样式序列中的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码;更优选地,还可以根据所述初始二维码的应用场景信息,确定所述多个基元样式信息所对应的基元样式序列;从而根据所述基元样式序列组合生成动态二维码,使得所述初始二维码具有动态可变的样式,例如可变的图案或颜色等,并使得基元样式序列更符合所述初始二维码的应用场景,有助于提高信息承载能力以及屏幕受限的终端设备的屏幕资源利用率,并且,增加了二维码内容的丰富性、多样性和趣味性,使得所述二维码更加个性化,提升了二维码的外观UI效果,使得二维码易于辨识,提高用户获取信息的效率。 [0018] Further, the present invention may also be determined pattern of the plurality of primitive sequence motifs corresponding to the style information, the style information according primitive intermediate two-dimensional code corresponding to the order of the primitive pattern sequence related information, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code; more preferably, also depending on the application scenario of the initial two-dimensional code information, determining the plurality of primitives style information corresponding pattern sequence motif; such that the pattern sequence motif composition according to generate a dynamic two-dimensional code, so that the initial two-dimensional code having dynamically variable pattern, a pattern or the like e.g. variable color, and pattern primitives such rich sequence scenario more appropriate for application of the initial two-dimensional code, help to improve resource utilization information carrying capacity of the screen and the screen of the terminal device is limited, and increasing the content of the two-dimensional code, and the diversity of interest so that the more personal the two-dimensional code, UI effects to enhance the appearance of the two-dimensional code, making the two-dimensional code is easy to identify, improve the efficiency of users to access information.

[0019] 而且,本发明还可以根据所述初始二维码的码相关信息,例如应用场景信息、配色特征信息、待呈现信息等多个方面获取与所述初始二维码相对应的多个基元样式信息;从而使得所述初始二维码具有更加适于所述初始二维码的、适于读取的动态可变的样式,例如可变的图案或颜色等,有助于提高信息承载能力以及屏幕受限的终端设备的屏幕资源利用率,并且,增加了二维码内容的丰富性、多样性和趣味性,使得所述二维码更加个性化,提升了二维码的外观UI效果,使得二维码易于辨识,提高用户获取信息的效率。 [0019] Further, the present invention may also be two-dimensional code according to the initial code-related information such as scenario information and color feature information, information to be presented a plurality of aspects of acquiring the two-dimensional code corresponding to the initial primitive style information; such that the initial two-dimensional code having more adapted to the initial two-dimensional code is adapted to dynamically variable pattern read, or the like, for example, a variable color pattern, helps to improve the information screen resource utilization and load carrying capacity of the terminal screen is limited, and increasing the richness and diversity of the contents and interesting two-dimensional code, the two-dimensional code such that more personalized, to enhance the appearance of the two-dimensional code UI effects, making the two-dimensional code is easy to identify, improve the efficiency of users to access information.

附图说明 BRIEF DESCRIPTION

[0020] 通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显: [0020] By reading the following detailed description of the accompanying drawings of non-limiting embodiments, and other features, objects and advantages of the invention will become more apparent:

[0021] 图1示出根据本发明一个方面的一种生成二维码的生成设备示意图; [0021] FIG. 1 shows a schematic generating device generates a two-dimensional code in accordance with one aspect of the present invention;

[0022]图2示出根据本发明一个优选实施例的一种生成二维码的生成设备示意图; [0022] Figure 2 shows a schematic diagram of a generating apparatus according to the embodiment of the present invention is preferably one generating a two-dimensional code;

[0023] 图3示出根据本发明另一个优选实施例的一种生成二维码的生成设备示意图; [0023] FIG. 3 shows a schematic generating apparatus for generating a two-dimensional code according to another preferred embodiment of the present invention;

[0024] 图4示出根据本发明另一个方面的一种生成二维码的方法流程图; [0024] FIG. 4 illustrates a method for generating two-dimensional code according to another aspect of the present invention, a flow chart;

[0025] 图5示出根据本发明一个优选实施例的一种生成二维码的方法流程图; [0025] Figure 5 illustrates a flowchart of a method of generating a two-dimensional code in a preferred embodiment of the present invention;

[0026] 图6示出根据本发明另一个优选实施例的一种生成二维码的方法流程图; [0026] FIG. 6 illustrates a flowchart of a method of generating a two-dimensional code to another preferred embodiment of the present invention;

[0027] 图7示出根据本发明的一个优选实施例的一种中间二维码的示意图; [0027] FIG. 7 shows a schematic view of an embodiment of the intermediate two-dimensional code according to a preferred embodiment of the present invention;

[0028] 图8示出根据本发明的一个优选实施例的一种用于确定色块分布矩阵的示意图; [0028] FIG. 8 illustrates the determination of the distribution matrix patch according to a preferred embodiment of the present invention is a method for schematic;

[0029] 图9示出根据本发明的一个优选实施例的一种基元样式示意图的示意图。 [0029] FIG. 9 shows a schematic diagram of a cell pattern in accordance with a preferred embodiment of the present invention in a schematic view.

[0030] 附图中相同或相似的附图标记代表相同或相似的部件。 [0030] In the drawings the same or similar to the same or like reference numerals refer to the components.

具体实施方式 detailed description

[0031] 下面结合附图对本发明作进一步详细描述。 [0031] The following figures of the present invention will be further described in detail with.

[0032] 图1示出根据本发明一个方面的一种生成二维码的生成设备示意图;其中,所述生成设备包括获取装置1、样式装置2、生成装置3、合并装置4。 [0032] FIG. 1 shows a schematic generating device generates a two-dimensional code in accordance with one aspect of the present invention; wherein said generating apparatus comprises acquisition means 1, 2 form means, generating means 3, 4 combining means. 具体地,获取装置1获取待处理的初始二维码;样式装置2获取与所述初始二维码相对应的多个基元样式信息;生成装置3 根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码;合并装置4根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 In particular, the initial acquisition of the acquired two-dimensional code to be processed 1 apparatus; apparatus 2 acquires a plurality of pattern primitives to the initial style information corresponding to the two-dimensional code; generating means 3 on at least the plurality of primitives style information a, and the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate codes corresponding to the initial two-dimensional; merging means 4 according to the sequence information of the cell style information corresponding to the intermediate two-dimensional code, combined the plurality of intermediate two-dimensional code to obtain a corresponding dynamic two-dimensional code.

[0033]在此,所述生成设备包括但不限于网络设备、用户设备或网络设备与用户设备通过网络相集成所构成的设备。 [0033] Here, the apparatus comprising generating apparatus but not limited to network devices, network device or user equipment and the user equipment through a network composed of integration. 其中,所述网络设备包括一种能够按照事先设定或存储的指令,自动进行数值计算和信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路(ASIC)、可编程门阵列(FPGA)、数字处理器(DSP)、嵌入式设备等。 Wherein said apparatus comprises a network capable of, an electronic device automatically numerical calculation and information processing according to preset instructions or stored, including but not limited to hardware microprocessors, application specific integrated circuit (ASIC), a programmable gate array (FPGA), a digital processor (DSP), embedded devices. 所述网络设备其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云;在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个虚拟超级计算机。 The network device including but not limited to computers, network host cloud, a single network server and multiple network servers or multiple servers configured sets; Here, a cloud-based cloud (Cloud Computing) is composed of a large number of computer or network server where cloud computing is a distributed computing, a virtual supercomputer by a computer set consisting of a group of loosely coupled. 所述用户设备其包括但不限于任何一种可与用户通过键盘、遥控器、触摸板、或声控设备进行人机交互的电子产品,例如计算机、智能手机、PDA、游戏机、或IPTV等。 The user equipment electronic products including, but not limited to human-machine interaction with a user may be any of a keyboard, a remote controller, a touch pad, or a voice-activated device, such as a computer, a smart phone, PDA, a game machine, or the like IPTV. 所述网络包括但不限于互联网、广域网、城域网、局域网、VPN网络、无线自组织网络(AdHoc网络)等。 The networks include, but are not limited to the Internet, WAN, MAN, LAN, VPN network, a wireless ad-hoc network (AdHoc network). 本领域技术人员应能理解,其他的生成设备同样适用于本发明,也应包含在本发明保护范围以内,并在此以引用方式包含于此。 Those skilled in the art should appreciate that other equally applicable to the generating device of the present invention, should also be included within the scope of the present invention, and incorporated herein by reference.

[0034]上述各装置之间是持续不断工作的,在此,本领域技术人员应理解“持续”是指上述各装置分别实时地,或者按照设定的或实时调整的工作模式要求,进行待处理的初始二维码的获取、基元样式信息的获取、中间二维码的生成、动态二维码的获取等,直至所述生成设备停止获取待处理的初始二维码。 [0034] between each of the continuous operating means is, in this case, skilled in the art will appreciate that "continuous" refers to the above-described apparatus are in real time, or according to the requirements of real-time adjustment or setting of the operating mode, to be performed the initial two-dimensional code acquisition process acquires cell style information, generating an intermediate two-dimensional code, the two-dimensional code other dynamic acquisition, acquisition until the device stops generating the initial two-dimensional code to be processed.

[0035] 获取装置1获取待处理的初始二维码。 [0035] The acquisition means 1 acquires the original two-dimensional code to be processed.

[0036]具体地,所述获取装置1通过各种通信协议,通过各类数据传输接口,与存储或提供所述初始二维码的一个或多个数据库或其他第三方设备相交互,以获取待处理的初始二维码;或者,所述获取装置1通过与其他设备相交互,或者通过与用户相交互,接收所述用户通过点击、触摸、输入等方式所提交的一个或多个内容信息,并将所述内容信息基于二维码生成原理和/或相依的参数等,以生成待处理的初始二维码。 [0036] In particular, the acquisition means 1 through various communication protocols, through various data transmission interface, or a storage of the initial two-dimensional code or more databases or other third party devices interact, to obtain the initial two-dimensional code to be processed; or the acquisition device 1 one or more users interact with the content information, the receiving user submitted by clicking, a touch input etc. by interacting with other devices, or by and the content information based on the principle of generating two-dimensional code and / or parameters dependent like, to be processed to generate an initial two-dimensional code.

[0037] 其中,所述初始二维码包括但不限于仅表达了所述文本信息的、以纯色或黑白色所生成的如传统两色相间式、黑白交错式及两色渐变式的二维码,或者在二维码中心嵌入小图片的二维码等。 [0037] wherein the initial two-dimensional code including but not limited to expressing only the text message, to the generated solid color or black and white two hues as traditional type, and two-color checkered type two-dimensional graded code, or embedded small picture in the center of the two-dimensional code such as a two-dimensional code.

[0038]样式装置2获取与所述初始二维码相对应的多个基元样式信息。 [0038] The apparatus 2 acquires a plurality of pattern primitives to the initial style information corresponding to the two-dimensional code.

[0039]具体地,所述样式装置2通过各种通信协议,通过各类数据传输接口,与存储或提供所述基元样式信息的一个或多个数据库或其他第三方设备相交互,以获取多个所述基元样式信息,然后将所述基元样式信息与所述初始二维码建立映射关系,作为与所述初始二维码相对应的多个基元样式信息;或者所述提取装置2通过与用户相交互,接收所述用户通过点击、触摸、输入等方式所选择提交的与所述初始二维码相对应的多个基元样式信息;或者所述提取装置2根据所述初始二维码,基于预定的选择标准(如根据所述初始二维码所对应的信息等),选择与所述初始二维码相对应的多个基元样式信息。 [0039] In particular, the pattern 2 by means of various communication protocols, data transmission through various interfaces, or providing the stored primitive style information to one or more databases or other third party devices interact, to obtain style information of the plurality of primitives and the primitive style information to establish the mapping between the original two-dimensional code, as the plurality of primitives to the initial two-dimensional code corresponding to the style information; or the extraction 2 by means interacting with the user, the style information of the plurality of primitives with the initial two-dimensional code corresponding to the received submission selected by the user by clicking, touch input, etc.; or the extracting device 2 in accordance with the the initial two-dimensional code, based on a predetermined selection criteria (e.g., according to initial information and the like to the corresponding two-dimensional code), and selecting the initial two-dimensional code corresponding to the plurality of primitives style information.

[0040] 其中,所述多个基元样式信息包括但不限于具有颜色可变的像素块或形状可变的图形的一种或多种。 [0040] wherein one or more of the plurality of primitives of style information includes, but is not limited to the pixel block having a variable shape or variable color pattern. 例如,如图9所示,图9示出了具有不同形状的多个基元样式信息,以及具有不同颜色的基元样式信息。 For example, as shown in FIG. 9, FIG. 9 shows a pattern of information having a plurality of different shapes primitives and primitives having different colors style information.

[0041] 生成装置3根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码。 [0041] generating apparatus 3 according to the plurality of cells in at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code.

[0042]具体地,所述生成装置3根据所述样式装置2所获取的与所述初始二维码相对应的多个基元样式信息,以及所述获取装置1所获取的初始二维码,例如利用所述基元样式信息中的一个,对所述初始二维码中的对应像素进行替换,以生成与所述基元样式信息相对应的一个中间二维码,进而利用多个所述基元样式信息,分别对所述初始二维码中的对应像素进行替换,即利用两个或更多所述基元样式信息,以生成多个中间二维码。 [0042] In particular, the generating 3 to the initial two-dimensional code corresponding to said plurality of pattern primitives style information device 2 is acquired, and the initial two-dimensional code acquired by a device according to the acquisition means , for example, a cell with the pattern information, the initial two-dimensional code corresponding to the pixel to be replaced, the primitive to generate a pattern information corresponding intermediate a two-dimensional code, further using a plurality of said primitive style information, each of the initial two-dimensional code corresponding to the pixel to be replaced, i.e. the use of two or more primitives style information, to generate a plurality of intermediate two-dimensional code.

[0043] 在此,本领域技术人员应能理解,所述替换过程同时适用于深色块与浅色块,所述深色块需被替换为深色的基元样式信息,所述浅色块需被替换为浅色的基元样式信息,以保证所述二维码可以被扫描识别。 [0043] Here, those skilled in the art should appreciate that the replacement procedure applies to the deep and light color blocks, the color needs to be replaced with a deep dark primitive style information, the light block needs to be replaced as pale primitive style information, to ensure the two-dimensional code may be scanned to identify. 具有同一个形状的基元样式信息还可以同时具有深色基元样式信息与浅色基元样式信息。 Primitive style information having the same shape may also have a dark color with light-colored motif motif style information style information simultaneously.

[0044]例如,如图9的“颜色变化的基元样式示例”中,所述颜色“黑、深蓝、红、紫、青绿”都属于深色的基元样式信息,可以用来替换深色块。 [0044] For example, FIG. 9 "exemplary motif pattern color change", the color "black, blue, red, purple, green," belong to the dark cell pattern information, it may be used instead of dark Piece.

[0045]例如,如图7所示,图7示出了一种利用基元样式信息对所述初始二维码进行处理后生成的中间二维码的示意图。 [0045] For example, as shown in FIG. 7, FIG. 7 shows a schematic two-dimensional code generated intermediate latter motif pattern information of the initial treatment with the two-dimensional code. 具体地,所述初始二维码为普通的利用黑白条纹所生成的具有背景图案的二维码,所述基元样式信息如图7右下角所示人形图案,所述样式装置2获取了所述人形图案作为所述初始二维码的基元样式信息之一,生成装置3将所述初始二维码中的黑白条纹划分为多个方块,并利用所述基元样式信息,将黑色的方块利用黑色的人形图案进行替换,将白色的方块利用白色的人形图案进行替换,从而生成如图7所示的中间二维码。 In particular, the initial two-dimensional code is an ordinary black and white stripes using the generated two-dimensional code having a background pattern, the pattern information of the primitive pattern as shown in Figures bottom right in FIG. 7, the pattern of the obtaining means 2 Doll said one cell pattern style information as the initial two-dimensional code generating means 3 to the initial two-dimensional code block into a plurality of black and white stripes, and by using pattern information of the primitive, the black Figures block using black pattern replacement block replacing white using white humanoid pattern, so that the intermediate 7 generates two-dimensional code shown in FIG. 所述生成装置3可以根据所述基元样式信息的不同,根据所述多个基元样式信息以及所述初始二维码,生成多个中间二维码。 The generating device 3 according to the different style information of the cell, based on the style information and the plurality of primitives in the initial two-dimensional code, two-dimensional code to generate a plurality of intermediate.

[0046]合并装置4根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 [0046] The combined device 4 according to a sequence motif related information of the style information corresponding to the intermediate two-dimensional code, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code.

[0047]具体地,所述合并装置4根据所述中间二维码所对应的基元样式信息的顺序相关信息,例如,将所述多个中间二维码构成帧链表,通过将所述帧链表的中间二维码进行合并,生成动态的如gif•格式的图片,即获得对应的动态二维码。 [0047] In particular, the combining means 4 according to the sequence motif related information style information corresponding to the intermediate two-dimensional code, for example, the two-dimensional code composed of a plurality of intermediate chain frame, by the frame list of intermediate merge two-dimensional code, such as dynamically generated gif • image format, i.e., to obtain a corresponding dynamic two-dimensional code. 其中,由于所述基元样式信息是多个不同的,因此,按照所述基元样式信息的顺序相关信息进行合并后,所述动态二维码是可动的。 Wherein the cell due to the plurality of style information is different, and therefore, in order to merge the information of the primitive style information, a dynamic two-dimensional code is movable.

[0048]其中,所述顺序相关信息可以根据所述样式装置2所提供的所述基元样式信息的顺序信息确定,也可以根据用户设置的指定顺序或用于生成顺序的参数确定,也可以根据所述初始二维码的相关信息(如所述初始二维码所对应的内容信息等)而确定,从而通过对所述基元样式信息进行排列组合等方式,获取其所对应的顺序相关信息。 [0048] wherein the order of order information according to related information of the style information of the cell pattern provided by the apparatus 2 is determined, the order may be determined according to the specified parameters set by the user or to the order of generation, may be (the contents information corresponding to the initial two-dimensional code, etc.) is determined according to the relevant information of the initial two-dimensional code, so that by the primitive style information permutations and combinations, etc., it corresponds to the order of acquisition-related information. 例如,所述样式装置2所提供的基元样式信息为A、B、C,则所述基元样式信息所对应的顺序相关信息可以是ABC,或者也可以是ABCABC (即可以重复),或者也可以是AAMCC,或者也可以是AABCABC等任意组合。 For example, the pattern motif pattern information means provided for the two A, B, C, the sequence information element corresponding to the style information may be a base ABC, or may be an ABCABC (i.e., can be repeated), or It may be AAMCC, or may be any combination AABCABC like. 不同的排列次序最终决定了所述动态二维码的动态效果。 Different sequence ultimately determines the dynamic effect of the dynamic two-dimensional code.

[0049] 在此,由于所述中间二维码所包含的初始二维码是相同的,且其所对应的基元样式信息是不同的,因此所合并后的动态二维码具有可动的效果,且由于所述动态二维码的每一帧都是具有与所述初始二维码相同的码形,因此扫描出的内容是相同的。 [0049] Here, since the intermediate two-dimensional code included in the initial two-dimensional code is the same, and its corresponding primitive style information is different, and therefore the two-dimensional codes having the combined dynamically movable effect, and since each frame of the two-dimensional code is dynamic with the initial two-dimensional code having the same code pattern, the scan-out content is the same.

[0050] 优选地,所述生成设备还包括验证装置(未示出),其中,所述验证装置对所述基元样式信息进行验证;所述生成装置3根据通过验证的所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码。 [0050] Preferably, the generating device further comprises verification means (not shown), wherein the said verification means to verify the information pattern primitives; said generating means 3 according to the plurality of groups verified at least one meta style information, as well as the initial two-dimensional code to generate the initial two-dimensional code corresponding to the plurality of the intermediate two-dimensional code.

[0051] 具体地,所述验证装置验证所述基元样式信息的合法性,例如,检查所述基元样式信息是否属于预定的基元样式集合,或者是否符合基元样式的规定等。 [0051] In particular, the verification means to verify the legitimacy of the style information of the primitive, e.g., checking whether the cell belongs to a predetermined style information motif pattern set, or whether the predetermined pattern primitives like. 例如,当所述可选基元样式集合为{a, b,c,d}时,若所述基元样式信息不属于该集合,则认为该基元样式信息不合法,反之则通过验证;或者,例如,对所述基元样式信息的格式进行验证,如定义所述基元样式信息为15像素xl5像素的正方形图片,若所述基元样式信息不符合该像素要求,则认为该基元样式信息不合法,反之则通过验证。 For example, when the pattern set is optional primitive {a, b, c, d}, if the cell does not belong to the set of style information, the style information that the cell is not legitimate, and vice versa verified; Alternatively, for example, to verify the format of the style information primitives, the primitives defined as style information for the pixels 15 pixels square xl5, if the cell does not comply with the pixel pattern information requirements, the group is considered yuan style information is not legitimate, otherwise verified.

[0052] 所述生成装置3获取所述验证装置通过验证的多个基元样式信息,根据通过验证的所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的中间二维码,进而根据多个基元样式信息,以获得多个中间二维码。 [0052] The generating means 3 acquires the plurality of primitives by means of verification of the verification style information according to the plurality of primitives by verifying at least one of style information, as well as the initial two-dimensional code, the generated the initial two-dimensional code corresponding to the intermediate two-dimensional code, and further in accordance with a plurality of primitives style information to obtain a plurality of intermediate two-dimensional code. 在此,所述生成装置3 获得多个中间二维码的方式与图1中所述生成装置3的获得方式相同或相似,故在此不再赘述,并通过引用的方式包含于此。 Here, the plurality of generating means 3 to obtain an intermediate two-dimensional code in the embodiment in FIG. 1 the generating means to obtain the same or similar to Embodiment 3, and therefore are not repeated here, and is incorporated herein by reference.

[0053]优选地,所述样式装置2可以根据所述初始二维码的码相关信息,获取与所述初始二维码相对应的多个基元样式信息。 [0053] Preferably, the pattern may be related information device 2 according to the code of the initial two-dimensional code, acquiring information of the plurality of primitives to the initial pattern corresponding to the two-dimensional code.

[0054]具体地,所述样式装置2可以根据所述初始二维码的码相关信息,例如根据所述初始二维码的所属应用信息的应用场景信息、所述初始二维码所对应背景图案的配色特征信息或所述二维码待呈现的信息等,通过基于预定的选择规则,如对于特定的配色特征则选择预定的基元样式信息等方式,获取与所述初始二维码相对应的多个基元样式信息。 [0054] In particular, the pattern according to the initial device 2 may be a code two-dimensional code information, for example application scenario according to the information relevant to the application information of the initial two-dimensional code, the two-dimensional code corresponding to the initial background color feature information or information to be presented to the two-dimensional code pattern, by selecting a predetermined rule based, such as color features for a particular primitive select predetermined style information, etc., to obtain the two-dimensional code with the initial phase primitives corresponding to the plurality of style information.

[0055]更优选地,当所述码相关信息包括所述初始二维码的应用场景信息时,所述样式装置2可以根据所述初始二维码的应用场景信息,获取对应应用所对应的多个图像;获取与所述多个图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 [0055] More preferably, when the scenario code related information comprises information about the initial two-dimensional code, the pattern information of the device according to scenario 2 may be the initial two-dimensional code corresponding to obtain a corresponding application a plurality of images; acquiring a plurality of images of said plurality of style information corresponding to a plurality of primitives as the style information corresponding to the initial two-dimensional code.

[0056]具体地,所述码相关信息包括所述初始二维码的应用场景信息,其中,所述应用场景信息包括但不限于所述应用的主题信息、应用的演示信息、视频预览信息等;所述样式装置2根据所述应用场景信息,例如,所述应用的主题信息为游乐园,则将人形图像、游乐园的各个设施的略缩图或简笔画作为与所述应用对应的图像信息,如所述应用的主题信息为食物,则将各个食物的略缩图或简笔画作为与所述应用对应的图像信息;或者基于预定的每秒帧数设置,通过将所述应用的演示信息或视频预览信息进行连续捕捉,以生成相对应的多个图像(如颜色不同或形状不同的多个截图等);所述样式装置2对所述多个图像进行处理,如提取图像中的主体部分,使得图像作为样式信息能够清晰可辨,或者提取图像中的颜色部分,使得生成多个具有不同颜色的样式信 [0056] In particular, the application code related information comprises context information of the initial two-dimensional code, wherein the application context information, including but not limited to, information relating to the application, presentation application information, video information, preview ; means the pattern 2 according to the application context information, e.g., information relating to the application of an amusement park, then the human form thumbnail images, respective facilities or amusement park as a stick figure image corresponding to the application information, as information relating to the application for food, the food will each thumbnail image or as a stick figure corresponding to information of the application; or based on a predetermined number of frames per second provided by the presentation application video information or preview information continuously capture a plurality of images to generate a corresponding (e.g., a plurality of shots of different colors or different shapes, etc.); a plurality of said pattern means 2 for image processing such as extraction of the image body part, such as the pattern image information to be legible, or extracting the color image portion, so as to generate a plurality of patterns having different color channels ,并将与所述多个图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 And the plurality of images corresponding to the plurality of style information, a plurality of primitives as the style information corresponding to the initial two-dimensional code.

[0057]更优选地,当所述码相关信息包括所述初始二维码所对应背景图案的配色特征信息时,所述样式装置2可以根据所述初始二维码所对应背景图案的配色特征信息,从多个候选基元样式信息中选择与所述配色特征信息相匹配的候选基元样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 [0057] More preferably, when the feature code related information comprises color information of the background pattern corresponding to the original two-dimensional code, the pattern 2 may be the background pattern color features corresponding to the apparatus according to the initial two-dimensional code information, select the color characteristic information matches the candidate cell style information from a plurality of candidate cell style information, a plurality of primitives as the style information corresponding to the initial two-dimensional code.

[0058]具体地,所述码相关信息包括所述初始二维码所对应背景图案的配色特征信息, 其中,所述配色特征信息包括但不限于所述初始二维码背景图案的颜色信息、颜色变化信息等;所述样式装置2根据所述配色特征信息,从多个候选基元样式信息中,选择与所述配色特征信息相匹配的候选基元样式信息,并将所述候选基元样式信息作为与所述初始二维码相对应的基元样式信息。 [0058] In particular, the code related information comprises the original two-dimensional feature information of color codes corresponding to the background pattern, wherein the color characteristic information includes but is not limited to the color information of the background pattern of the initial two-dimensional code, color change information; 2 means the pattern information according to the characteristic color, from a plurality of style information in the candidate cell selection and color feature information matches the candidate primitive style information, and the candidate cell and style information as the initial two-dimensional code corresponding to a primitive style information.

[0059]例如,选择具有与所述初始二维码所对应背景图案的颜色相差较大的候选基元样式信息,作为与所述初始二维码相对应的基元样式信息,从而能够在生成的动态二维码中清晰的读取背景图案与初始二维码的码形信息。 [0059] For example, selecting a background pattern to the initial two-dimensional code corresponding to the color difference between the larger of the candidate cell style information, as the initial two-dimensional code corresponding to a primitive style information, can be generated dynamic two-dimensional code is read in clear background pattern code pattern information to the initial two-dimensional code.

[0060] 其中,所述样式装置2可以通过各种通信协议,通过各类数据传输接口,与存储或提供所述候选基元样式信息的一个或多个数据库或其他第三方设备相交互,以获取多个所述候选基元样式信息;或者所述提取装置2通过与用户相交互,接收所述用户通过点击、触摸、输入等方式所选择提交的多个候选基元样式信息;或者所述提取装置2根据所述初始二维码,基于预定的选择标准(如根据所述初始二维码所对应的信息等),选择与所述初始二维码相对应的多个候选基元样式信息。 [0060] wherein the pattern means 2 via various communication protocols, data transmission through various interfaces, or providing the stored candidate primitive style information to one or more databases or other third party devices interact to acquiring a plurality of style information of the candidate cell; or by the extraction means 2 interact with the user, a plurality of candidate pattern primitives received information submitted by the user selected by clicking, a touch input etc.; or the extracting device 2 according to the initial two-dimensional code, based on a predetermined selection criteria (e.g., according to initial information and the like to the corresponding two-dimensional code) information, and selecting the initial two-dimensional code corresponding to the plurality of candidate pattern primitives .

[0061] 更优选地,当所述码相关信息包括所述初始二维码所对应的待呈现信息时,所述样式装置2可以根据所述待呈现信息,从多个候选图像中选择与所述待呈现信息相匹配的多个优选图像;获取与所述多个优选图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 [0061] More preferably, when the code related information comprises the original two-dimensional code corresponding to the information to be presented, said pattern presenting means 2 may be based on the information, and selecting from the plurality of candidate images preferably said plurality of image information to be presented matched; obtaining the plurality of style information corresponding to a plurality of images preferably, the plurality of primitives as the style information corresponding to the initial two-dimensional code.

[0062] 具体地,所述码相关信息包括所述初始二维码所对应的待呈现信息,其中,所述待呈现信息即为当扫描所述初始二维码之后,所述初始二维码所对应的文字信息、链接信息或其他相关信息。 [0062] In particular, the code related information comprises the original two-dimensional code corresponding to the information to be presented, wherein the information that is to be presented after the initial two-dimensional code is scanned, the initial two-dimensional code text information corresponding to link information or other relevant information.

[0063] 所述样式装置2根据所述待呈现信息,例如根据所述待呈现信息所对应的内容信息,从所述从多个候选图像中选择与所述内容相匹配的优选图像,如所述待呈现信息为动画“海贼王”的播放链接,则选择具有“海贼王”标题的候选图像,或具有与“海贼王”内容信息的候选图像,或与“海贼王”相关的其他候选图像,作为与所述待呈现信息相匹配的多个优选图像。 [0063] The apparatus 2 according to the pattern information to be presented, for example, information presenting the content based on the corresponding information to be, and select a preferred image from the plurality of content matches from the candidate images, as said to be presenting information for the animated "One Piece" play link, then select the candidate image with the "One Piece" title, or the candidate image and "One Piece" content information, or other candidate image associated with the "One Piece", as with the preferably said plurality of image information to be presented matched.

[0064] 或者,所述样式装置2根据所述待呈现信息,例如根据所述待呈现信息的文本信息,从所述从多个候选图像中选择与所述内容相匹配的候选图像,例如,所述待呈现信息为“蓝天”,则选择具有蓝天内容的候选图像,作为与所述待呈现信息相匹配的多个优选图像。 [0064] Alternatively, the apparatus according to the pattern information to be presented, for example, according to the text information to be presented to the information, and selecting a candidate image matches the content from the plurality of candidate images from, for example, the information to be presented as a "blue sky", the candidate is selected having blue image content, preferably a plurality of image information to be presented as the match.

[0065] 所述样式装置2根据所述优选图像,对所述多个优选图像进行处理,如提取优选图像中的主体部分,使得所述优选图像作为样式信息能够清晰可辨,或者提取优选图像中的颜色部分,使得生成多个具有不同颜色的样式信息,并将与所述多个优选图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 [0065] The apparatus 2 according to the preferred pattern image, preferably the plurality of image processing such as extraction of the body portion is preferably an image, such as the pattern image information can be preferably legible or preferably extracted image the color portion, so as to generate a plurality of style information having different colors, and a plurality of style information corresponding to the plurality of images is preferred, as the initial two-dimensional code corresponding to the plurality of pattern primitives information.

[0066] 图2示出根据本发明一个优选实施例的一种生成二维码的生成设备不意图;其中, 所述生成设备包括获取装置1,、样式装置2'、生成装置3'、合并装置4',其中,所述生成装置3, 包括色块确定单元31,、替换单元32'。 [0066] FIG. 2 shows no intention of generating a two-dimensional code generating apparatus embodiment in accordance with a preferred embodiment of the present invention; wherein the generating device comprises a pattern acquisition apparatus 1 ,, 2 ', generating means 3', merged means 4 ', wherein said generating means 3, determining means comprises a color replacement section 31 ,, 32'. 具体地,获取装置1'获取待处理的初始二维码;样式装置2,获取与所述初始二维码相对应的多个基元样式信息;色块确定单元31'确定所述初始二维码所对应的色块分布矩阵;替换单元32'通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码;合并装置4'根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 Specifically, the acquisition means 1 'acquires the initial two-dimensional code to be processed; style apparatus 2, acquires information of a plurality of primitives with the initial pattern corresponding to the two-dimensional code; color determining unit 31' determines the initial two-dimensional the color code corresponding to the distribution matrix; replacement section 32 'by at least one matrix patches according to the plurality of cells distributed style information in the replacement patch, and generates a two-dimensional code corresponding to the initial a plurality of intermediate two-dimensional code; combined device 4 'according to the sequence information of the cell style information corresponding to the intermediate two-dimensional code, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code. 其中,所述获取装置1'、样式装置2、合并装置4, 与图1所示对应装置相同或基本相同,故此处不再赘述,并通过引用的方式包含于此。 Wherein, said acquiring means 1 ', 2 style means, combining means 4, FIG. 1 corresponds to the same or substantially the same means, and therefore not be repeated here, and is incorporated herein by reference.

[0067] 上述各装置之间是持续不断工作的,在此,本领域技术人员应理解“持续”是指上述各装置分别实时地,或者按照设定的或实时调整的工作模式要求,进行待处理的初始二维码的获取、基元样式信息的获取、色块分布矩阵的确定、中间二维码的生成、动态二维码的获取等,直至所述生成设备停止获取待处理的初始二维码。 [0067] between each of the continuous operating means is, in this case, skilled in the art will appreciate that "continuous" refers to the above-described apparatus are in real time, or according to the requirements of real-time adjustment or setting of the operating mode, to be performed the initial two-dimensional code acquisition process acquires cell style information, determining the color distribution matrix, generating an intermediate two-dimensional code, the two-dimensional code other dynamic acquisition, acquisition until the device stops generating the initial two to be processed dimensional code.

[0068] 色块确定单元31'确定所述初始二维码所对应的色块分布矩阵。 [0068] The color determination unit 31 'determines the initial two-dimensional code corresponding to the color distribution matrix.

[0069] 具体地,所述色块确定单元31'通过对所述初始二维码的每一个基础块进行灰度值分析,得到所述初始二维码的深色块与浅色块的色块分布图(如图8所示左侧所示,将所述初始二维码转换成标注了深色块与浅色块的色块分布图);所述色块确定单元31'根据所述色块分布图,确定与所述色块分布图所相对应的色块分布矩阵(如图8右侧所示的色块分布矩阵,在此,所述深色块在所述色块分布矩阵中对应值1,所述浅色块在所述色块分布矩阵中对应值0),所述色块分布矩阵与所述初始二维码相对应。 [0069] In particular, the color determining unit 31 'by a gray scale value for each block of the basic initial analysis of the two-dimensional code to obtain the original deep color two-dimensional code and the color light block distribution block (the left as shown in FIG. 8, the two-dimensional code into the initial color profile marked with deep color light block); the color determining unit 31 'according to the color distribution, the color distribution to determine the distribution of the matrix corresponding to the color patch distribution matrix shown in FIG. 8 on the right side (in FIG., in this case, the dark color in the color distribution matrix the corresponding value of 1, the light corresponding to the value 0 in block distribution of the color matrix), a color distribution of the initial matrix corresponding to the two-dimensional code.

[0070] 优选地,所述色块确定单元31'还可以通过对所述初始二维码的每一个基础块进行灰度值分析,得到将所述初始二维码划分为3类或3类以上色块灰度的色块分布图,例如, 浅色块、中间色块、深色块三类或更多类等;从而所述色块确定单元31'根据所述色块分布图,确定与所述色块分布图所相对应的色块分布矩阵,例如,所述色块分布矩阵通过利用0, 1,2三种值,来分别对应浅色块、中间色块、深色块,所述色块分布矩阵,并与所述初始二维码相对应。 [0070] Preferably, the color determining unit 31 'can also be a gray value analysis of each base block of the initial two-dimensional code to obtain the original two-dimensional code are divided into three categories or Class 3 color distribution color gradation or more, e.g., block light, intermediate color, three or more types of deep color and the like; such that the color determining unit 31 'according to the color distribution, determined the color profile corresponding to the color distribution matrix, e.g., by the color distribution matrix 0, 1, 2, three values ​​utilized to block light corresponding to, respectively, the intermediate color, deep color, the color distribution matrix, and the two-dimensional code corresponding to the original.

[0071] 在此,本领域技术人员应能理解,所述色块确定单元31'可以对所述初始二维码所对应的整个背景画面进行处理,以获取该初始二维码所对应整个画面的色块分布矩阵;还可以仅对与所述初始二维码相对应的整个画面中,与所述初始二维码所相对应的区域进行处理,以获取该区域(即仅获取所述初始二维码)所对应的色块分布矩阵。 [0071] Here, those skilled in the art should understand, the color determining unit 31 'may process the initial two-dimensional code corresponding to the entire background screen, the entire screen to obtain the two-dimensional code corresponding to the initial the color distribution matrix; also may be performed only with the initial two-dimensional code corresponding to the entire screen, processing is performed with the initial two-dimensional code corresponding to the area to obtain the region (i.e., only the initial acquisition two-dimensional code) corresponding to the color distribution matrix.

[0072] 例如,所述色块确定单元31'通过根据所述初始二维码在所述背景图案之中的位置坐标(X,y)以及所述初始二维码的条码区边长L,在所述背景图案中确定所述初始二维码所对应的目标区域; [0072] For example, the color determining unit 31 ', and bar-code area by the initial edge length L of the two-dimensional code according to the initial position coordinates of the two-dimensional code among the background pattern (X, y), determining a target area in the initial two-dimensional code corresponding to the background pattern;

[0073] 根据所述初始二维码的基础块边长s和初始二维码边长L(其中,L是s的整数倍), 将所述目标区域划分为n*n (n=L/s)个基础块; [0073] The base block of the initial two-dimensional code and the side length s initial two-dimensional code side length L (where, L is an integer multiple of s), the target area is divided into n * n (n = L / s) a base block;

[0074] 依次对n*n个基础块进行灰度值分析,得到对应的n阶分布矩阵M,其中若第i行第j 列基础块灰度大于某一临界值H (即为深色块),则M (i,j) =1,否则M (i,j) =0; [0074] sequentially base-n * n blocks gray value analysis, corresponding to the n-order distribution matrix M, where if the i-th row j-th column of the base block is greater than a threshold gray scale value H (ie dark color ), then M (i, j) = 1, or M (i, j) = 0;

[0075] 所述分布矩阵M即为所述色块分布矩阵。 [0075] The matrix M is the distribution of the color distribution matrix.

[0076]替换单元32'通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码。 [0076] The replacement section 32 'by at least one matrix color replacement process according to the distribution of the patches of the plurality of primitives in the style information, to generate a plurality of intermediate said two-dimensional code corresponding to the initial two-dimensional code .

[0077]具体地,所述替换单元32'根据所述样式装置2'所获取的与所述初始二维码相对应的多个基元样式信息,以及所述色块确定单元31'所确定的色块分布矩阵,按照所述色块分布矩阵中的数值,利用与其相对应的基元样式信息中至少一个对原色块进行替换,例如将基元样式信息中的深色块替换所述色块分布矩阵中数值为1的色块,将基元样式信息中的浅色块替换所述色块分布矩阵中数值为0的色块等,以生成与所述初始二维码相对应的中间二维码;进而利用多个所述基元样式信息,分别根据所述色块分布矩阵进行替换,以生成多个中间二维码。 [0077] In particular, the unit 32 determines the replacement unit 31 'according to the pattern 2' of the initial two-dimensional code corresponding to the plurality of pattern primitives acquired information, and the color 'determined the color distribution matrix according to the value of the distribution matrix patches, using corresponding thereto at least one primary color cell replacement block pattern information, for example, cell style information in the color deep color replacement distribution block matrix color value of 1, the primitive replaces the style information light distribution matrix blocks of the color values ​​for the color 0 and the like, to produce an intermediate to the two-dimensional code corresponding to the initial two-dimensional code; and further using said plurality of primitives style information, replacing each color in accordance with the distribution matrix to generate a plurality of intermediate two-dimensional code.

[0078]例如,如图9的“颜色变化的基元样式示例”中,所述颜色“黑、深蓝、红、紫、青绿”都属于深色基元样式信息,可以用来替换所述色块分布矩阵中数值为1的色块。 [0078] For example, "motif exemplary color change in style" in FIG. 9, the color "black, blue, red, purple, green," belong to the dark cell pattern information, may be used instead of the color value of the distribution block matrix patch 1.

[0079]优选地,所述替换单元32'可以按照预定的色块替换规则,通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码。 [0079] Preferably, the replacement unit 32 'may be replaced with a predetermined color according to the rules, the replacement process by the cell style information in at least one of said color matrix patches according to the distribution of the plurality, generate said plurality of intermediate-dimensional code corresponding to the original two-dimensional code. 其中,所述色块替换规则包括但不限于:基元样式信息中的深色块替换色块分布矩阵中的对应深色块、基元样式信息中的浅色块替换色块分布矩阵中的对应浅色块、或其结合。 Wherein said color replacement rules include but are not limited to: cell style information in the deep color replacement color distribution matrix corresponding deep color, the style information cell block replacement light distribution matrix patches corresponding to block light, or a combination thereof.

[0080] 图3示出根据本发明另一个优选实施例的一种生成二维码的生成设备示意图;其中,所述生成设备包括获取装置1”、样式装置2”、生成装置3”、合并装置4”、序列确定装置5”。具体地,获取装置1”获取待处理的初始二维码;样式装置2”获取与所述初始二维码相对应的多个基元样式信息;生成装置3”根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码;序列确定装置5”确定所述多个基元样式信息所对应的基元样式序列;合并装置4”根据所述中间二维码所对应的基元样式信息在所述基元样式序列中的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 [0080] FIG. 3 shows a schematic generating device generates a two-dimensional code according to an embodiment of the present invention, according to another preferred embodiment; wherein the generating device comprises an acquisition device "style apparatus 2", generating device 3 ", and the combined 4 ", 5 sequence determination means" specifically, an acquisition device. "the initial acquisition of two-dimensional code to be processed; means 2 style" style information acquiring a plurality of cells with the initial two-dimensional code corresponding to; generating means 3 "based on the plurality of primitives in at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate codes corresponding to the initial two-dimensional; sequence determination means 5 'of the plurality of determining primitive style information corresponding to a sequence motif pattern; "primitive style information according to the intermediate two-dimensional code corresponding to the sequence information in the sequence motif pattern, combining means combining the plurality of intermediate 4 bis dimensional code to obtain a corresponding dynamic two-dimensional code. 其中,所述获取装置1”、样式装置2”、生成装置3”与图1所示对应装置相同或基本相同,故此处不再赘述,并通过引用的方式包含于此。 Wherein, said acquiring means 1 "style apparatus 2", means generating means correspond to the same or substantially the same, and therefore not be repeated here, and is incorporated herein by reference 3 "shown in FIG.

[0081] 上述各装置之间是持续不断工作的,在此,本领域技术人员应理解“持续”是指上述各装置分别实时地,或者按照设定的或实时调整的工作模式要求,进行待处理的初始二维码的获取、基元样式信息的获取、中间二维码的生成、基元样式序列的确定、动态二维码的获取等,直至所述生成设备停止获取待处理的初始二维码。 [0081] between each of the continuous operating means is, in this case, skilled in the art will appreciate that "continuous" refers to the above-described apparatus are in real time, or according to the requirements of real-time adjustment or setting of the operating mode, to be performed the initial two-dimensional code acquisition process acquires cell style information, generating an intermediate two-dimensional code, the pattern sequence motif determined, dynamically acquires two-dimensional code, etc., until the device stops generating acquisition pending initial two dimensional code.

[0082] 序列确定装置5”确定所述多个基元样式信息所对应的基元样式序列。 [0082] 5 sequence determination means "determines the plurality of primitive pattern sequence motifs corresponding to the style information.

[0083] 具体地,所述序列确定装置5”根据所述多个基元样式信息,通过基于预定的基元样式序列确定规则,或者根据用户的操作信息(可定制复杂的、多样化个性化的序列)等方式,将所述基元样式信息组合成基元样式序列,其中,在所述基元样式序列中,所述基元样式信息可重复。 [0083] In particular, said sequence determining means 5 "according to the plurality of primitives style information is determined by a predetermined rule based on the sequence motif pattern, or according to the operation information of the user (customizable complex, diverse personalization sequence), etc., the style information are combined into primitive pattern sequence motif, wherein the motif pattern sequence, the style information may be repeated motifs.

[0084] 其中,所述基元样式序列确定规则如根据所述基元样式信息的颜色变化(如颜色渐变式或颜色突变式等)或图案变化,进行基元样式序列的确定;例如,按照颜色深浅的变化,从黑色变换至深棕色再变化至深灰色;按照图案变化,从正方形变换至八边形再变换至圆形等。 [0084] wherein the pattern sequence motif as determined according to the rule color change pattern information of the primitive (such as a color change or color graded type, etc.) or a change pattern, a sequence motif determined pattern; e.g., in accordance with shades of color change, change from black to brown and then dark gray to change; a change in a pattern, the eight-sided square transform then converted to circular and the like.

[0085]例如,所述样式装置2”所提供的基元样式信息为A、B、C,则所述基元样式信息所对应的基元样式序列可以是ABC,或者也可以是ABCABC(即可以重复),或者也可以是AABBCC, 或者也可以是MBCABC等任意组合。 [0085] For example, the device pattern 2 "primitive style information provided for the A, B, C, then the primitive element pattern sequence corresponding to the style information may be a base ABC, or may be an ABCABC (i.e. It can be repeated), or may be AABBCC, or may be any combination MBCABC like.

[0086] 在此,不同的基元样式序列最终决定了所述动态二维码的动态效果。 [0086] Here, a different pattern sequence motif ultimately determines the dynamic effect of the dynamic two-dimensional code. 从而,不同的基元样式序列可产生不同的视觉效果,如形状不同的基元样式序列可产生二维码基元形状变化的效果,颜色不同的基元样式可产生二维码颜色变化的效果(其中包括渐变和突变及其组合)。 Thus, the cell pattern of different sequences may produce different visual effects, such as different shapes of pattern primitives may generate a two-dimensional code sequence motif effect a change in shape, a different color pattern primitives may be a two-dimensional code color change effect (including mutations gradients and combinations thereof).

[0087]例如,在此,颜色渐变式样式序列(S[l],S[2],...,S[n])具有的基本特征为: [0087] For example, here, the color gradient pattern sequence of formula (S [l], S [2], ..., S [n]) as having the basic characteristics:

[0088] 颜色由浅变深式S[i] .color〈=S[i+l] .color [0088] color from light to dark formula S [i] .color <= S [i + l] .color

[0089] 颜色由深变浅式S[i] .color>=S[i+l] .color [0089] becoming lighter in color formula S [i] .color> = S [i + l] .color

[0090] 颜色突变式序列(S[l],S[2],…,S[n])具有的基本特征为: [0090] The color change sequence of formula (S [l], S [2], ..., S [n]) as having the basic characteristics:

[0091] S[i-1] .color»S[i] .color<<S[i+l] .color [0091] S [i-1] .color »S [i] .color << S [i + l] .color

[0092] 合并装置4”根据所述中间二维码所对应的基元样式信息在所述基元样式序列中的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 _ [0092] The combined device 4 'according to the style information of the cell corresponding to the intermediate two-dimensional code information in the sequence of the primitive pattern sequence, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic secondary dimensional code. _

[0093] 具体地,所述合并装置4”根据所述中间二维码所对应的基元样式信息在所述基元样式序列中的顺序相关信息,例如,将所述多个中间二维码按照所述基元样式序列的顺序构成帧链表,通过将所述帧链表的中间二维码进行合并,生成动态的如gif格式的图片,即获得对应的动态二维码。其中,由于所述基元样式信息是多个不同的,因此,按照所述基元样式信息的顺序相关信息进行合并后,所述动态二维码是可动的。 [0093] In particular, the combining means 4 "primitive style information according to the intermediate two-dimensional code corresponding to the sequence information sequence pattern motif, for example, the plurality of two-dimensional code intermediate chain constituting the frame in the order of the primitive pattern sequences, are combined, such as a dynamic image generated by the gif format frame list intermediate two-dimensional code, i.e., to obtain a corresponding dynamic two-dimensional code. However, since the a plurality of primitive style information is different, and therefore, in order to merge the information of the primitive style information, a dynamic two-dimensional code is movable.

[0094] 优选地,所述序列确定装置5”可以根据所述初始二维码的应用场景信息,确定所述多个基元样式信息所对应的基元样式序列。 [0094] Preferably, said sequence determining means 5 "depending on the application scenario of the initial two-dimensional code information, determining the plurality of primitive pattern sequence motifs corresponding to the style information.

[0095] 具体地,所述序列确定装置5”可以根据所述初始二维码的应用场景信息,选择适于所述应用场景的基元样式序列。例如,当所述应用场景信息为运动类型,则选择样式变化较为显著的基元样式序列,当所述应用场景信息为舒缓的风景观赏类型,则选择样式变化较为缓慢的基元样式序列。在此,所述应用场景信息包括但不限于所述应用的主题信息、应用的演示信息、视频预览信息等。 [0095] In particular, said sequence determining means 5 "according to the scenario information of the initial two-dimensional code, adapted to select said sequence motif pattern scenarios. For example, when the application type information is a motion scene , then select a style change significantly the pattern sequence motif, when the application type watch the landscape scene information soothing, then select the style change is slower motif pattern sequence. here, the scenario information includes, but is not limited to topic information of the application, the application of information presentation, video preview information.

[0096] 图4示出根据本发明另一个方面的一种生成二维码的方法流程图。 [0096] FIG. 4 illustrates a method for generating two-dimensional code according to another aspect of the present invention a flowchart. 具体地,在步骤si中,所述生成设备获取待处理的初始二维码;在步骤s2中,所述生成设备获取与所述初始二维码相对应的多个基元样式信息;在步骤S3中,所述生成设备根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码;在步骤s4中,所述生成设备根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 Specifically, in step si, the two-dimensional code generating apparatus acquires an initial be treated; in step s2, the generating apparatus acquires a plurality of primitives to the initial style information corresponding to a two-dimensional code; at step S3, the generating apparatus according to the plurality of primitives in at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code; in step s4, the related information generating apparatus according to an order of said primitive style information corresponding to the intermediate two-dimensional code, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code.

[0097]上述各步骤之间是持续不断工作的,在此,本领域技术人员应理解“持续”是指上述各步骤分别实时地,或者按照设定的或实时调整的工作模式要求,进行待处理的初始二维码的获取、基元样式信息的获取、中间二维码的生成、动态二维码的获取等,直至所述生成设备停止获取待处理的初始二维码。 [0097] between each of the steps is ongoing work in this art will appreciate that the present art "Length" refers to the above-described steps are in real time, or according to a set operation mode or real-time adjustments required, be carried out the initial two-dimensional code acquisition process acquires cell style information, generating an intermediate two-dimensional code, the two-dimensional code other dynamic acquisition, acquisition until the device stops generating the initial two-dimensional code to be processed.

[0098] 在步骤si中,所述生成设备获取待处理的初始二维码。 [0098] In step si, the two-dimensional code generating apparatus acquires an initial be treated.

[0099]具体地,在步骤s 1中,所述生成设备通过各种通信协议,通过各类数据传输接口, 与存储或提供所述初始二维码的一个或多个数据库或其他第三方设备相交互,以获取待处理的初始二维码;或者,在步骤si中,所述生成设备通过与其他设备相交互,或者通过与用户相交互,接收所述用户通过点击、触摸、输入等方式所提交的一个或多个内容信息,并将所述内容信息基于二维码生成原理和/或相依的参数等,以生成待处理的初始二维码。 [0099] Specifically, in Step s 1, the generating apparatus through a variety of communication protocols, through various data transmission interface, or a storage of the initial two-dimensional code or more databases or other third party devices interacting, for the initial two-dimensional code to be processed; Alternatively, in step si, the phase generating device through interaction with a user interact with other devices, or by receiving the user clicks, touch input, etc. one or more content information submitted, and the content information based on the principle of generating two-dimensional code and / or parameters dependent like, to be processed to generate an initial two-dimensional code.

[0100] 其中,所述初始二维码包括但不限于仅表达了所述文本信息的、以纯色或黑白色所生成的如传统两色相间式、黑白交错式及两色渐变式的二维码,或者在二维码中心嵌入小图片的二维码等。 [0100] wherein the initial two-dimensional code including but not limited to expressing only the text message, to the generated solid color or black and white two hues as traditional type, and two-color checkered type two-dimensional graded code, or embedded small picture in the center of the two-dimensional code such as a two-dimensional code.

[0101] 在步骤S2中,所述生成设备获取与所述初始二维码相对应的多个基元样式信息。 [0101] In step S2, the apparatus generating a plurality of primitives acquired information with the initial pattern corresponding to the two-dimensional code.

[0102] 具体地,在步骤s2中,所述生成设备通过各种通信协议,通过各类数据传输接口, 与存储或提供所述基元样式信息的一个或多个数据库或其他第三方设备相交互,以获取多个所述基元样式信息,然后将所述基元样式信息与所述初始二维码建立映射关系,作为与所述初始二维码相对应的多个基元样式信息;或者在步骤s2中,所述生成设备通过与用户相交互,接收所述用户通过点击、触摸、输入等方式所选择提交的与所述初始二维码相对应的多个基元样式信息;或者在步骤s2中,所述生成设备根据所述初始二维码,基于预定的选择标准(如根据所述初始二维码所对应的信息等),选择与所述初始二维码相对应的多个基元样式信息。 [0102] Specifically, in step s2, the generating apparatus through a variety of communication protocols, data transmission through various interfaces, and provide one or more memory or database-style information of the cell or other third-party device relative interaction, to obtain a plurality of pattern information of the primitive, then the primitive style information mapping relationship between the original two-dimensional code pattern as information to the initial two-dimensional code corresponding to the plurality of primitives; or, in step s2, the generating apparatus by interacting with the user, the style information of the plurality of primitives with the initial two-dimensional code corresponding to the received submission selected by the user by clicking, touch input, etc.; or in step s2, the generating apparatus according to the initial two-dimensional code, based on a predetermined selection criteria (e.g., according to initial information and the like to the corresponding two-dimensional code), and selecting the initial two-dimensional code corresponding to the plurality a primitive style information.

[0103] 其中,所述多个基元样式信息包括但不限于具有颜色可变的像素块或形状可变的图形的一种或多种。 [0103] wherein one or more of the plurality of primitives of style information includes, but is not limited to the pixel block having a variable shape or variable color pattern. 例如,如图9所示,图9示出了具有不同形状的多个基元样式信息,以及具有不同颜色的基元样式信息。 For example, as shown in FIG. 9, FIG. 9 shows a pattern of information having a plurality of different shapes primitives and primitives having different colors style information.

[0104] 在步骤S3中,所述生成设备根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码。 [0104] In step S3, the generating apparatus according to the plurality of primitives in at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code.

[0105] 具体地,在步骤S3中,所述生成设备根据所述步骤s2所获取的与所述初始二维码相对应的多个基元样式信息,以及所述步骤si所获取的初始二维码,例如利用所述基元样式信息中的一个,对所述初始二维码中的对应像素进行替换,以生成与所述基元样式信息相对应的一个中间二维码,进而利用多个所述基元样式信息,即利用两个或更多所述基元样式信息,分别对所述初始二维码中的对应像素进行替换,以生成多个中间二维码。 [0105] Specifically, in step S3, the generating apparatus s2 to the initial two-dimensional code corresponding to the plurality of pattern primitives acquired information, and said step si acquired according to the initial two steps dimensional code, for example, by using a primitive form of the information, the initial two-dimensional code corresponding to the pixel to be replaced, to generate pattern information of the primitive corresponding to an intermediate two-dimensional code, using multi-turn style information of said cell, i.e. the use of two or more primitives style information, each of the initial two-dimensional code corresponding pixels Alternatively, two-dimensional code to generate a plurality of intermediate.

[0106] 在此,本领域技术人员应能理解,所述替换过程同时适用于深色块与浅色块,所述深色块需被替换为深色的基元样式信息,所述浅色块需被替换为浅色的基元样式信息,以保证所述二维码可以被扫描识别。 [0106] Here, those skilled in the art should appreciate that the replacement procedure applies to the deep and light color blocks, the color needs to be replaced with a deep dark primitive style information, the light block needs to be replaced as pale primitive style information, to ensure the two-dimensional code may be scanned to identify. 具有同一个形状的基元样式信息还可以同时具有深色基元样式信息与浅色基元样式信息。 Primitive style information having the same shape may also have a dark color with light-colored motif motif style information style information simultaneously.

[0107] 例如,如图9的“颜色变化的基元样式示例”中,所述颜色“黑、深蓝、红、紫、青绿”都属于深色的基元样式信息,可以用来替换深色块。 [0107] For example, FIG. 9 "exemplary motif pattern color change", the color "black, blue, red, purple, green," belong to the dark cell pattern information, it may be used instead of dark Piece.

[0108] 例如,如图7所示,图7示出了一种利用基元样式信息对所述初始二维码进行处理后生成的中间二维码的示意图。 [0108] For example, as shown in FIG. 7, FIG. 7 shows a schematic two-dimensional code generated intermediate latter motif pattern information of the initial treatment with the two-dimensional code. 具体地,所述初始二维码为普通的利用黑白条纹所生成的具有背景图案的二维码,所述基元样式信息如图7右下角所示人形图案,在步骤s2中,所述生成设备获取了所述人形图案作为所述初始二维码的基元样式信息之一,在步骤s3中,所述生成设备将所述初始二维码中的黑白条纹划分为多个方块,并利用所述基元样式信息, 将黑色的方块利用黑色的人形图案进行替换,将白色的方块利用白色的人形图案进行替换,从而生成如图7所示的中间二维码。 In particular, the initial two-dimensional code is an ordinary black and white stripes using the generated two-dimensional code having a background pattern, the pattern shown in Figures 7 the bottom right primitive style information, in Step s2, the generated Figures device acquires one of the two-dimensional code pattern as the initial motif style information, in a step s3, the black and white stripes generating device in the initial two-dimensional code is divided into a plurality of blocks, and using style information of the primitive, using the black box humanoid black pattern replacement block replacing white using white humanoid pattern, so that the intermediate 7 generates two-dimensional code shown in FIG. 在步骤S3中,所述生成设备可以根据所述基元样式信息的不同,根据所述多个基元样式信息以及所述初始二维码,生成多个中间二维码。 In step S3, the generating apparatus according to the different style information of the primitive based on the primitive plurality of style information and the initial two-dimensional code, two-dimensional code to generate a plurality of intermediate.

[0109] 在步骤s4中,所述生成设备根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 [0109] In step s4, the information generating apparatus according to a sequence motif related to the style information corresponding to the intermediate two-dimensional code, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code.

[0110]具体地,在步骤s4中,所述生成设备根据所述中间二维码所对应的基元样式信息的顺序相关信息,例如,将所述多个中间二维码构成帧链表,通过将所述帧链表的中间二维码进行合并,生成动态的如gif格式的图片,即获得对应的动态二维码。 [0110] Specifically, in step s4, the information generating apparatus according to the sequence motif style information corresponding to the intermediate two-dimensional code, for example, the two-dimensional code composed of a plurality of intermediate frame list, by the intermediate frame list merge two-dimensional code, such as the generation of dynamic images gif format, i.e., to obtain a corresponding dynamic two-dimensional code. 其中,由于所述基元样式信息是多个不同的,因此,按照所述基元样式信息的顺序相关信息进行合并后,所述动态二维码是可动的。 Wherein the cell due to the plurality of style information is different, and therefore, in order to merge the information of the primitive style information, a dynamic two-dimensional code is movable.

[0111]其中,所述顺序相关信息可以根据所述步骤S2中所提供的所述基元样式信息的顺序信息确定,也可以根据用户设置的指定顺序或用于生成顺序的参数确定,也可以根据所述初始二维码的相关信息(如所述初始二维码所对应的内容信息等)而确定,从而通过对所述基元样式信息进行排列组合等方式,获取其所对应的顺序相关信息。 [0111] wherein the order of order information according to related information of the style information of the cell provided in step S2 is determined, the order may be determined according to the specified parameters set by the user, or used to generate the sequence, may be (the contents information corresponding to the initial two-dimensional code, etc.) is determined according to the relevant information of the initial two-dimensional code, so that by the primitive style information permutations and combinations, etc., it corresponds to the order of acquisition-related information. 例如,所述步骤s2中所提供的基元样式信息为A、B、C,则所述基元样式信息所对应的顺序相关信息可以是ABC, 或者也可以是ABCABC (即可以重复),或者也可以是AABBCC,或者也可以是AABCABC等任意组合。 For example, the primitive style information provided in step s2 as A, B, C, then the base sequence-related information corresponding to the meta information pattern may be ABC, or may be an ABCABC (i.e., can be repeated), or It may be AABBCC, or may be any combination AABCABC like. 不同的排列次序最终决定了所述动态二维码的动态效果。 Different sequence ultimately determines the dynamic effect of the dynamic two-dimensional code.

[0112] 在此,由于所述中间二维码所包含的初始二维码是相同的,且其所对应的基元样式信息是不同的,因此所合并后的动态二维码具有可动的效果,且由于所述动态二维码的每一帧都是具有与所述初始二维码相同的码形,因此扫描出的内容是相同的。 [0112] Here, since the intermediate two-dimensional code included in the initial two-dimensional code is the same, and its corresponding primitive style information is different, and therefore the two-dimensional codes having the combined dynamically movable effect, and since each frame of the two-dimensional code is dynamic with the initial two-dimensional code having the same code pattern, the scan-out content is the same.

[0113] 优选地,所述生成设备还包括步骤s6(未示出),其中,在步骤s6中,所述生成设备对所述基元样式信息进行验证;在步骤S3中,所述生成设备根据通过验证的所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码。 [0113] Preferably, the apparatus further comprises a generating step s6 (not shown), wherein, in the step s6, the apparatus for generating pattern information of the primitive verified; in step S3, the generating device according to the plurality of primitives by verifying at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code.

[0114] 具体地,在步骤s6中,所述生成设备验证所述基元样式信息的合法性,例如,检查所述基元样式信息是否属于预定的基元样式集合,或者是否符合基元样式的规定等。 [0114] Specifically, in the step s6, generating the legitimacy of the authentication apparatus of the primitive style information, e.g., check whether the cell belongs to a predetermined style information motif pattern set, or whether the pattern primitives the provisions. 例如, 当所述可选基元样式集合为{a,b,c,d}时,若所述基元样式信息不属于该集合,则认为该基元样式信息不合法,反之则通过验证;或者,例如,对所述基元样式信息的格式进行验证,如定义所述基元样式信息为15像素xl5像素的正方形图片,若所述基元样式信息不符合该像素要求,则认为该基元样式信息不合法,反之则通过验证。 For example, when the pattern set is optional primitive {a, b, c, d}, if the cell does not belong to the set of style information, the style information that the cell is not legitimate, and vice versa verified; Alternatively, for example, to verify the format of the style information primitives, the primitives defined as style information for the pixels 15 pixels square xl5, if the cell does not comply with the pixel pattern information requirements, the group is considered yuan style information is not legitimate, otherwise verified.

[0115] 在步骤S3中,所述生成设备获取所述步骤s6中通过验证的多个基元样式信息,根据通过验证的所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的中间二维码,进而根据多个基元样式信息,以获得多个中间二维码。 [0115] In step S3, the generating device acquires the plurality of primitives in the step s6 of style information verified, validated according to the plurality of primitives in at least one of style information, as well as the initial two-dimensional code to generate the initial two-dimensional code corresponding to the intermediate two-dimensional code, and further in accordance with a plurality of primitives style information to obtain a plurality of intermediate two-dimensional code. 在此,在步骤S3中,所述生成设备获得多个中间二维码的方式与图4中所述步骤s3的获得方式相同或相似,故在此不再赘述,并通过引用的方式包含于此。 In this case, in step S3, the device generating two-dimensional code to obtain a plurality of intermediate manner as in step 4 s3 FIG obtain the same or similar manner, and therefore not be described herein, by reference and included in the this.

[0116] 优选地,在步骤s2中,所述生成设备可以根据所述初始二维码的码相关信息,获取与所述初始二维码相对应的多个基元样式信息。 [0116] Preferably, in the step s2, the generating apparatus according to the initial two-dimensional code may be a code-related information, acquires a plurality of primitives to the initial two-dimensional code corresponding to the style information.

[0117] 具体地,在步骤s2中,所述生成设备可以根据所述初始二维码的码相关信息,例如根据所述初始二维码的所属应用信息的应用场景信息、所述初始二维码所对应背景图案的配色特征信息或所述二维码待呈现的信息等,通过基于预定的选择规则,如对于特定的配色特征则选择预定的基元样式信息等方式,获取与所述初始二维码相对应的多个基元样式{目息。 [0117] Specifically, in step s2, the generating apparatus according to the initial two-dimensional code may be a code-related information, such as application scenario information belongs in accordance with the initial two-dimensional code, the two-dimensional initial color feature information or information to be presented to the two-dimensional code corresponding to the background pattern code, based on a predetermined selection rule by, such as color features for a particular primitive select predetermined style information, etc., to obtain the initial two-dimensional code corresponding to the plurality of mesh primitives {style information.

[0118] 更优选地,当所述码相关信息包括所述初始二维码的应用场景信息时,在步骤s2 中,所述生成设备可以根据所述初始二维码的应用场景信息,获取对应应用所对应的多个图像;获取与所述多个图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 [0118] More preferably, when the scenario code related information comprises information about the initial two-dimensional code, in step s2, the scenario generating apparatus according to the application of the initial two-dimensional code information, obtains the corresponding images corresponding to the plurality of applications; obtaining a plurality of images of said plurality of style information corresponding to a plurality of primitives as the style information corresponding to the initial two-dimensional code.

[0119]具体地,所述码相关信息包括所述初始二维码的应用场景信息,其中,所述应用场景信息包括但不限于所述应用的主题信息、应用的演示信息、视频预览信息等;在步骤S2 中,所述生成设备根据所述应用场景信息,例如,所述应用的主题信息为游乐园,则将人形图像、游乐园的各个设施的略缩图或简笔画作为与所述应用对应的图像信息,如所述应用的主题信息为食物,则将各个食物的略缩图或简笔画作为与所述应用对应的图像信息;或者基于预定的每秒帧数设置,通过将所述应用的演示信息或视频预览信息进行连续捕捉, 以生成相对应的多个图像(如颜色不同或形状不同的多个截图等);在步骤S2中,所述生成设备对所述多个图像进行处理,如提取图像中的主体部分,使得图像作为样式信息能够清晰可辨,或者提取图像中的颜色部分,使得生成 [0119] In particular, the application code related information comprises context information of the initial two-dimensional code, wherein the application context information, including but not limited to, information relating to the application, presentation application information, video information, preview ; in step S2, the scenario generating apparatus according to the application information, e.g., information relating to the application of the amusement park, the thumbnail image of each facility will be the human form, as an amusement park or a stick figure of the image information corresponding to an application, such as information relating to the application for food, the food will each thumbnail image or as a stick figure corresponding to information of the application; or based on a predetermined set of frames per second, by the said video presentation information or preview information of the application is performed continuously captured to generate a corresponding plurality of images (e.g. a plurality of different colors or different shapes screenshot, etc.); in step S2, the image generating apparatus of said plurality of processing such as extraction of the body part of the image, style information so that the image can be as legible, or extracting the color image portion, so as to generate 个具有不同颜色的样式信息,并将与所述多个图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 Style information having a different color, and style information of the plurality of images corresponding to the plurality, the plurality of primitives as the style information corresponding to the initial two-dimensional code. [0120]更优选地,当所述码相关信息包括所述初始二维码所对应背景图案的配色特征信息时,在步骤s2中,所述生成设备可以根据所述初始二维码所对应背景图案的配色特征信息,从多个候选基元样式信息中选择与所述配色特征信息相匹配的候选基元样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 [0120] More preferably, when the feature code related information comprises color information of the background pattern corresponding to the initial two-dimensional code, in step s2, the device may generate corresponding two-dimensional code according to the initial background color information of a pattern feature, color feature information of the selected match candidate cell style information from a plurality of candidate cell style information, a plurality of primitives as the style information corresponding to the initial two-dimensional code.

[0121]具体地,所述码相关信息包括所述初始二维码所对应背景图案的配色特征信息, 其中,所述配色特征信息包括但不限于所述初始二维码背景图案的颜色信息、颜色变化信息等;在步骤s2中,所述生成设备根据所述配色特征信息,从多个候选基元样式信息中,选择与所述配色特征信息相匹配的候选基元样式信息,并将所述候选基元样式信息作为与所述初始二维码相对应的基元样式信息。 [0121] In particular, the code related information comprises the original two-dimensional feature information of color codes corresponding to the background pattern, wherein the color characteristic information includes but is not limited to the color information of the background pattern of the initial two-dimensional code, color change information; in the step s2, the information generating apparatus according to the characteristic color, from a plurality of style information in the candidate cell, and selecting the color feature information matches the style information of the candidate cell, and the said candidate primitive style information as the initial two-dimensional code corresponding to a primitive style information.

[0122] 例如,选择具有与所述初始二维码所对应背景图案的颜色相差较大的候选基元样式信息,作为与所述初始二维码相对应的基元样式信息,从而能够在生成的动态二维码中清晰的读取背景图案与初始二维码的码形信息。 [0122] For example, selecting a background pattern to the initial two-dimensional code corresponding to the color difference between the larger of the candidate cell style information, as the initial two-dimensional code corresponding to a primitive style information, can be generated dynamic two-dimensional code is read in clear background pattern code pattern information to the initial two-dimensional code.

[0123] 其中,在步骤s2中,所述生成设备可以通过各种通信协议,通过各类数据传输接口,与存储或提供所述候选基元样式信息的一个或多个数据库或其他第三方设备相交互, 以获取多个所述候选基元样式信息;或者在步骤s2中,所述生成设备通过与用户相交互,接收所述用户通过点击、触摸、输入等方式所选择提交的多个候选基元样式信息;或者在步骤s2中,所述生成设备根据所述初始二维码,基于预定的选择标准(如根据所述初始二维码所对应的信息等),选择与所述初始二维码相对应的多个候选基元样式信息。 [0123] wherein, in the step s2, the device may be generated by a variety of communications protocols, data transmission through various interfaces, or stored database providing one or more of the candidate primitive style information or other third party devices interact, to obtain a plurality of style information of the candidate cell; or, in step s2, the generating device interacting with a user, receiving a user selected by clicking on submit, a touch input etc. by a plurality of candidate primitive style information; or, in step s2, the generating apparatus according to the initial two-dimensional code, based on a predetermined selection criteria (e.g., according to initial information and the like to the corresponding two-dimensional code), and selecting the initial two dimensional code corresponding to a plurality of candidate primitives style information.

[0124] 更优选地,当所述码相关信息包括所述初始二维码所对应的待呈现信息时,在步骤s2中,所述生成设备可以根据所述待呈现信息,从多个候选图像中选择与所述待呈现信息相匹配的多个优选图像;获取与所述多个优选图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 [0124] More preferably, when the code related information comprises the original two-dimensional code corresponding to the information to be presented, in step s2, the generating device may be based on the presentation information, from the plurality of candidate images selected to be presented to the plurality of image information is preferably matched; obtaining the plurality of style information corresponding to a plurality of images preferably, the plurality of primitives as the initial two-dimensional code corresponding to the style information .

[0125] 具体地,所述码相关信息包括所述初始二维码所对应的待呈现信息,其中,所述待呈现信息即为当扫描所述初始二维码之后,所述初始二维码所对应的文字信息、链接信息或其他相关信息。 [0125] In particular, the code related information comprises the original two-dimensional code corresponding to the information to be presented, wherein the information that is to be presented after the initial two-dimensional code is scanned, the initial two-dimensional code text information corresponding to link information or other relevant information.

[0126] 在步骤S2中,所述生成设备根据所述待呈现信息,例如根据所述待呈现信息所对应的内容信息,从所述从多个候选图像中选择与所述内容相匹配的优选图像,如所述待呈现信息为动画“海贼王”的播放链接,则选择具有“海贼王”标题的候选图像,或具有与“海贼王”内容信息的候选图像,或与“海贼王”相关的其他候选图像,作为与所述待呈现信息相匹配的多个优选图像。 [0126] In step S2, the generating apparatus in accordance with the information to be presented, for example, presenting the content information to be based on the corresponding, selected from among the candidate images from a plurality of matches with the content preferably the image, as the information to be presented as animation "Piece" broadcast link, selecting a candidate image having a "Piece" title, or an image information and the candidate "Piece" content, or images related to the other candidate "Piece" , preferably a plurality of image information to be presented to the match.

[0127] 或者,在步骤S2中,所述生成设备根据所述待呈现信息,例如根据所述待呈现信息的文本信息,从所述从多个候选图像中选择与所述内容相匹配的候选图像,例如,所述待呈现信息为“蓝天”,则选择具有蓝天内容的候选图像,作为与所述待呈现信息相匹配的多个优选图像。 [0127] Alternatively, in step S2, the generating apparatus in accordance with the information to be presented, for example, according to the information of text information to be presented, from a selection from the plurality of candidate images that match the candidate image, for example, be presented the "blue sky", the candidate is selected having blue image information content, preferably a plurality of the image information to be matched presentation.

[0128] 在步骤S2中,所述生成设备根据所述优选图像,对所述多个优选图像进行处理,如提取优选图像中的主体部分,使得所述优选图像作为样式信息能够清晰可辨,或者提取优选图像中的颜色部分,使得生成多个具有不同颜色的样式信息,并将与所述多个优选图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 [0128] In step S2, the image generating apparatus according to the preferred, more preferred the image processing such as extraction of the body portion is preferably an image, such as the style information can be preferable that the image clearly visible, or preferably partially extract color image, style information so as to generate a plurality of different colors, and the plurality of style information and preferably a plurality of images corresponding to the original as a two-dimensional code corresponding to the plurality a primitive style information.

[0129] 图5示出根据本发明一个优选实施例的一种生成二维码的方法流程图。 [0129] Figure 5 illustrates a flowchart of a method of generating a two-dimensional code in a preferred embodiment of the present invention. 具体地,在步骤si'中,所述生成设备获取待处理的初始二维码;在步骤s2'中,所述生成设备获取与所述初始二维码相对应的多个基元样式信息;在步骤s31'中,所述生成设备确定所述初始二维码所对应的色块分布矩阵;在步骤s32'中,所述生成设备通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码;在步骤s4'中,所述生成设备根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 Specifically, in step si ', the two-dimensional code generating apparatus acquires an initial be treated; in step s2', the apparatus generating a plurality of primitives style information acquired with the initial two-dimensional code corresponding to; in step s31 ', the color profile generation device determines the initial matrix corresponding to the two-dimensional code; at step s32', the generating apparatus through a plurality of cells according to the style information in at least one of their color distribution of said color matrix replacement process, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code; at step s4 ', said group generating apparatus according to the two-dimensional code corresponding to the intermediate sequence information elements related style information, a plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code. 其中,所述步骤1'、步骤2'、步骤4'与图4所示对应步骤相同或基本相同,故此处不再赘述,并通过引用的方式包含于此。 Wherein, the same step corresponds to step 'step 2' 'shown in FIG. 4 or step 4 is substantially the same, and therefore not be repeated here, and is incorporated herein by reference.

[0130] 上述各步骤之间是持续不断工作的,在此,本领域技术人员应理解“持续”是指上述各步骤分别实时地,或者按照设定的或实时调整的工作模式要求,进行待处理的初始二维码的获取、基元样式信息的获取、色块分布矩阵的确定、中间二维码的生成、动态二维码的获取等,直至所述生成设备停止获取待处理的初始二维码。 [0130] between each of the steps is ongoing work in this art will appreciate that the present art "Length" refers to the above-described steps are in real time, or according to a set operation mode or real-time adjustments required, be carried out the initial two-dimensional code acquisition process acquires cell style information, determining the color distribution matrix, generating an intermediate two-dimensional code, the two-dimensional code other dynamic acquisition, acquisition until the device stops generating the initial two to be processed dimensional code.

[0131] 在步骤s31'中,所述生成设备确定所述初始二维码所对应的色块分布矩阵。 [0131] In step s31 ', the generating device determining the initial two-dimensional code corresponding to the color distribution matrix.

[0132] 具体地,在步骤s31'中,所述生成设备通过对所述初始二维码的每一个基础块进行灰度值分析,得到所述初始二维码的深色块与浅色块的色块分布图(如图8所示左侧所示,将所述初始二维码转换成标注了深色块与浅色块的色块分布图);在步骤s3l'中,所述生成设备根据所述色块分布图,确定与所述色块分布图所相对应的色块分布矩阵(如图8右侧所示的色块分布矩阵,在此,所述深色块在所述色块分布矩阵中对应值1,所述浅色块在所述色块分布矩阵中对应值〇),所述色块分布矩阵与所述初始二维码相对应。 [0132] Specifically, in step s31 ', the gray scale value generation device analyzes for each base block of the initial two-dimensional code to afford a deep color two-dimensional code and the initial light block the color profile (shown on the left in FIG. 8, the two-dimensional code into the initial color profile marked with deep color block light); in step s3l ', the generated the apparatus according to the color distribution, the color distribution to determine the distribution of the matrix corresponding to the color patch distribution matrix shown in FIG. 8 on the right side (in FIG., in this case, the depth of color in the distribution of color values ​​corresponding to the matrix 1, the light distribution block square matrix corresponding values ​​in the color), the color distribution of the initial matrix corresponding to the two-dimensional code.

[0133] 优选地,在步骤s31'中,所述生成设备还可以通过对所述初始二维码的每一个基础块进行灰度值分析,得到将所述初始二维码划分为3类或3类以上色块灰度的色块分布图,例如,浅色块、中间色块、深色块三类或更多类等;从而在步骤s31'中,所述生成设备根据所述色块分布图,确定与所述色块分布图所相对应的色块分布矩阵,例如,所述色块分布矩阵通过利用〇,1,2三种值,来分别对应浅色块、中间色块、深色块,所述色块分布矩阵,并与所述初始二维码相对应。 [0133] Preferably, in step s31 ', the device may also be generated by analyzing the gray value of each block of the basic initial two-dimensional code to obtain the original two-dimensional code are divided into three categories or class 3 or more color distribution color gradations, e.g., block light, intermediate color, deep color three or more types of the like; and in step s31 ', the generating apparatus according to the patch profile, corresponding to FIG determining the color of the color distribution matrix distribution, for example, the color distribution by using square matrix, three values ​​1, 2, to light the corresponding block respectively, an intermediate color, color depth, the color distribution matrix, and the two-dimensional code corresponding to the original.

[0134] 在此,本领域技术人员应能理解,在步骤s31'中,所述生成设备可以对所述初始二维码所对应的整个背景画面进行处理,以获取该初始二维码所对应整个画面的色块分布矩阵;还可以仅对与所述初始二维码相对应的整个画面中,与所述初始二维码所相对应的区域进行处理,以获取该区域(即仅获取所述初始二维码)所对应的色块分布矩阵。 [0134] Here, those skilled in the art should appreciate, in step s31 ', the device may generate the two-dimensional code corresponding to the original background picture whole process, to obtain the two-dimensional code corresponding to the initial color distribution of the entire screen matrix; only the entire screen may also correspond to the initial two-dimensional code, the initial processing of the two-dimensional code corresponding to the area to obtain the region (i.e., acquire only the said original two-dimensional code) corresponding to the color distribution matrix.

[0135] 例如,在步骤s31'中,所述生成设备通过根据所述初始二维码在所述背景图案之中的位置坐标(x,y)以及所述初始二维码的条码区边长L,在所述背景图案中确定所述初始二维码所对应的目标区域; [0135] For example, in step s31 ', the generating apparatus through a two-dimensional code according to the initial position coordinates of the background pattern among the (x, y) of the initial two-dimensional code and bar-code area of ​​a side L, determine a target area in the initial two-dimensional code corresponding to the background pattern;

[0136] 根据所述初始二维码的基础块边长s和初始二维码边长L(其中,L是s的整数倍), 将所述目标区域划分为n*n (n=L/s)个基础块; [0136] The base block of the initial two-dimensional code and the side length s initial two-dimensional code side length L (where, L is an integer multiple of s), the target area is divided into n * n (n = L / s) a base block;

[0137] 依次对n*n个基础块进行灰度值分析,得到对应的n阶分布矩阵M,其中若第i行第j 列基础块灰度大于某一临界值H (即为深色块),则M (i,j) =1,否则M (i,j) =0; [0137] n * n sequentially on the basis of a gray value analysis block, to give the corresponding n-order distribution matrix M, where if the i-th row j-th column of the base block is greater than a threshold gray scale value H (ie dark color ), then M (i, j) = 1, or M (i, j) = 0;

[0138] 所述分布矩阵M即为所述色块分布矩阵。 [0138] The matrix M is the distribution of the color distribution matrix.

[0139]在步骤s32'中,所述生成设备通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码。 [0139] In step s32 ', the generating apparatus through at least one corresponding matrix patch replacement process according to the distribution of the patches of the plurality of primitives in the style information, to generate the initial two-dimensional code a plurality of intermediate two-dimensional code.

[0140]具体地,在步骤s32'中,所述生成设备根据所述步骤s2'中所获取的与所述初始二维码相对应的多个基元样式信息,以及所述步骤s31'中所确定的色块分布矩阵,按照所述色块分布矩阵中的数值,利用与其相对应的基元样式信息中至少一个对原色块进行替换, 例如将基元样式信息中的深色块替换所述色块分布矩阵中数值为1的色块,将基元样式信息中的浅色块替换所述色块分布矩阵中数值为0的色块等,以生成与所述初始二维码相对应的中间二维码;进而利用多个所述基元样式信息,分别根据所述色块分布矩阵进行替换, 以生成多个中间二维码。 [0140] Specifically, in step S32 ', the said step generating apparatus according to s2' in the initial two-dimensional code corresponding to the plurality of primitives acquired in the style information, and the step S31 ' the determined color distribution matrix according to the value of the distribution matrix patches, using corresponding thereto at least one primary color cell replacement block pattern information, for example, replace the primitive deep color style information said color distribution color value matrix 1 will replace the primitive style information light distribution matrix blocks of the color values ​​for the color 0 and the like, to generate a two-dimensional code corresponding to the initial the intermediate two-dimensional code; and further using said plurality of primitives style information, replacing each color in accordance with the distribution matrix to generate a plurality of intermediate two-dimensional code.

[0141] 例如,如图9的“颜色变化的基元样式示例”中,所述颜色“黑、深蓝、红、紫、青绿”都属于深色基元样式信息,可以用来替换所述色块分布矩阵中数值为1的色块。 [0141] For example, "motif exemplary color change in style" in FIG. 9, the color "black, blue, red, purple, green," belong to the dark cell pattern information, may be used instead of the color value of the distribution block matrix patch 1.

[0142]优选地,在步骤s32'中,所述生成设备可以按照预定的色块替换规则,通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码。 [0142] Preferably, in step s32 ', the generating device may be replaced according to a predetermined rule color, be replaced by at least one matrix patches according to the color distribution of the plurality of primitives style information processing to generate a plurality of intermediate said two-dimensional code corresponding to the initial two-dimensional code. 其中,所述色块替换规则包括但不限于:基元样式信息中的深色块替换色块分布矩阵中的对应深色块、基元样式信息中的浅色块替换色块分布矩阵中的对应浅色块、或其结合。 Wherein said color replacement rules include but are not limited to: cell style information in the deep color replacement color distribution matrix corresponding deep color, the style information cell block replacement light distribution matrix patches corresponding to block light, or a combination thereof.

[0143]图6示出根据本发明另一个优选实施例的一种生成二维码的方法流程图。 [0143] FIG. 6 illustrates a flowchart of a method of generating a two-dimensional code according to another embodiment of the present invention is preferred. 具体地, 在步骤si”中,所述生成设备获取待处理的初始二维码;在步骤s2”中,所述生成设备获取与所述初始二维码相对应的多个基元样式信息;在步骤s3”中,所述生成设备根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码;在步骤s5”中,所述生成设备确定所述多个基元样式信息所对应的基元样式序列;在步骤s4”中,所述生成设备根据所述中间二维码所对应的基元样式信息在所述基元样式序列中的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。其中,所述步骤1”、步骤2”、步骤3”与图4所示对应步骤相同或基本相同,故此处不再赘述,并通过引用的方式包含于此。 Specifically, in step si ", the two-dimensional code generating apparatus acquires an initial be treated; in step s2", the apparatus generating a plurality of primitives acquires the style information corresponding to the initial two-dimensional code; in step s3 ", the generating apparatus according to the plurality of primitives in at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code; at step s5 ", the pattern generating apparatus determines the sequence motif of the plurality of cells corresponding to the style information; in step s4", the primitive generating apparatus according to the style information in the two-dimensional code corresponding to the intermediate the sequence motif pattern sequence related information, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code. wherein said step 1 ', step 2, "step 3" and FIG. 4 It illustrates the same or substantially the same as corresponding steps, and therefore not be repeated here, and is incorporated herein by reference.

[0144] 上述各步骤之间是持续不断工作的,在此,本领域技术人员应理解“持续”是指上述各步骤分别实时地,或者按照设定的或实时调整的工作模式要求,进行待处理的初始二维码的获取、基元样式信息的获取、中间二维码的生成、基元样式序列的确定、动态二维码的获取等,直至所述生成设备停止获取待处理的初始二维码。 [0144] between each of the steps is ongoing work in this art will appreciate that the present art "Length" refers to the above-described steps are in real time, or according to a set operation mode or real-time adjustments required, be carried out the initial two-dimensional code acquisition process acquires cell style information, generating an intermediate two-dimensional code, the pattern sequence motif determined, dynamically acquires two-dimensional code, etc., until the device stops generating acquisition pending initial two dimensional code.

[0145] 在步骤s5”中,所述生成设备确定所述多个基元样式信息所对应的基元样式序列。 [0145] In step s5 ", the pattern generating apparatus determines the sequence motif of the plurality of cells corresponding to the style information.

[0146] 具体地,在步骤s5”中,所述生成设备根据所述多个基元样式信息,通过基于预定的基元样式序列确定规则,或者根据用户的操作信息(可定制复杂的、多样化个性化的序列)等方式,将所述基元样式信息组合成基元样式序列,其中,在所述基元样式序列中,所述基元样式信息可重复。 [0146] Specifically, in step s5 ", the generating apparatus according to the style information of the plurality of cells, based on a predetermined determination rule by primitive pattern sequence, or in accordance with the operation information of the user (customizable complex, diverse personalization sequence), etc., the style information are combined into primitive pattern sequence motif, wherein the motif pattern sequence, the style information may be repeated motifs.

[0147] 其中,所述基元样式序列确定规则如根据所述基元样式信息的颜色变化(如颜色渐变式或颜色突变式等)或图案变化,进行基元样式序列的确定;例如,按照颜色深浅的变化,从黑色变换至深棕色再变化至深灰色;按照图案变化,从正方形变换至八边形再变换至圆形等。 [0147] wherein the pattern sequence motif as determined according to the rule color change pattern information of the primitive (such as a color change or color graded type, etc.) or a change pattern, a sequence motif determined pattern; e.g., in accordance with shades of color change, change from black to brown and then dark gray to change; a change in a pattern, the eight-sided square transform then converted to circular and the like.

[0148] 例如,在步骤s2”中,所述生成设备所提供的基元样式信息为A、B、C,则所述基元样式信息所对应的基元样式序列可以是ABC,或者也可以是ABCABC (即可以重复),或者也可以是AABBCC,或者也可以是AABCABC等任意组合。 [0148] For example, in step s2 ", the primitive generating style information provided to the device A, B, C, the pattern information of the primitive corresponding to the primitive sequence may be a pattern ABC, or may is an ABCABC (i.e., can be repeated), or may be AABBCC, or may be any combination AABCABC like.

[0149] 在此,不同的基元样式序列最终决定了所述动态二维码的动态效果。 [0149] Here, a different pattern sequence motif ultimately determines the dynamic effect of the dynamic two-dimensional code. 从而,不同的基元样式序列可产生不同的视觉效果,如形状不同的基元样式序列可产生二维码基元形状变化的效果,颜色不同的基元样式可产生二维码颜色变化的效果(其中包括渐变和突变及其组合)。 Thus, the cell pattern of different sequences may produce different visual effects, such as different shapes of pattern primitives may generate a two-dimensional code sequence motif effect a change in shape, a different color pattern primitives may be a two-dimensional code color change effect (including mutations gradients and combinations thereof).

[0150] 例如,在此,颜色渐变式样式序列(S[l],S[2],…,S[n])具有的基本特征为: [0150] For example, here, the color gradient pattern sequence of formula (S [l], S [2], ..., S [n]) as having the basic characteristics:

[0151] 颜色由浅变深式S[i] .color<=S[i+l] .color [0151] color from light to dark formula S [i] .color <= S [i + l] .color

[0152] 颜色由深变浅式S[i] .color>=S[i+l] .color [0152] becoming lighter in color formula S [i] .color> = S [i + l] .color

[0153] 颜色突变式序列(S[l],S[2],…,S[n])具有的基本特征为: [0153] Color mutated sequence of Formula (S [l], S [2], ..., S [n]) as having the basic characteristics:

[0154] S[i-1].color>>S[i].color<<S[i+1].color [0154] S [i-1] .color >> S [i] .color << S [i + 1] .color

[0155] 在步骤s4”中,所述生成设备根据所述中间二维码所对应的基元样式信息在所述基元样式序列中的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 [0155] In step s4 ", the pattern generating apparatus according to the information of the cell corresponding to the intermediate two-dimensional code information in the sequence of the primitive pattern sequence, said plurality of intermediate merge two-dimensional code, to obtain a corresponding dynamic two-dimensional code.

[0156] 具体地,在步骤s4”中,所述生成设备根据所述中间二维码所对应的基元样式信息在所述基元样式序列中的顺序相关信息,例如,将所述多个中间二维码按照所述基元样式序列的顺序构成帧链表,通过将所述帧链表的中间二维码进行合并,生成动态的如gif格式的图片,即获得对应的动态二维码。其中,由于所述基元样式信息是多个不同的,因此,按照所述基元样式信息的顺序相关信息进行合并后,所述动态二维码是可动的。 [0156] Specifically, in step s4 ", the pattern generating apparatus according to the information of the cell corresponding to the intermediate two-dimensional code information in the sequence of the primitive pattern sequence, e.g., the plurality of intermediate two-dimensional code list in the order of frames constituting the base element pattern sequences, are combined, such as a dynamic image generated by the gif format frame list intermediate two-dimensional code, i.e., to obtain a corresponding dynamic two-dimensional code. wherein , due to the plurality of primitives style information is different, and therefore, in order to merge the information of the primitive style information, a dynamic two-dimensional code is movable.

[0157] 优选地,在步骤s5”中,所述生成设备可以根据所述初始二维码的应用场景信息, 确定所述多个基元样式信息所对应的基元样式序列。 [0157] Preferably, in step s5 ", the scenario generating apparatus according to the application of the initial two-dimensional code information, determining the plurality of primitive pattern sequence motifs corresponding to the style information.

[0158] 具体地,在步骤s5”中,所述生成设备可以根据所述初始二维码的应用场景信息, 选择适于所述应用场景的基元样式序列。例如,当所述应用场景信息为运动类型,则选择样式变化较为显著的基元样式序列,当所述应用场景信息为舒缓的风景观赏类型,则选择样式变化较为缓慢的基元样式序列。在此,所述应用场景信息包括但不限于所述应用的主题信息、应用的演示信息、视频预览信息等。 [0158] Specifically, in step s5 ", the scenario generating apparatus according to the application of the initial two-dimensional code information, is adapted to select said sequence motif pattern scenarios. For example, when the application context information motion type, select the style change significantly the pattern sequence motif, when the application type watch the landscape scene information soothing, then select the style change is slower motif pattern sequence. here, the scenario information includes but not limited to, information relating to the application, presentation application information, video preview information.

[0159] 对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。 In the case [0159] to those skilled in the art, that the invention is not limited to the details of the above-described exemplary embodiment, but without departing from the spirit or essential characteristics of the present invention, the present invention can be realized in other specific forms. 因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。 Therefore, no matter from what point of view, the embodiments should be considered exemplary, and not limiting, the scope of the invention being indicated by the appended claims rather than by the foregoing description, the appended claims are therefore intended to All changes which come within the meaning and range of equivalents thereof should be covered within the present invention. 不应将权利要求中的任何附图标记视为限制所涉及的权利要求。 In the claims should not be considered as any reference numerals as claimed in claim limitations involved. 此夕卜,显然“包括”一词不排除其他单元或步骤,单数不排除复数。 Bu this evening, apparently "comprising" does not exclude other elements or steps, the singular does not exclude a plurality. 装置权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。 A plurality of units or means recited in the claims means may also be implemented by a single unit or through software or hardware. 第一,第二等词语用来表示名称,而并不表示任何特定的顺序。 The first, second, etc. are used to indicate the name, but does not indicate any particular sequence.

Claims (20)

  1. 1.一种生成二维码的方法,其中,该方法包括以下步骤: a获取待处理的初始二维码; b获取与所述初始二维码相对应的多个基元样式信息,其中,所述基元样式信息包括具有颜色可变的像素块或形状可变的图形的一种或多种; c根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码; d根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 CLAIMS 1. A method of generating a two-dimensional code, wherein the method comprises the steps of: a two-dimensional code to be processed acquired initial; b. A plurality of primitives style information obtaining the two-dimensional code corresponding to the initial, wherein the style information includes a cell having one or more variable-color pixel block or variable shape of the figure; C according to the plurality of cells in at least one of style information, as well as the initial two-dimensional code, generated a plurality of intermediate said two-dimensional code corresponding to the initial two-dimensional code; D style information according to the sequence information of the cell corresponding to the intermediate two-dimensional code, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code.
  2. 2. 根据权利要求1所述的方法,其中,所述步骤c包括: -确定所述初始二维码所对应的色块分布矩阵; c2通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码。 2. The method according to claim 1, wherein said step c comprises: - determining the initial two-dimensional code corresponding to the color distribution matrix; C2 through the plurality of cells according to at least one pair of style information the color distribution matrix patch replacement process, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code.
  3. 3. 根据权利要求2所述的方法,其中,所述步骤c2包括: _按照预定的色块替换规则,通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码。 3. The method according to claim 2, wherein said step c2 comprises: _ replacement rules in accordance with a predetermined color, at least one of said color matrix patches according to the distribution of the plurality of primitives style information block replacement process, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code.
  4. 4. 根据权利要求1至3中任一项所述的方法,其中,该方法还包括: -对所述基元样式信息进行验证; 其中,所述步骤c包括: -根据通过验证的所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码。 4. A method according to any one of claims 1 to 3, wherein the method further comprises: - verification of the primitive pattern information; wherein, said step c comprises: - based on the verified the plurality of primitives in at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code.
  5. 5. 根据权利要求1至3中任一项所述的方法,其中,该方法还包括: x确定所述多个基元样式信息所对应的基元样式序列; 其中,所述步骤d包括: -根据所述中间二维码所对应的基元样式信息在所述基元样式序列中的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 5. The method according to 3 any one of claims, wherein the method further comprises: x determining the plurality of pattern sequence motif motif pattern corresponding to the information; wherein said step d comprises: - the style information of the cell corresponding to the intermediate two-dimensional code information in the sequence of the primitive pattern sequence, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic two-dimensional code.
  6. 6. 根据权利要求5所述的方法,其中,所述步骤x包括: -根据所述初始二维码的应用场景信息,确定所述多个基元样式信息所对应的基元样式序列。 6. The method as claimed in claim 5, wherein said step comprises x: - The application scenario of the initial two-dimensional code information, determining the plurality of primitive pattern sequence motifs corresponding to the style information.
  7. 7. 根据权利要求1至3中任一项所述的方法,其中,所述步骤b包括: -根据所述初始二维码的码相关信息,获取与所述初始二维码相对应的多个基元样式信息; 其中,所述码相关信息包括以下至少任一项: -所述初始二维码的应用场景信息; -所述初始二维码所对应背景图案的配色特征信息; -所述初始二维码所对应的待呈现信息。 The method according to any one of claim 1 to claim 3, wherein said step b comprises: - related information according to the code of the initial two-dimensional code, the initial acquiring two-dimensional code corresponding to the plurality primitives style information; wherein, the code related information comprises at least any one of the following: - application scenario of the initial two-dimensional code information; - the initial color characteristics of the two-dimensional code information corresponding to the background pattern; - the said original two-dimensional code corresponding to the information to be presented.
  8. 8. 根据权利要求7所述的方法,其中,所述码相关信息包括所述初始二维码的应用场景伯息; 其中,所述步骤b包括: -根据所述初始二维码的应用场景信息,获取对应应用所对应的多个图像; -获取与所述多个图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 8. The method according to claim 7, wherein said code information comprises a primary application scenarios of the initial two-dimensional code information; wherein, said step b comprises: - application scenario according to the initial two-dimensional code information acquiring a plurality of images corresponding to the corresponding application; - acquiring a plurality of images of said plurality of style information corresponding to a plurality of primitives as the style information corresponding to the initial two-dimensional code.
  9. 9. 根据权利要求7所述的方法,其中,所述码相关信息包括所述初始二维码所对应背景图案的配色特征信息•, 其中,所述步骤b包括: -根据所述初始二维码所对应背景图案的配色特征信息,从多个候选基元样式信息中选择与所述配色特征信息相匹配的候选基元样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 9. The method according to claim 7, wherein the background pattern comprises a code related information in the initial two-dimensional code corresponding to the color characteristic information •, wherein said step b comprises: - according to the initial two-dimensional wherein the background pattern color information corresponding to a code, and the selected color feature information matches the candidate cell style information from a plurality of candidate cell style information, as the plurality of groups corresponding to the original two-dimensional code yuan style information.
  10. 10. 根据权利要求7所述的方法,其中,所述码相关信息包括所述初始二维码所对应的待呈现彳目息; 其中,所述步骤b包括: _根据所述待呈现信息,从多个候选图像中选择与所述待呈现信息相匹配的多个优选图像; _获取与所述多个优选图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 10. The method according to claim 7, wherein said code information comprises the original two-dimensional code corresponding to the information to be presented left foot mesh; wherein said step b comprises: _ according to the information to be presented, preferably the plurality of selected images to be presented with the information from the plurality of match candidate images; _ obtaining the plurality of style information corresponding to a more preferred image, and as the two-dimensional code corresponding to the initial multiple primitives style information.
  11. 11. 一种生成二维码的生成设备,其中,该设备包括: 获取装置,用于获取待处理的初始二维码; 样式装置,用于获取与所述初始二维码相对应的多个基元样式信息,其中,所述基元样式信息包括具有颜色可变的像素块或形状可变的图形的一种或多种; 生成装置,用于根据所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码; 合并装置,用于根据所述中间二维码所对应的基元样式信息的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 11. A method of generating two-dimensional code generating device, wherein, the apparatus comprising: acquiring means for acquiring an initial two-dimensional code to be processed; style means for acquiring the two-dimensional code corresponding to the initial plurality style information primitives, wherein said primitives style information comprises one or more variable pattern of a pixel block having a variable shape or color; generating means for at least a plurality of cells according to the style information a, and the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate codes corresponding to the initial two-dimensional; combined means for the order information related to the primitive style information corresponding to the intermediate two-dimensional code merging the plurality of intermediate two-dimensional code to obtain a corresponding dynamic two-dimensional code.
  12. 12. 根据权利要求11所述的生成设备,其中,所述生成装置包括: 色块确定单元,用于确定所述初始二维码所对应的色块分布矩阵; 替换单元,用于通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码。 12. The generating apparatus according to claim 11, wherein said generating means comprising: a color determination unit for determining the initial two-dimensional code corresponding to the color distribution matrix; replacement unit, configured in accordance with the style information of said plurality of primitives in at least one of said matrix patch for the distribution of color replacement process, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code.
  13. 13. 根据权利要求12所述的生成设备,其中,所述替换单元包括: _按照预定的色块替换规则,通过根据所述多个基元样式信息中至少一个对所述色块分布矩阵中色块进行替换处理,生成所述初始二维码所对应的多个中间二维码。 13. The generating apparatus according to claim 12, wherein the replacement unit comprises: _ replacement rules in accordance with a predetermined color, at least according to a profile of said patches of said plurality of cells in the matrix style information color replacement is performed, to generate a plurality of intermediate said two-dimensional code corresponding to the initial two-dimensional code.
  14. 14. 根据权利要求11至13中任一项所述的生成设备,其中,该设备还包括: 验证装置,用于对所述基元样式信息进行验证; 其中,所述生成装置用于: -根据通过验证的所述多个基元样式信息中至少一个,以及所述初始二维码,生成所述初始二维码所对应的多个中间二维码。 Generating apparatus according to claim one of claims 11 to 13, wherein the apparatus further comprises: verification means for the verification information pattern primitives; wherein said means for generating: - according to the plurality of primitives by verifying at least one of style information, as well as the initial two-dimensional code, the two-dimensional code to generate a plurality of intermediate corresponding to the initial two-dimensional code.
  15. 15. 根据权利要求11至13中任一项所述的生成设备,其中,该设备还包括: 序列确定装置,用于确定所述多个基元样式信息所对应的基元样式序列; 其中,所述合并装置用于: -根据所述中间二维码所对应的基元样式信息在所述基元样式序列中的顺序相关信息,合并所述多个中间二维码,以获得对应的动态二维码。 15.11 to 13 generating apparatus according to any one of claims, wherein the apparatus further comprises: sequence determination means for determining the plurality of primitive pattern sequence motifs corresponding style information; wherein, said merging means for: - according to the style information cell corresponding to the intermediate two-dimensional code information in the sequence of the primitive pattern sequence, said plurality of intermediate merge two-dimensional code to obtain a corresponding dynamic QR code.
  16. 16. 根据权利要求15所述的生成设备,其中,所述序列确定装置用于: -根据所述初始二维码的应用场景信息,确定所述多个基元样式信息所对应的基元样式序列。 16. The generating apparatus according to claim 15, wherein said means for determining the sequence: - The application scenario of the initial two-dimensional code information, determining the plurality of primitives corresponding to the primitives of style information Style sequence.
  17. 17. 根据权利要求11至13中任一项所述的生成设备,其中,所述样式装置用于: -根据所述初始二维码的码相关信息,获取与所述初始二维码相对应的多个基元样式信息; 其中,所述码相关信息包括以下至少任一项: -所述初始二维码的应用场景信息; -所述初始二维码所对应背景图案的配色特征信息; -所述初始二维码所对应的待呈现信息。 17.11 to 13 generating apparatus according to any one of claims, wherein the means for pattern: - two-dimensional code according to the initial code-related information, acquires the two-dimensional code corresponding to the initial a plurality of primitives style information; wherein, the code related information comprises at least any one of the following: - the initial two-dimensional code information application scenario; - the initial color characteristics of the two-dimensional code information corresponding to the background pattern; - the initial two-dimensional code corresponding to the information to be presented.
  18. 18. 根据权利要求17所述的生成设备,其中,所述码相关信息包括所述初始二维码的应用场景信息; 其中,所述样式装置用于: -根据所述初始二维码的应用场景信息,获取对应应用所对应的多个图像; -获取与所述多个图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 18. The generating apparatus according to claim 17, wherein the code information includes scenario information related to the initial two-dimensional code; wherein the pattern means for: - The application of the initial two-dimensional code scene information, acquiring a plurality of images corresponding to the corresponding application; - acquiring a plurality of images of said plurality of style information corresponding to a plurality of primitives as the style information corresponding to the initial two-dimensional code.
  19. 19. 根据权利要求17所述的生成设备,其中,所述码相关信息包括所述初始二维码所对应背景图案的配色特征信息; 其中,所述样式装置用于: -根据所述初始二维码所对应背景图案的配色特征信息,从多个候选基元样式信息中选择与所述配色特征信息相匹配的候选基元样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 19. The generating apparatus according to claim 17, wherein said color code related information comprises feature information of the background pattern corresponding to the initial two-dimensional code; wherein the pattern means for: - according to the initial two wherein the background pattern color information corresponding dimensional code, the selected color feature information matches the candidate cell style information from a plurality of candidate cell style information, as the plurality of two-dimensional code corresponding to the initial primitive style information.
  20. 20. 根据权利要求17所述的生成设备,其中,所述码相关信息包括所述初始二维码所对应的待呈现信息; 其中,所述样式装置用于: -根据所述待呈现信息,从多个候选图像中选择与所述待呈现信息相匹配的多个优选图像; _获取与所述多个优选图像相对应的多个样式信息,以作为与所述初始二维码相对应的多个基元样式信息。 20. The generating apparatus according to claim 17, wherein said code information comprises the original two-dimensional code corresponding to the information to be presented; wherein the pattern means for: - according to the information to be presented, preferably the plurality of selected images to be presented with the information from the plurality of match candidate images; _ obtaining the plurality of style information corresponding to a more preferred image, and as the two-dimensional code corresponding to the initial multiple primitives style information.
CN 201310279958 2013-07-04 2013-07-04 A method and apparatus for generating a two-dimensional code CN104281865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310279958 CN104281865B (en) 2013-07-04 2013-07-04 A method and apparatus for generating a two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310279958 CN104281865B (en) 2013-07-04 2013-07-04 A method and apparatus for generating a two-dimensional code

Publications (2)

Publication Number Publication Date
CN104281865A true CN104281865A (en) 2015-01-14
CN104281865B true CN104281865B (en) 2018-05-01

Family

ID=52256725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310279958 CN104281865B (en) 2013-07-04 2013-07-04 A method and apparatus for generating a two-dimensional code

Country Status (1)

Country Link
CN (1) CN104281865B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022424A (en) * 2016-05-10 2016-10-12 腾讯科技(深圳)有限公司 Method and apparatus for generating two-dimensional code picture having dynamic effect

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026665A (en) * 2008-07-16 2010-02-04 S Code Relations:Kk Two-dimensional code
JP2010182336A (en) * 2010-05-10 2010-08-19 Digital Information Technologies Kk Code pattern image data generation device and medium with code pattern
CN101908155A (en) * 2010-06-08 2010-12-08 真心彩网络科技(上海)有限公司;普千(上海)商务咨询有限公司 Encoding system and method and decoding system and method of two-dimension code
JP2011081832A (en) * 2010-12-13 2011-04-21 Denso Wave Inc Two-dimensional code division display method, two-dimensional code reading method and two-dimensional code reader
CN102334133A (en) * 2009-02-27 2012-01-25 At信息股份有限公司 Two dimensional code display device, two dimensional code display method, and program
CN102622628A (en) * 2012-02-24 2012-08-01 南京大学 Method for generating quick response (QR) codes in rendering mode
CN102750564A (en) * 2012-05-14 2012-10-24 牛建伟 Dynamic two-dimension code and decoding method thereof
CN102999770A (en) * 2011-09-14 2013-03-27 尤星 Dynamic two-dimensional code system and dynamic two-dimensional code method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9152903B2 (en) * 2011-11-04 2015-10-06 Ebay Inc. Automated generation of QR codes with embedded images

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010026665A (en) * 2008-07-16 2010-02-04 S Code Relations:Kk Two-dimensional code
CN102334133A (en) * 2009-02-27 2012-01-25 At信息股份有限公司 Two dimensional code display device, two dimensional code display method, and program
JP2010182336A (en) * 2010-05-10 2010-08-19 Digital Information Technologies Kk Code pattern image data generation device and medium with code pattern
CN101908155A (en) * 2010-06-08 2010-12-08 真心彩网络科技(上海)有限公司;普千(上海)商务咨询有限公司 Encoding system and method and decoding system and method of two-dimension code
JP2011081832A (en) * 2010-12-13 2011-04-21 Denso Wave Inc Two-dimensional code division display method, two-dimensional code reading method and two-dimensional code reader
CN102999770A (en) * 2011-09-14 2013-03-27 尤星 Dynamic two-dimensional code system and dynamic two-dimensional code method
CN102622628A (en) * 2012-02-24 2012-08-01 南京大学 Method for generating quick response (QR) codes in rendering mode
CN102750564A (en) * 2012-05-14 2012-10-24 牛建伟 Dynamic two-dimension code and decoding method thereof

Also Published As

Publication number Publication date Type
CN104281865A (en) 2015-01-14 application

Similar Documents

Publication Publication Date Title
Beeler et al. High-quality passive facial performance capture using anchor frames
Li et al. Aesthetic visual quality assessment of paintings
Loper et al. SMPL: A skinned multi-person linear model
Moorthy et al. Visual quality assessment algorithms: what does the future hold?
Roesch et al. FACSGen: A tool to synthesize emotional facial expressions through systematic manipulation of facial action units
Fang et al. Bottom-up saliency detection model based on human visual sensitivity and amplitude spectrum
US20130235045A1 (en) Systems and methods for creating and distributing modifiable animated video messages
Battiato et al. Digital Mosaic Frameworks‐An Overview
US9158389B1 (en) Virtualization of tangible interface objects
Lai et al. Secret-fragment-visible mosaic image–a new computer art and its application to information hiding
CN101551732A (en) Method for strengthening reality having interactive function and a system thereof
US9177391B1 (en) Image-based color palette generation
US9245350B1 (en) Image-based color palette generation
Huang et al. Arcimboldo-like collage using internet images
CN102768754A (en) Method and device for implementation of picture verification code
US20120113106A1 (en) Method and apparatus for generating face avatar
CN102307292A (en) Visual communication method visual terminal
US20160321832A1 (en) Systems and methods for interactive video generation and rendering
Greenfield On the origins of the term computational aesthetics
CN103440674A (en) Method for rapidly generating crayon special effect of digital image
Jänicke et al. A salience‐based quality metric for visualization
Meese et al. From codes to patterns: designing interactive decoration for tableware
US20130106852A1 (en) Mesh generation from depth images
US20130182012A1 (en) Method of providing augmented reality and terminal supporting the same
CN103327306A (en) Method and device for storing video surveillance image

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01