Rectangular Micro QR CodeRectangular Micro QR Code (also known as rMQR Code) is two-dimensional (2D) matrix barcode invented and standardized in 2022[1] by Denso Wave as ISO/IEC 23941.[2] rMQR Code is designed as a rectangular variation of QR code and has the same parameters and applications as original QR code. But rMQR Code is more suitable for the rectangular areas and has difference between width and height up to 19 in R7x139 version. In this way it can be used in places where 1D barcodes are used. rMQR Code can replace Code 128 and Code 39 barcodes with more effective data encoding. rMQR Code consists of black squares and white square spaces arranged in a square grid on a white background. It has one finder pattern in left-top corner the same as in QR Code and small finder sub-pattern in right-bottom corner. Also, it has alignment and timing patterns to help with recognition. rMQR Code has Reed–Solomon error correction with ability to restore data from corrupted barcodes. As other 2D matrix barcodes it can be read with camera-based readers. As original QR code, rMQR Code can encode Unicode characters with Extended Channel Interpretation feature, bytes array and can natively encode Japanese characters in kanji encoding. In maximal R17x139 version rMQR Code can encode up to 361 numeric, 219 alphanumeric, 150 bytes and 92 kanji characters.[3] History and applicationrMQR Code was invented by Denso Wave company in 2022 and standardized as ISO/IEC 23941. It is an extension of QR Code for rectangular areas and designed to be a replacement of 1D barcodes.[4] rMQR Code is a novel barcode and at this time it not widely used, but it can unite QR Code features like error correction and Unicode encoding and 1D barcodes features like effective usage of rectangular areas. At this time rMQR Code yet is not widely supported by hardware printers and scanners but it is already supported by barcode libraries.[5][6] In this way rMQR Code can be used in:
Main advantages of rMQR Code are:
Barcode designRectangular Micro QR Code is designed for the better utilization of rectangular areas with all features of QR code. The symbology consists of black squares and white square spaces arranged in a square grid on a white background. Additionally, the barcode has inverse version with black background with inverse (luminance) color of elements.[2]: 6.2 rMQR Code has minimal height of 7X and minimal width of 27X, where maximal height is 17X and maximal width 139X.[2]: 7.1 rMQR Code has 32 versions with different combinations of height and width. Reed–Solomon error correction has two levels and allows to restore from 15% to 30% of corrupted data. rMQR Code symbol is constructed from the following elements:[10][2]: 6.3.1
Here are some samples of Rectangular Micro QR Code (rMQR Code):
VersionsRectangular Micro QR Code can be encoded in 32 versions with height from 7X to 17X and width from 27X to 139X. All versions have two Error correction levels: M and H, which have influence on possible encoded data size and error correction. All of Rectangular Micro QR Code versions and their features can be watched in the following table:[2]: 7.4.10
Finder patternsRectangular Micro QR Code has three types of finder pattern:
Main finder pattern is used to detect the barcode on image and its corruption can make barcode unrecognizable. Finder pattern has vertical and horizontal size 1-1-3-1-1. Finder sub pattern helps to detect bottom-right corner of the barcode. Finder sub pattern does not have guard zone and has vertical and horizontal size 1-1-1-1-1. Corner finder patterns allows to detect top-right and bottom-left corners and in some version of the rMQR Code can be cut or absent. Corner finder pattern looks like corner with white dot in the center with size 3-3. Alignment and timing patternsRectangular Micro QR Code has alignment[2]: 6.3.6 and timing patterns[2]: 6.3.5 which help to detect misaligned cells damage. Alignment pattern is represented as black rectangle 3X size rounding 1X white dot. Alignment pattern in some versions can be absent and number of alignment patterns depends from version, up to 8 alignment patterns.
Timing patterns boarding the barcode where area is clean from finder and alignment patterns and additionally split the barcode vertically in the area of alignment patterns. Format InformationRectangular Micro QR Code places format information[2]: 7.9 in the area of finder pattern and finder sub pattern. Format information is built as 18-bit sequence containing 6 data bits, 12 error correction bits calculated using the (18, 6) Extended BCH code. Format information is masked with 011111101010110010 sequence which is placed around finder pattern and 100000101001111011 for finder sub pattern.
The first data bit defines error correction level and the second 5 data bits defines version indicator.
Error correctionRectangular Micro QR Code uses Reed–Solomon error correction[2]: 7.5 and has two error correction levels M and H which can restore around 15 and 30% of damaged barcode area. All data in the barcode is split into error correction blocks (can be from 1 to 4 blocks) and error correction codewords are added to every block. After this, the blocks are united into single stream.
rMQR Code use Reed–Solomon error correction over the finite field or GF(28), the elements of which are encoded as bytes of 8 bits; the byte with a standard numerical value encodes the field element where is taken to be a primitive element satisfying . The primitive polynomial is , corresponding to the polynomial number 285, with initial root = 0. Data masking and placementRectangular Micro QR Code places data in the same way as QR code in two-module wide columns[2]: 7.7.3 commencing at the lower right corner of the symbol and running alternately upwards and downwards from the right to the left. Before the placement the data is masked[2]: 7.8.2 with single type of mask (instead of 8 types in QR Code):
Codeword sequence as a single bit stream is placed (starting with the most significant bit) in the two-module wide columns alternately upwards and downwards from the right to left of the symbol. In each column the bits are placed alternately in the right and left modules, moving upwards or downwards according to the direction of placement and skipping areas occupied by function patterns, changing direction at the top or bottom of the column. Each bit shall always be placed in the first available module position. When the data capacity of the symbol is such that it does not divide exactly into a number of 8-bit symbol characters, the appropriate number of remainder bits (1 to 7) shall be used to fill the symbol capacity. These remainder bits shall always have the value 0 before data masking. EncodingRectangular Micro QR Code can encode 361 numeric, 219 alphanumeric, 150 bytes and 92 kanji characters[11] in the maximal version R17x139. Additionally, it allows to encode Unicode data with Extended Channel Interpretation feature and encode GS1 data.[9] rMQR Code can encode data in 8 modes[2]: 7.4.1 where 4 modes are data encoding modes and 3 modes are indicator modes, like ECI. Also, every encoding sequence must be completed with special Terminator mode.
rMQR Code usually encodes data in mixed mode[2]: 7.4.7 which is a combination of existing modes for better compactification or special selectors like ECI designator.
Every compaction mode depends on version[2]: 7.4.1 to select number of bits which are used as encoded characters (numbers, letters, bytes) counter. The number of bits required for every version can be watched in the following table.
Numeric modeRectangular Micro QR Code encodes digits 0–9 in numeric mode.[2]: 7.4.3 The number sequence is split into 3 digits which converted to 10 bits (000 - 999). Last 2 and 1 numbers are encoded in 7 and 4 bits. rMQR Code in numeric mode encodes 001 as mode indicator, then numbers counter and then numbers sequence converted into bits.
Alphanumeric modeRectangular Micro QR Code encodes 2 alphanumeric characters[2]: 7.4.4 from the table into 11 bits stream with the following formula:
Final character is encoded into 6 bits. rMQR Code in alphanumeric mode encodes 010 as mode indicator, then alphanumeric counter and then bits stream which represents encoded characters. Byte modeRectangular Micro QR Code adds mode indicator 011 and bytes counter (version dependent) before the byte stream,[2]: 7.4.5 converted into 8-bit sequence. Kanji modeRectangular Micro QR Code encodes characters from 2 bytes JIS X 0208 2-byte character set[2]: 7.4.6 into 13 bits with the following rules:
rMQR Code adds mode indicator 100 and characters counter before the encoded kanji sequence. Unicode encoding with ECIRectangular Micro QR Code encodes Unicode characters with Extended Channel Interpretation.[2]: 7.4.2.2 Previously it encodes ECI designator which defines encoding charset. After this, it encodes byte array of Unicode characters encoded into byte stream with mix of numeric-text-byte modes. The default ECI designator is \000003(ISO/IEC 8859-1). ECI designator is encoded with mode indicator 111 and ECI assignment number which can be encoded in 8, 16 or 24 bits by rules from the following table.
GS1 encodingRectangular Micro QR Code can encode GS1 Data with FNC1 in first position.[2]: 7.4.8.2 Encoding mode indicator 101 switch the barcode symbol in GS1 Application Identifiers[9] mode. FNC1 cannot be used as split FNC1 character like in Code 128 symbol. Instead of this, % character should be used in alphanumeric mode or GS (0x1D) in byte mode. To encode % character in alphanumeric mode the character should be doubled %% and after decoding it should be transmitted as single % character. FNC1 in second positionFNC1 in second position[2]: 7.4.8.3 at this time has historical value and is not used. It was used to encode (obsolete at this time) mode identifier as first data codeword in Code 128 when FNC1 character is encoded in the second codeword (second position). More detail description you can read in ISO/IEC 15417[12] Annex B. Rectangular Micro QR Code encodes FNC1 in second position as mode indicator 111, 8-bit application identifier (AIM, but I am not sure) and any other mode/modes after this. See also
References
External links |