System and method for optical quick response code

AE202602277AUndeterminedGUPTA DR GARIMA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
AE202602277
Authority / Receiving Office
AE · AE
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-03
Filing Date
2025-01-01

Smart Images

  • Figure ABST_ABST
    Figure ABST_ABST
Patent Text Reader

Abstract

The disclosure relates to quick response (QR) code 102 generation and recognition. An optical QR code generation includes an input module 1130 for selecting and stacking an input set of QR codes having a first QR code and a last QR code, and an optimal mask module 1132 for using an optimal mask pattern corresponding to the first QR code and a SSTM module 1134 for transforming the input set of QR codes to create a transitional set of QR codes that retains data encoded in the input set of QR codes. Further, a mapping module 1138 for mapping a special-patterned module to a position pair of the stacked transitional set of QR codes and a merging module 1146 for merging the transitional set of QR codes and the special-patterned modules to generate an optical QR code 102.
Need to check novelty before this filing date? Find Prior Art

Description

SYSTEM AND METHOD FOROPTICAL QUICK RESPONSE CODE FIELD OF THE INVENTION

[0001] The present disclosure generally relates to the field of quick response (QR) codes, more specifically the present disclosure relates to a system and method for providing an optical QR code. BACKGROUND OF THE INVENTION

[0002] QR codes, or quick response codes, have become indispensable tools for efficiently storing and retrieving data in various fields. These two-dimensional barcodes consist of black squares arranged on a white square grid, encoding information that can be swiftly scanned and deciphered by mobile devices equipped with cameras. The use of QR codes for data storage is widespread and diverse, ranging from inventory management and product tracking to contactless payments and event ticketing. Their versatility lies in their capacity to store various data types, including text, URLs, contact information, and even Wi-Fi network credentials. Businesses leverage QR codes to streamline processes, enhance customer engagement, and facilitate seamless information exchange.

[0003] Due to widespread usage, there is a growing demand for increased data storage capacity and enhanced security in QR codes. Various techniques have been explored to achieve these goals. In one approach, a method is discussed for creating a nested QR code that can be deciphered using commonly accessible scanners by making slight adjustments to the scanning distance and / or angle. This technique involves two QR codes: QR (in) and QR (out). The module size of QR (in) is reduced and positioned within QR (out). Notably, it alters the module design, with the outer one-third of the module region adopting its color from QR (out) and the inner one-ninth deriving its color from QR (in), enabling accurate decoding.

[0004] Another approach involves a process for combining two QR codes into a unified QR code, allowing distinct information extraction through adjustments in the viewing angle. The suggested QR code necessitates a printing process, with the top layer printed on a transparent plastic sheet and the bottom layer on paper. Subsequently, these two prints are affixed together with a slight offset, creating a visual distinction between the left-side and right-side views when observed.

[0005] Despite their utility, both of these approaches encounter specific challenges. They are constrained to a maximum of 2x data storage capacity and cannot be expanded to merge more than two monochrome QR codes. In the first method, one of the QR codes undergoes size reduction and deliberate introduction of errors in the second QR code compromises the robustness and reliability of both codes. Moreover, the second approach involves a more intricate generation process, necessitating the use of special materials, thereby limiting their applicability in various automated applications.

[0006] The accessibility and simplicity of QR codes make them an ideal solution for sharing large information as well. But the current solutions are unable to utilize QR codes as a practical and efficient means of large data storage. Thus, there exists a need to develop and overcome these challenges, offering a more versatile and user-friendly approach to modified QR codes. SUMMARY OF THE INVENTION

[0007] This summary is provided to introduce concepts related to systems and methods for optical QR code and the concepts are further described below in the detailed description. This summary is neither intended to identify essential features of the claimed subject matter nor is it intended for use in determining or limiting the scope of the claimed subject matter.

[0008] In one implementation, a method for quick response (QR) code generation is disclosed. The method comprises, selecting, by an interface of a QR device, an input set of QR codes. Stacking, by a processor of the QR device, a first QR code and a last QR code from the input set of the QR codes. Further, using an optimal mask pattern, by the processor, from a plurality of mask patterns, the optimal mask pattern is corresponding to the first QR code and transforming the input set of QR codes, by the processor, using a similarity structure transformation, to create a transitional set of QR codes, the transitional set of QR codes retains data encoded in the input set of QR codes. The method comprises, mapping, by the processor, a special-patterned module to a position pair of the stacked transitional set of QR codes and merging, by the processor, the transitional set of QR codes and the special-patterned modules to generate an optical QR code.

[0009] In yet another implementation, the first QR code is at the top of the stack and the last QR code is at the bottom of the stack.

[0010] In yet another implementation, stacking a middle QR code between the first QR code and the last QR code from the plurality of the QR codes.

[0011] In yet another implementation, the transitional set of QR codes maximizes structural similarity of the input set of QR codes by using the optimal mask pattern.

[0012] In yet another implementation, the input set of QR codes has n number of monochrome codes.

[0013] In yet another implementation, the optimal mask pattern is selected from the plurality of mask patterns based on the first QR code, and a middle code and the last code are transformed using the optimal mask pattern.

[0014] In yet another implementation, generating a look up table to map the special-patterned module to a position pair of the stacked transitional set of QR codes.

[0015] In one implementation, a method for quick response (QR) code recognition is disclosed. The method comprises, acquiring an image, by an interface of a QR device, from a scanning distance and extracting an optical QR code from the image and identifying, by a processor of the QR device, a first scan threshold. The method comprises, extracting, by the processor, a first data from a first QR code of the optical QR code, the scanning distance is less than the first scan threshold and extracting, by the processor, a last data from a last QR code of the optical QR code, the scanning distance is more than the first scan threshold.

[0016] In yet another implementation, identifying, by a processor of the QR device, a second scan threshold, extracting, by the processor, a middle data from a middle QR code of the optical QR code, the scanning distance is more than the first scanning threshold and less than a second threshold, and the last QR code scanning distance is more than the second scanning threshold.

[0017] In yet another implementation, the QR device is a public QR decoder.

[0018] In yet another implementation, the image is acquired using an application installed on a mobile device.

[0019] In yet another implementation, an application acquires the image, extracts data values present in the optical QR code by digitally varying the scanning distance.

[0020] In one implementation, a system for quick response (QR) code generation is disclosed. The system comprises a processor; and a memory coupled to the processor, the processor executes a plurality of modules stored in the memory, and the plurality of modules comprises an input module for selecting an input set of QR codes, and a stack module for stacking a first QR code and a last QR code from the input set of the QR codes. Further, the system comprises, an optimal mask module for using an optimal mask pattern, from a plurality of mask patterns, the optimal mask pattern is corresponding to the first QR code and a SSTM module for transforming the input set of QR codes to create a transitional set of QR codes, the transitional set of QR codes retains data encoded in the input set of QR codes. Further, the system comprises a mapping module for mapping a special-patterned module to a position pair of the stacked transitional set of QR codes and a merging module for merging the transitional set of QR codes and the special-patterned modules to generate an optical QR code.

[0021] In yet another implementation, a printing device coupled to the processor, the printing device prints the generated optical QR code on a printing medium.

[0022] In one implementation, a system for quick response (QR) code recognition is disclosed. The system comprises a processor; and a memory coupled to the processor, the processor executes a plurality of modules stored in the memory, and the plurality of modules comprises a scanning module for acquiring an image from a scanning distance and extracting an optical QR code from the image and an identification module for identifying a first scan threshold. The system comprises, an optical decode module for extracting a first data from a first QR code of the optical QR code, the scanning distance is less than the first scan threshold and extracting a last data from a last QR code of the optical QR code, the scanning distance is more than the first scan threshold.

[0023] In yet another implementation, the scanning module comprises an image sensor for acquiring the image having the optical QR code from the image.

[0024] These and other implementations, embodiments, processes, and features of the subject matter will become more fully apparent when the following detailed description is read with the accompanying experimental details. However, both the foregoing summary of the subject matter and the following detailed description of it represent one potential implementation or embodiment and are not restrictive of the present disclosure or other alternate implementations or embodiments of the subject matter. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] A clear understanding of the key features of the subject matter summarized above may be had by reference to the appended drawings, which illustrate the method and system of the subject matter, although it will be understood that such drawings depict preferred embodiments of the subject matter and, therefore, are not to be considered as limiting its scope with regard to other embodiments which the subject matter is capable of contemplating. Accordingly:

[0026] FIGURE.1 illustrates exemplary optical quick response (QR) codes, in accordance with an embodiment of the present subject matter.

[0027] FIGURE.2 illustrates an exemplary generation process for an optical QR code, in accordance with an embodiment of the present subject matter.

[0028] FIGURE.3 illustrates an exemplary recognition process for an optical QR code, in accordance with an embodiment of the present subject matter.

[0029] FIGURE.4 illustrates another exemplary recognition process for an optical QR code, in accordance with an embodiment of the present subject matter.

[0030] FIGURE.5 illustrates an exemplary special pattern available to be used in a generation process for a two layered optical QR code, in accordance with an embodiment of the present subject matter.

[0031] FIGURE.6 illustrates an exemplary special pattern available to be used in a generation process for a three layered optical QR code, in accordance with an embodiment of the present subject matter.

[0032] FIGURE.7 illustrates a two layered optical QR code, in accordance with an embodiment of the present subject matter.

[0033] FIGURE.8 illustrates a three layered optical QR code, in accordance with an embodiment of the present subject matter.

[0034] FIGURE.9 illustrates another three layered optical QR code, in accordance with an embodiment of the present subject matter.

[0035] FIGURE.10 illustrates a mobile application employing an optical QR code used on handheld devices, in accordance with an embodiment of the present subject matter.

[0036] FIGURE.11 illustrates a block diagram illustrating one implementation of an optical QR code, in accordance with an embodiment of the present subject matter.

[0037] FIGURE.12 illustrates a flow chart of the method of generation of an optical QR code, in accordance with an embodiment of the present subject matter.

[0038] FIGURE.13 illustrates a flow chart of the method of recognition of an optical QR code, in accordance with an embodiment of the present subject matter. DETAILED DESCRIPTION OF THE INVENTION

[0039] The following is a detailed description of implementations of the present disclosure depicted in the accompanying drawings. The implementations are in such detail as to clearly communicate the disclosure. However, the amount of detail offered is not intended to limit the implementations. While aspects of described systems and methods for optical QR code generation and recognition can be implemented in any number of different computing systems, environments, and / or configurations, the embodiments are described in the context of the following exemplary system (s).

[0040] Integrating two or more QR codes elevates the intricacy of decoding algorithms, particularly when extracting information independently from each code. Custom applications become necessary and are implemented in a highly constrained manner due to the associated challenges. To address these limitations and others, a solution is proposed in the form of optical quick response (OQR) codes. These codes are monochromatic and designed to be compatible with existing QR code readers. The OQR codes presented here offer a robust and versatile solution compared to existing alternatives. Their monochrome nature allows them to be easily printed using any standard printer and effortlessly scanned using a common smartphone. Moreover, their usage does not necessitate the download of any specific applications, which significantly enhances user engagement. Because of this they can also be integrated in existing solution without any significant changes. They provide up to three times data storage capacity without losing on the robustness or any other advantage of QR code.

[0041] QR codes are an integral part of digital transactions to fetch the receiver’s banking details for fund transfers, specifically through UPI and digital wallets. However, these QR codes are vulnerable to cyber-attacks like Replay and Synchronized Token Lifting and Spending (STLS) attacks, where fraudsters try to capture these QR codes from a distance and generate a new QR code with the same data. Later they utilize it to transfer the funds to their accounts. However, replacing traditional QR codes with OQR codes will make it difficult for fraudsters to reproduce them. Accessing nearby and far-off QR code values in a short duration (especially nearby ones) will be challenging.

[0042] OQR codes can similarly prevent any attack that involves extracting the QR code’s embedded information from a distance for malicious purposes. For instance, QR codes are commonly used for login purposes which can be captured using CCTV cameras by fraudsters. This will not be possible with OQR codes, hence securing the login process.

[0043] OQR codes can effectively replace the marketing QR codes by providing different information based on the scanning distance. For instance, if a user scans a QR code from a distance, they can be informed about the USP of the product. Later if they scan it from a close distance, the same QR code can provide specific product details.

[0044] OQR codes offer a practical solution for navigation scenarios where precise instructions need to be tailored to the scanning distance, allowing users to be redirected to alternative destinations or routes. This is particularly valuable in situations where crowd avoidance is essential. For example: In crowded or event-packed locations, OQR codes strategically placed can guide users effectively. When scanned from a specific distance, these codes can provide alternative directions, helping users avoid congested areas and offering them alternative paths for a more pleasant navigation experience. Similarly, during emergencies, OQR codes can be used to provide real-time evacuation instructions. Close scans may give detailed escape routes, while distant scans could lead users to assembly points.

[0045] The distinguishing features of OQR encompass a trifecta of advantages. Primarily, it boasts a high data storage capacity, allowing for the efficient handling of extensive information. In addition to this, OQR places a premium on data privacy, ensuring that sensitive information remains secure and protected. Furthermore, its compatibility with public QR readers enhances its overall utility, providing a seamless integration with existing systems and devices. These features collectively position OQR as a versatile and secure solution for diverse data storage and sharing needs.

[0046] The present subject matter provides a distinctive structural transformation phase that enhances the robustness and security of the optical quick response (OQR). It also offers an optimal mask pattern tailored for OQR codes. Furthermore, the present subject matter introduces an optical QR code that yields varying values based on the scanning distance and is fully compatible with common QR decoders. The present subject matter incorporates special patterns leveraging the optical properties of camera lenses to introduce distance-dependent effects. The present subject matter yields an optical QR code with increased data storage capacity while maintaining public decodability. The methods introduced herein overcome the deficiencies and limitations of the existing solutions, at least in part, with a system and methods for automating and streamlining the key dimensions: agility, efficiency, and security.

[0047] FIGURE.1 is an exemplary optical quick response (QR) code illustration 100. The proposed next-generation QR code is an optical QR (OQR) code 102, as shown in Figure 1, it is developed to address the imperative to enhance data storage capacity in QR codes and introduce data privacy while upholding compatibility with existing publicly available QR code decoders.

[0048] The OQR code 102 maintains a similar structure to traditional monochrome QR codes, but their modules are adjusted to incorporate a distance-based effect. In essence, the OQR code 102 is created by merging two or three traditional QR codes into a single code. The two or three traditional QR codes could belong to the same version. The shared version across these distinct QR codes results in structurally similar OQR code 102 which facilitate in their compatibility with existing QR code readers. The OQR code 102 has been specially designed to tackle the demand for increased data storage capacity within QR codes, all the while ensuring their seamless compatibility with conventional QR code readers.

[0049] In one embodiment, an optical QR (OQR) code 102 is shown. The optical QR (OQR) code 102 is a 2-layered OQR code. One layer of the OQR code 102 is designated as a first QR code 104a or a “Near” QR code and another layer is designated as a last QR code 104b or a “Far” QR code. The first QR code 104a and the last QR code 104b are merged into a single OQR code 102 using special pattern-embedded modules unlike the conventional solid black or white modules using one of the methods disclosed in the present subject matter. These unique patterns are generated based on the specific combination of monochrome QR codes at each module location. In one example, in a 2-layered QR code, if the module in the Near QR code is white and the corresponding module in the Far QR code is black, the “Special Pattern Module 502(a)”, defined later in Figure 5, is used. These special patterns are specifically designed to leverage the optical property of the camera lens to incorporate a distance-based effect, i.e., they appear different when observed from different distances. As a result, different information can be extracted by scanning the same OQR code from different distances. In another example, the first QR code 104a or the “Near” QR code has a data “Moon” and the last QR code 104b or the “Far” QR code has a data “Sun”, they are merged into a single OQR code 102 using the method of generation of OQR and results into saving both the data points for further decoding.

[0050] In another embodiment, an optical QR (OQR) code 102a is shown. The optical QR (OQR) code 102 is a 3-layered OQR code 102a. One layer of the OQR code 102a is designated as a first QR code 106a or a “Very Near” QR code, a second layer of the OQR code 102 is designated as a middle QR code 106b or a “Near” QR code, and a third other layer is designated as a last QR code 106c or a “Far” QR code. The first QR code 106a, the middle QR code 106b and the last QR code 106c are merged into a single OQR code 102a using special pattern-embedded modules unlike the conventional solid black or white modules using one of the methods disclosed in the present subject matter. As a result, different information can be extracted by scanning the same OQR code from different distances. In one example, the first QR code 106a or the “Very Near” QR code has a data “Reduce”, the “Near” QR code 106b has a data “Reuse”, and the last QR code 106c or the “Far” QR code has a data “Recycle”, they are merged into a single OQR code 102a using the method of generation of OQR and results into saving all the three data points for further decoding.

[0051] FIGURE.2 is an exemplary generation process 200 for generating an optical QR (OQR) code 102.

[0052] An optical QR code 102 generation or an encoding process is detailed. The process of generating OQR codes involves merging 2 or 3 traditional monochrome QR codes 202 by stacking them on top of each other. In case of a 2-layered OQR code, lowest layer acts as the “Far” QR code, while the layer immediately above it functions as the “Near” QR code. In case of a 3-layered OQR code, there is an additional layer on top, serving as the “Very Near” QR code. The generation process for both 2-layer and 3-layer OQR codes remains the same, with the key difference lying in the number of special patterns used. In a 3-layer QR code, more special patterns are utilized compared to a 2-layer QR code. It is due to the increased number of possible combinations of monochrome QR codes 202 at each module location within the 3-layer structure.

[0053] The steps involved in generating 3-layered OQR codes is described in statement (1).Let the set QA be defined as:QA = {Q1, Q2, Q3} (1)where Q1, Q2 & Q3 represents the monochrome QR codes 202 with same version.

[0054] However, it’s worth noting that even when these two QR codes share the same version, their masking patterns might differ, which can reduce their structural similarity. Maintaining structural similarity is crucial because merging highly similar QR codes results in a reduced need for special patterns, thereby enhancing the robustness of the OQR code. Consequently, the initial step involves transforming these QR codes to maximize their structural similarity by determining an optimal mask pattern 204. The process is known as “Similarity Structure Transformation” and uses a similarity structure transformation method 206. Through extensive experimentation, it is observed that, in both the 2-layer and 3-layer OQR codes 102, 102a, the masking pattern corresponding to the “Near” QR code proved to be an optimal choice.

[0055] For the sake of clarity, let’s assume the following labelling: Q′1 serves as the “Very Near” QR code, Q′2 as the “Near” QR code and Q3 as the “Far” QR code. As a result, we obtain Q′A, represented in statement (2).Q′A = fm(fu(QA)) = {Q′1, Q′2, Q′3} (2)where fu & fm represent the unmasking and masking function. These QRs are then stacked onto each other while ensuring that the “Far” QR is at the bottom then “Near” QR and at last “Very Near” QR code (only in 3-layered OQR code).

[0056] Now, when we look for a specific location module within each QR code 102, we encounter 8 possible scenarios, in terms of special-patterned modules 208, because every module can be either black or white. Therefore, the eight possible scenarios are black-black-black, black-black-white, black-white-black, black-white-white, white-black-black, white-black-white, white-white-black & white-white-white. In case of 2-layer OQR code these combinations are limited to four.

[0057] When all three QR codes share the same color (black-black-black and white-white-white), the OQR code inherits the same color for that particular module. However, when other combinations are present, modules are replaced with special patterned-modules and embedded in the OQR’s. To illustrate, consider the scenario where the “Far” QR’s module color is black, the “Near” QR’s module color is white and the “Very Near” QR’s module is black. In this instance, SP2(c) serves as the module for OQR code. Notably, the outermost color of the module mirrors the “Far” QR’s module, the middle region corresponds to “Near” QRs module and the innermost pattern’s color is the same as the “Very Near” QR’s module. Table 1.1 & 1.2 mentions which special patterned-module is used in which scenario for both 2-layered and 3-layered OQR code, respectively.  S. No.Far-NearSpecial Pattern1Black-BlackSP 1(a)2Black-WhiteSP 1(b)3White-BlackSP 1(c)4White-WhiteSP 1(c)Table 1.1: Mapping of all possible combinations in 2-layer OQR codes with their corresponding special-patterned modules S.No.Far-Near-Very NearSpecial Pattern1Black-Black-BlackSP 2(a)2Black-Black-WhiteSP 2(b)3Black-White-BlackSP 2(c)4Black-White-WhiteSP 2(d)5White-Black-BlackSP 2(e)6White-Black-WhiteSP 2(f)7White-White-BlackSP 2(g)8White-White-WhiteSP 2(h)Table 1.2: Mapping of all possible combinations in 3-layer OQR codes with their corresponding special-patterned modules

[0058] A mapping 210 of the special-patterned modules 208 to a position pair of the stacked transitional set of QR codes is done. Using this table, all the modules are replaced based on the underlying combination, merged into a single OQR code 212 using special pattern-embedded modules and a final OQR code 102 is generated that provides different values when scanned from different distance. The design of these special pattern is based on the concept of Rayleigh Criterion for Limited Resolution. Rayleigh criterion defines the minimum distance between two light sources at which both the light sources can be resolved by an optical lens. Mathematically, it is written as: θ ≈ 1.22D λ D,where θ is the angular distance or separation between light sources, λ is the wavelength of the light and D is aperture size of the camera lens. Notably, the distance between the lens and the light sources plays a key role in defining the Rayleigh criterion.

[0059] On increasing the distance between the lens and the light sources, the separation between the light sources decreases. After a particular threshold distance, the separation between the light sources becomes less than the minimum distance at which both the light sources can be resolved. Special pattern modules consist of black and white regions, where the light sources are white regions which are separated by the black region. After a particular distance between the lens and the OQR code, the black region separating the white regions (light sources) in the special patterns reduces. This results in the merging of white regions, accompanied by a prevailing dominance of the white color. The outcome is the attainment of the desired OQR code, now enriched with the distance-based effects.

[0060] This strategy can be further extended to facilitate the merging of multiple QR codes in a similar fashion with multiple threshold distances to obtain different QR codes at different distances. Crucially, only up to three QR codes can be merged using this technique while retaining the capacity to distinguish them based on their respective threshold distance values. The final OQR code 102 is similar to an OQR code as described in other examples.

[0061] FIGURE.3 is an exemplary recognition process 300 for recognising a two layered optical QR code (OQR) 102. Decoding or an OQR code 102 recognition process can be done using a publicly available application or a custom application. A two layered OQR code 102 is generated by merging two traditional monochrome QR codes of the same version into a single code as explained in Figure.1. The two layered OQR code 102 is similar to an OQR code as described in other examples of the application. For reference, let’s consider the OQR code 102 has a first QR code and a last QR code embedded.

[0062] In one implementation, the OQR code 102 recognition process requires a publicly available application that captures a real-time image of the OQR code 102 from a readable medium 302. The OQR code 102 contains multiple values and can be extracted by changing a scanning distance. A custom application is not necessarily required. The OQR code 102 is a two layered OQR code and is acquired from the medium 302 by a user. In one example, the OQR code 102 is scanned from a scanning distance D1 that is less than a first scanning threshold DS1 by a QR scanning device 304. The publicly available application, of the QR scanning device 304, extracts a first data 308 from a first QR code 306 of the OQR 102. Further, the OQR code 102 is scanned from another scanning distance D2 that is more than the first scanning threshold DS1 by a QR scanning device 304a. The QR scanning device 304a can be a same device as the QR scanning device 304, used at a different distance. The publicly available application, of the QR scanning device 304a, extracts a last data 308a from a last QR code 306a of the OQR code 102.

[0063] In another implementation, an OQR code 102 recognition process requires a custom application that captures a real-time image of the OQR code 102 from a readable medium 302. The OQR code 102 contains multiple values and can be extracted without changing a scanning distance or breaching a first scanning threshold DS1. The custom application can decode all the values present in OQR code 102 using just a single frame, captured according to a “Near” distance in 2-layered OQR code 102 or captured from a distance D1 that is less than the first scanning threshold DS1. This is possible by digitally reducing size or blurring the OQR code 102. By using a custom application, there will be no need to change the scanning distance. The custom application is further detailed in Figure.10.

[0064] FIGURE.4 is another exemplary recognition process 400 for recognising a three layered optical QR code 102. Decoding or an OQR code 102a recognition process can be done using a publicly available application or a custom application. A three layered OQR code 102a is generated by merging three traditional monochrome QR codes of the same version into a single code as explained in Figure.1. The three layered OQR code 102 is similar to an OQR code as described in other examples of the application. For reference, let’s consider the OQR code 102a has a first QR code, a middle QR code and a last QR code embedded.

[0065] In one implementation, the OQR code 102a recognition process requires a publicly available application that captures a real-time image of the OQR code 102a from a readable medium 402. The OQR code 102a contains multiple values and can be extracted by changing a scanning distance. A custom application is not necessarily required. The OQR code 102a is a three layered OQR code and is acquired from the medium 402 by a user. In one example, the OQR code 102a is scanned from a scanning distance Da1 that is less than a first scanning threshold DS1 by a QR scanning device 404. The publicly available application, of the QR scanning device 404, extracts a first data 408 from a first QR code 406 of the OQR 102a. Further, the OQR code 102a is scanned from another scanning distance Da2 that is more than the first scanning threshold DS1 and less than a second threshold distance DS2 by a QR scanning device 404a. The QR scanning device 404a can be a same device as the QR scanning device 404, used at a different distance. The publicly available application, of the QR scanning device 404a, extracts a middle data 408a from a middle QR code 406a of the OQR code 102a. Still further, the OQR code 102a is scanned from another scanning distance Da3 that is more than the second scanning threshold DS2(and also more than the first scanning threshold DS1) by a QR scanning device 404b. The QR scanning device 404b can be a same device as the QR scanning device 404, used at a different distance. The publicly available application, of the QR scanning device 404b, extracts a third data 408b from a last QR code 406b of the OQR code 102a.

[0066] In another implementation, an OQR code 102a recognition process requires a custom application that captures a real-time image of the OQR code 102a from a readable medium 302. The OQR code 102a contains multiple values and can be extracted without changing a scanning distance or breaching a first scanning threshold DS1 or a second scanning threshold DS2. The custom application can decode all the values present in OQR code 102a using just a single frame, captured according to a “Very Near” distance in 3-layered OQR code 102a or captured from a distance Da1 that is less than the first scanning threshold DS1. This is possible by digitally reducing size or blurring the OQR code 102a. By using a custom application, there will be no need to change the scanning distances. The custom application is further detailed in Figure.10.

[0067] FIGURE.5 depicts various exemplary special pattern 500 available to be used in a generation process for a two layered optical QR code (OQR) 102.

[0068] An optical quick response (QR) code generation requires using an optimal mask pattern corresponding to a first monochrome QR code and transforming the first QR code and a last QR code using a similarity structure transformation, to create a transitional set of QR codes. Further, mapping a two layered special-patterned module 502 to a position pair of the stacked transitional set of QR codes and merging the transitional set of QR codes and the special-patterned modules 502 to generate an optical QR code 102.

[0069] Table 1.1 mentions which special patterned-module is used in which scenario for a 2-layered OQR code 102. A mapping 210 of the special-patterned modules 208 to a position pair of the stacked transitional set of QR codes is done. Using this table, all the modules are replaced based on the underlying combination, merged into a single OQR code 212 using special pattern-embedded modules and a final OQR code 102 is generated that provides different values when scanned from different distance.

[0070] In one example, QR code specifications define that there are four different modules in a special patterned-module 502 for a two layered OQR code 102, that can be merged to form a final two layered OQR code 102, which helps QR decoders extract the encoded information conveniently. These are represented as SP1(a) in 502a, SP1(b) in 502b, SP1(c) in 502c, and SP1(d) in 502d. The figure represents a type of special patterned-modules 502 with various examples, any such optical or visual patterns can be used, and the application is not restricted to use of any such examples.

[0071] FIGURE.6 depicts various exemplary special pattern 600 available to be used in a generation process for a three layered optical QR code (OQR) 102a.

[0072] An optical quick response (QR) code generation requires using an optimal mask pattern corresponding to a first monochrome QR code and transforming the first QR code, a middle QR code, and a last QR code using a similarity structure transformation, to create a transitional set of QR codes. Further, mapping a three layered special-patterned module 602 to a position pair of the stacked transitional set of QR codes and merging the transitional set of QR codes and the special-patterned modules 602 to generate an optical QR code 102a.

[0073] Table 1.2 mentions which special patterned-module is used in which scenario for a 3-layered OQR code 102a. A mapping 210 of the special-patterned modules 208 to a position pair of the stacked transitional set of QR codes is done. Using this table, all the modules are replaced based on the underlying combination, merged into a single OQR code 212 using special pattern-embedded modules and a final OQR code 102a is generated that provides different values when scanned from different distance.

[0074] In one example, QR code specifications define that there are eight different modules in a special patterned-module 602 for a three layered OQR code 102a, that can be merged to form a final three layered OQR code 102a, which helps QR decoders extract the encoded information conveniently. These are represented as SP2(a) in 602a, SP2(b) in 602b, SP2(c) in 602c, SP2(d) in 602d, SP2(e) in 602e, SP2(f) in 602f, SP2(g) in 602g, and SP2(h) in 602h. The figure represents a type of special patterned-modules 602 with various examples, any such optical or visual patterns can be used, and the application is not restricted to use of any such examples.

[0075] FIGURE.7 is a two layered optical QR code illustration 700 as shown and described further. An optical QR code 710 is depicted. The optical color QR code 710 is similar to an optical color QR code 102 as described earlier or otherwise in other examples. The optical QR code 710 has a first QR code in layer 702 and a last QR code in layer 706. The first QR code 702 is a “Near” QR code and the last QR code 706 is a “Far” QR code.

[0076] In one example, the optical QR code 710 is a result of encoding a keyword “Rajasthan” from the layer 702 and a keyword “Delhi” from the layer 706. The layer 702 is merged as a near value QR code and the layer 706 is merged as a far value QR code and steps 706 and 708, structurally transforms 702 and 704 respectively. The encoding happens using a method for quick response (QR) code generation as shown in illustrations of Figure. 2 or otherwise.

[0077] In one example, the optical QR code 710 decodes a near value QR code as “Cultivate a garden of dreams, tend to the seeds of passion and the flowers of success bloom in abundance” for the layer 702 using a public QR decoder. The optical QR code 710 decodes a far value QR code as “Dance with the rhythm of change, every step marks the evolution of your story in the grand ballet of life” for the layer 706 using the public QR decoder. The near value QR code can be decoded from a distance less than a first scan threshold, while the far value QR code can only be decoded from a distance more than a first scan threshold. Both the layer 702 and the layer 706 are recognised using a public QR code reader but, from different distances. A custom application as shown in a mobile application in Figure 10 can be used to decode the near value and the far value from a same scanning distance as well. The decoding happens using a method for quick response (QR) code recognition as shown in illustrations of Figure. 3, 4 or otherwise.

[0078] FIGURE.8 is a three layered optical QR code illustration 800 as shown and described further. An optical QR code 814 is depicted. The optical color QR code 814 is similar to an optical color QR code 102, 710 as described earlier or otherwise in other examples. The optical QR code 814 has a first QR code in layer 802, a middle QR code in layer 806, and a last QR code in layer 810. The first QR code 802 is a “Very Near” QR code, the middle QR code 806 is a “Near” QR code, and the last QR code 810 is a “Far” QR code.

[0079] In one example, the optical QR code 814 is a result of encoding a keyword “Tasman Sea” from the layer 802, a keyword “South China Sea” from the layer 806, and a keyword “North Atlantic Ocean” from the layer 810. The layer 802 is merged as a very near value QR code, the layer 806 is merged as a near value QR code, and the layer 810 is merged as a far value QR code and steps 804, 808 and 812, structurally transforms 802, 806 and 810 respectively. The encoding happens using a method for quick response (QR) code generation as shown in illustrations of Figure. 2 or otherwise.

[0080] In one example, the optical QR code 814 decodes a very near value QR code as “Argentina Buenos” for the layer 802 using a public QR decoder. Further, the optical QR code 814 decodes a near value QR code as “Canada Ottawa” for the layer 806 using the public QR decoder and also decodes a far value QR code as “Afghanistan Kabul” for the layer 810 using the public QR decoder. The very near value QR code can be decoded from a distance less than a first scan threshold, while the near value QR code can be decoded from a distance more than the first scan threshold but less than a second scan threshold, also the far value QR code can only be decoded from a distance more than the second scan threshold. All of the layer 802, the layer 806, and the layer 810 are recognised using a public QR code reader but, from different distances. A custom application as shown in a mobile application in Figure 10 can be used to decode the very near value, the near value and the far value from a same scanning distance as well. The decoding happens using a method for quick response (QR) code recognition as shown in illustrations of Figure. 3, 4 or otherwise.

[0081] FIGURE.9 is a three layered optical QR code illustration 900 as shown and described further. An optical QR code 914 is depicted. The optical color QR code 914 is similar to an optical color QR code 102, 710, 814 as described earlier or otherwise in other examples. The optical QR code 914 has a first QR code in layer 902, a middle QR code in layer 906, and a last QR code in layer 910. The first QR code 902 is a “Very Near” QR code, the middle QR code 906 is a “Near” QR code, and the last QR code 910 is a “Far” QR code.

[0082] In one example, the optical QR code 914 is a result of encoding a keyword “Artificial Intelligence” from the layer 902, a keyword “Machine Learning” from the layer 906, and a keyword “Deep Learning” from the layer 910. The layer 902 is merged as a very near value QR code, the layer 906 is merged as a near value QR code, and the layer 910 is merged as a far value QR code and steps 904, 908 and 912, structurally transforms 902, 906 and 910 respectively. The encoding happens using a method for quick response (QR) code generation as shown in illustrations of Figure. 2 or otherwise.

[0083] In one example, the optical QR code 914 decodes a very near value QR code as “Navigate life labyrinth with courage, kindness, and an unwavering sense of purpose” for the layer 902 using a public QR decoder. Further, the optical QR code 914 decodes a near value QR code as “Radiate positivity, for it is the beacon that illuminates even the darkest paths” for the layer 906 using the public QR decoder and also decodes a far value QR code as “Discover the extraordinary within the ordinary; life's magic lies in the details” for the layer 910 using the public QR decoder. The very near value QR code can be decoded from a distance less than a first scan threshold, while the near value QR code can be decoded from a distance more than the first scan threshold but less than a second scan threshold, also the far value QR code can only be decoded from a distance more than the second scan threshold. All of the layer 902, the layer 906, and the layer 910 are recognised using a public QR code reader but, from different distances. A custom application as shown in a mobile application in Figure 10 can be used to decode the very near value, the near value and the far value from a same scanning distance as well. The decoding happens using a method for quick response (QR) code recognition as shown in illustrations of Figure. 3, 4 or otherwise.

[0084] The OQR code decoding ratio also depends on various factors including illumination condition, camera resolution, print quality, presence of noise and distortions. The test results of OQR codes are as follows.Decoding Ratio = Total OQR codes decoded / Total number of OQR codes  2-Layer OQR3-Layer OQRDecoding Ratio10.93 In 3-layer OQR code, the decoding ratio drops because of the difficulty observed during the decoding of “Near QR Code” with lower error corrections (L & M). As the number of layers in the LWCQR increases the decoding ratio decreases. Further, LWCQR with lower error correction are more difficult to decode in comparison to higher error correction codes.

[0085] FIGURE.10 is a mobile application 1000 employing a method for recognising the optical QR code on handheld devices. A public QR code reader / decoder mobile application is used to decode / recognise the optical QR codes when OQR scanning is executed from varying distances.

[0086] A custom mobile application / app has been created to decode / recognise the values in an optical QR code. The custom mobile application ensures the compatibility of all optical QR codes when scanned from a same point / distance. In one depiction, a mobile device 1002 is shown with a number of mobile application / app as 1004a, 1004b. The custom mobile application is shown in 1006 on the device. The custom application 1006 employs the QR code recognition method as illustrated in description.

[0087] The custom application 1006 on the mobile device 1002 is used to scan an optical QR code printed on a paper or any medium for data transfer / read application. The custom application 1006 on the mobile device 1002 invokes the method for quick response (QR) code recognition as disclosed earlier and reads the multiple layer data encoded in the optical QR code 102. In one example, a handheld QR code scanning device 1002a is shown. The custom mobile application 1006 is used by the handheld QR code scanning device 1002a processor connected through an application in its memory or connected to a server outside the device 1002a. The custom application 1006 is used to scan any optical QR code printed on a paper or any medium for data transfer / read application from the same point / distance. Various types of QR code scanners can be used. The custom application 1006 can decode all the values present in OQR codes using just a single frame. This is possible by digitally reducing the size or blurring the OQR codes. Using the custom application, there is no need to change the scanning distance.

[0088] The generation and recognising codes of the mobile application can be designed as a combined application or also as two separate applications. Both the generation and recognising / decoding process can work offline without internet connectivity. The mobile applications can be use on a cell phone, a tablet, a computer or any other telecom device.

[0089] In one example, an open-source android-based application is utilized. Experimental data is as follows: a total of 1000 optical QR codes were developed & printed using two color printers and then decoded using two smartphones installed with the custom android application 1006. These optical QR codes comprises of 2-layer, and 3-layer optical QR codes with different QR versions & error corrections.

[0090] The custom application 1006 for optical QR code decoding / recognition operates in real-time, capturing frames to detect and decode QR codes, akin to popular scanning applications. If optical QR code decoding remains unsuccessful, another frame is captured, and the same process is repeated. For every frame the following scenarios are possible.

[0091] QR detected and successfully decoded: All the values present in the OQR are successfully extracted and promptly visible to the user.

[0092] QR detected and partially decoded: OQR consists of N monochrome QR codes and this scenario represents when some of the N monochrome QR codes weren’t decoded successfully due to factors such as lighting conditions, printing quality, capturing quality or tampering. Then, the application stores the partially extracted values, captures another frame and attempts to decode the OQR again. The values from both frames are merged and if all values are successfully extracted after merging, the application displays the result. Otherwise, the process is repeated with another frame.

[0093] QR detected but Not Decoded: This scenario represents when the frame contains the QR code but none of the stored values could be extracted by the decoding process. As a result, the application discards the current frame, captures another frame, and repeats the entire process.

[0094] QR code not detected: This indicates the absence of a QR code in the frame. Similar to other cases, the application discards the current frame and searches for a QR code in the next frame.

[0095] The custom application 1006 can discern these cases and display the applicable scenario for each frame.

[0096] In another embodiment, a custom application on a device is a simple QR code scanning application that scans a OQR from multiple distances and decides / recognizes the codes as required from multiple layers.

[0097] FIGURE.11 is a block diagram 1100 illustrating one implementation of an optical QR code. An optical color QR code is similar to an optical color QR code 102, 710, 814, 914 as described earlier or otherwise in other examples.

[0098] In one implementation, a quick response (QR) code system 1120 implements a method for OQR code generation and OQR code recognition on a server 1102, the system 1120 includes a processor(s) 1122, interface(s) 1124, and a memory 1126 coupled to the processor(s) 1122. The quick response (QR) code system 1120 is also implemented on a QR device 1002, 1002a or alike. The processor(s) 1122 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuitries, and / or any devices that manipulate signals based on application environment migration instructions. Among other capabilities, the processor(s) 1122 is configured to fetch and execute computer-readable instructions stored in the memory 1126. Although the present subject matter is explained by considering a scenario that the system is implemented as an application on a server, the systems and methods can be implemented in a variety of computing systems. The computing systems that can implement the described method(s) include, but are not restricted to, mainframe computers, workstations, personal computers, desktop computers, minicomputers, servers, multiprocessor systems, laptops, tablets, SCADA systems, smartphones, mobile computing devices and the like.

[0099] The interface(s) 1124 may include a variety of software and hardware interfaces, for example, a web interface, a graphical user interface, etc., allowing the system 1120 to interact with a user. Further, the interface(s) 1124 may enable the system 1120 to communicate with other computing devices, such as web servers and external data servers (not shown in figure). The interface(s) 1124 can facilitate multiple communications within a wide variety of networks and protocol types, including wired networks, for example LAN, cable, etc., and wireless networks such as WLAN, cellular, or satellite. The interface(s) 1124 may include one or more ports for connecting a number of devices to each other or to another server.

[00100] A network used for communicating between all elements may be a wireless network, a wired network or a combination thereof. The network can be implemented as one of the different types of networks, such as intranet, local area network LAN, wide area network WAN, the internet, and the like. The network may either be a dedicated network or a shared network. The shared network represents an association of the different types of networks that use a variety of protocols, for example, Hypertext Transfer Protocol HTTP, Transmission Control Protocol / Internet Protocol TCP / IP, Wireless Application Protocol WAP, and the like, to communicate with one another. Further the network may include a variety of network devices, including routers, bridges, servers, computing devices. The network further has access to storage devices residing at a client site computer, a host site server or computer, over the cloud, or a combination thereof and the like. The storage has one or many local and remote computer storage media, including one or many memory storage devices, databases, and the like.

[00101] The memory 1126 can include any computer-readable medium known in the art including, for example, volatile memory (e.g., RAM), and / or non-volatile memory (e.g., EPROM, flash memory, etc.). In one embodiment, the memory 1126 includes module(s) 1128 and system data 1142.

[00102] The modules 1128 further includes an input module 1130, an optimal mask module 1132, a SSTM module 1134, a stack module 1136, a mapping module 1138, a scanning module 1140, a merging module 1146, an identification module 1148, an optical decode module 1150, and other modules. The memory 1126 further includes system data 1142 that serves, amongst other things, as a repository for storing data fetched, processed, received and generated by one or more of the modules 1128. The system data 1142 includes, for example, operational data, workflow data, and other data at a storage 1144. The system data 1142 has the storage 1144, represented by 1144a, 1144b, …, n, as the case may be. In one embodiment, the system data 1142 has access to the other databases over a web or cloud network 1110. The storage 1144 includes multiple databases.

[00103] The input module 1130 is used for selecting an input set of QR codes.

[00104] The stack module 1136 is used for stacking a first QR code and a last QR code from the input set of the QR codes. The stack module 1136 keeps the first QR code at the top of the stack and the last QR code is at the bottom of the stack. The stack module 1136 stacks a middle QR code between the first QR code and the last QR code from the plurality of the QR codes.

[00105] The optimal mask module 1132 is used for using an optimal mask pattern, from a plurality of mask patterns, the optimal mask pattern is corresponding to the first QR code.

[00106] The SSTM module 1134 is used for transforming the input set of QR codes to create a transitional set of QR codes, the transitional set of QR codes retains data encoded in the input set of QR codes.

[00107] The mapping module 1138 is used for mapping a special-patterned module to a position pair of the stacked transitional set of QR codes. The mapping module 1138 also generates a look up table to map the special-patterned module to a position pair of the stacked transitional set of QR codes.

[00108] The merging module 1146 is used for merging the transitional set of QR codes and the special-patterned modules to generate an optical QR code 102.

[00109] The scanning module 1140 is used for acquiring an image from a scanning distance and extracting an optical QR code 102 from the image. The scanning module 1140 also comprises an image sensor for acquiring the image having the optical QR code 102 from the image.

[00110] The identification module 1148 is used for identifying a first scan threshold. Further, the identification module 1148 identifies a second scan threshold and the optical decode module 1150 extracts a last data from a last QR code of the optical QR code 102, the scanning distance is more than the second scan threshold.

[00111] The optical decode module 1150 is used for extracting a first data from a first QR code of the optical QR code 102, the scanning distance is less than the first scan threshold and for extracting a middle data from a middle QR code of the optical QR code 102, the scanning distance is more than the first scan threshold.

[00112] FIGURE.12 is a flow chart 1200 of the method of generation of an optical QR code. The optical color QR code is similar to as described earlier or otherwise in other examples.

[00113] Further, the flowcharts are provided to aid in understanding the illustrations and are not to be used to limit scope of the claims. The flowcharts depict example operations that can vary within the scope of the claims. Additional operations may be performed; fewer operations may be performed; the operations may be performed in parallel; and the operations may be performed in a different order.

[00114] At step 1202, the system is configured to select an input set of QR codes. In an embodiment, the selecting is by an interface 1124 of a QR device / system 1120 using an input module 1130.

[00115] At step 1204, the system is configured to stack a first QR code and a last QR code from the input set of the QR codes. In an embodiment, the stacking is by a processor 1122 of the QR device / system 1120 using a stack module 1136.

[00116] At step 1206, the system is configured to use optimal mask pattern from a plurality of mask patterns, the optimal mask pattern is corresponding to the first QR code. In an embodiment, the configuring is by the processor 1122 using an optimal mask module 1132 of modules 1128 residing in a memory 1126 coupled to the processor 1122.

[00117] At step 1208, the system is configured to transform the input set of QR codes using a similarity structure transformation, to create a transitional set of QR codes, the transitional set of QR codes retains data encoded in the input set of QR codes. In an embodiment, the transforming is by the processor 1122 using a SSTM module 1134 of the modules 1128 residing in the memory 1126 coupled to the processor 1122.

[00118] At step 1210, the system is configured to map a special-patterned module to a position pair of the stacked transitional set of QR codes. In an embodiment, mapping is by the processor 1122 using a mapping module 1138 of the modules 1128 residing in the memory 1126 coupled to the processor 1122.

[00119] At step 1212, the system is configured to merge the transitional set of QR codes and the special-patterned modules to generate an optical QR code. In an embodiment, merging is by the processor 1122 using a merging module 1146 of the modules 1128 residing in the memory 1126 coupled to the processor 1122.

[00120] FIGURE.13 is a flow chart 1300 of the method of recognition of an optical QR code. The optical color QR code is similar to as described earlier or otherwise in other examples.

[00121] At step 1302, the system is configured to acquire an image from a scanning distance and extracting an optical QR code from the image. In an embodiment, the acquiring is by a scanning module 1140 of an interface 1124 of a QR device / system 1120.

[00122] At step 1304, the system is configured to identify a first scan threshold. In an embodiment, the identifying is by a processor 1122 of the QR device / system 1120 using an identification module 1148 of modules 1128 residing in a memory 1126 coupled to the processor 1122.

[00123] At step 1306, the system is configured to extract a first data from a first QR code of the optical QR code, the scanning distance is less than the first scan threshold. In an embodiment, extracting is by the processor 1122 using an optical decode module 1150 of the modules 1128 residing in the memory 1126 coupled to the processor 1122.

[00124] At step 1308, the system is configured to extract a last data from a last QR code of the optical QR code, the scanning distance is more than the first scan threshold. In an embodiment, assigning is by the processor 1122 using the optical decode module 1150 of the modules 1128 residing in the memory 1126 coupled to the processor 1122.

[00125] Although implementations of system and method for optical QR code have been described in language specific to structural features and / or methods, it is to be understood that the appended claims are not necessarily limited to the specific features or methods described. Rather, the specific features and methods are disclosed as examples of implementations for optical QR code. CLAIMS1. A method for quick response (QR) code generation, the method comprising:selecting, by an interface (1124) of a QR device (1002), an input set of QR codes;stacking, by a processor (1122) of the QR device (1002), a first QR code and a last QR code from the input set of the QR codes;using an optimal mask pattern, by the processor (1122), from a plurality of mask patterns (202), the optimal mask pattern is corresponding to the first QR code;transforming the input set of QR codes, by the processor (1122), using a similarity structure transformation, to create a transitional set of QR codes, wherein the transitional set of QR codes retains data encoded in the input set of QR codes;mapping, by the processor (1122), a special-patterned module to a position pair of the stacked transitional set of QR codes;merging, by the processor (1122), the transitional set of QR codes and the special-patterned modules to generate an optical QR code (102).2. The method as claimed in claim 1, wherein the first QR code is at the top of the stack and the last QR code is at the bottom of the stack.3. The method as claimed in claim 1, the method further comprising: stacking a middle QR code between the first QR code and the last QR code from the plurality of the QR codes.4. The method as claimed in claim 1, wherein the transitional set of QR codes maximizes structural similarity of the input set of QR codes by using the optimal mask pattern.5. The method as claimed in claim 1, wherein the input set of QR codes has n number of monochrome codes.6. The method as claimed in claim 1, wherein the optimal mask pattern is selected from the plurality of mask patterns based on the first QR code, and a middle code and the last code are transformed using the optimal mask pattern.7. The method as claimed in claim 1, further comprising: generating a look up table to map the special-patterned module to a position pair of the stacked transitional set of QR codes.8. A method for quick response (QR) code recognition, the method comprising:acquiring an image, by an interface (1124) of a QR device (1002), from a scanning distance and extracting an optical QR code (102) from the image;identifying, by a processor (1122) of the QR device (1002), a first scan threshold;extracting, by the processor (1122), a first data from a first QR code of the optical QR code (102), wherein the scanning distance is less than the first scan threshold; extracting, by the processor (1122), a last data from a last QR code of the optical QR code (102), wherein the scanning distance is more than the first scan threshold.9. The method as claimed in claim 8, the method further comprising: identifying, by a processor (1122) of the QR device (1002), a second scan threshold; extracting, by the processor (1122), a middle data from a middle QR code of the optical QR code (102), wherein the scanning distance is more than the first scanning threshold and less than a second threshold, wherein the last QR code scanning distance is more than the second scanning threshold.10. The method as claimed in claim 7, wherein the QR device is a public QR decoder.11. The method as claimed in claim 7, wherein the image is acquired using an application installed on a mobile device.12. The method as claimed in claim 7, wherein an application acquires the image, extracts data values present in the optical QR code by digitally varying the scanning distance. 13. A system for quick response (QR) code generation, the system comprising:a processor (1122); anda memory (1126) coupled to the processor (1122), wherein the processor (1122) executes a plurality of modules (1128) stored in the memory (1126), and wherein the plurality of modules (1128) comprising:an input module (1130) for selecting an input set of QR codes;a stack module (1136) for stacking a first QR code and a last QR code from the input set of the QR codes;an optimal mask module (1132) for using an optimal mask pattern, from a plurality of mask patterns, the optimal mask pattern is corresponding to the first QR code;a SSTM module (1134) for transforming the input set of QR codes to create a transitional set of QR codes, wherein the transitional set of QR codes retains data encoded in the input set of QR codes;a mapping module (1138) for mapping a special-patterned module to a position pair of the stacked transitional set of QR codes;a merging module (1146) for merging the transitional set of QR codes and the special-patterned modules to generate an optical QR code (102).14. The system as claimed in claim 13, wherein the first QR code is at the top of the stack and the last QR code is at the bottom of the stack.15. The system as claimed in claim 13, the system further comprising: stacking a middle QR code between the first QR code and the last QR code from the plurality of the QR codes.16. The method as claimed in claim 1, wherein the mapping module (1138) generates a look up table to map the special-patterned module to a position pair of the stacked transitional set of QR codes.17. The system as claimed in claim 13, further comprising: a printing device coupled to the processor (1122), wherein the printing device prints the generated optical QR code (102) on a printing medium.18. A system for quick response (QR) code recognition, the system comprising:a processor (1122); anda memory (1126) coupled to the processor (1122), wherein the processor (1122) executes a plurality of modules (1128) stored in the memory (1126), and wherein the plurality of modules (1128) comprising:a scanning module (1140) for acquiring an image from a scanning distance and extracting an optical QR code (102) from the image;an identification module (1148) for identifying a first scan threshold;an optical decode module (1150) for extracting a first data from a first QR code of the optical QR code (102), wherein the scanning distance is less than the first scan threshold and for extracting a last data from a last QR code of the optical QR code (102), wherein the scanning distance is more than the first scan threshold.19. The system as claimed in claim 19, wherein the scanning module (1140) comprises an image sensor for acquiring the image having the optical QR code (102) from the image.20. The system as claimed in claim 18, wherein the identification module (1148) identifies a second scan threshold and the optical decode module (1150) extracts a middle data from a middle QR code of the optical QR code (102), wherein the scanning distance is more than the first scan threshold, wherein the last QR code scanning distance is more than the second scanning threshold.         ABSTRACTThe disclosure relates to quick response (QR) code 102 generation and recognition. An optical QR code generation includes an input module 1130 for selecting and stacking an input set of QR codes having a first QR code and a last QR code, and an optimal mask module 1132 for using an optimal mask pattern corresponding to the first QR code and a SSTM module 1134 for transforming the input set of QR codes to create a transitional set of QR codes that retains data encoded in the input set of QR codes. Further, a mapping module 1138 for mapping a special-patterned module to a position pair of the stacked transitional set of QR codes and a merging module 1146 for merging the transitional set of QR codes and the special-patterned modules to generate an optical QR code 102.  

Claims

1. A method for quick response (QR) code generation, the method comprising:selecting, by an interface (1124) of a QR device (1002), an input set of QR codes;stacking, by a processor (1122) of the QR device (1002), a first QR code and a last QR code from the input set of the QR codes;using an optimal mask pattern, by the processor (1122), from a plurality of mask patterns (202), the optimal mask pattern is corresponding to the first QR code;transforming the input set of QR codes, by the processor (1122), using a similarity structure transformation, to create a transitional set of QR codes, wherein the transitional set of QR codes retains data encoded in the input set of QR codes;mapping, by the processor (1122), a special-patterned module to a position pair of the stacked transitional set of QR codes;merging, by the processor (1122), the transitional set of QR codes and the special-patterned modules to generate an optical QR code (102). 2. The method as claimed in claim 1, wherein the first QR code is at the top of the stack and the last QR code is at the bottom of the stack. 3. The method as claimed in claim 1, the method further comprising: stacking a middle QR code between the first QR code and the last QR code from the plurality of the QR codes. 4. The method as claimed in claim 1, wherein the transitional set of QR codes maximizes structural similarity of the input set of QR codes by using the optimal mask pattern. 5. The method as claimed in claim 1, wherein the input set of QR codes has n number of monochrome codes. 6. The method as claimed in claim 1, wherein the optimal mask pattern is selected from the plurality of mask patterns based on the first QR code, and a middle code and the last code are transformed using the optimal mask pattern. 7. The method as claimed in claim 1, further comprising: generating a look up table to map the special-patterned module to a position pair of the stacked transitional set of QR codes. 8. A method for quick response (QR) code recognition, the method comprising:acquiring an image, by an interface (1124) of a QR device (1002), from a scanning distance and extracting an optical QR code (102) from the image;identifying, by a processor (1122) of the QR device (1002), a first scan threshold;extracting, by the processor (1122), a first data from a first QR code of the optical QR code (102), wherein the scanning distance is less than the first scan threshold; extracting, by the processor (1122), a last data from a last QR code of the optical QR code (102), wherein the scanning distance is more than the first scan threshold. 9. The method as claimed in claim 8, the method further comprising: identifying, by a processor (1122) of the QR device (1002), a second scan threshold; extracting, by the processor (1122), a middle data from a middle QR code of the optical QR code (102), wherein the scanning distance is more than the first scanning threshold and less than a second threshold, wherein the last QR code scanning distance is more than the second scanning threshold. 10. The method as claimed in claim 7, wherein the QR device is a public QR decoder. 11. The method as claimed in claim 7, wherein the image is acquired using an application installed on a mobile device. 12. The method as claimed in claim 7, wherein an application acquires the image, extracts data values present in the optical QR code by digitally varying the scanning distance.  13. A system for quick response (QR) code generation, the system comprising:a processor (1122); anda memory (1126) coupled to the processor (1122), wherein the processor (1122) executes a plurality of modules (1128) stored in the memory (1126), and wherein the plurality of modules (1128) comprising:an input module (1130) for selecting an input set of QR codes;a stack module (1136) for stacking a first QR code and a last QR code from the input set of the QR codes;an optimal mask module (1132) for using an optimal mask pattern, from a plurality of mask patterns, the optimal mask pattern is corresponding to the first QR code;a SSTM module (1134) for transforming the input set of QR codes to create a transitional set of QR codes, wherein the transitional set of QR codes retains data encoded in the input set of QR codes;a mapping module (1138) for mapping a special-patterned module to a position pair of the stacked transitional set of QR codes;a merging module (1146) for merging the transitional set of QR codes and the special-patterned modules to generate an optical QR code (102). 14. The system as claimed in claim 13, wherein the first QR code is at the top of the stack and the last QR code is at the bottom of the stack. 15. The system as claimed in claim 13, the system further comprising: stacking a middle QR code between the first QR code and the last QR code from the plurality of the QR codes. 16. The method as claimed in claim 1, wherein the mapping module (1138) generates a look up table to map the special-patterned module to a position pair of the stacked transitional set of QR codes. 17. The system as claimed in claim 13, further comprising: a printing device coupled to the processor (1122), wherein the printing device prints the generated optical QR code (102) on a printing medium. 18. A system for quick response (QR) code recognition, the system comprising:a processor (1122); anda memory (1126) coupled to the processor (1122), wherein the processor (1122) executes a plurality of modules (1128) stored in the memory (1126), and wherein the plurality of modules (1128) comprising:a scanning module (1140) for acquiring an image from a scanning distance and extracting an optical QR code (102) from the image;an identification module (1148) for identifying a first scan threshold;an optical decode module (1150) for extracting a first data from a first QR code of the optical QR code (102), wherein the scanning distance is less than the first scan threshold and for extracting a last data from a last QR code of the optical QR code (102), wherein the scanning distance is more than the first scan threshold.

19. The system as claimed in claim 19, wherein the scanning module (1140) comprises an image sensor for acquiring the image having the optical QR code (102) from the image. 20. The system as claimed in claim 18, wherein the identification module (1148) identifies a second scan threshold and the optical decode module (1150) extracts a middle data from a middle QR code of the optical QR code (102), wherein the scanning distance is more than the first scan threshold, wherein the last QR code scanning distance is more than the second scanning threshold.