JP5285582B2 - Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program - Google Patents
Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program Download PDFInfo
- Publication number
- JP5285582B2 JP5285582B2 JP2009265947A JP2009265947A JP5285582B2 JP 5285582 B2 JP5285582 B2 JP 5285582B2 JP 2009265947 A JP2009265947 A JP 2009265947A JP 2009265947 A JP2009265947 A JP 2009265947A JP 5285582 B2 JP5285582 B2 JP 5285582B2
- Authority
- JP
- Japan
- Prior art keywords
- error correction
- dimensional code
- code
- parameter
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
本発明は、2次元コード生成のための符号化演算支援装置、2次元コード生成装置およびプログラムに関し、特に、デジタル放送受信装置において2次元コードを生成する技術に関する。 The present invention relates to an encoding operation support apparatus for generating a two-dimensional code, a two-dimensional code generating apparatus, and a program, and more particularly to a technique for generating a two-dimensional code in a digital broadcast receiving apparatus.
現在、QRコード(登録商標)を初めとする2次元コードが広く普及・活用されている。また、QRコードの読み取り装置(QRコードリーダ)も携帯電話機をはじめとして広く普及している。例えば印刷されたQRコードを、携帯電話機の読み取り機能を用いて読み取れば、ユーザによる文書の手入力操作を省略することができる。 Currently, two-dimensional codes such as QR code (registered trademark) are widely spread and utilized. QR code readers (QR code readers) are also widely used, including mobile phones. For example, if a printed QR code is read using a reading function of a mobile phone, a manual input operation of a document by a user can be omitted.
例えば、データ放送(電子文書)を受信するデジタル放送受信装置(以下、単に受信機ともいう)やパーソナルコンピュータ等の電子文書表示デバイス内において、2次元コードの閲覧者に依存しない共通情報(複数の電子文書デバイスに共通な情報)の文字列および2次元コードの閲覧者や閲覧デバイス固有である個別情報の文字列を含む個別2次元コードを生成し電子文書表示デバイス上に表示する技術が提案されている(例えば、非特許文献1参照)。非特許文献1では、QRコードの内容の一部とする共通情報の文字列として、例えば、インターネット上に存在する放送事業者のサーバ等へアクセスするためのURL(Uniform Resource Locator)が想定されている。また、QRコードの内容の他の一部とする個別情報の文字列として、B-CASカード番号が想定されている。
For example, in a digital broadcast receiving apparatus (hereinafter also simply referred to as a receiver) that receives a data broadcast (electronic document) or an electronic document display device such as a personal computer, common information that does not depend on a viewer of a two-dimensional code (a plurality of information) A technique has been proposed in which an individual two-dimensional code including a character string of information) common to an electronic document device and a character string of individual information unique to a viewer or a browsing device is generated and displayed on the electronic document display device. (For example, refer nonpatent literature 1). In
このような個別情報の文字列を想定している理由は、現在のデジタル放送では、B-CASカードを用いたアクセス制御を行っていることによる。B-CASカードは、受信機購入時に添付される形で、ユーザ(視聴者)に配布される。ユーザは、B-CASカードを入手する度に、放送事業者に対しB-CASカード番号登録(ユーザ登録)が必要となっている。放送事業者では、はがき、電話、インターネット、共通QRコード(1種類のQRコード)での登録を受け付けている。B-CASカード番号は、ほとんど連続性のない20桁の数字の羅列である。そのため、ユーザにとってみれば、いずれの方法でも容易な手続きとは言えないことが課題となっている。 The reason for assuming such a character string of individual information is that access control using a B-CAS card is performed in the current digital broadcasting. The B-CAS card is distributed to users (viewers) in the form attached when the receiver is purchased. Every time a user obtains a B-CAS card, B-CAS card number registration (user registration) is required for the broadcaster. Broadcasters accept registration via postcard, telephone, Internet, and common QR code (one type of QR code). The B-CAS card number is an enumeration of 20-digit numbers with little continuity. For this reason, the problem is that it is not an easy procedure for any user.
この課題を解決するために、放送事業者のサーバアドレスの一部(引数)として、B-CASカード番号などの受信機や視聴者固有の個別情報を含めたテキスト情報を、QRコードなどの2次元コードに変換し、インターネットを介して放送事業者に伝える方法が考えられる。非特許文献1に基づく方法により、表示制約の厳しいデータ放送上であっても、個別QRコードを表示することができる。
To solve this problem, text information including receiver-specific information such as B-CAS card numbers and viewer-specific information as part of the broadcaster's server address (argument), QR code, etc. A method of converting to a dimension code and transmitting it to the broadcaster via the Internet can be considered. By the method based on Non-Patent
ここで、従来の2次元コード生成処理の概要について図13を参照して説明する。例えば、共通情報の文字列と個別情報の文字列とを含むQRコードを、QRコード生成プログラムで生成する手順は次の通りである。電子文書表示デバイスの内部でQRコードを生成して画面表示させるには、まず、QRコードで実際に読み取らせたい内容を示すテキストを電子文書表示デバイスに入力する(S101)。読み取らせたい内容として、共通情報の文字列がURL、個別情報の文字列がカード番号の場合には、「http:// … 」等のテキストを入力することになる。 Here, an outline of a conventional two-dimensional code generation process will be described with reference to FIG. For example, a procedure for generating a QR code including a character string of common information and a character string of individual information by a QR code generation program is as follows. In order to generate a QR code and display it on the screen inside the electronic document display device, first, text indicating the content to be actually read by the QR code is input to the electronic document display device (S101). As contents to be read, if the character string of the common information is a URL and the character string of the individual information is a card number, a text such as “http: //...” Is input.
次に、電子文書表示デバイスの内部で入力テキストを符号化する(S102)。これにより、例えば「http:// … 」等のテキストは、「100110 … 」のような2進表現のビット列(データコード語列)に変換される。次に、電子文書表示デバイスの内部で数値演算を実行する。まず、誤り訂正符号を計算し、付加する。QRコードは、データコード語列に付加する一連の誤り訂正コード語を生成するリードソロモン(RS)誤り訂正を備えている。そこで、電子文書表示デバイスの内部でRS誤り訂正符号(誤り訂正コード語)を計算により求め、データコード語列に付加する(S103)。 Next, the input text is encoded inside the electronic document display device (S102). Thus, for example, a text such as “http: //...” Is converted into a binary-represented bit string (data code word string) such as “100110. Next, a numerical operation is executed inside the electronic document display device. First, an error correction code is calculated and added. The QR code includes Reed-Solomon (RS) error correction that generates a series of error correction code words to be added to the data code word string. Therefore, an RS error correction code (error correction code word) is obtained by calculation inside the electronic document display device and added to the data code word string (S103).
さらに、電子文書表示デバイスの内部でマスク処理を行う(S104)。マスク処理は、明モジュールと暗モジュールとをバランスよく配置してQRコードを読み取り易くするために、符号化領域で与えられたモジュールパターン(ビット列のパターン)と、複数のマスクパターン(マスク処理マトリックスパターン)とで順にXOR(排他的論理和)による変換を行い、変換結果の評価により、マスクパターンとして最適なものを選定し、最適なマスクパターンを用いた場合のXOR演算結果を出力する処理である。なお、QRコードは、8種類のマスクパターン{0,…,7}を備えている。そして、電子文書表示デバイスは、生成したQRコードを出力する(S105)。例えば、シンボルとして構成したQRコード(QRコードシンボル)を画面に表示させることができる。 Further, mask processing is performed inside the electronic document display device (S104). In the mask processing, a module pattern (bit string pattern) given in the encoding area and a plurality of mask patterns (mask processing matrix pattern) are arranged in order to make it easy to read the QR code by arranging the light module and the dark module in a balanced manner. ) And XOR (exclusive OR) in order, select the optimal mask pattern based on the evaluation of the conversion result, and output the XOR operation result when using the optimal mask pattern . The QR code has eight types of mask patterns {0,..., 7}. Then, the electronic document display device outputs the generated QR code (S105). For example, a QR code (QR code symbol) configured as a symbol can be displayed on the screen.
データ放送上に個別QRコードを表示するときには、それを読み取った携帯電話機等の表示画面に表示される英数字等のテキストが約50文字以上になると考えられる。つまり、個別QRコードのデータサイズが比較的大きいため、QRコードシンボルのサイズも大きくなる。電子文書表示デバイスの性能によっては、個別QRコードを表示するまでの所要時間が長くなる。非特許文献1には、マスク処理において、最適なマスクパターンを予め選定しておく技術が開示されている。これにより、非特許文献1の技術では、電子文書表示デバイスが古い受信機などの計算資源の乏しい環境であっても、電子文書表示デバイス内でQRコードを高速にシンボル化することができる。なお、QRコードは、日本工業規格(JIS X 0510)で仕様が定められている。
When an individual QR code is displayed on a data broadcast, text such as alphanumeric characters displayed on a display screen of a mobile phone or the like that has read the code is considered to be about 50 characters or more. That is, since the data size of the individual QR code is relatively large, the size of the QR code symbol is also increased. Depending on the performance of the electronic document display device, the time required to display the individual QR code becomes longer. Non-Patent
放送局からデータ放送コンテンツのBML(Broadcast Markup Language)文書にQRコード等の2次元コード生成プログラムを組み込んで配信する場合には、視聴者が所有する受信機に応じて、個別QRコードを表示するまでの所要時間に差が生じる。これは、受信機の性能には、メーカ、型番、製造年によってばらつきがあるためである。非特許文献1の技術は、マスク処理を高速に行うことで、個別QRコードの表示までの時間を短縮できるが、受信機性能のばらつきを考慮すると、より多くの視聴者の利便性を高めるためには、さらなる時間短縮が望ましい。
When a broadcast station incorporates a two-dimensional code generation program such as a QR code into a BML (Broadcast Markup Language) document of data broadcast content and distributes it, an individual QR code is displayed according to the receiver owned by the viewer There will be a difference in the time required until. This is because the receiver performance varies depending on the manufacturer, model number, and year of manufacture. The technology of Non-Patent
2次元コード生成処理において、高速化を阻害するような負荷が大きい処理は、誤り訂正符号の計算および付加処理であることが実験で確かめられている。個別QRコードは、URL等の共通情報と、カード番号等の個別情報とを内容に含むので、このうちURL等の共通情報に関しては放送局側で予め誤り訂正符号の計算および付加処理を行い、その処理結果を配信し、受信機の負荷を軽減する方法が考えられる。しかしながら、1つの個別QRコードを生成するために必要な誤り訂正符号の計算等の符号化演算処理を、複数の異なる装置間で、QRコード等の2次元コードの仕様に則って分担して行うという技術は開発されていなかった。 In a two-dimensional code generation process, it has been experimentally confirmed that a process with a large load that impedes speeding up is an error correction code calculation and addition process. The individual QR code includes common information such as a URL and individual information such as a card number in the contents, so for the common information such as a URL, the broadcast station side performs error correction code calculation and additional processing in advance, A method of distributing the processing result and reducing the load on the receiver can be considered. However, encoding operation processing such as calculation of an error correction code necessary for generating one individual QR code is shared among a plurality of different devices in accordance with the specifications of a two-dimensional code such as a QR code. No technology has been developed.
本発明は、以上のような問題点に鑑みてなされたものであり、共通情報の文字列および個別情報の文字列を含む2次元コードを生成して表示する装置の処理負荷を軽減することを課題とする。 The present invention has been made in view of the above problems, and reduces the processing load of an apparatus that generates and displays a two-dimensional code including a character string of common information and a character string of individual information. Let it be an issue.
前記課題を解決するために、請求項1に記載の符号化演算支援装置は、複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードを生成し電子文書表示デバイス上に表示する2次元コード生成装置と、2次元コードパラメータに基づいて前記共通情報および個別情報の文字列の符号化および誤り訂正計算を行う符号化演算を支援する符号化演算支援装置とを備える2次元コード生成システムにおける前記符号化演算支援装置であって、前記2次元コードパラメータが、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含み、前記符号化演算支援装置が、記憶手段と、ヘッダ付加・データ符号化手段と、誤り訂正符号化パラメータ変換手段と、誤り訂正符号計算手段と、出力手段と、を備えることとした。
In order to solve the above-described problem, the encoding calculation support device according to
かかる構成によれば、符号化演算支援装置は、記憶手段に、前記2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶している。ここで、2次元コードパラメータは、複数の誤り訂正ブロックを有する2次元コードの型に関するものなので、本来は2次元コード生成装置においてこれら複数の誤り訂正ブロックについて誤り訂正計算を行う必要があるが、符号化演算支援装置は、少なくとも1つの誤り訂正ブロックについて事前に誤り訂正計算を行う。また、符号化演算支援装置において、2次元コードは、QRコードであり、2次元コードの型とは、型番および誤り訂正レベルを示し、誤り訂正ブロックとはRSブロックを示し、誤り訂正パラメータとはRSブロック数およびデータコード語数を示す。 According to such a configuration, the encoding operation support apparatus includes an error correction encoding that is created in advance in association with the storage unit in association with the two-dimensional code parameter and an error correction parameter that specifies the number and size of the error correction blocks. A parameter conversion table is stored. Here, since the two-dimensional code parameter relates to the type of the two-dimensional code having a plurality of error correction blocks, it is originally necessary to perform error correction calculation for the plurality of error correction blocks in the two-dimensional code generation device. The coding operation support apparatus performs error correction calculation in advance for at least one error correction block. Further, the encoding operation supporting apparatus, two-dimensional code, Ri Ah in the QR code, and the type of 2-dimensional code to indicate the model number and error correction level, shows a RS block error correction block, and the error correction parameter Indicates the number of RS blocks and the number of data code words.
そして、符号化演算支援装置は、ヘッダ付加・データ符号化手段によって、前記共通情報の文字列の文字種のモードを符号化したモード指示子と、前記共通情報および個別情報の文字列の文字数の合計値を符号化した文字数指示子とを繋げてヘッダを生成し、前記文字種のモードで前記共通情報の文字列を符号化し、前記ヘッダに繋げることで第1ビット列データを生成する。つまり、この第1ビット列データは、ヘッダ情報と共通情報の文字列とを符号化したものである。 The encoding operation support device adds a mode indicator that encodes a character type mode of the character string of the common information and a total number of characters of the character string of the common information and the individual information by the header addition / data encoding means. A header is generated by connecting a character number indicator that encodes a value, a character string of the common information is encoded in the character type mode, and the first bit string data is generated by connecting to the header. That is, the first bit string data is obtained by encoding the header information and the character string of the common information.
そして、符号化演算支援装置は、誤り訂正符号化パラメータ変換手段によって、前記2次元コードパラメータを入力し、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記共通情報の文字列のデータ符号化後のビット数を算出すると共に、前記求めた誤り訂正パラメータから、前記第1ビット列データのビット数以下となるような最大の誤り訂正符号の誤り訂正ブロック数を算出し、各算出結果と前記求めた誤り訂正パラメータとにより誤り訂正計算手順を指定する。 Then, the encoding operation support device inputs the two-dimensional code parameter by the error correction encoding parameter conversion means, matches the input two-dimensional code parameter with reference to the error correction encoding parameter conversion table An error correction parameter to be calculated, the number of bits after data encoding of the character string of the common information is calculated, and the maximum error that is equal to or less than the number of bits of the first bit string data from the calculated error correction parameter The number of error correction blocks of the correction code is calculated, and an error correction calculation procedure is designated by each calculation result and the obtained error correction parameter.
ここで、2次元コードパラメータの入力に合わせて共通情報の文字列を入力する。また、2次元コードが例えばQRコードである場合には、誤り訂正ブロック数とはRSブロック数なので、バイト単位で表された数値をビット数に容易に換算できる。ここで、誤り訂正計算手順とは、誤り訂正ブロック数が「1」である場合には、誤り訂正ブロックがどのくらいのサイズであるのかだけを通知することを表し、誤り訂正ブロック数が複数の場合には、さらに、先頭から何番目の誤り訂正ブロックまで誤り訂正計算を行うのかといった情報を通知することを表す。そして、符号化演算支援装置に入力される共通情報の文字列の文字数に依存する第1ビット列データのサイズは、誤り訂正ブロック単位になるとは限らないが、誤り訂正ブロックは、ヘッダから順に割り当てられる。そして、演算可能な誤り訂正ブロック数の最大値を算出し、事前に誤り訂正符号の計算をすることで、2次元コード生成装置の処理負荷をより軽減することができる。 Here, a character string of common information is input in accordance with the input of the two-dimensional code parameter. Further, when the two-dimensional code is, for example, a QR code, the number of error correction blocks is the number of RS blocks, so that a numerical value expressed in bytes can be easily converted into the number of bits. Here, the error correction calculation procedure indicates that, when the number of error correction blocks is “1”, only the size of the error correction block is notified, and when the number of error correction blocks is plural. In addition, it indicates that information such as what error correction block from the head is to be subjected to error correction calculation is notified. The size of the first bit string data that depends on the number of characters in the common information character string input to the encoding operation support apparatus is not necessarily in error correction block units, but error correction blocks are assigned in order from the header. . Then, by calculating the maximum number of error correction blocks that can be calculated and calculating the error correction code in advance, the processing load on the two-dimensional code generation device can be further reduced.
そして、符号化演算支援装置は、誤り訂正符号計算手段によって、前記第1ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する。前記したように誤り訂正ブロック数は、第1ビット列データのヘッダから順に割り当てられるので、共通情報の文字列に相当する終端部分については指定から外れて誤り訂正計算されない部分が生じる場合がある。この部分については2次元コード生成装置にて誤り訂正計算を行うこととする。 Then, the coding operation support device uses the error correction code calculation means to indicate a data code indicating data corresponding to the error correction block designated by the error correction coding parameter conversion means among the number of bits of the first bit string data. Is subjected to error correction calculation to calculate an error correction code. As described above, since the number of error correction blocks is assigned in order from the header of the first bit string data, there is a case where a terminal part corresponding to the character string of the common information is not specified and a part that is not subjected to error correction calculation is generated. For this portion, error correction calculation is performed by the two-dimensional code generation device.
そして、符号化演算支援装置は、出力手段によって、前記データ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記算出した誤り訂正符号と、前記2次元コードパラメータとを出力する。これにより、符号化演算支援装置が出力するデータおよびパラメータの各情報を2次元コード生成装置が取得し、符号化演算支援装置が用いたものと同じ2次元コードパラメータにより、個別情報の文字列の符号化および誤り訂正計算を行い、さらに余剰ビットの誤り訂正計算を行うだけで、共通情報の文字列の大部分の符号化演算を省略することができる。 Then, the encoding operation support device uses the output means to output the data code, a surplus bit indicating a bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information, and the calculated error correction. The code and the two-dimensional code parameter are output. As a result, each piece of data and parameter information output by the encoding calculation support device is acquired by the two-dimensional code generation device, and the character string of the individual information is obtained using the same two-dimensional code parameters used by the encoding calculation support device. By performing encoding and error correction calculation, and further performing error correction calculation of surplus bits, most encoding operations of character strings of common information can be omitted.
また、請求項2に記載の符号化演算支援装置は、請求項1に記載の符号化演算支援装置において、前記記憶手段が、前記共通情報の文字列の文字種モードと、前記2次元コードの型と、前記共通情報文字列の許容最小文字数と、前記個別情報文字列の許容最大文字数との情報を予め関連付けて作成された2次元コードパラメータ変換表をさらに記憶し、2次元コードパラメータ生成手段をさらに備えることとした。
Also, the encoding calculation support device according to
かかる構成によれば、符号化演算支援装置は、記憶手段に2次元コードパラメータ変換表をさらに記憶している。そして、符号化演算支援装置は、2次元コードパラメータ生成手段によって、前記共通情報の文字列の文字数と、前記個別情報の文字列の文字数と、前記共通情報の文字列の文字種のモードとの各情報を入力し、前記2次元コードパラメータ変換表を参照し、前記入力された各情報に合致する2次元コードの型を含む2次元コードパラメータを生成する。この生成された2次元コードパラメータは、ヘッダ付加・データ符号化手段や誤り訂正符号化パラメータ変換手段で利用される。このように、予め2次元コードパラメータ変換表を作成しておくことで、共通情報および個別情報の文字列の文字数と、文字種のモードとを指定するだけで、最適な2次元コードパラメータを選択し、入力された共通情報の文字列を符号化および誤り訂正計算を行うことができる。 According to such a configuration, the encoding operation support apparatus further stores the two-dimensional code parameter conversion table in the storage unit. Then, the encoding operation support apparatus uses the two-dimensional code parameter generation unit to perform each of the number of characters of the character string of the common information, the number of characters of the character string of the individual information, and the character type mode of the character string of the common information. Information is input, the two-dimensional code parameter conversion table is referred to, and a two-dimensional code parameter including a type of the two-dimensional code that matches the input information is generated. The generated two-dimensional code parameter is used by a header addition / data encoding unit and an error correction encoding parameter conversion unit. Thus, by creating a two-dimensional code parameter conversion table in advance, the optimum two-dimensional code parameters can be selected simply by specifying the number of characters in the character strings of the common information and individual information, and the character type mode. The character string of the input common information can be encoded and error correction calculation can be performed.
また、請求項3に記載の符号化演算支援装置は、請求項2に記載の符号化演算支援装置において、前記2次元コードパラメータ生成手段が、外部から、前記2次元コードの型の優先順位を取得し、前記入力された各情報に合致する2次元コードの型の候補が複数ある場合には、前記取得した優先順位にしたがって前記2次元コードパラメータを生成することとした。
The encoding operation support device according to
かかる構成によれば、符号化演算支援装置は、優先順位にしたがって2次元コードパラメータを生成するので、符号化演算支援装置の利用者が所望の基準で優先順位を指定することで、符号化演算支援装置の利用者の利便性を向上させることができる。例えば、用途に応じて、データサイズ、誤り訂正レベル、共通情報の文字数のいずれかにおいて、優先順位を割り当てることができる。 According to such a configuration, the encoding calculation support device generates a two-dimensional code parameter according to the priority order, so that the user of the encoding calculation support device designates the priority order according to a desired criterion, so that the encoding calculation support device The convenience of the user of the support device can be improved. For example, the priority can be assigned in any of the data size, the error correction level, and the number of characters of the common information according to the use.
また、請求項4に記載の符号化演算支援装置は、請求項1に記載の符号化演算支援装置において、2次元コードパラメータ入力手段をさらに備えることとした。 According to a fourth aspect of the present invention, there is provided a coding operation support apparatus according to the first aspect, further comprising a two-dimensional code parameter input unit.
かかる構成によれば、符号化演算支援装置は、2次元コードパラメータ入力手段によって、外部から前記2次元コードパラメータを入力する。例えば、共通情報および個別情報の文字列の文字数が固定された専用の個別2次元コードを生成するといった用途の場合には、外部から2次元コードパラメータを入力するだけの簡易構成とすることができる。 According to such a configuration, the encoding operation support apparatus inputs the two-dimensional code parameter from the outside by the two-dimensional code parameter input unit. For example, in the case of generating a dedicated individual two-dimensional code in which the number of characters in the character strings of the common information and the individual information is fixed, a simple configuration in which only two-dimensional code parameters are input from the outside can be achieved. .
また、請求項5に記載の符号化演算支援プログラムは、複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードの生成過程で行う文字列の符号化および誤り訂正計算を行う符号化演算を支援する符号化演算支援プログラムであって、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含む2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段を備えたコンピュータを、ヘッダ付加・データ符号化手段、誤り訂正符号化パラメータ変換手段、誤り訂正符号計算手段、出力手段として機能させるためのプログラムであることとした。
The encoding calculation support program according to
かかる構成によれば、符号化演算支援プログラムは、ヘッダ付加・データ符号化手段によって、前記共通情報の文字列の文字種のモードを符号化したモード指示子と、前記共通情報および個別情報の文字列の文字数の合計値を符号化した文字数指示子とを繋げてヘッダを生成し、前記文字種のモードで前記共通情報の文字列を符号化し、前記ヘッダに繋げることで第1ビット列データを生成する。 According to such a configuration, the encoding calculation support program includes a mode indicator in which the character type of the character string of the common information is encoded by the header addition / data encoding means, and the character string of the common information and the individual information. A header is generated by connecting a character number indicator that encodes the total value of the number of characters, and a character string of the common information is encoded in the character type mode, and the first bit string data is generated by connecting to the header.
そして、符号化演算支援プログラムは、誤り訂正符号化パラメータ変換手段によって、前記2次元コードパラメータを入力し、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記共通情報の文字列のデータ符号化後のビット数を算出すると共に、前記求めた誤り訂正パラメータから、前記第1ビット列データのビット数以下となるような最大の誤り訂正符号の誤り訂正ブロック数を算出し、各算出結果と前記求めた誤り訂正パラメータとにより誤り訂正計算手順を指定する。 Then, the coding operation support program inputs the two-dimensional code parameter by the error correction coding parameter conversion means, matches the input two-dimensional code parameter with reference to the error correction coding parameter conversion table An error correction parameter to be calculated, the number of bits after data encoding of the character string of the common information is calculated, and the maximum error that is equal to or less than the number of bits of the first bit string data from the calculated error correction parameter The number of error correction blocks of the correction code is calculated, and an error correction calculation procedure is designated by each calculation result and the obtained error correction parameter.
そして、符号化演算支援プログラムは、誤り訂正符号計算手段によって、前記第1ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する。 Then, the encoding operation support program uses the error correction code calculation means to generate a data code indicating data corresponding to the error correction block designated by the error correction coding parameter conversion means, out of the number of bits of the first bit string data. Is subjected to error correction calculation to calculate an error correction code.
そして、符号化演算支援プログラムは、出力手段によって、前記データ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記算出した誤り訂正符号と、前記2次元コードパラメータとを出力する。そして、符号化演算支援プログラムにおいて、前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする。 The encoding operation support program uses the output means to output the data code, the surplus bits indicating the bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information, and the calculated error correction. The code and the two-dimensional code parameter are output. In the encoding operation support program, the two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter is The number of RS blocks and the number of data code words are indicated.
前記課題を解決するために、請求項6に記載の2次元コード生成装置は、複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードを生成し電子文書表示デバイス上に表示する2次元コード生成装置と、2次元コードパラメータに基づいて前記共通情報および個別情報の文字列の符号化および誤り訂正計算を行う符号化演算を支援する符号化演算支援装置とを備える2次元コード生成システムにおける前記2次元コード生成装置であって、前記2次元コードパラメータが、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含み、前記2次元コード生成装置が、記憶手段と、個別情報入力手段と、データ・パラメータ入力手段と、データ符号化・余剰ビット付加手段と、誤り訂正符号化パラメータ変換手段と、誤り訂正符号計算手段と、2次元コード化手段とを備えることとした。
In order to solve the above-described problem, the two-dimensional code generation device according to
かかる構成によれば、2次元コード生成装置は、記憶手段に、前記2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する。そして、2次元コード生成装置は、個別情報入力手段によって、前記個別情報を入力する。ここで、個別情報は、2次元コード生成装置で生成される2次元コードの閲覧者や電子文書表示デバイス固有の情報である。 According to such a configuration, the two-dimensional code generation device includes an error correction coding created in advance by associating the two-dimensional code parameter with an error correction parameter that specifies the number and size of the error correction blocks in the storage unit. Store the parameter conversion table. Then, the two-dimensional code generation device inputs the individual information by the individual information input means. Here, the individual information is information unique to the viewer of the two-dimensional code generated by the two-dimensional code generation device and the electronic document display device.
そして、2次元コード生成装置は、データ・パラメータ入力手段によって、前記符号化演算支援装置で生成されたデータおよびパラメータとして、前記共通情報の文字列を符号化してヘッダに繋げた第1ビット列データのビット数のうち、予め指定された誤り訂正ブロックに該当するデータを示すデータ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記データ符号から算出された誤り訂正符号と、前記2次元コードパラメータとを入力する。 Then, the two-dimensional code generation device encodes the character string of the common information as data and parameters generated by the encoding operation support device by the data / parameter input means and connects the first bit string data connected to the header. Of the number of bits, a data code indicating data corresponding to a previously specified error correction block, a surplus bit indicating a bit string that has not been subjected to error correction calculation among the encoded bit string of the common information, and The error correction code calculated from the data code and the two-dimensional code parameter are input.
そして、2次元コード生成装置は、データ符号化・余剰ビット付加手段によって、前記入力された個別情報を符号化し、前記余剰ビットに繋げることで第2ビット列データを生成する。つまり、この第2ビット列データは、共通情報の文字列の終端部分と、個別情報の文字列とを符号化したものである。そして、2次元コード生成装置は、誤り訂正符号化パラメータ変換手段によって、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記求めた誤り訂正パラメータにより誤り訂正計算手順を指定する。なお、2次元コードパラメータは、複数の誤り訂正ブロックを有する2次元コードの型に関するものなので、符号化演算支援装置の側で発生した余剰ビットを2次元コード生成装置の側で追加することで、全体で見れば、誤り訂正ブロック単位で誤り訂正計算を行っていることになる。 Then, the two-dimensional code generation device encodes the input individual information by data encoding / surplus bit adding means, and generates the second bit string data by connecting to the surplus bits. That is, the second bit string data is obtained by encoding the end part of the character string of the common information and the character string of the individual information. Then, the two-dimensional code generation device refers to the error correction encoding parameter conversion table by using the error correction encoding parameter conversion means to determine an error correction parameter that matches the input two-dimensional code parameter, and The error correction calculation procedure is specified by the error correction parameter. Since the two-dimensional code parameter relates to the type of the two-dimensional code having a plurality of error correction blocks, by adding the surplus bits generated on the encoding operation support device side on the two-dimensional code generation device side, As a whole, error correction calculation is performed in units of error correction blocks.
そして、2次元コード生成装置は、誤り訂正符号計算手段によって、前記第2ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する。そして、2次元コード生成装置は、2次元コード化手段によって、前記入力された2次元コードパラメータ、データ符号および誤り訂正符号と、前記第2ビット列データに含まれるデータ符号および前記算出された誤り訂正符号とを用いて前記2次元コードを生成する。そして、2次元コード生成装置において、前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする。これにより、2次元コード生成装置は、誤り訂正計算の演算に関しては、2次元コードに含まれる共通情報の文字列と個別情報の文字列とのうち、余剰ビットに相当する共通情報の一部と個別情報とについて行うだけで済む。つまり、共通情報の文字列の大部分の誤り訂正計算を省略することができる。そのため、計算資源の乏しいBMLやHTML(Hyper Text Markup Language)等の電子文書を閲覧するための電子文書表示デバイス上で、高速に2次元コードを生成・表示することができる。 Then, the two-dimensional code generation device uses a data code indicating data corresponding to the error correction block designated by the error correction coding parameter conversion means out of the number of bits of the second bit string data by the error correction code calculation means. Is subjected to error correction calculation to calculate an error correction code. Then, the two-dimensional code generation device uses the two-dimensional encoding means to input the input two-dimensional code parameter, data code and error correction code, data code included in the second bit string data, and the calculated error correction. The two-dimensional code is generated using a code. In the two-dimensional code generation device, the two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter is The number of RS blocks and the number of data code words are indicated. As a result, the two-dimensional code generation device, regarding the error correction calculation operation, includes a part of the common information corresponding to the surplus bits in the character string of the common information and the character string of the individual information included in the two-dimensional code. All you have to do is individual information. That is, most of the error correction calculation of the common information character string can be omitted. Therefore, it is possible to generate and display a two-dimensional code at high speed on an electronic document display device for browsing an electronic document such as BML or HTML (Hyper Text Markup Language), which has few computational resources.
また、請求項7に記載の2次元コード生成プログラムは、複数の2次元コード生成装置において共通な共通情報の文字列と、各2次元コード生成装置が個別に取得する個別情報の文字列とを含む2次元コードを生成する2次元コード生成プログラムであって、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含む2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段を備えたコンピュータを、個別情報入力手段、データ・パラメータ入力手段、データ符号化・余剰ビット付加手段、誤り訂正符号化パラメータ変換手段、誤り訂正符号計算手段、2次元コード化手段として機能させるためのプログラムであることとした。 The two-dimensional code generation program according to claim 7 includes: a character string of common information common to a plurality of two-dimensional code generation devices; and a character string of individual information acquired individually by each two-dimensional code generation device. A two- dimensional code generation program for generating a two- dimensional code including: a two-dimensional code type having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string A computer having storage means for storing an error correction coding parameter conversion table created in advance by associating a two-dimensional code parameter including information and an error correction parameter specifying the number and size of the error correction blocks, Information input means, data / parameter input means, data encoding / surplus bit addition means, error correction encoding parameter conversion means, Ri correction code calculating unit, it was to be a program for functioning as a two-dimensional coding means.
かかる構成によれば、2次元コード生成プログラムは、個別情報入力手段によって、前記個別情報を入力する。そして、2次元コード生成プログラムは、データ・パラメータ入力手段によって、入力データおよび入力パラメータとして、前記共通情報の文字列を符号化してヘッダに繋げた第1ビット列データのビット数のうち、予め指定された誤り訂正ブロックに該当するデータを示すデータ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記データ符号から算出された誤り訂正符号と、前記2次元コードパラメータとを入力する。 According to such a configuration, the two-dimensional code generation program inputs the individual information by the individual information input unit. The two-dimensional code generation program is designated in advance by the data / parameter input means out of the number of bits of the first bit string data encoded as the input data and the input parameters and linked to the header. A data code indicating data corresponding to the error correction block, a surplus bit indicating a bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information character string, and an error correction calculated from the data code A code and the two-dimensional code parameter are input.
そして、2次元コード生成プログラムは、データ符号化・余剰ビット付加手段によって、前記入力された個別情報を符号化し、前記余剰ビットに繋げることで第2ビット列データを生成する。そして、2次元コード生成プログラムは、誤り訂正符号化パラメータ変換手段によって、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記求めた誤り訂正パラメータにより誤り訂正計算手順を指定する。 The two-dimensional code generation program generates the second bit string data by encoding the input individual information by the data encoding / surplus bit adding means and connecting the encoded individual information to the surplus bits. The two-dimensional code generation program obtains an error correction parameter that matches the input two-dimensional code parameter by referring to the error correction coding parameter conversion table by the error correction coding parameter conversion means, The error correction calculation procedure is specified by the error correction parameter.
そして、2次元コード生成プログラムは、誤り訂正符号計算手段によって、前記第2ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する。そして、2次元コード生成プログラムは、2次元コード化手段によって、前記入力された2次元コードパラメータ、データ符号および誤り訂正符号と、前記第2ビット列データに含まれるデータ符号および前記算出された誤り訂正符号とを用いて前記2次元コードを生成する。そして、2次元コード生成プログラムにおいて、前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする。 The two-dimensional code generation program uses the error correction code calculation means to generate a data code indicating data corresponding to the error correction block designated by the error correction coding parameter conversion means, out of the number of bits of the second bit string data. Is subjected to error correction calculation to calculate an error correction code. Then, the two-dimensional code generation program uses the two-dimensional encoding means to input the input two-dimensional code parameter, data code and error correction code, data code included in the second bit string data, and the calculated error correction. The two-dimensional code is generated using a code. In the two-dimensional code generation program, the two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter is The number of RS blocks and the number of data code words are indicated.
請求項1に記載の発明によれば、符号化演算支援装置は、共通情報の文字列の大部分およびヘッダ情報を符号化したデータ符号と、その誤り訂正符号と、符号化演算に利用した2次元コードパラメータと、共通情報の文字列の一部分に相当する余剰ビットとを出力する。したがって、これらの出力情報を利用すれば、2次元コードを生成して表示する2次元コード生成装置の処理負荷を軽減することができる。 According to the first aspect of the present invention, the encoding operation support apparatus uses a data code obtained by encoding most of the character string of the common information and the header information, its error correction code, and 2 used for the encoding operation. A dimension code parameter and a surplus bit corresponding to a part of a character string of common information are output. Therefore, if these output information is used, the processing load of the two-dimensional code generation device that generates and displays the two-dimensional code can be reduced.
請求項2に記載の発明によれば、符号化演算支援装置は、予め作成された2次元コードパラメータ変換表を備えているので、共通情報および個別情報の文字列の文字数と、文字種のモードとを指定するだけで、最適な2次元コードパラメータを選択することができる。 According to the second aspect of the present invention, since the encoding operation support apparatus includes the two-dimensional code parameter conversion table created in advance, the number of characters of the character strings of the common information and the individual information, the character type mode, The optimum two-dimensional code parameter can be selected simply by specifying.
請求項3に記載の発明によれば、符号化演算支援装置は、優先順位にしたがって2次元コードパラメータを生成するので、符号化演算支援装置の利用者の利便性を向上させることができる。 According to the third aspect of the present invention, since the encoding calculation support device generates the two-dimensional code parameter according to the priority order, the convenience of the user of the encoding calculation support device can be improved.
請求項4に記載の発明によれば、符号化演算支援装置は、2次元コードパラメータを外部から入力するので、装置内部で生成する場合に比べて簡易な構成とすることができる。 According to the fourth aspect of the present invention, since the encoding operation support apparatus inputs the two-dimensional code parameters from the outside, it can have a simpler configuration than that generated in the apparatus.
請求項5に記載の発明によれば、符号化演算支援プログラムは、共通情報の文字列の大部分およびヘッダ情報を符号化したデータ符号と、その誤り訂正符号と、符号化演算に利用した2次元コードパラメータと、共通情報の文字列の一部分に相当する余剰ビットとをコンピュータに出力させる。したがって、これらの出力情報を利用すれば、2次元コードを生成して表示する2次元コード生成装置の処理負荷を軽減することができる。 According to the fifth aspect of the present invention, the encoding operation support program uses a data code obtained by encoding most of the character string of the common information and the header information, its error correction code, and 2 used for the encoding operation. The computer outputs the dimension code parameter and surplus bits corresponding to a part of the character string of the common information. Therefore, if these output information is used, the processing load of the two-dimensional code generation device that generates and displays the two-dimensional code can be reduced.
請求項6に記載の発明によれば、2次元コード生成装置は、符号化演算支援装置から出力されるデータ符号と、その誤り訂正符号と、2次元コードパラメータと、余剰ビットとを利用することで、共通情報の文字列の大部分の誤り訂正計算を省略することができるので、処理負荷を軽減することができる。
According to the invention described in
請求項7に記載の発明によれば、2次元コード生成プログラムは、共通情報の文字列の大部分とヘッダ情報とを符号化したデータ符号と、その誤り訂正符号と、2次元コードパラメータと、余剰ビットとを利用することで、共通情報の文字列の大部分の誤り訂正計算を省略することができるので、コンピュータの処理負荷を軽減させることができる。 According to the invention described in claim 7, the two-dimensional code generation program includes a data code obtained by encoding most of the character string of the common information and the header information, an error correction code thereof, a two-dimensional code parameter, By using the surplus bits, it is possible to omit the error correction calculation for most of the character strings of the common information, so that the processing load on the computer can be reduced.
以下、本発明に係る符号化演算支援装置、2次元コード生成装置およびデジタル放送送信装置を実施するため形態(以下「実施形態」という)について図面を参照して詳細に説明する。以下では、説明の都合上、符号化演算支援装置および2次元コード生成装置を備える2次元コード生成システムの第1実施形態、この2次元コード生成システムをデジタル放送システムに適用する場合のデジタル放送送信装置の実施形態、2次元コード生成システムの第2ないし第5実施形態を順次説明することとする。 DESCRIPTION OF EMBODIMENTS Hereinafter, a mode for carrying out an encoding operation support device, a two-dimensional code generation device, and a digital broadcast transmission device according to the present invention (hereinafter referred to as “embodiment”) will be described in detail with reference to the drawings. In the following, for convenience of explanation, a first embodiment of a two-dimensional code generation system including an encoding calculation support device and a two-dimensional code generation device, and digital broadcast transmission when this two-dimensional code generation system is applied to a digital broadcast system Embodiments of the apparatus, second to fifth embodiments of the two-dimensional code generation system will be described sequentially.
(第1実施形態)
2次元コード生成システムは、図1に示す符号化演算支援装置1および図2に示す受信機(2次元コード生成装置)2を備える。
2次元コード生成装置2は、共通情報の文字列および個別情報の文字列を含む2次元コードを生成し電子文書表示デバイス上に表示するものである。
符号化演算支援装置1は、2次元コードパラメータに基づいて共通情報および個別情報の文字列の符号化および誤り訂正計算を行う符号化演算を支援するものである。
これら符号化演算支援装置1および2次元コード生成装置2は、例えば、CPU等の演算装置と、メモリ、ハードディスク等の記憶装置(記憶手段)と、マウスやキーボード等の外部から情報の入力を検出する入力装置と、外部との各種情報の送受信を行うインタフェース装置と、LCD(Liquid Crystal Display)等の表示装置を備えたコンピュータと、このコンピュータにインストールされたプログラムとから構成される。
(First embodiment)
The two-dimensional code generation system includes an encoding
The two-dimensional
The encoding
The encoding
以下では、2次元コードがQRコードであるものとして説明する。
ここで、第1実施形態に係る2次元コード生成システムの処理の概要について図3を参照(適宜図13参照)して従来の方法と比較しながら説明する。従来の方法との大きな相違点は、入力テキストの符号化の処理と、RS(リードソロモン)誤り訂正符号の計算・付加の処理とを、符号化演算支援装置1および2次元コード生成装置2で分担して実行するようにしたことである。
In the following description, it is assumed that the two-dimensional code is a QR code.
Here, an outline of processing of the two-dimensional code generation system according to the first embodiment will be described with reference to FIG. 3 (refer to FIG. 13 as appropriate) and compared with the conventional method. The major difference from the conventional method is that the encoding
ただし、RS誤り訂正符号の計算・付加の処理は、所定のビット数で表されるRSブロック(誤り訂正ブロック)毎に行う処理であるため、RSブロック数が「1」の場合には、2つの装置で分担することはできないので、対象外とする。したがって、第1実施形態に係る2次元コード生成システムでは、複数のRSブロックが規定された2次元コードを対象とする。なお、RSブロック数が「1」であるQRコードの型は、QRコードの仕様を規定した日本工業規格(JIS X 0510)の表12に示すように、1-L型、1-M型、1-Q型、1-H型、2-L型、2-M型、2-Q型、2-H型、3-L型、3-M型、4-L型、5-L型だけである。ここで、L,M,Q,Hは、誤り訂正レベルのパラメータであり、この順に誤り訂正能力が高くなる。また、1,2,3,4,5は、QRコードのサイズを示す型番のパラメータである。JIS X 0510では、型番は「40」まで、RSブロック数は「81」まで規定されている。 However, the RS error correction code calculation / addition process is a process performed for each RS block (error correction block) represented by a predetermined number of bits. Since it cannot be shared by two devices, it is excluded. Therefore, the two-dimensional code generation system according to the first embodiment targets a two-dimensional code in which a plurality of RS blocks are defined. The QR code type with the number of RS blocks of “1” is 1-L type, 1-M type, as shown in Table 12 of the Japanese Industrial Standard (JIS X 0510) that defines the QR code specification. 1-Q, 1-H, 2-L, 2-M, 2-Q, 2-H, 3-L, 3-L, 3-M, 4-L, 5-L only It is. Here, L, M, Q, and H are parameters of the error correction level, and the error correction capability increases in this order. 1, 2, 3, 4, and 5 are model number parameters indicating the size of the QR code. In JIS X 0510, the model number is specified up to “40” and the number of RS blocks is set up to “81”.
例えば、共通情報の文字列と個別情報の文字列とを含むQRコードを電子文書表示デバイスに表示するために、QRコード生成プログラムで生成する手順は次の通りである。
まず、符号化演算支援装置1において、QRコードの内容の一部として読み取らせたい共通情報の内容を示すテキスト(共通情報テキスト)を入力する(S11)。読み取らせたい内容として、共通情報の文字列がURLの場合には、「http:// … 」等のテキストを入力することになる。
For example, in order to display a QR code including a character string of common information and a character string of individual information on an electronic document display device, a procedure for generating by a QR code generation program is as follows.
First, in the encoding
次に、符号化演算支援装置1は、入力テキストを符号化する(S12)。これにより、例えば「http:// … 」等のテキストは、「100110 … 」のような2進表現のビット列(データコード語列)に変換される。さらに、詳細は後記するが、このビット列を、文字種のモードと文字数とを符号化したヘッダに繋げたビット列を生成する(これを第1ビット列データという)。
Next, the encoding
そして、符号化演算支援装置1は、第1ビット列データのRSブロックに対してRS誤り訂正符号(誤り訂正コード語)を計算により求め、第1ビット列データに付加する(S13)。ここで、詳細は後記するが、第1ビット列データのビット列がRSブロック数(ビット列)単位にならない場合には、第1ビット列データの終端部分についてはRS誤り訂正計算がなされない。
Then, the coding
そして、符号化演算支援装置1は、第1ビット列データのRS誤り訂正計算を行った部分を示すデータ符号D1と、そのRS誤り訂正符号E1とをQRコードの一部の情報(これを部分的なQRコードという)として、符号化演算に用いたパラメータと共に出力する(S14)。本実施形態では、符号化演算に用いたパラメータの1つとして、第1ビット列データのうちRS誤り訂正計算がなされなかった終端部分のビット列を示す余剰ビットの情報を含めることとした。
Then, the encoding
また、本実施形態では、部分的なQRコードとは、QRコードの一部の情報を含むものであって、データ符号D1とそのRS誤り訂正符号E1とにより「100110 … 」のような2進表現のビット列で表されるものであって、シンボルとしては構成せずに出力することとしている。つまり、符号化演算支援装置側のS13で図示したシンボルと、受信機側のS23で図示したシンボルとの2つの情報を合わせることで、受信機側のS25でQRコードシンボルが完成することを概念的に示すものである。なお、符号化演算支援装置1において、シンボルとして構成して出力するようにしてもよい。
In the present embodiment, the partial QR code includes a part of information of the QR code, and the data code D 1 and the RS error correction code E 1 are used as “100110... It is represented by a bit string in binary representation, and is output without being configured as a symbol. That is, it is a concept that the QR code symbol is completed in S25 on the receiver side by combining the two information of the symbol shown in S13 on the coding operation support apparatus side and the symbol shown in S23 on the receiver side. It is shown as an example. Note that the encoding
次に、受信機(2次元コード生成装置)2において、QRコードの内容の一部として読み取らせたい個別情報の内容を示すテキスト(個別情報テキスト)を入力する(S21)。読み取らせたい内容として、受信機やその利用者の個別情報の文字列が数字の場合には、「521234 … 」等のテキストを入力することになる。 Next, in the receiver (two-dimensional code generation device) 2, a text (individual information text) indicating the content of individual information that is to be read as part of the content of the QR code is input (S21). As the contents to be read, when the character string of the individual information of the receiver or the user is a number, a text such as “521234...” Is input.
そして、例えば、符号化演算支援装置1から部分的なQRコードおよびパラメータを取得すると、受信機(2次元コード生成装置)2は、入力テキストを符号化する(S22)。これにより、例えば「521234 … 」等のテキストは、「100110 … 」のような2進表現のビット列(データコード語列)に変換される。さらに、詳細は後記するが、受信機(2次元コード生成装置)2は、このビット列を、符号化演算支援装置1から取得した余剰ビットに繋げたビット列を生成する(これを第2ビット列データという)。
For example, when a partial QR code and parameters are acquired from the encoding
そして、受信機(2次元コード生成装置)2は、第2ビット列データのRSブロックに対してRS誤り訂正符号(誤り訂正コード語)を計算により求め、第2ビット列データに付加する(S23)。ここで、第2ビット列データのRS誤り訂正計算を行った部分を示すデータ符号をD2、そのRS誤り訂正符号をE2とする。 Then, the receiver (two-dimensional code generation device) 2 calculates an RS error correction code (error correction code word) for the RS block of the second bit string data by calculation, and adds it to the second bit string data (S23). Here, it is assumed that the data code indicating the portion of the second bit string data subjected to the RS error correction calculation is D 2 and the RS error correction code is E 2 .
そして、受信機(2次元コード生成装置)2は、自装置で算出したデータと、符号化演算支援装置1から取得したデータとを合わせて2次元コード化処理を行う(S24)。詳細は後記するが、データ符号D1およびRS誤り訂正符号E1と、データ符号D2およびRS誤り訂正符号E2とに対して、並び替え処理を行った上で、マスク処理を行う。そして、受信機(2次元コード生成装置)2は、ビット列の「0」に白、「1」に黒を割り当てたQRコードを出力する(S25)。これにより、QRコードシンボルが電子文書表示デバイスに表示される。 Then, the receiver (two-dimensional code generation device) 2 performs a two-dimensional encoding process by combining the data calculated by the own device and the data acquired from the encoding calculation support device 1 (S24). Although details will be described later, the data code D 1 and the RS error correction code E 1 and the data code D 2 and the RS error correction code E 2 are rearranged and then masked. Then, the receiver (two-dimensional code generation device) 2 outputs a QR code in which white is assigned to “0” and black is assigned to “1” in the bit string (S25). Thereby, the QR code symbol is displayed on the electronic document display device.
前記説明では、符号化演算支援装置1と2次元コード生成装置2とを一般化して説明したが、この2次元コード生成システムは、例えばデジタル放送システムに適用することができる。この場合には、符号化演算支援装置1は、放送局で使用され、部分的なQRコードは、パラメータと併せて放送される。また、受信機(2次元コード生成装置)2は、視聴者宅で使用されることになる。デジタル放送のデータ放送により、部分的なQRコードと、QRコード生成プログラムとを配信する概念図を図4に示す。放送事業者は、CGI(Common Gateway Interface)やPHP(Hypertext Preprocessor)といったサーバを用意し、視聴者のユーザ登録等を管理する。また、このときのデジタル放送システムのデジタル放送送信装置やデジタル放送受信装置は、図5に示すような機能ブロック図で構成され、符号化演算支援装置1や2次元コード生成装置2を備える。なお、デジタル放送送信装置やデジタル放送受信装置の構成の詳細は後記する。
図1に戻って、符号化演算支援装置1の詳細な構成について説明する。
In the above description, the coding
Returning to FIG. 1, the detailed configuration of the encoding
[符号化演算支援装置の構成]
符号化演算支援装置1は、ハードウェア装置とソフトウェアとが協働することによって、前記したハードウェア資源がプログラムによって制御されることにより実現され、図1に示すように、共通情報入力手段11と、個別情報文字数入力手段12と、記憶手段13と、仮個別情報付加手段14と、2次元コードパラメータ生成手段15と、ヘッダ付加・データ符号化手段16と、誤り訂正符号化パラメータ変換手段17と、誤り訂正符号計算手段18と、出力手段19とを備えている。
[Configuration of encoding operation support device]
The encoding
<共通情報入力手段>
共通情報入力手段11は、共通情報の文字列(共通情報テキスト)を入力するものである。また、共通情報入力手段11は、共通情報の文字種のモードも入力することとした。ここで入力された共通情報の文字列(共通情報テキスト)と文字種のモードとは、2次元コードパラメータ生成手段15および仮個別情報付加手段14に出力される。
<Common information input means>
The common
共通情報入力手段11に入力される共通情報の文字数には、次の制限がある。すなわち、その文字列のデータ符号化後のビット数を、誤り訂正符号計算手段18で誤り訂正符号を計算するビット数(=RSブロックのビット数)以上とするような文字数でなければならない。例えば、QRコードで、{型番3,誤り訂正レベルQ,英数字モード}の場合、図6(a)に示すように、共通情報の最小文字数は、24文字である。
The number of characters of common information input to the common
具体例として、共通情報と仮個別情報とを含む入力テキストを図7(a)に示す。この例では、QRコードのver(型番)が3で、誤り訂正レベルがQ、英数字モードを想定した。図7(a)に符号701で示す"http://k.nhk.jp/cas.cgi/"(24文字)は、共通情報入力手段11から入力される共通情報の文字列を示す。
As a specific example, an input text including common information and temporary individual information is shown in FIG. In this example, QR code ver (model number) is 3, error correction level is Q, and alphanumeric mode is assumed. “Http://k.nhk.jp/cas.cgi/” (24 characters) indicated by
ここで、使用する共通情報の文字数が、もしも足りない場合には、任意の文字列を足せばよい。なお、使用する共通情報の文字列が、例えば、URLのようなケースでは、不足分の文字を補った後であっても、所望のアドレスにアクセスできるように文字列を足す必要がある。 Here, if the number of characters of common information to be used is insufficient, an arbitrary character string may be added. For example, in the case of a URL such as a URL, it is necessary to add a character string so that a desired address can be accessed even after supplementing the insufficient characters.
<個別情報文字数入力手段>
個別情報文字数入力手段12は、受信機(2次元コード生成装置)2で符号化される個別情報の文字列と同じ文字数の値を入力するものである。入力された文字数の値は、仮個別情報付加手段14および2次元コードパラメータ生成手段15に出力される。
具体的には、図7(a)に符号702で示す"12345678901234567890123"(23文字)は仮個別情報の文字列を示す。ここで、仮個別情報とは、真の個別情報ではない。一般には、符号化演算支援装置1(放送局)においては、受信機(2次元コード生成装置)2の個別情報の値が不明であるが、その個別情報の文字列の文字数は既知であるものとする。後記するように、符号化演算支援装置1(放送局)では、共通情報と個別情報との文字列の文字数の合計値(この場合には47文字)については、ヘッダ情報とする必要がある。そのために、説明上、符号702で示す仮個別情報を示した。
<Individual information character count input means>
The individual information character number input means 12 inputs the same number of characters as the character string of the individual information encoded by the receiver (two-dimensional code generation device) 2. The value of the number of input characters is output to the temporary individual
Specifically, “12345678901234567890123” (23 characters) indicated by
<記憶手段>
記憶手段13は、メモリやハードディスク等の記憶装置から構成され、入力された情報やCPU等の処理結果を一時記憶したり、動作プログラムを格納したりするものである。
この記憶手段13は、2次元コードパラメータ変換表と、誤り訂正符号化パラメータ変換表とを記憶することとした。
<Storage means>
The storage means 13 is composed of a storage device such as a memory and a hard disk, and temporarily stores input information and processing results of the CPU, etc., and stores an operation program.
The storage means 13 stores a two-dimensional code parameter conversion table and an error correction coding parameter conversion table.
≪2次元コードパラメータ変換表≫
2次元コードパラメータ変換表は、共通情報の文字列の文字種モードと、2次元コードの型と、共通情報文字列の許容最小文字数と、個別情報文字列の許容最大文字数との情報を予め関連付けて作成されたものである。ここで、2次元コードの型とは、QRコードの「型番(バージョン)」とQRコードの「誤り訂正レベル」とを合わせたものである。また、共通情報の文字列の文字種モードと、データ符号化のモードとは同じことを意味する。共通情報の文字列の文字種モードが“英数字モード”である場合の一例を図6(a)に示す。文字種モードによってデータ容量は異なる。例えば、3-Q型のQRコードの場合には、英数字モードで「47文字」、数字モードで「77文字」、8ビットバイトモードで「32文字」、漢字モードで「20文字」と定められている。
≪Two-dimensional code parameter conversion table≫
The two-dimensional code parameter conversion table associates in advance information on the character type mode of the common information character string, the type of the two-dimensional code, the allowable minimum number of characters of the common information character string, and the allowable maximum number of characters of the individual information character string. It has been created. Here, the type of the two-dimensional code is a combination of the “model number (version)” of the QR code and the “error correction level” of the QR code. Further, the character type mode of the character string of the common information means the same as the data encoding mode. An example when the character type mode of the character string of the common information is “alphanumeric character mode” is shown in FIG. The data capacity varies depending on the character type mode. For example, in the case of a 3-Q type QR code, “47 characters” in alphanumeric mode, “77 characters” in number mode, “32 characters” in 8-bit byte mode, and “20 characters” in kanji mode are specified. It has been.
また、図6(a)の「最小共通情報文字数」は、共通情報の文字列として許容できる最小の文字数を示し、「最大個別情報文字数」は、個別情報の文字列として許容できる最大の文字数を示す。これらは相補関係にある。例えば、3-Q型の場合、最小共通情報文字数」=24と、「最大個別情報文字数」=23とを合計すると、英数字モードのデータ容量「47文字」と等しい。つまり、共通情報の文字列の文字数と、個別情報の文字列の文字数との合計値が「47文字」となるように選べばよい。また、例えば、3-Q型の場合、「最小共通情報文字数」と「最大個別情報文字数」とはほぼ等しい。これは、3-Q型の場合、図6(b)に示すように、RSブロック数は“2”なので、符号化演算支援装置1(放送局側)と、受信機(2次元コード生成装置)2とでほぼ均等に処理を分担しようとするためである。なお、余剰ビットを生成するために、符号化演算支援装置1(放送局側)の方が大きな値となるようにした。 In addition, the “minimum number of common information characters” in FIG. 6A indicates the minimum number of characters allowed as a character string of common information, and the “maximum number of individual information characters” indicates the maximum number of characters allowable as a character string of individual information. Show. These are complementary. For example, in the case of the 3-Q type, the sum of “minimum number of common information characters” = 24 and “maximum number of individual information characters” = 23 is equal to the data capacity “47 characters” in the alphanumeric mode. That is, the total value of the number of characters of the common information character string and the number of characters of the individual information character string may be selected to be “47 characters”. For example, in the case of the 3-Q type, the “minimum number of common information characters” and the “maximum number of individual information characters” are substantially equal. In the case of the 3-Q type, as shown in FIG. 6B, since the number of RS blocks is “2”, the encoding operation support device 1 (broadcasting station side) and the receiver (two-dimensional code generation device) This is because the processing is almost equally shared by 2). In order to generate surplus bits, the encoding operation support apparatus 1 (on the broadcasting station side) has a larger value.
また、例えば、4-H型の場合、「最小共通情報文字数」=38と、「最大個別情報文字数」=12とを合計すると、4-H型の英数字モードのデータ容量「50文字」と等しい。つまり、共通情報の文字列の文字数と、個別情報の文字列の文字数との合計値が「50文字」となるように選べばよい。また、4-H型の場合、「最小共通情報文字数」と「最大個別情報文字数」との比は、ほぼ3:1に等しい。これは、4-H型の場合、図6(b)に示すように、RSブロック数は“4”なので、符号化演算支援装置1(放送局側)と、受信機(2次元コード生成装置)2とでほぼ3:1に処理を分担しようとしたためである。なお、余剰ビットを生成するために、符号化演算支援装置1(放送局側)の方が大きな値となるようにした。 For example, in the case of 4-H type, the sum of “minimum number of common information characters” = 38 and “maximum number of individual information characters” = 12 gives the data capacity “50 characters” of 4-H type alphanumeric mode. equal. In other words, the total value of the number of characters of the common information character string and the number of characters of the individual information character string may be selected to be “50 characters”. In the case of the 4-H type, the ratio of “minimum common information character number” and “maximum individual information character number” is substantially equal to 3: 1. In the case of the 4-H type, as shown in FIG. 6B, the number of RS blocks is “4”, so that the encoding calculation support device 1 (broadcast station side) and the receiver (two-dimensional code generation device) This is because the processing was to be shared approximately 3: 1 with 2). In order to generate surplus bits, the encoding operation support apparatus 1 (on the broadcasting station side) has a larger value.
また、図6(a)において、「優先順位」の項目は、この2次元コードパラメータ変換表において変換される候補(入力された各情報に合致する2次元コードの型の候補)が複数ある場合に利用するための優先順位を示す。 In FIG. 6A, the item “priority order” has a plurality of candidates (two-dimensional code type candidates that match each input information) to be converted in this two-dimensional code parameter conversion table. Shows the priority for use.
2次元コードの型(型、誤り訂正レベル)と、共通情報の文字列の文字種モードと、共通情報文字列の文字数との情報を合わせて、2次元コードパラメータCpと定義する。具体例としては、型番=“ver3”,誤り訂正レベル=“Q”,文字種モード=“英数字モード”,共通情報文字列の文字数=“24”である場合には、2次元コードパラメータは、例えば、Cp={3, Q, EISU, 24}のように記述される。 The type of two-dimensional code (type error correction level), and the character type mode for strings of the common information, combined information of the number of characters of the common information string, is defined as two-dimensional code parameter C p. As a specific example, when the model number = “ver3”, the error correction level = “Q”, the character type mode = “alphanumeric mode”, and the number of characters of the common information character string = “24”, the two-dimensional code parameter is For example, it is described as C p = {3, Q, EISU, 24}.
≪誤り訂正符号化パラメータ変換表≫
誤り訂正符号化パラメータ変換表は、2次元コードパラメータCpと、RSブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成されたものである。図6(b)に示すように、“3-Q型”、“4-M型”のRSブロック数は「2」、“4-H型”、“6-M型”のRSブロック数は「4」と定められている。また、図6(b)において“RSブロック”の項目は、(c,k,r)の3つのパラメータを有している。ここで、c=総コード語数,k=データコード語数,r=誤り訂正数と定められている。例えば、“3-Q型”は、(c,k,r)=(35,17,9)なので、RSブロックのサイズは、17×8=136ビットである。また、図6(b)において“前半処理ブロック数”の項目は、RSブロック数のうち、符号化演算支援装置1で分担するブロック数の一例を示す。例えば、“4-H型”の場合には、RSブロック=4のうち、3ブロックの処理を符号化演算支援装置1で分担することを意味する。
≪Error correction coding parameter conversion table≫
The error correction coding parameter conversion table is created in advance by associating the two-dimensional code parameter Cp with error correction parameters that specify the number and size of RS blocks. As shown in Fig. 6 (b), the number of RS blocks for "3-Q type" and "4-M type" is "2", and the number of RS blocks for "4-H type" and "6-M type" is It is defined as “4”. In FIG. 6B, the item “RS block” has three parameters (c, k, r). Here, it is defined that c = total number of code words, k = number of data code words, and r = number of error corrections. For example, since “3-Q type” is (c, k, r) = (35, 17, 9), the size of the RS block is 17 × 8 = 136 bits. In FIG. 6B, the item “number of first half processing blocks” indicates an example of the number of blocks shared by the coding
<仮個別情報付加手段>
仮個別情報付加手段14は、共通情報入力手段11から、共通情報の文字列(共通情報テキスト)と、共通情報の文字種のモードとを取得し、個別情報文字数入力手段12から入力された文字数に合わせて、共通情報テキストの後ろに任意の文字列を付加するものである。共通情報テキストに文字列が付加されて生成されたテキストは、ヘッダ付加・データ符号化手段16に出力される。この仮個別情報付加手段14は、共通情報の文字種のモードに合わせた文字種を使用して文字列を追加する。つまり、共通情報の文字種のモードが「英数字モード」である場合には、英数字モードで使用可能な文字種を使用する。図7(a)に符号702で示す"12345678901234567890123"(23文字)は仮個別情報の文字列を示す。なお、この仮個別情報付加手段14や前記した個別情報文字数入力手段12を備えるようにしたのは、一般的なQRコード生成プログラムを改良して別の新たな機能を付加することを容易にするためであり、符号化演算支援装置1は必ずしもこれらの構成を備える必要はない。
<Temporary individual information adding means>
The provisional individual
<2次元コードパラメータ生成手段>
2次元コードパラメータ生成手段15は、共通情報の文字列の文字数と、共通情報の文字列の文字種のモードと、個別情報の文字列の文字数とを入力し、記憶手段13に予め記憶された2次元コードパラメータ変換表を参照し、入力された各情報に合致する2次元コードの型を含む2次元コードパラメータを生成するものである。
<Two-dimensional code parameter generation means>
The two-dimensional code parameter generation means 15 inputs the number of characters of the common information character string, the character type mode of the common information character string, and the number of characters of the character string of the individual information, and is stored in the storage means 13 in advance. By referring to the dimension code parameter conversion table, a two-dimensional code parameter including a two-dimensional code type that matches each input information is generated.
本実施形態では、2次元コードパラメータ生成手段15は、共通情報入力手段11から、共通情報の文字列と、共通情報の文字列の文字種のモードとの各情報を取得し、個別情報文字数入力手段12から仮個別情報の文字列の文字数(=個別情報の文字数)を取得することとした。2次元コードパラメータ生成手段15は、共通情報入力手段11から、共通情報の文字列を取得すると文字数をカウントする。なお、共通情報入力手段11が共通情報の文字列の文字数をカウントしてその文字数の情報を2次元コードパラメータ生成手段15が取得するようにしてもよい。
In the present embodiment, the two-dimensional code
また、2次元コードパラメータ生成手段15は、例えば、図6(a)に示す2次元コードパラメータ変換表を用いて2次元コードパラメータを生成する。例えば、「共通情報の文字列の文字数」=24、「文字種のモード」=英数字モード、「個別情報の文字列の文字数」=23である場合には、2次元コードパラメータ生成手段15は、2次元コードの型を、「型番」=「3」、「誤り訂正レベル」=「Q」と特定し、これらのパラメータを含む2次元コードパラメータCp={3, Q, EISU, 24}を生成する。生成された2次元コードパラメータCpは、ヘッダ付加・データ符号化手段16、誤り訂正符号化パラメータ変換手段17、および出力手段19に出力される。
Further, the two-dimensional code parameter generation means 15 generates a two-dimensional code parameter using, for example, a two-dimensional code parameter conversion table shown in FIG. For example, when “number of characters in the character string of common information” = 24, “mode of character type” = alphanumeric mode, and “number of characters of character string of individual information” = 23, the two-dimensional code
また、本実施形態では、2次元コードパラメータ生成手段15は、外部から、2次元コードの型(型番、誤り訂正レベル)の優先順位を取得し、入力された各情報に合致する2次元コードの型の候補が複数ある場合には、取得した優先順位にしたがって2次元コードパラメータを生成する。
In the present embodiment, the two-dimensional code
仮に2次元コードパラメータ生成手段15に入力する各情報が、例えば、「共通情報の文字列の文字数」=38、「文字種のモード」=英数字モード、「個別情報の文字列の文字数」=9である場合には、“3-Q型”と“4-H型”の2つの候補が抽出される。しかし、図6(a)に示す例では、“3-Q型”の優先順位が“1”なので、2次元コードパラメータ生成手段15は、2次元コードパラメータCp={3, Q, EISU, 24}を生成することとなる。
For example, each piece of information input to the two-dimensional code
外部から指定される優先順位は、2次元コードパラメータ変換表において外部から書き換えることができる。この場合、用途に応じて、様々な基準で優先順位を割り当てることができる。例えば、図6(a)に示したように、データサイズの小さい順に優先順位を割り当てることができる。また、図6(a)の具体例の場合に、次のように優先順位の基準を変更することができる。例えば、誤り訂正レベルの高い順に優先順位を割り当てる場合には、「誤り訂正レベル」=“H”の4-H型を第1位にすることができる。また、共通情報文字と個別情報文字の文字数がほぼ同じでなるべく多くの文字を使用したい場合には4-M型を第1位にすることができる。さらに、共通情報の文字列の文字数が長い順に割り当てる場合には6-M型を第1位にすることができる。このように符号化演算支援装置1の利用者が所望の基準で優先順位を指定することで、符号化演算支援装置1の利用者の利便性を向上させることができる。
The priority order designated from outside can be rewritten from outside in the two-dimensional code parameter conversion table. In this case, priorities can be assigned according to various criteria depending on the application. For example, as shown in FIG. 6A, priorities can be assigned in ascending order of data size. In the case of the specific example of FIG. 6A, the priority order can be changed as follows. For example, when assigning priorities in descending order of error correction level, the 4-H type of “error correction level” = “H” can be set first. In addition, when the number of characters of the common information character and the individual information character is substantially the same and it is desired to use as many characters as possible, the 4-M type can be ranked first. Further, when the number of characters in the common information character string is assigned in ascending order, the 6-M type can be ranked first. Thus, the user of the encoding
<ヘッダ付加・データ符号化手段>
ヘッダ付加・データ符号化手段16は、ヘッダ情報を符号化してヘッダを生成し、共通情報の文字列を符号化し、ヘッダに繋げることで第1ビット列データを生成するものである。ヘッダ付加・データ符号化手段16は、2次元コードパラメータ生成手段15から、2次元コードパラメータCpを取得する。また、ヘッダ付加・データ符号化手段16は、仮個別情報付加手段14から、共通情報テキストに仮個別情報の文字列が付加されて生成されたテキストを取得し、取得すると、取得テキストの文字数をカウントする。このカウント結果は、共通情報および個別情報の文字列の文字数の合計値を示す。
<Header addition / data encoding means>
The header addition / data encoding means 16 encodes header information to generate a header, encodes a character string of common information, and connects the header to the header to generate first bit string data. The header addition /
ヘッダ付加・データ符号化手段16は、取得した2次元コードパラメータCpに含まれる共通情報の文字列の文字種のモードの値を符号化してモード指示子を生成する。QRコードの場合、モード指示子は、4ビットの情報で表される。
ヘッダ付加・データ符号化手段16は、仮個別情報付加手段14から取得したテキストからカウントした文字数を、2次元コードパラメータCpで示される2次元コードの型番にあったビット数で符号化して文字数指示子を生成する。QRコードの場合、文字数指示子は、「型番」と「文字種のモード」とに応じて8種類のビット数が用意されている。例えば、「型番」=3、「文字種モード」=EISUの場合には、文字数指示子は、9ビットの情報で表される。
ヘッダ付加・データ符号化手段16は、生成したモード指示子に、文字数指示子を繋げてヘッダを生成する。「型番」=3、「文字種モード」=EISUの場合には、ヘッダは、13ビットの情報で表される。
Header adding data coding means 16, the value of the mode character kind character string of the common information included in the two-dimensional code parameter C p obtained to generate encoded to mode indicator. In the case of the QR code, the mode indicator is represented by 4-bit information.
Header adding data coding means 16, the number of characters the number of characters counted from the acquired text from the temporary individual information adding means 14, and encoded with the number of bits that were in the model number of the two-dimensional code represented by the two-dimensional code parameter C p Generate an indicator. In the case of the QR code, eight types of bit numbers are prepared for the character number indicator according to the “model number” and the “character type mode”. For example, when “model number” = 3 and “character type mode” = EISU, the character number indicator is represented by 9-bit information.
The header addition / data encoding means 16 generates a header by connecting a character number indicator to the generated mode indicator. When “model number” = 3 and “character type mode” = EISU, the header is represented by 13-bit information.
ヘッダ付加・データ符号化手段16は、仮個別情報付加手段14から取得したテキスト(共通情報と仮個別情報)のうち、2次元コードパラメータCpで示される共通情報の文字列部分を、取得した共通情報の文字列の文字種のモードで符号化してビット列(符号化後ビットとよぶ)を生成する。図7(a)に示す例のように、共通情報の文字列が24文字、「文字種モード」=EISUの場合には、図7(b)に示す符号化後ビット703は、132ビットの情報で表される。つまり、"http://k.nhk.jp/cas.cgi/"(24文字)を英数字モードでデータ符号化した結果が132ビットになる。その結果、ヘッダに繋げると、145ビットの情報で表される。ヘッダ付加・データ符号化手段16は、ヘッダに符号化後ビットを繋げたビット列(第1ビット列データ)を誤り訂正符号計算手段18に出力する。
The header addition /
<誤り訂正符号化パラメータ変換手段>
誤り訂正符号化パラメータ変換手段17は、記憶手段13に予め記憶された誤り訂正符号化パラメータ変換表を参照して、入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、共通情報の文字列のデータ符号化後のビット数を算出し、誤り訂正ブロック数を算出し、誤り訂正符号計算手段18に対して誤り訂正計算を行う部分を指定するものである。
<Error correction coding parameter conversion means>
The error correction coding
本実施形態では、誤り訂正符号化パラメータ変換手段17は、2次元コードパラメータ生成手段15から、生成された2次元コードパラメータCpを取得することとした。具体的には、誤り訂正符号化パラメータ変換手段17は、3-Q型の2次元コードパラメータCpが入力されると、図6(b)に示す誤り訂正符号化パラメータ変換表から、RSパラメータとして、「RSブロック数」=2、「RSブロック」=(35,17,9)、「前半処理ブロック数」=1の各情報が記述された行を特定する。RSブロックのサイズは、17バイト(136ビット)と求められる。
In this embodiment, the error correction coding
また、本実施形態では、誤り訂正符号化パラメータ変換手段17は、共通情報の文字列のデータ符号化後のビット数と、第1ビット列データのビット数とを算出することとした。具体的には、図7(a)に示す例のように、共通情報の文字列が24文字、「文字種モード」=EISUの場合には、誤り訂正符号化パラメータ変換手段17は、共通情報の文字列のデータ符号化後のビット数として、式(1)の右辺の第3項および第4項を計算し、132ビットの情報を取得する。また、第1ビット列データのビット数として、式(1)の右辺すべての項を計算し、145ビットの情報を取得する。
In this embodiment, the error correction coding parameter conversion means 17 calculates the number of bits after data encoding of the character string of the common information and the number of bits of the first bit string data. Specifically, as in the example shown in FIG. 7A, when the character string of the common information is 24 characters and “character type mode” = EISU, the error correction coding
B=4+C+11(D DIV 2)+6(D MOD 2) … 式(1)
ここで、Bはビット列の長さ、Cは文字数指示子のビット数、Dは入力データ文字数をそれぞれ示す。なお、QRコードの場合、任意の数のデータ文字数に対するビット列の長さは、文字種のモードに応じて異なっており、文字種のモードが英数字モードの場合には、式(1)で計算することが規定されている。
B = 4 + C + 11 (D DIV 2) +6 (D MOD 2) (1)
Here, B indicates the length of the bit string, C indicates the number of bits of the character number indicator, and D indicates the number of input data characters. In the case of QR codes, the length of the bit string for an arbitrary number of data characters differs depending on the character type mode. When the character type mode is alphanumeric mode, the length of the bit string should be calculated using equation (1). Is stipulated.
この例では、第1ビット列データのビット数(145ビット)を、RSブロックのサイズ(136ビット)で除算すると、1余り9である。つまり、この場合には、第1ビット列データのビット数以下となるような誤り訂正符号のRSブロック数の最大値は、1である。なお、余り9が余剰ビットとなる。 In this example, when the number of bits of the first bit string data (145 bits) is divided by the size of the RS block (136 bits), the remainder is 9. That is, in this case, the maximum value of the number of RS blocks of the error correction code that is equal to or less than the number of bits of the first bit string data is 1. The remainder 9 is a surplus bit.
そして、誤り訂正符号化パラメータ変換手段17は、算出したRSブロックのサイズ(例えば136ビット)と、共通情報の文字列のデータ符号化後のビット数(例えば132ビット)と、RSパラメータ(例えば、3-Q型についての、RSブロック数、RSブロック、前半処理ブロック数の各情報)とを、ブロック情報として誤り訂正符号計算手段18に出力することで、誤り訂正符号計算手段18に対して、ビット列のうち誤り訂正計算をすべき部分を指定する。
Then, the error correction coding parameter conversion means 17 calculates the calculated RS block size (eg, 136 bits), the number of bits after data encoding of the common information character string (eg, 132 bits), and the RS parameter (eg, For each of the 3-Q types, the RS block number, RS block, and first half processing block number information) are output to the error correction
仮に、第2の例として、4-H型の2次元コードパラメータCpが入力されると、誤り訂正符号化パラメータ変換手段17は、図6(b)に示す誤り訂正符号化パラメータ変換表から、RSパラメータとして、「RSブロック数」=4、「RSブロック」=(25,9,8)、「前半処理ブロック数」=3の各情報が記述された行を特定する。RSブロックのサイズは、9バイト(72ビット)と求められる。また、この第2の例において、共通情報の文字列が38文字、「文字種モード」=EISUである場合には、誤り訂正符号化パラメータ変換手段17は、前記式(1)から、38文字の共通情報の文字列の符号化後のビット数として、222ビットを算出する。なお、38文字の共通情報の文字列のデータ符号化後のビット数は209ビットとなる。この第2の例では、第1ビット列データのビット数(222ビット)を、RSブロックのサイズ(72ビット)で除算すると、3余り6である。つまり、この場合には、第1ビット列データのビット数以下となるような誤り訂正符号のRSブロック数の最大値は、3である。なお、余り6が余剰ビットとなる。
As a second example, when a 4-H type two-dimensional code parameter C p is input, the error correction coding parameter conversion means 17 reads the error correction coding parameter conversion table shown in FIG. As the RS parameter, a line in which each information of “RS block number” = 4, “RS block” = (25, 9, 8), and “first half process block number” = 3 is described is specified. The size of the RS block is required to be 9 bytes (72 bits). In the second example, when the character string of the common information is 38 characters and “character type mode” = EISU, the error correction coding parameter conversion means 17 calculates the 38 characters from the equation (1). 222 bits are calculated as the number of bits after encoding the common information character string. Note that the number of bits after data encoding of the character string of the common information of 38 characters is 209 bits. In the second example, when the number of bits of the first bit string data (222 bits) is divided by the size of the RS block (72 bits), the remainder is 6. That is, in this case, the maximum value of the number of RS blocks of the error correction code that is equal to or less than the number of bits of the first bit string data is 3. The
<誤り訂正符号計算手段>
誤り訂正符号計算手段18は、ヘッダ付加・データ符号化手段16から取得した第1ビット列データのビット数のうち、誤り訂正符号化パラメータ変換手段17で指定された誤り訂正ブロックに該当するデータを示すデータ符号D1について、指定された誤り訂正パラメータで誤り訂正計算を行って誤り訂正符号E1を算出するものである。算出されたデータ符号D1および誤り訂正符号E1を部分的なQRコードとして出力手段19に出力される。
<Error correction code calculation means>
The error correction code calculation means 18 indicates data corresponding to the error correction block designated by the error correction coding parameter conversion means 17 out of the number of bits of the first bit string data obtained from the header addition / data encoding means 16. For the data code D 1 , the error correction code E 1 is calculated by performing error correction calculation with the specified error correction parameter. The calculated data code D 1 and error correction code E 1 are output to the output means 19 as a partial QR code.
また、誤り訂正符号計算手段18は、共通情報の文字列の符号化後のビット列(図7(b)に示す符号化後ビット703)のうち誤り訂正計算されなかったビット列を示す余剰ビットB1を出力手段19に出力する。また、本実施形態では、誤り訂正符号計算手段18は、誤り訂正計算がどのRSブロックまで終了しているかをRSブロックのブロック位置で示す計算済みブロック数N1を出力手段19に出力する。なお、予め定められた順序でRSブロックを計算する場合や、RSブロック数が2であるQRコードの場合には、計算済みブロック数N1の情報を省略してもよい。
Further, the error correction code calculation means 18 is a surplus bit B 1 indicating a bit string that has not been subjected to error correction calculation in the bit string after encoding of the character string of the common information (the encoded
具体的には、図7(a)に示す例のように、共通情報の文字列が24文字、「文字種モード」=EISUであって、3-Q型の場合には、誤り訂正符号計算手段18は、データ符号化後の結果のビット列(ヘッダから数えて145ビット)のうち、指定されたRSブロック(136ビット)に該当するデータ(=データ符号D1)について、誤り訂正符号を計算する。そして、誤り訂正符号計算手段18は、データ符号D1(136ビット)と、共通情報の文字列(24文字)のデータ符号化後の結果のビット列(132ビット)のうち、ビット列の終端部にあったために誤り訂正計算がなされなかった余剰ビット(9ビット)と、計算された誤り訂正符号(36ビット)とを出力する。 Specifically, as in the example shown in FIG. 7A, when the character string of the common information is 24 characters, “character type mode” = EISU, and 3-Q type, error correction code calculation means 18 calculates an error correction code for data (= data code D 1 ) corresponding to the designated RS block (136 bits) in the bit string (145 bits counted from the header) of the result after data encoding. . Then, the error correction code calculation means 18 outputs the data code D 1 (136 bits) and the bit string (132 bits) resulting from the data encoding of the common information character string (24 characters) at the end of the bit string. Therefore, the surplus bits (9 bits) for which error correction calculation has not been performed and the calculated error correction code (36 bits) are output.
また、前記した第2の例のように、共通情報の文字列が38文字、「文字種モード」=EISUであって、4-H型の場合には、誤り訂正符号計算手段18は、データ符号化後の結果のビット列(ヘッダから数えて222ビット)のうち、指定された3つのRSブロック(それぞれが72ビット)に該当するデータを順に誤り訂正符号を計算する。この場合には、3つのRSブロックをデータ符号D1(216ビット)と表記する。そして、誤り訂正符号計算手段18は、データ符号D1(216ビット)と、共通情報の文字列(38文字)のデータ符号化後の結果のビット列(206ビット)のうち、ビット列の終端部にあったために誤り訂正計算がなされなかった余剰ビット(6ビット)と、計算された誤り訂正符号(36ビット)とを出力する。 Further, as in the second example described above, when the character string of the common information is 38 characters, “character type mode” = EISU, and 4-H type, the error correction code calculation means 18 An error correction code is calculated in order for the data corresponding to three designated RS blocks (each of which is 72 bits) in the resulting bit string (222 bits counted from the header). In this case, the three RS blocks are represented as a data code D 1 (216 bits). Then, the error correction code calculation means 18 uses the data code D 1 (216 bits) and the bit string (206 bits) resulting from the data encoding of the common information character string (38 characters) at the end of the bit string. The surplus bits (6 bits) for which error correction calculation has not been performed because of the error and the calculated error correction code (36 bits) are output.
<出力手段>
出力手段19は、誤り訂正符号化対象としたデータ符号D1と、余剰ビットB1と、算出した誤り訂正符号E1と、生成した2次元コードパラメータCpと、計算済みブロック数(RSブロックのブロック位置)N1とを出力する。ここで、データ符号D1および誤り訂正符号E1が部分的なQRコードを示す。以下では、2次元コードパラメータCpと、余剰ビットB1と、計算済みブロック数(RSブロックのブロック位置)N1とを、1つにまとめて単にパラメータと呼ぶ。つまり、出力手段19は、部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを出力する。これら部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とは、受信機(2次元コード生成装置)2で利用される。
<Output means>
The output means 19 includes a data code D 1 to be subjected to error correction coding, a surplus bit B 1 , a calculated error correction code E 1 , a generated two-dimensional code parameter C p, and the number of calculated blocks (RS block) Block position) N 1 is output. Here, the data code D 1 and the error correction code E 1 indicate partial QR codes. Hereinafter, the two-dimensional code parameter C p , the surplus bit B 1, and the calculated number of blocks (block position of the RS block) N 1 are collectively referred to as a parameter. That is, the output means 19 outputs a partial QR code (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ). These partial QR codes (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ) are used by the receiver (two-dimensional code generation device) 2.
[2次元コード生成装置の構成]
次に、図2を参照して、受信機(2次元コード生成装置)2の構成について説明する。
受信機(2次元コード生成装置)2は、ハードウェア装置とソフトウェアとが協働することによって、前記したハードウェア資源がプログラムによって制御されることにより実現され、図2に示すように、個別情報入力手段21と、データ・パラメータ入力手段22と、記憶手段23と、2次元コードパラメータ・余剰ビット抽出手段24と、データ符号化・余剰ビット付加手段25と、誤り訂正符号化パラメータ変換手段26と、誤り訂正符号計算手段27と、2次元コード化手段28と、表示手段29とを備えている。
[Configuration of two-dimensional code generator]
Next, the configuration of the receiver (two-dimensional code generation device) 2 will be described with reference to FIG.
The receiver (two-dimensional code generation device) 2 is realized by controlling the hardware resources described above by the cooperation of the hardware device and software, and as shown in FIG. Input means 21, data / parameter input means 22, storage means 23, two-dimensional code parameter / surplus bit extraction means 24, data encoding / surplus bit addition means 25, error correction encoding parameter conversion means 26, , An error correction code calculating means 27, a two-dimensional encoding means 28, and a display means 29 are provided.
<個別情報入力手段>
個別情報入力手段21は、個別情報の文字列を入力するものである。個別情報は、受信機やその利用者の個別情報であり、例えば、B-CASカード番号や郵便番号等である。入力された個別情報の文字列は、データ符号化・余剰ビット付加手段25に出力される。
<Individual information input means>
The individual information input means 21 inputs a character string of individual information. The individual information is individual information of the receiver and its user, such as a B-CAS card number or a postal code. The character string of the input individual information is output to the data encoding / surplus
<データ・パラメータ入力手段>
データ・パラメータ入力手段22は、図1に示す符号化演算支援装置1で生成されたデータおよびパラメータを入力するものである。ここで、データおよびパラメータとは、部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを意味する。このうち、パラメータ(Cp、B1、N1)は、2次元コードパラメータ・余剰ビット抽出手段24に出力される。また、部分的なQRコード(D1、E1)と、パラメータ(Cp)は、2次元コード化手段28に出力される。
<Data / parameter input means>
The data / parameter input means 22 inputs data and parameters generated by the encoding
<記憶手段>
記憶手段23は、メモリやハードディスク等の記憶装置から構成され、入力された情報やCPU等の処理結果を一時記憶したり、動作プログラムを格納したりするものである。この記憶手段23は、誤り訂正符号化パラメータ変換表を記憶することとした。誤り訂正符号化パラメータ変換表は、図6(b)に例示したものにおいて、「前半処理ブロック数」の項目を省略したテーブルと同様なものである。
<Storage means>
The storage means 23 is composed of a storage device such as a memory or a hard disk, and temporarily stores input information and processing results of the CPU, etc., and stores an operation program. The storage means 23 stores an error correction coding parameter conversion table. The error correction coding parameter conversion table is the same as the table illustrated in FIG. 6B in which the item “number of first half processing blocks” is omitted.
<2次元コードパラメータ・余剰ビット抽出手段>
2次元コードパラメータ・余剰ビット抽出手段24は、データ・パラメータ入力手段22に入力したデータおよびパラメータのうち、2次元コードパラメータCpと、余剰ビットB1と、計算済みブロック数N1とを抽出するものである。抽出されたパラメータのうち、2次元コードパラメータCpおよび余剰ビットB1は、データ符号化・余剰ビット付加手段25に出力される。また、抽出されたパラメータのうち、2次元コードパラメータCpおよび計算済みブロック数N1は、誤り訂正符号化パラメータ変換手段26に出力される。
<Two-dimensional code parameter / excess bit extraction means>
The two-dimensional code parameter / surplus
<データ符号化・余剰ビット付加手段>
データ符号化・余剰ビット付加手段25は、入力された個別情報を符号化し、余剰ビットに繋げることで第2ビット列データを生成するものである。本実施形態では、データ符号化・余剰ビット付加手段25は、個別情報入力手段21から、個別情報を取得し、2次元コードパラメータCpで指定される文字種のモードで符号化し、余剰ビットB1の後ろに繋げて第2ビット列データを生成し、誤り訂正符号計算手段27に出力する。
<Data encoding / surplus bit addition means>
The data encoding / surplus bit adding means 25 encodes the input individual information and connects it to the surplus bits to generate second bit string data. In the present embodiment, the data encoding / surplus bit adding means 25 acquires the individual information from the individual information input means 21, encodes it in the character type mode specified by the two-dimensional code parameter C p , and the surplus bit B 1. The second bit string data is generated after being connected to the error code and output to the error correction code calculation means 27.
具体的には、図7(a)に示す例のように、個別情報の文字列が23文字、「文字種モード」=EISUであって、3-Q型の場合には、前記した式(1)の右辺の第3項および第4項の計算から、個別情報の文字列のデータ符号化後のビット数は、127ビットとなる。ここで、前記したように、共通情報の文字列が24文字の場合の余剰ビットB1は、9ビットであったので、この例の場合には、第2ビット列データのビット列の長さは、136ビットとなり、RSブロックのサイズ(17バイト=136ビット)と等しくなる。 Specifically, as in the example shown in FIG. 7A, when the character string of the individual information is 23 characters, “character type mode” = EISU and the 3-Q type, the above-described formula (1) ), The number of bits after data encoding of the character string of the individual information is 127 bits. Here, as described above, the surplus bit B 1 when the character string of the common information is 24 characters is 9 bits. In this example, the length of the bit string of the second bit string data is 136 bits, which is equal to the RS block size (17 bytes = 136 bits).
<誤り訂正符号化パラメータ変換手段>
誤り訂正符号化パラメータ変換手段26は、記憶手段23に予め記憶された誤り訂正符号化パラメータ変換表を参照して、入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、誤り訂正符号計算手段27に対して誤り訂正計算を行う部分を指定するものである。
<Error correction coding parameter conversion means>
The error correction coding parameter conversion means 26 refers to the error correction coding parameter conversion table stored in advance in the storage means 23, obtains an error correction parameter that matches the input two-dimensional code parameter, and calculates an error correction code. The part for performing error correction calculation is designated for the
本実施形態では、誤り訂正符号化パラメータ変換手段26は、2次元コードパラメータ・余剰ビット抽出手段24から、2次元コードパラメータCpを取得することとした。具体的には、誤り訂正符号化パラメータ変換手段26は、3-Q型の2次元コードパラメータCpが入力されると、図6(b)に示す誤り訂正符号化パラメータ変換表から、RSパラメータとして、「RSブロック数」=2、「RSブロック」=(35,17,9)の各情報が記述された行を特定する。RSブロックのサイズは、17バイト(136ビット)と求められる。そして、誤り訂正符号化パラメータ変換手段26は、算出したRSブロックのサイズ(例えば136ビット)を、ブロック情報として誤り訂正符号計算手段18に出力することで、誤り訂正符号計算手段18に対して、RSブロックのサイズ毎に、誤り訂正計算をするように指定する。
In this embodiment, the error correction coding
<誤り訂正符号計算手段>
誤り訂正符号計算手段27は、第2ビット列データのビット数のうち、誤り訂正符号化パラメータ変換手段17で指定された誤り訂正ブロックに該当するデータを示すデータ符号D2について誤り訂正計算を行って誤り訂正符号E2を算出するものである。算出されたデータ符号D2および誤り訂正符号E2は、2次元コード化手段28に出力される。
<Error correction code calculation means>
The error correction code calculation means 27 performs error correction calculation on the data code D 2 indicating the data corresponding to the error correction block designated by the error correction coding parameter conversion means 17 out of the number of bits of the second bit string data. The error correction code E 2 is calculated. The calculated data code D 2 and error correction code E 2 are output to the two-dimensional encoding means 28.
<2次元コード化手段>
2次元コード化手段28は、データ・パラメータ入力手段22から取得した2次元コードパラメータCp、データ符号D1および誤り訂正符号E1と、誤り訂正符号計算手段27から取得したデータ符号D2および誤り訂正符号E2と、を用いて2次元コードを生成するものである。図7(a)に示す例のように、共通情報の文字列が24文字、個別情報の文字列が23文字、「文字種モード」=EISUであって、3-Q型の場合には、データ・パラメータ入力手段22から取得したデータ符号D1および誤り訂正符号E1は、図7(c)において“送信側”に示すビット列で模式的に表すことができる。同様に、誤り訂正符号計算手段27から取得したデータ符号D2および誤り訂正符号E2は、図7(c)において“受信側”に示すビット列で模式的に表すことができる。
<Two-dimensional coding means>
The two-
そして、2次元コード化手段28は、“送信側”と“受信側”のデータ符号を1つにまとめ、かつ、“送信側”と“受信側”の誤り訂正符号を1つにまとめるように並べ替える。この並び替え処理により、左からデータ符号D1、データ符号D2、誤り訂正符号E1、誤り訂正符号E2の順に整列される。そして、2次元コード化手段28は、マスク処理を行う。QRコードの場合、このマスク処理は、JIS X 0510の仕様で行ってもよいし、非特許文献1に記載の方法で行ってもよい。続いて、2次元コード化手段28は、ビット列の「0」に白、「1」に黒を割り当てる白黒割当処理を行い、処理結果を表示手段29に出力する。
Then, the two-dimensional encoding means 28 combines the data codes of “transmission side” and “reception side” into one, and the error correction codes of “transmission side” and “reception side” into one. Rearrange. By this rearrangement process, data code D 1 , data code D 2 , error correction code E 1 , and error correction code E 2 are arranged in this order from the left. Then, the two-
<表示手段>
表示手段29は、QRコードシンボルを表示するものであって、例えばLCD等から構成される。なお、図5に示すように、2次元コード生成装置2を受信装置(デジタル放送受信装置)4に含む場合には、表示手段29は、図5に示す表示手段43として構成される。
<Display means>
The display means 29 displays a QR code symbol and is composed of, for example, an LCD. As shown in FIG. 5, when the two-dimensional
前記した符号化演算支援装置1および2次元コード生成装置2は、一般的なコンピュータを、前記した各手段として機能させるプログラムにより動作させることで実現することができる。このプログラム(符号化演算支援プログラム、2次元コード生成プログラム)は、通信回線を介して提供することも可能であるし、CD−ROM等の記録媒体に書き込んで配布することも可能である。
The encoding
[デジタル放送システムの構成]
次に、図5を参照して、第1実施形態に係る2次元コード生成システムを、デジタル放送システムにおいて実施する例について説明する。図5に示したデジタル放送システムSは、デジタル放送送信装置3が、放送波を介して、受信装置(デジタル放送受信装置)4にデジタル放送を配信するシステムである。
[Configuration of digital broadcasting system]
Next, an example in which the two-dimensional code generation system according to the first embodiment is implemented in a digital broadcasting system will be described with reference to FIG. The digital broadcast system S shown in FIG. 5 is a system in which a digital
<デジタル放送送信装置>
デジタル放送送信装置3は、デジタル放送番組の番組コンテンツを配信するものであり、さらに、データ放送として電子文書(BML文書)を配信するものである。デジタル放送送信装置3は、受信装置4が、共通情報と、受信装置4毎に個別の情報である個別情報とを含む2次元コードを生成するための2次元コード生成プログラム等をBML文書に組み込む。また、デジタル放送送信装置3は、共通情報から得られた部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とをデータ放送コンテンツのBML文書に組み込む。このデジタル放送送信装置3は、主に、コンテンツ記憶手段31と、放送制御手段32と、放送送出手段33とを備えている。
<Digital broadcast transmitter>
The digital
コンテンツ記憶手段31は、デジタル放送の番組コンテンツやデータ放送コンテンツ等の各種コンテンツを記憶するものであって、ハードディスク等の記憶装置である。
放送制御手段32は、コンテンツ記憶手段31から、番組コンテンツ、データ放送コンテンツ等を読み出して、放送送出手段33に出力するものである。この放送制御手段32には、符号化演算支援装置1を備えている。符号化演算支援装置1は、共通情報から得られた部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを出力する。
放送制御手段32は、データ放送コンテンツのBML文書に、部分的なQRコード(D1、E1)およびパラメータ(Cp、B1、N1)と、2次元コード生成プログラム等を組み込む。なお、放送制御手段32は、詳細な説明は省略するが、デジタル放送の限定受信システムに対応してコンテンツのスクランブル、鍵情報の暗号化等の各種の制御を行う。
放送送出手段33は、放送制御手段32から出力される番組コンテンツ、データ放送のデータ等を多重化して、データカルーセルで伝送(配信)するものである。
The content storage means 31 stores various contents such as digital broadcast program contents and data broadcast contents, and is a storage device such as a hard disk.
The broadcast control means 32 reads program content, data broadcast content, etc. from the content storage means 31 and outputs them to the broadcast sending means 33. The broadcast control means 32 includes an encoding
The broadcast control means 32 incorporates a partial QR code (D 1 , E 1 ) and parameters (C p , B 1 , N 1 ), a two-dimensional code generation program, and the like into the BML document of the data broadcast content. The broadcast control means 32 performs various controls such as content scrambling and key information encryption corresponding to the digital broadcast conditional access system, although detailed explanation is omitted.
The broadcast transmission means 33 multiplexes the program content output from the broadcast control means 32, data of data broadcast, etc., and transmits (distributes) them in the data carousel.
<受信装置>
受信装置(デジタル放送受信装置)4は、放送波を介して、デジタル放送を受信するものであって、一般的なデジタル放送受信装置である。ここでは、受信装置4は、放送受信手段41と、ユーザ操作手段42と、表示手段43と、コンテンツ蓄積手段44と、記憶手段45と、受信制御手段46とを備えている。そして、受信装置4は、セキュリティモジュールである個別情報記憶カード5を装着されることで、デジタル放送の受信を可能としている。個別情報記憶カード5は、例えば、図4に示すB-CASカードである。
<Receiving device>
The receiving device (digital broadcast receiving device) 4 receives a digital broadcast via a broadcast wave, and is a general digital broadcast receiving device. Here, the receiving
放送受信手段41は、デジタル放送送信装置3から送出されるデジタル放送を受信するチューナ等から構成され、個別情報記憶カード5の装着時に受信したデジタル信号を受信制御手段46に出力するものである。
ユーザ操作手段42は、ユーザの操作により指定されるコマンドを受信制御手段46に出力するものであり、例えば、リモコン装置等である。
表示手段43は、受信制御手段46の処理結果として復号されたデジタル放送番組、データ放送を画面上に表示するものであり、例えば、LCD等である。
The broadcast receiving means 41 is composed of a tuner or the like that receives a digital broadcast transmitted from the digital
The
The display means 43 displays the digital broadcast program and data broadcast decoded as the processing result of the reception control means 46 on the screen, and is, for example, an LCD.
コンテンツ蓄積手段44は、放送受信手段41で受信したデジタル放送番組等のコンテンツを記憶するものであり、ハードディスク等で構成される。
記憶手段45は、受信制御手段46等の動作プログラムやその処理結果等を記憶するものであり、メモリやハードディスク等で構成される。この記憶手段45には、個別情報を取得する個別情報取得プログラムが予め記憶されている。なお、個別情報取得プログラムはデータ放送により配信するようにしてもよい。この記憶手段45には、例えば、ユーザの住所、年齢等の個人情報を記憶した不揮発性メモリであるNVRAMも含むこととする。
The
The
受信制御手段46は、放送受信手段41で受信したデジタル信号の再生・表示制御するものである。ここでは、受信制御手段46は、2次元コード生成装置2と、コンテンツ再生制御手段461と、表示制御手段462とを備えている。
The reception control means 46 controls reproduction / display of the digital signal received by the broadcast receiving means 41. Here, the
2次元コード生成装置2は、デジタル放送送信装置3から、2次元コード生成プログラムを含む電子文書を受信した際に、当該電子文書に組み込まれている情報(2次元コード生成プログラム)に基づいて機能するものである。2次元コード生成装置2は、デジタル放送送信装置3の符号化演算支援装置1が出力する情報を含む電子文書を受信した際に、当該電子文書に組み込まれている情報(部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1))に基づいて、個別情報記憶カード5から、個別情報としてカード番号を取得し、2次元コードとしてQRコードを生成し、表示手段43に表示させる。
The two-dimensional
コンテンツ再生制御手段461は、受信した多重化されたデジタル信号から暗号化鍵情報やコンテンツ等を分離し、鍵情報を復号して、コンテンツをデスクランブルすることでコンテンツを再生する制御を行うものである。 The content reproduction control means 461 performs control to reproduce the content by separating the encryption key information and content from the received multiplexed digital signal, decrypting the key information, and descrambling the content. is there.
表示制御手段462は、コンテンツ再生制御手段461で再生されたコンテンツを表示手段43に表示させるものである。また、表示制御手段462は、データ放送の電子文書であるBMLを解析し、表示制御を行うものでもある。
The
このように、受信装置4は、共通情報の符号化および誤り訂正符号計算については、予め配信側で算出された結果をそのまま利用し、個別情報の符号化および誤り訂正符号計算については、受信装置4内で実行し、2次元コードを生成し、表示する。
As described above, the
[デジタル放送システムの動作]
次に、デジタル放送システムSの動作について図4を参照(適宜図5参照)して説明する。まず、デジタル放送送信装置3は、放送制御手段32によって、放送用の電子文書に情報(2次元コード生成プログラム等)を組み込み、2次元コード表示用電子文書を生成する。また、デジタル放送送信装置3は、放送制御手段32によって、放送用の電子文書に情報(部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1))を組み込み、2次元コード表示用電子文書を生成する。なお、放送制御手段32は、2次元コード生成プログラムと、部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とをまとめて組み込んでもよい。そして、デジタル放送送信装置3は、生成した2次元コード表示用電子文書を、放送送出手段33によって、放送波を介して配信(送出)する(S31)。
[Operation of digital broadcasting system]
Next, the operation of the digital broadcasting system S will be described with reference to FIG. 4 (refer to FIG. 5 as appropriate). First, the digital
一方、受信装置4(図4では受信機2と表記)は、放送受信手段41によって、放送波を介して、2次元コード表示用電子文書を受信する。そして、受信装置4は、受信制御手段46によって、2次元コード表示用電子文書を解析し、2次元コード生成プログラムを展開することによって2次元コード生成装置2として機能する。また、この2次元コード生成装置2は、2次元コード表示用電子文書に組み込まれている部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを取得すると、受信機2に装着されているB-CASカード(個別情報記憶カード)5のカード番号等の個別情報を取得する(S32)。さらに、受信装置4の2次元コード生成装置2は、2次元コードパラメータによって、カード番号等の個別情報と、取得した部分的なQRコードとから2次元コードを生成する(S33)。
On the other hand, the receiving device 4 (denoted as
これにより、受信機2は、データ放送(電子文書)上に、共通情報の文字列および個別情報の文字列を含むQRコードシンボルを生成し表示する。視聴者は、携帯電話機6の2次元コード読み取り機能を用いることで、画面表示されたQRコードシンボルを読み取る。そして、視聴者が、読み取ったURLにアクセスする操作を行うと、QRコードシンボルの内容のうち、共通情報の文字列が例えば、放送事業者のCGIサーバのアドレスを意味していれば、個別情報の文字列がインターネットを介して、このCGIサーバに伝送され、放送事業者でユーザ登録が管理されることとなる。
Thereby, the
第1実施形態によれば、送信側の符号化演算支援装置1によって、共通情報の文字列の大部分およびヘッダ情報を符号化したデータ符号の誤り訂正計算を予め行っておくので、2次元コードを生成して表示する受信側では、2次元コードを生成する処理負荷を軽減することができる。
According to the first embodiment, the encoding
特に、古い受信機においてデータサイズの大きな個別QRコードを生成する場合には、従来は数十秒単位の所要時間であったが、本実施形態のQRコード生成プログラムをダウンロードした古い受信機は、QRコードの生成対象を、ほぼ個別情報の文字列だけに絞ることができる。そのため、全体のデータサイズに対する個別情報の文字列サイズの割合(受信側が分担する割合)にも依存するが、従来の1/3〜2/3程度の高速表示が可能である。そのため、この時間短縮効果により、現在世の中に普及している受信機性能のばらつきを考慮したとしても、より多くの視聴者の利便性を向上させることができる。 In particular, when generating an individual QR code with a large data size in an old receiver, the time required in the past is several tens of seconds, but the old receiver that downloaded the QR code generation program of this embodiment is QR code generation targets can be narrowed down to just individual information strings. Therefore, although depending on the ratio of the character string size of the individual information to the entire data size (ratio shared by the receiving side), high-speed display of about 1/3 to 2/3 of the conventional one is possible. For this reason, this time shortening effect can improve the convenience of more viewers even when the variation in receiver performance that is currently popular in the world is taken into consideration.
また、広く普及した一般の携帯電話機を、QRコード対応の読み取り装置として利用できるため、デジタル放送システムにおいて、視聴者のユーザ登録の用途だけに限定されずに、クイズ番組に対する視聴者の回答や、アンケートの回収といった利用にすぐにでも導入することができる。この場合、視聴者の回答内容や、アンケート記入内容が個別情報として管理されることとなる。 In addition, since a general mobile phone that is widely spread can be used as a QR code compatible reader, the digital broadcast system is not limited to the use of viewer user registration, but the viewer's response to a quiz program, It can be used immediately for collecting questionnaires. In this case, the response contents of the viewer and the questionnaire entry contents are managed as individual information.
(第2実施形態)
第2実施形態に係る2次元コード生成システムは、図8に示す符号化演算支援装置1Bおよび図2に示す受信機(2次元コード生成装置)2を備える。
符号化演算支援装置1Bは、テキスト入力手段51と、2次元コードパラメータ入力手段52と、記憶手段13と、ヘッダ付加・データ符号化手段16と、誤り訂正符号化パラメータ変換手段17と、誤り訂正符号計算手段18と、出力手段19とを備えている。なお、第1実施形態の符号化演算支援装置1と同じ構成には同じ符号を付して説明を省略する。
(Second Embodiment)
The two-dimensional code generation system according to the second embodiment includes an encoding calculation support device 1B shown in FIG. 8 and a receiver (two-dimensional code generation device) 2 shown in FIG.
The encoding operation support apparatus 1B includes a
テキスト入力手段51は、共通情報の文字列と仮個別情報の文字列とを繋げたテキストを入力するものである。なお、テキスト入力手段51は、文字種のモードも入力する。
このテキスト入力手段51において、共通情報の文字数には、図1に示した共通情報入力手段11に入力される共通情報の文字数と同様な制限がある。入力されたテキストおよび文字種のモードは、ヘッダ付加・データ符号化手段16に出力される。
The text input means 51 inputs text in which a character string of common information and a character string of temporary individual information are connected. The text input means 51 also inputs a character type mode.
In this text input means 51, the number of characters of common information has the same restrictions as the number of characters of common information input to the common information input means 11 shown in FIG. The input text and character type modes are output to the header addition / data encoding means 16.
2次元コードパラメータ入力手段52は、外部から2次元コードパラメータCpを入力するものである。この入力された2次元コードパラメータCpは、ヘッダ付加・データ符号化手段16、誤り訂正符号化パラメータ変換手段17、および出力手段19に出力される。
2-dimensional code parameter input means 52 is used to input the two-dimensional code parameter C p externally. The input two-dimensional code parameter C p is output to the header addition /
ヘッダ付加・データ符号化手段16は、テキスト入力手段51から、共通情報の文字列と仮個別情報の文字列とを繋げたテキストと文字種のモードとを取得し、2次元コードパラメータ入力手段52から、2次元コードパラメータCpを取得する。また、ヘッダ付加・データ符号化手段16は、共通情報の文字列と仮個別情報の文字列とを繋げたテキストを取得すると、取得テキストの文字数をカウントする。このカウント結果は、共通情報および個別情報の文字列の文字数の合計値を示す。
The header addition /
第2実施形態に係る符号化演算支援装置1Bは、2次元コードパラメータCpを外部から入力するので、装置内部で生成する場合に比べて簡易な構成とすることができる。例えば、共通情報および個別情報の文字列の文字数が固定された個別2次元コードを生成する用途に適している。 Since the encoding calculation support device 1B according to the second embodiment inputs the two-dimensional code parameter Cp from the outside, the configuration can be simplified as compared with the case where the encoding calculation support device 1B is generated inside the device. For example, it is suitable for the purpose of generating an individual two-dimensional code in which the number of characters in the character strings of common information and individual information is fixed.
(第3実施形態)
次に、図9および図10を参照して、第3実施形態に係る2次元コード生成システムについて説明する。前記第1および第2実施形態は、2次元コードを生成するための符号化演算処理を2つの装置で分担したが、3つ以上の装置で分担するようにしてもよい。この場合、最初と最後をつなぐ途中の装置(中継装置)は、同様な符号化演算処理を同様に行う多段構成とすることができる。第3実施形態に係る2次元コード生成システムは、図1(または図8)に示す符号化演算支援装置1(1B)および図2に示す受信機(2次元コード生成装置)2と、少なくとも1つの符号化演算支援装置1C(図9参照)とを備える。なお、QRコードの場合、RSブロック数は「81」まで規定されているので、理論的には処理を81分割して79の中継装置を設けることが可能である。
(Third embodiment)
Next, a two-dimensional code generation system according to the third embodiment will be described with reference to FIGS. 9 and 10. In the first and second embodiments, encoding operation processing for generating a two-dimensional code is shared by two devices, but may be shared by three or more devices. In this case, a device (relay device) that is in the middle of connecting the first and last can have a multi-stage configuration that similarly performs the same encoding operation processing. The two-dimensional code generation system according to the third embodiment includes at least one encoding operation support apparatus 1 (1B) shown in FIG. 1 (or FIG. 8) and the receiver (two-dimensional code generation apparatus) 2 shown in FIG. One encoding calculation support device 1C (see FIG. 9). In the case of a QR code, the number of RS blocks is defined up to “81”, so theoretically, it is possible to divide the processing into 81 and provide 79 relay devices.
図9に示す符号化演算支援装置(中継装置)1Cは、図1(または図8)に示す符号化演算支援装置1(1B)、または、他の符号化演算支援装置1Cが出力するデータおよびパラメータを引き継ぎ情報として取得し、処理結果として生成したデータおよびパラメータを、取得した引き継ぎ情報に加えて、図2に示す受信機(2次元コード生成装置)2または他の符号化演算支援装置1Cに出力する。 The encoding calculation support apparatus (relay apparatus) 1C shown in FIG. 9 includes data output from the encoding calculation support apparatus 1 (1B) shown in FIG. 1 (or FIG. 8) or other encoding calculation support apparatus 1C and The parameter is acquired as takeover information, and the data and parameters generated as a processing result are added to the acquired takeover information, and are added to the receiver (two-dimensional code generation device) 2 shown in FIG. 2 or another encoding calculation support device 1C. Output.
このときの処理の概要を図10に示す。ここでは、第3の実施形態に係る2次元コード生成システムを、デジタル放送システムに適用する場合を想定し、符号化演算支援装置(中継装置)1Cは、放送局に設けられるものとする。この場合、放送局内で最後の中継装置が、デジタル放送送信装置3(図5参照)に組み込まれることとしてもよいし、最後の中継装置が、データおよびパラメータをBML文書に組み込む機能を有した他のデジタル放送送信装置に出力することとしてもよい。 An overview of the processing at this time is shown in FIG. Here, it is assumed that the two-dimensional code generation system according to the third embodiment is applied to a digital broadcast system, and the encoding calculation support device (relay device) 1C is provided in a broadcast station. In this case, the last relay device in the broadcasting station may be incorporated in the digital broadcast transmission device 3 (see FIG. 5), or the last relay device has a function of incorporating data and parameters into the BML document. It is good also as outputting to the digital broadcast transmission apparatus.
以下では、簡便のため、符号化演算支援装置1Cが1つの場合であって、図1に示す符号化演算支援装置1からデータおよびパラメータを取得するものとして図10を参照して処理の概要を説明する。なお、図9においては、図1に示す符号化演算支援装置1が出力するデータおよびパラメータを、部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)と表記し、符号化演算支援装置(中継装置)1Cが出力するデータおよびパラメータを、部分的なQRコード(D3、E3)と、パラメータ(Cp、B3、N3)と表記した。順序が最初の符号化演算支援装置1の仮個別情報付加手段14は、ヘッダの文字数指示子として、共通情報の文字数と全ての個別情報の文字数との合計文字数を符号化する。
In the following, for the sake of simplicity, it is assumed that there is one encoding calculation support device 1C, and the outline of the processing will be described with reference to FIG. 10 as data and parameters obtained from the encoding
図10に示すS11〜S14Cは、図3に示すS11〜S14と同様である。ただし、S14Cでは、符号化演算支援装置1は、符号化演算支援装置(中継装置)1Cに対してデータおよびパラメータ(D1、E1、Cp、B1、N1)を出力する。
S11 to S14C illustrated in FIG. 10 are the same as S11 to S14 illustrated in FIG. However, in S14C, the encoding
図10に示すS15〜S18は、S11〜S14Cと同様である。ただし、S15では、符号化演算支援装置(中継装置)1Cは、当該中継装置またはその利用者の個別情報を入力する。また、S17では、符号化演算支援装置(中継装置)1Cは、図1に示すヘッダ付加・データ符号化手段16によるヘッダ付加はしない代わりに、当該装置に入力される個別情報を符号化した後に、その符号化後のビット列の頭に、取得した余剰ビットB1を付加する。さらに、S18では、符号化演算支援装置(中継装置)1Cは、受信機(2次元コード生成装置)2に対してデータおよびパラメータ(D3、E3、Cp、B3、N3)を出力(配信)する。 S15 to S18 shown in FIG. 10 are the same as S11 to S14C. However, in S15, the encoding calculation support device (relay device) 1C inputs the individual information of the relay device or its user. In S17, the encoding operation support apparatus (relay apparatus) 1C encodes the individual information input to the apparatus instead of adding the header by the header addition / data encoding means 16 shown in FIG. The acquired surplus bit B 1 is added to the head of the encoded bit string. Further, in S18, the encoding operation support device (relay device) 1C sends data and parameters (D 3 , E 3 , C p , B 3 , N 3 ) to the receiver (two-dimensional code generation device) 2. Output (deliver).
図10に示すS21〜S25は、図3に示したものと同様なので、説明を省略する。ただし、S24Cでは、受信機(2次元コード生成装置)2は、データ符号D1および誤り訂正符号E1と、データ符号D3および誤り訂正符号E3とを取得し、データ符号D2および誤り訂正符号E2を有しているので、並び替え処理は次のように行う。すなわち、データ符号のグループと、誤り訂正符号のグループとに分別し、符号化演算処理を適用した順番に入れ替える。そのため、先頭(左)からデータ符号D1、データ符号D3、データ符号D2、誤り訂正符号E1、誤り訂正符号E3、誤り訂正符号E2の順に整列させる。なお、符号化演算支援装置側のS14Cで図示したシンボルと、中継装置のS18で図示したシンボルと、受信機側のS23で図示したシンボルとの3つの情報を合わせることで、受信機側のS25でQRコードシンボルが完成することを概念的に示した。 Since S21 to S25 shown in FIG. 10 are the same as those shown in FIG. However, the S24c, the receiver (2-dimensional code generation device) 2, a data code D 1 and the error correction code E 1, acquires the data symbols D 3 and the error correction code E 3, data symbols D 2 and error Since the correction code E 2 is included, the rearrangement process is performed as follows. In other words, the data code group and the error correction code group are separated and switched to the order in which the encoding operation processing is applied. Therefore, the data code D 1 , the data code D 3 , the data code D 2 , the error correction code E 1 , the error correction code E 3 , and the error correction code E 2 are arranged in order from the top (left). It should be noted that by combining the three information of the symbol illustrated in S14C on the coding operation support apparatus side, the symbol illustrated in S18 of the relay apparatus, and the symbol illustrated in S23 on the receiver side, S25 on the receiver side is combined. The above conceptually shows that the QR code symbol is completed.
図9に戻って、符号化演算支援装置(中継装置)1Cの構成を説明する。
符号化演算支援装置(中継装置)1Cは、個別情報入力手段61と、データ・パラメータ入力手段62と、記憶手段63と、2次元コードパラメータ・余剰ビット抽出手段64と、データ符号化・余剰ビット付加手段65と、誤り訂正符号化パラメータ変換手段66と、誤り訂正符号計算手段67と、出力手段68とを備えている。
Returning to FIG. 9, the configuration of the encoding calculation support device (relay device) 1C will be described.
The encoding operation support device (relay device) 1C includes an individual
個別情報入力手段61と、データ・パラメータ入力手段62と、記憶手段63と、2次元コードパラメータ・余剰ビット抽出手段64と、データ符号化・余剰ビット付加手段65は、図2に示す受信機(2次元コード生成装置)2の個別情報入力手段21と、データ・パラメータ入力手段22と、記憶手段23と、2次元コードパラメータ・余剰ビット抽出手段24と、データ符号化・余剰ビット付加手段25と同様なので、説明を省略する。ただし、データ・パラメータ入力手段62は、部分的なQRコード(D1、E1)と、2次元コードパラメータCpとを出力手段68に出力する。 The individual information input means 61, the data / parameter input means 62, the storage means 63, the two-dimensional code parameter / surplus bit extraction means 64, and the data encoding / surplus bit addition means 65 are connected to the receiver shown in FIG. Individual information input means 21, data / parameter input means 22, storage means 23, two-dimensional code parameter / surplus bit extraction means 24, data encoding / surplus bit addition means 25, Since it is the same, description is abbreviate | omitted. However, the data / parameter input means 62 outputs the partial QR code (D 1 , E 1 ) and the two-dimensional code parameter C p to the output means 68.
また、誤り訂正符号化パラメータ変換手段66と、誤り訂正符号計算手段67と、出力手段68は、図1に示す符号化演算支援装置1の誤り訂正符号化パラメータ変換手段17と、誤り訂正符号計算手段18と、出力手段19と同様なので、説明を省略する。ただし、出力手段19は、部分的なQRコード(D1、E1、D3、E3)と、パラメータ(Cp、B3、N3)とを出力する。したがって、受信機(2次元コード生成装置)2の2次元コード化手段28は、並び替え処理により、左からデータ符号D1、データ符号D3、データ符号D2、誤り訂正符号E1、誤り訂正符号E3、誤り訂正符号E2の順に整列する。
Further, the error correction coding parameter conversion means 66, the error correction code calculation means 67, and the output means 68 are the error correction coding parameter conversion means 17 and the error correction code calculation of the coding
第3実施形態によれば、視聴者の受信機2に2次元コードを生成するための符号化演算処理を放送局側の多くの装置で分担できるので、より大きな2次元コードを視聴者の受信機2に表示することができる。例えば、本発明で適用できる最小サイズは、QRコードでは、「型番3」の29×29モジュールであるが、QRコードの最大サイズは「型番40」の177×177モジュールまであるので、こういった大きなサイズのQRコードシンボルが表示可能となる。
According to the third embodiment, the encoding operation processing for generating the two-dimensional code in the viewer's
なお、放送事業者では、自前の情報を視聴者に公開するだけではなく、例えば、天気予報であれば気象庁から情報を取得するなどしているので、中継装置を官公庁等の外部のサーバとしてもよい。 In addition, broadcasters not only disclose their own information to viewers but also acquire information from the Japan Meteorological Agency, for example, if it is a weather forecast, so the relay device can also be used as an external server such as a public office Good.
また、共通情報の文字列として、URLを用いる代わりに、「mailto: … 」のようにメールアドレスやメール本文とすることもできる。そして、各中継装置またはその利用者の個別情報を、メールアドレス、メール本文、メール本文への署名とすることもできる。仮に、各中継装置の利用者の署名を、各中継装置で入力される個別情報として、かつ、共通情報をURLとすると、受信機2で入力された個別情報は、各中継装置の利用者全員の賛同がなければ、該当するURLに送信されない。この意味で、グループ署名に適用することが可能である。この場合、受信機2から収集され管理される個別情報へのアクセスを制限するといった運用が可能となる。
Further, instead of using a URL as the character string of the common information, it can be an email address or an email text such as “mailto:...”. The individual information of each relay device or its user can be a mail address, a mail text, and a signature on the mail text. Assuming that the signature of each relay device user is the individual information input at each relay device and the common information is a URL, the individual information input at the
(第4実施形態)
第4実施形態に係る2次元コード生成システムは、送信側でマスク処理まで行うこととした。このときの処理の概要を図11に示す。図11に示すS11〜S14Dは、図3に示すS11〜S14と同様である。ただし、S13とS14Dとの間に、符号化演算支援装置1は、生成した部分的なQRコード(D1、E1)にマスク処理を行う。このマスク処理は、図1に示す誤り訂正符号計算手段18において誤り訂正計算の処理の後に続いて行ってもよいし、図示しない専用のマスク処理手段を設けて行ってもよい。そして、S14Dでは、マスク処理された部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを出力する。
(Fourth embodiment)
In the two-dimensional code generation system according to the fourth embodiment, mask processing is performed on the transmission side. An outline of the processing at this time is shown in FIG. S11 to S14D shown in FIG. 11 are the same as S11 to S14 shown in FIG. However, between S13 and S14D, the encoding
図11に示すS21〜S25は、図3に示したものと同様なので、説明を省略する。ただし、受信機(2次元コード生成装置)2は、S23に続けて、個別情報の文字列に該当する部分だけマスク処理を行う(S231)。そのため、S24Dの2次元コード化処理は、並び替え処理だけを行う。 Since S21 to S25 shown in FIG. 11 are the same as those shown in FIG. However, the receiver (two-dimensional code generation device) 2 performs mask processing only on the portion corresponding to the character string of the individual information following S23 (S231). Therefore, the two-dimensional encoding process of S24D performs only the rearrangement process.
第4実施形態によれば、送信側において、誤り訂正計算等の符号化演算処理に加えて、共通情報の文字列に該当する部分のマスク処理の数値演算処理まで行うので、受信側の処理負荷をより軽減することができる。 According to the fourth embodiment, on the transmitting side, in addition to the encoding calculation processing such as error correction calculation, the numerical calculation processing of the mask processing of the portion corresponding to the character string of the common information is performed, so the processing load on the reception side Can be further reduced.
(第5実施形態)
第5実施形態に係る2次元コード生成システムは、送信側でマスク処理に加えて、部分的なQRコードのシンボル化まで行うこととした。このときの処理の概要を図12に示す。図12に示すS11〜S14Eは、図11に示すS11〜S14Dと同様である。ただし、S131とS14Eとの間に、符号化演算支援装置1は、マスク処理後の部分的なQRコード(D1、E1)をシンボル化して画像ファイルとする。この処理は、図1に示す誤り訂正符号計算手段18においてマスク処理の後に続いて行ってもよいし、専用の2次元コード化手段28(図2参照)を設けて行ってもよい。そして、S14Eでは、画像ファイル化された部分的なQRコード(D1、E1)と、パラメータ(Cp、B1、N1)とを出力する。
(Fifth embodiment)
In the two-dimensional code generation system according to the fifth embodiment, partial QR code symbolization is performed in addition to mask processing on the transmission side. An overview of the processing at this time is shown in FIG. S11 to S14E shown in FIG. 12 are the same as S11 to S14D shown in FIG. However, between S131 and S14E, the encoding
図12に示すS21〜S25は、図11に示したものと同様なので、説明を省略する。ただし、受信機(2次元コード生成装置)2は、S231に続けて、個別情報の文字列に該当する部分を文字列に変換する処理を行う(S232)。そのため、S24Eの2次元コード化処理は、送信側から取得した画像データ(部分的なQRコード)上に、S232で変換した文字列を配置する処理を行う。つまり、S24Eの処理は、共通情報の部分的なQRコードシンボルの上に、個別情報の部分的なQRコードシンボルを重ね合わせる処理
である。
Since S21 to S25 shown in FIG. 12 are the same as those shown in FIG. However, the receiver (two-dimensional code generation device) 2 performs a process of converting a portion corresponding to the character string of the individual information into a character string following S231 (S232). Therefore, the two-dimensional encoding process of S24E performs a process of arranging the character string converted in S232 on the image data (partial QR code) acquired from the transmission side. That is, the process of S24E is a process of superimposing a partial QR code symbol of individual information on a partial QR code symbol of common information.
なお、S232において、QRコードで読み取らせようとするテキスト(個別情報の文字列)を符号化したビット列を、文字列に変換する処理は、非特許文献1に開示されているように、例えば、黒で塗りつぶされるシンボル部分を、“■”文字(文字コードShift JIS:0x81A1)に置き換えたり、左上1/4が黒い形状の外字フォントを用いて置き換えたりすることで実現できる。
In S232, as disclosed in
第5実施形態によれば、送信側において、誤り訂正計算等の符号化演算処理に加えて、部分的なQRコードのシンボル化まで行うので、受信機2は、並べ替え処理等をする必要がなく、受信側の処理負荷をより軽減することができる。
According to the fifth embodiment, on the transmitting side, in addition to encoding operation processing such as error correction calculation, partial QR code symbolization is performed, so the
以上、本発明の各実施形態について説明したが、本発明は、これらの実施形態には限定されない。その仕様さえ満足するならば、例えば、QRコード以外の2次元コードであっても用いることができる。また、各実施形態では、個別情報記憶カード5をB-CASカードとして例示したが、本発明はこれに限定されるものではなく、他のICカードを用いてもよい。
As mentioned above, although each embodiment of the present invention was described, the present invention is not limited to these embodiments. As long as the specifications are satisfied, for example, a two-dimensional code other than a QR code can be used. In each embodiment, the individual
1,1B 符号化演算支援装置
1C 符号化演算支援装置(中継装置)
11 共通情報入力手段
12 個別情報文字数入力手段
13 記憶手段
14 仮個別情報付加手段
15 2次元コードパラメータ生成手段
16 ヘッダ付加・データ符号化手段
17 誤り訂正符号化パラメータ変換手段
18 誤り訂正符号計算手段
19 出力手段
2 受信機(2次元コード生成装置)
21 個別情報入力手段
22 データ・パラメータ入力手段
23 記憶手段
24 2次元コードパラメータ・余剰ビット抽出手段
25 データ符号化・余剰ビット付加手段
26 誤り訂正符号化パラメータ変換手段
27 誤り訂正符号計算手段
28 2次元コード化手段
29 表示手段
3 デジタル放送送信装置
31 コンテンツ記憶手段
32 放送制御手段
33 放送送出手段
4 受信装置(デジタル放送受信装置)
41 放送受信手段
42 ユーザ操作手段
43 表示手段
44 コンテンツ蓄積手段
45 記憶手段
46 受信制御手段
461 コンテンツ再生制御手段
462 表示制御手段
5 個別情報記憶カード
6 携帯電話機
51 テキスト入力手段
52 2次元コードパラメータ入力手段
61 個別情報入力手段
62 データ・パラメータ入力手段
63 記憶手段
64 2次元コードパラメータ・余剰ビット抽出手段
65 データ符号化・余剰ビット付加手段
66 誤り訂正符号化パラメータ変換手段
67 誤り訂正符号計算手段
68 出力手段
1,1B encoding operation support device 1C encoding operation support device (relay device)
DESCRIPTION OF
21 Individual information input means 22 Data / parameter input means 23 Storage means 24 Two-dimensional code parameter / surplus bit extraction means 25 Data encoding / surplus bit addition means 26 Error correction coding parameter conversion means 27 Error correction code calculation means 28 Two-dimensional Encoding means 29 Display means 3 Digital broadcast transmission apparatus 31 Content storage means 32 Broadcast control means 33 Broadcast transmission means 4 Receiving apparatus (digital broadcast receiving apparatus)
41 Broadcast receiving means 42 User operating means 43 Display means 44 Content storage means 45 Storage means 46 Reception control means 461 Content playback control means 462 Display control means 5 Individual
Claims (7)
前記2次元コードパラメータは、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含み、
前記符号化演算支援装置は、
前記2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段と、
前記共通情報の文字列の文字種のモードを符号化したモード指示子と、前記共通情報および個別情報の文字列の文字数の合計値を符号化した文字数指示子とを繋げてヘッダを生成し、前記文字種のモードで前記共通情報の文字列を符号化し、前記ヘッダに繋げることで第1ビット列データを生成するヘッダ付加・データ符号化手段と、
前記2次元コードパラメータを入力し、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記共通情報の文字列のデータ符号化後のビット数を算出すると共に、前記求めた誤り訂正パラメータから、前記第1ビット列データのビット数以下となるような最大の誤り訂正符号の誤り訂正ブロック数を算出し、各算出結果と前記求めた誤り訂正パラメータとにより誤り訂正計算手順を指定する誤り訂正符号化パラメータ変換手段と、
前記第1ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する誤り訂正符号計算手段と、
前記データ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記算出した誤り訂正符号と、前記2次元コードパラメータとを出力する出力手段と、
を備え、
前記2次元コードはQRコード(登録商標)であり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする符号化演算支援装置。 A two-dimensional code including a character string of common information common to a plurality of two-dimensional code generation devices and a character string of individual information acquired individually by each two-dimensional code generation device is generated and displayed on the electronic document display device. Two-dimensional code generation comprising: a two-dimensional code generation device; and an encoding operation support device that supports an encoding operation that performs encoding and error correction calculation of character strings of the common information and individual information based on two-dimensional code parameters The encoding operation support apparatus in a system,
The two-dimensional code parameter includes information on a type of a two-dimensional code having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string,
The encoding calculation support device includes:
Storage means for storing an error correction coding parameter conversion table created in advance by associating the two-dimensional code parameter with an error correction parameter specifying the number and size of the error correction blocks;
A mode indicator that encodes the mode of the character type of the character string of the common information and a character number indicator that encodes the total number of characters of the character string of the common information and the individual information are connected to generate a header, A header addition / data encoding means for encoding a character string of the common information in a character type mode and generating the first bit string data by connecting to the header;
After inputting the two-dimensional code parameter, referring to the error correction encoding parameter conversion table, obtaining an error correction parameter that matches the input two-dimensional code parameter, and after encoding the character string of the common information And calculating the number of error correction blocks of the maximum error correction code so as to be less than or equal to the number of bits of the first bit string data from the obtained error correction parameter, An error correction coding parameter conversion means for specifying an error correction calculation procedure according to an error correction parameter;
An error correction code for calculating an error correction code by performing an error correction calculation on a data code indicating data corresponding to an error correction block designated by the error correction coding parameter conversion means among the number of bits of the first bit string data A calculation means;
Output that outputs the data code, surplus bits indicating a bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information, the calculated error correction code, and the two-dimensional code parameter Means,
Equipped with a,
The two-dimensional code is a QR code (registered trademark), the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter includes the number of RS blocks and data An encoding operation support apparatus characterized by indicating the number of code words .
前記共通情報の文字列の文字種モードと、前記2次元コードの型と、前記共通情報文字列の許容最小文字数と、前記個別情報文字列の許容最大文字数との情報を予め関連付けて作成された2次元コードパラメータ変換表をさらに記憶し、
前記共通情報の文字列の文字数と、前記個別情報の文字列の文字数と、前記共通情報の文字列の文字種のモードとの各情報を入力し、前記2次元コードパラメータ変換表を参照し、前記入力された各情報に合致する2次元コードの型を含む2次元コードパラメータを生成する2次元コードパラメータ生成手段をさらに備えることを特徴とする請求項1に記載の符号化演算支援装置。 The storage means
2 created in advance by associating information on the character type mode of the character string of the common information, the type of the two-dimensional code, the allowable minimum number of characters of the common information character string, and the allowable maximum number of characters of the individual information character string. Further storing a dimension code parameter conversion table;
Input each information of the number of characters of the character string of the common information, the number of characters of the character string of the individual information, and the character type mode of the character string of the common information, refer to the two-dimensional code parameter conversion table, The encoding operation support apparatus according to claim 1, further comprising a two-dimensional code parameter generation unit configured to generate a two-dimensional code parameter including a two-dimensional code type that matches each input information.
複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含む2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段を備えたコンピュータを、
前記共通情報の文字列の文字種のモードを符号化したモード指示子と、前記共通情報および個別情報の文字列の文字数の合計値を符号化した文字数指示子とを繋げてヘッダを生成し、前記文字種のモードで前記共通情報の文字列を符号化し、前記ヘッダに繋げることで第1ビット列データを生成するヘッダ付加・データ符号化手段、
前記2次元コードパラメータを入力し、前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記共通情報の文字列のデータ符号化後のビット数を算出すると共に、前記求めた誤り訂正パラメータから、前記第1ビット列データのビット数以下となるような最大の誤り訂正符号の誤り訂正ブロック数を算出し、各算出結果と前記求めた誤り訂正パラメータとにより誤り訂正計算手順を指定する誤り訂正符号化パラメータ変換手段、
前記第1ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する誤り訂正符号計算手段、
前記データ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記算出した誤り訂正符号と、前記2次元コードパラメータとを出力する出力手段、
として機能させるためのプログラムであり、
前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする符号化演算支援プログラム。 Encoding of a character string performed in the process of generating a two-dimensional code including a character string of common information common to a plurality of two-dimensional code generation devices and a character string of individual information individually acquired by each two-dimensional code generation device; An encoding operation support program for supporting an encoding operation for performing error correction calculation,
A two-dimensional code parameter including information on a type of a two-dimensional code having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string; the number of the error correction blocks; A computer having storage means for storing an error correction coding parameter conversion table created in advance in association with an error correction parameter for specifying a size;
A mode indicator that encodes the mode of the character type of the character string of the common information and a character number indicator that encodes the total number of characters of the character string of the common information and the individual information are connected to generate a header, A header addition / data encoding means for encoding a character string of the common information in a character type mode and generating the first bit string data by connecting to the header;
After inputting the two-dimensional code parameter, referring to the error correction encoding parameter conversion table, obtaining an error correction parameter that matches the input two-dimensional code parameter, and after encoding the character string of the common information And calculating the number of error correction blocks of the maximum error correction code so as to be less than or equal to the number of bits of the first bit string data from the obtained error correction parameter, An error correction coding parameter conversion means for designating an error correction calculation procedure according to an error correction parameter;
An error correction code for calculating an error correction code by performing an error correction calculation on a data code indicating data corresponding to an error correction block designated by the error correction coding parameter conversion means among the number of bits of the first bit string data Calculation means,
Output that outputs the data code, surplus bits indicating a bit string that has not been subjected to error correction calculation among the encoded bit strings of the common information, the calculated error correction code, and the two-dimensional code parameter means,
Is the order of the program to function as,
The two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter indicates the number of RS blocks and the number of data code words A coding operation support program characterized by the above.
前記2次元コードパラメータは、複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含み、
前記2次元コード生成装置は、
前記2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段と、
前記個別情報を入力する個別情報入力手段と、
前記符号化演算支援装置で生成されたデータおよびパラメータとして、前記共通情報の文字列を符号化してヘッダに繋げた第1ビット列データのビット数のうち、予め指定された誤り訂正ブロックに該当するデータを示すデータ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記データ符号から算出された誤り訂正符号と、前記2次元コードパラメータとを入力するデータ・パラメータ入力手段と、
前記入力された個別情報を符号化し、前記余剰ビットに繋げることで第2ビット列データを生成するデータ符号化・余剰ビット付加手段と、
前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記求めた誤り訂正パラメータにより誤り訂正計算手順を指定する誤り訂正符号化パラメータ変換手段と、
前記第2ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する誤り訂正符号計算手段と、
前記入力された2次元コードパラメータ、データ符号および誤り訂正符号と、前記第2ビット列データに含まれるデータ符号および前記算出された誤り訂正符号とを用いて前記2次元コードを生成する2次元コード化手段と、
を備え、
前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする2次元コード生成装置。 A two-dimensional code including a character string of common information common to a plurality of two-dimensional code generation devices and a character string of individual information acquired individually by each two-dimensional code generation device is generated and displayed on the electronic document display device. Two-dimensional code generation comprising: a two-dimensional code generation device; and an encoding operation support device that supports an encoding operation that performs encoding and error correction calculation of character strings of the common information and individual information based on two-dimensional code parameters The two-dimensional code generation device in a system,
The two-dimensional code parameter includes information on a type of a two-dimensional code having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string,
The two-dimensional code generation device includes:
Storage means for storing an error correction coding parameter conversion table created in advance by associating the two-dimensional code parameter with an error correction parameter specifying the number and size of the error correction blocks;
Individual information input means for inputting the individual information;
The data corresponding to the error correction block designated in advance among the number of bits of the first bit string data obtained by encoding the character string of the common information and connecting it to the header as data and parameters generated by the encoding operation support device A surplus bit indicating a bit string that has not been subjected to error correction calculation among bit strings after encoding of the character string of the common information, an error correction code calculated from the data code, and the two-dimensional code parameter Data and parameter input means for inputting
Data encoding / surplus bit adding means for encoding the input individual information and generating the second bit string data by connecting to the surplus bits;
Error correction coding parameter conversion for obtaining an error correction parameter that matches the input two-dimensional code parameter with reference to the error correction coding parameter conversion table and designating an error correction calculation procedure by the obtained error correction parameter Means,
An error correction code for calculating an error correction code by performing an error correction calculation on a data code indicating data corresponding to an error correction block designated by the error correction coding parameter conversion means among the number of bits of the second bit string data Calculation means;
Two-dimensional coding that generates the two-dimensional code using the input two-dimensional code parameter, data code and error correction code, and the data code and the calculated error correction code included in the second bit string data Means,
Equipped with a,
The two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter indicates the number of RS blocks and the number of data code words A two-dimensional code generator characterized by the above.
複数の誤り訂正ブロックを有する2次元コードの型と、前記共通情報の文字列の文字種モードと、前記共通情報文字列の文字数との情報を含む2次元コードパラメータと、前記誤り訂正ブロックの個数およびサイズを指定する誤り訂正パラメータとを関連付けて予め作成された誤り訂正符号化パラメータ変換表を記憶する記憶手段を備えたコンピュータを、
前記個別情報を入力する個別情報入力手段、
入力データおよび入力パラメータとして、前記共通情報の文字列を符号化してヘッダに繋げた第1ビット列データのビット数のうち、予め指定された誤り訂正ブロックに該当するデータを示すデータ符号と、前記共通情報の文字列の符号化後のビット列のうち誤り訂正計算されなかったビット列を示す余剰ビットと、前記データ符号から算出された誤り訂正符号と、前記2次元コードパラメータとを入力するデータ・パラメータ入力手段、
前記入力された個別情報を符号化し、前記余剰ビットに繋げることで第2ビット列データを生成するデータ符号化・余剰ビット付加手段、
前記誤り訂正符号化パラメータ変換表を参照して、前記入力された2次元コードパラメータに合致する誤り訂正パラメータを求め、前記求めた誤り訂正パラメータにより誤り訂正計算手順を指定する誤り訂正符号化パラメータ変換手段、
前記第2ビット列データのビット数のうち、前記誤り訂正符号化パラメータ変換手段で指定された誤り訂正ブロックに該当するデータを示すデータ符号について誤り訂正計算を行って誤り訂正符号を算出する誤り訂正符号計算手段、
前記入力された2次元コードパラメータ、データ符号および誤り訂正符号と、前記第2ビット列データに含まれるデータ符号および前記算出された誤り訂正符号とを用いて前記2次元コードを生成する2次元コード化手段、
として機能させるためのプログラムであり、
前記2次元コードはQRコードであり、前記2次元コードの型は、型番および誤り訂正レベルを示し、前記誤り訂正ブロックはRSブロックを示し、前記誤り訂正パラメータはRSブロック数およびデータコード語数を示すことを特徴とする2次元コード生成プログラム。 A two- dimensional code generation program for generating a two- dimensional code including a character string of common information common to a plurality of two-dimensional code generation devices and a character string of individual information individually acquired by each two-dimensional code generation device. ,
A two-dimensional code parameter including information on a type of a two-dimensional code having a plurality of error correction blocks, a character type mode of the character string of the common information, and the number of characters of the common information character string; the number of the error correction blocks; A computer having storage means for storing an error correction coding parameter conversion table created in advance in association with an error correction parameter for specifying a size;
Individual information input means for inputting the individual information,
A data code indicating data corresponding to a previously specified error correction block out of the number of bits of the first bit string data encoded as a character string of the common information and connected to a header as input data and an input parameter, and the common Data parameter input for inputting a surplus bit indicating a bit string that has not been subjected to error correction calculation among bit strings after encoding of an information character string, an error correction code calculated from the data code, and the two-dimensional code parameter means,
Data encoding / surplus bit adding means for encoding the input individual information and generating the second bit string data by connecting to the surplus bits,
Error correction coding parameter conversion for obtaining an error correction parameter that matches the input two-dimensional code parameter with reference to the error correction coding parameter conversion table and designating an error correction calculation procedure by the obtained error correction parameter means,
An error correction code for calculating an error correction code by performing an error correction calculation on a data code indicating data corresponding to an error correction block designated by the error correction coding parameter conversion means among the number of bits of the second bit string data Calculation means,
Two-dimensional coding that generates the two-dimensional code using the input two-dimensional code parameter, data code and error correction code, and the data code and the calculated error correction code included in the second bit string data means,
Is the order of the program to function as,
The two-dimensional code is a QR code, the type of the two-dimensional code indicates a model number and an error correction level, the error correction block indicates an RS block, and the error correction parameter indicates the number of RS blocks and the number of data code words A two-dimensional code generation program characterized by the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009265947A JP5285582B2 (en) | 2009-11-24 | 2009-11-24 | Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009265947A JP5285582B2 (en) | 2009-11-24 | 2009-11-24 | Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2011113106A JP2011113106A (en) | 2011-06-09 |
| JP5285582B2 true JP5285582B2 (en) | 2013-09-11 |
Family
ID=44235423
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2009265947A Expired - Fee Related JP5285582B2 (en) | 2009-11-24 | 2009-11-24 | Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5285582B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115271013B (en) * | 2021-04-30 | 2026-02-06 | 华为技术有限公司 | Two-dimensional code encoding and decoding method and electronic equipment |
| CN113610203B (en) * | 2021-06-28 | 2024-04-19 | 清华大学 | Bit stream coding method and device for quick response matrix code |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4122629B2 (en) * | 1998-09-03 | 2008-07-23 | 株式会社デンソー | 2D code generation method |
| JP2007074471A (en) * | 2005-09-08 | 2007-03-22 | Fuji Xerox Co Ltd | Image processor, image processing method and image processing program |
| JP2007328487A (en) * | 2006-06-07 | 2007-12-20 | Fuji Xerox Co Ltd | Two dimensional code generation device, two dimensional code generation method, two dimensional code generation program, information embedding device, information embedding method, information embedding program, and two dimensional code |
| JP2008192111A (en) * | 2007-01-31 | 2008-08-21 | Wats Kk | Method, system and product for introducing improvement of confidentiality in symbol system with error correcting function |
-
2009
- 2009-11-24 JP JP2009265947A patent/JP5285582B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2011113106A (en) | 2011-06-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110383834B (en) | Method and apparatus for signaling asset change information for media content | |
| US8723703B2 (en) | Method and apparatus for encoding and decoding structured data | |
| CN104937949A (en) | Obtaining a version of an item of content | |
| JP5395774B2 (en) | Service provision system | |
| JP5537377B2 (en) | Service provision system | |
| JP5281381B2 (en) | Two-dimensional code display program, digital broadcast receiver, and program transmission device | |
| JP5285582B2 (en) | Encoding calculation support device for two-dimensional code generation, two-dimensional code generation device, and program | |
| JP5123794B2 (en) | IDENTIFICATION INFORMATION OUTPUT DEVICE, PROGRAM THEREOF, PROGRAM TRANSMITTING DEVICE, AND IC CARD | |
| JP5171742B2 (en) | Electronic document generation apparatus for displaying two-dimensional code, program thereof, and digital broadcast transmission apparatus | |
| JP6920569B2 (en) | Broadcast receiver and content protection processing method | |
| JP6425345B2 (en) | Program guide providing apparatus, program guide providing method, program, and recording medium | |
| JP2021106423A (en) | Broadcast receiving system | |
| JP6920570B2 (en) | Broadcast receiver and content protection processing method | |
| JP6855195B2 (en) | Broadcast reception system | |
| JP6923718B2 (en) | Broadcast receiver | |
| JP6923719B2 (en) | Broadcast receiver | |
| JP6951513B2 (en) | Content protection processing method | |
| JP6923727B2 (en) | Copy control method for broadcast program content | |
| JP6826229B2 (en) | Broadcast receiver and content protection processing method | |
| JP6826228B2 (en) | Broadcast receiver and content protection processing method | |
| JP2021170693A (en) | Receiving device and receiving method | |
| KR20250014795A (en) | Method and system for providing iptv service | |
| JP2021078134A (en) | Content protection processing method | |
| JP2021101582A (en) | Broadcast receiving system | |
| CN120712737A (en) | Apparatus and method for encoding, decoding, transmitting and signaling logos and icons in television and radio broadcasts |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120321 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130220 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130226 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130328 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130507 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130531 |
|
| LAPS | Cancellation because of no payment of annual fees |