JP6394947B2 - Code noise removing device, operation method of code noise removing device, and program to be executed by the device - Google Patents

Code noise removing device, operation method of code noise removing device, and program to be executed by the device Download PDF

Info

Publication number
JP6394947B2
JP6394947B2 JP2014149797A JP2014149797A JP6394947B2 JP 6394947 B2 JP6394947 B2 JP 6394947B2 JP 2014149797 A JP2014149797 A JP 2014149797A JP 2014149797 A JP2014149797 A JP 2014149797A JP 6394947 B2 JP6394947 B2 JP 6394947B2
Authority
JP
Japan
Prior art keywords
pixel
luminance value
barcode
color
code
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.)
Active
Application number
JP2014149797A
Other languages
Japanese (ja)
Other versions
JP2016024716A (en
Inventor
松原 高司
高司 松原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MRS Holdings Co Ltd
Original Assignee
MRS Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MRS Holdings Co Ltd filed Critical MRS Holdings Co Ltd
Priority to JP2014149797A priority Critical patent/JP6394947B2/en
Publication of JP2016024716A publication Critical patent/JP2016024716A/en
Application granted granted Critical
Publication of JP6394947B2 publication Critical patent/JP6394947B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Description

本発明は、カラーディスプレイに表示されるバーコードや二次元コードのノイズを除去するための装置や同装置の動作方法、および計算機である同装置を実行させるためのプログラムに関する。   The present invention relates to a device for removing noise of a bar code or a two-dimensional code displayed on a color display, an operation method of the device, and a program for executing the device as a computer.

従来から、携帯端末等機器のディスプレイにバーコードやQRコード(登録商標)等の二次元コード(以下まとめて「バーコード等」ということがある)を表示させ、当該バーコード等を商品・サービス代金の決済や特典ポイントの付与等のサービスに利用する技術の開発が検討されている。一例としては、公共料金の請求権者あるいは委任を受けた請求代行者から、利用者に対し代金支払いのためのバーコード等を発行し、利用者は発行されたバーコード等を自身がもつ携帯端末のカラーディスプレイに表示させコンビニ等の店舗端末にて読取らせることにより決済のための処理を行う。   Conventionally, a two-dimensional code such as a barcode or QR code (registered trademark) is displayed on the display of a device such as a portable terminal (hereinafter sometimes referred to as “barcode etc.”), and the barcode or the like is displayed on a product / service Development of technology to be used for services such as payment of price and granting of privilege points is under consideration. As an example, a utility billing authority or a delegated billing agent issues a barcode, etc. for payment to the user, and the user carries the issued barcode, etc. Processing for settlement is performed by displaying on a color display of the terminal and reading it at a store terminal such as a convenience store.

ほかにもたとえば特許文献1に、携帯端末において購入した商品情報をバーコードとして表示し、コンビニのPOS端末で読み取ることによって決済手続きを行う決済システムに関する技術が記載されている。当該技術を利用することにより、ユーザは携帯端末をもっていさえすれば、比較的容易に商品購入や公共料金の決済を行うことができる。また、事業者側にとっても、当該技術を利用することにより決済のための請求書を紙で発行するコスト(印刷、郵送等)を低減することができる。   In addition, for example, Patent Document 1 describes a technology related to a payment system in which merchandise information purchased at a mobile terminal is displayed as a barcode and read by a POS terminal at a convenience store. By using the technology, the user can make a purchase of goods and settle a public bill relatively easily as long as the user has a portable terminal. Further, the business side can also reduce the cost (printing, mailing, etc.) of issuing a bill for settlement using paper by using the technology.

特開2002−117360号公報JP 2002-117360 A

しかしながら上記のような従来技術では、ユーザのもつ携帯端末のディスプレイサイズによってバーコード等が適切に表示されず、POS端末で読み取れないというケースが生じ得た。これは、ある幅比ないしサイズ比にて構成されるバーコード等をディスプレイに表示させる場合には、当該ディスプレイの大きさに応じた表示がなされることに起因する。具体的に説明すると、比較的大きいディスプレイに表示させるためにはディスプレイ幅比に適合するよう当該バーコード等を拡大表示し、比較的小さいディスプレイに表示させるためには、当該バーコード等の一部が非表示とならないよう縮小表示を行う。   However, in the conventional technology as described above, there may be a case where a barcode or the like is not properly displayed depending on the display size of the mobile terminal held by the user and cannot be read by the POS terminal. This is because when a bar code or the like configured with a certain width ratio or size ratio is displayed on the display, display according to the size of the display is performed. Specifically, in order to display on a relatively large display, the bar code or the like is enlarged to fit the display width ratio, and in order to display on a relatively small display, a part of the bar code or the like is displayed. Reduce the size so that is not hidden.

なお、ディスプレイにバーコード等を表示させる向きを変化させるような構成を採り、ディスプレイを縦横に回転することによって、当該バーコード等の表示向きを変化させることも可能である。この場合は、バーコード等を縦方向に表示する場合と横方向に表示する場合とで、当該バーコード等の縦横比をディスプレイの縦横比と関連付けるように変化させて表示させることが考えられる。   It is also possible to change the display direction of the bar code or the like by adopting a configuration that changes the direction in which the bar code or the like is displayed on the display and rotating the display vertically or horizontally. In this case, it may be possible to display the barcode or the like by changing the aspect ratio of the barcode or the like so as to be associated with the aspect ratio of the display depending on whether the barcode or the like is displayed vertically.

このように、バーコード等はディスプレイの仕様によりその表示態様が異なる。そのため、表示態様によってはディスプレイに表示される際にバーコード等にノイズが生じてしまっており、それゆえPOS端末で正確に読み取れず、取引が滞ってしまう事態が生じていた。   As described above, the display mode of the bar code and the like varies depending on the specifications of the display. For this reason, depending on the display mode, noise is generated in the bar code or the like when displayed on the display, and therefore, the POS terminal cannot accurately read and the transaction is delayed.

以上のような課題を解決するために、本発明は、バーコードを表示するカラーディスプレイ部と、バーコードが表示されるカラーディスプレイ部のバーコード表示領域の各画素の輝度値を取得する輝度値取得部と、取得した輝度値に応じてその画素を濃色又は薄色の画素とすることを決定するための輝度値基準である輝度値判断基準を保持する輝度値判断基準保持部と、取得した輝度値と前記輝度値判断基準とに基づいて各画素を濃色又は薄色に決定する濃薄決定部と、濃薄決定部での決定に従ってカラーディスプレイ部の各画素を濃色又は薄色とする画素濃薄制御部と、を有するコードノイズ除去装置などを提案する。   In order to solve the above problems, the present invention provides a color display unit for displaying a barcode and a luminance value for acquiring a luminance value of each pixel in the barcode display area of the color display unit on which the barcode is displayed. An acquisition unit, a luminance value determination criterion holding unit that holds a luminance value determination criterion that is a luminance value reference for determining that the pixel is a dark or light pixel according to the acquired luminance value, and acquisition A darkness determination unit that determines each pixel as a dark color or a light color based on the brightness value and the brightness value determination criterion, and each pixel of the color display unit according to the determination in the lightness determination unit as a dark color or a light color And a code noise removal device having a pixel density control unit.

主に上記のような構成をとる本発明によって、様々な表示態様においてもディスプレイ上に読み取り可能な状態のバーコード等を表示することが可能になる。   According to the present invention mainly configured as described above, it is possible to display a barcode or the like in a readable state on the display even in various display modes.

実施形態1のコードノイズ除去装置の機能ブロックの一例を示す図The figure which shows an example of the functional block of the code noise removal apparatus of Embodiment 1. 実施形態1のコードノイズ除去装置の機能的な各構成をハードウェアとして実現した際の構成の一例を示す概略図Schematic which shows an example of a structure at the time of implement | achieving each functional structure of the code noise removal apparatus of Embodiment 1 as hardware. 実施形態1のコードノイズ除去装置の処理の一例を示す図The figure which shows an example of the process of the code noise removal apparatus of Embodiment 1. 実施形態2のコードノイズ除去装置の機能ブロックの一例を示す図The figure which shows an example of the functional block of the code noise removal apparatus of Embodiment 2. 実施形態2のコードノイズ除去装置の処理の一例を示す図The figure which shows an example of the process of the code noise removal apparatus of Embodiment 2.

以下、本発明の各実施形態について図面と共に説明する。実施形態と請求項の相互の関係は、以下のとおりである。まず、実施形態1は、主に請求項1、2、3、4、6、7、9、10、12などに対応する。実施形態2は、主に請求項5、6、8、9、11、12などに対応する。なお、本発明はこれらの実施形態に何ら限定されるものではなく、その要旨を逸脱しない範囲内において、様々な態様で実施し得る。   Embodiments of the present invention will be described below with reference to the drawings. The mutual relationship between the embodiment and the claims is as follows. First, the first embodiment mainly corresponds to claims 1, 2, 3, 4, 6, 7, 9, 10, 12 and the like. The second embodiment mainly corresponds to claims 5, 6, 8, 9, 11, 12 and the like. In addition, this invention is not limited to these embodiments at all, and can be implemented in various modes without departing from the scope of the invention.

<<実施形態1>> << Embodiment 1 >>

<概要>
本実施形態のコードノイズ除去装置は、バーコードを表示するカラーディスプレイ部を備えるとともに、バーコードが表示されるカラーディスプレイ部のバーコード表示領域の各画素の輝度値を取得し、取得した輝度値とあらかじめ保持している輝度値判断基準とに基づいて各画素を濃色又は薄色に決定してカラーディスプレイ部の各画素を濃色又は薄色とすることを特徴として備えている。
<Overview>
The code noise removal apparatus according to the present embodiment includes a color display unit that displays a barcode, acquires the luminance value of each pixel in the barcode display area of the color display unit on which the barcode is displayed, and acquires the acquired luminance value And each of the pixels of the color display unit is dark or light based on the determination of each pixel based on the brightness value determination criteria stored in advance.

なお、本実施形態ではカラーディスプレイ部への表示出力対象の情報担体をバーコードとして説明を行うが、情報担体はバーコード以外にも、例えばQRコード(登録商標)のような二次元コード、色素の配列情報をコード化した情報などであってももちろんよい(本明細書の全体を通じて同様である)。   In this embodiment, the information carrier to be displayed and output on the color display unit is described as a barcode. However, the information carrier is not only a barcode but also a two-dimensional code such as a QR code (registered trademark), a dye, and the like. Of course, the information may be information obtained by coding the sequence information (the same applies throughout the present specification).

<機能的構成>
図1は、本実施形態のコードノイズ除去装置の機能ブロックの一例を示す図である。この図にあるように、本実施形態の「コードノイズ除去装置」0110は、「カラーディスプレイ部」0101と、「輝度値取得部」0102と、「輝度値判断基準保持部」0103と、「濃薄決定部」0104と、「画素濃薄制御部」0105と、を有する。
なお、以下に記載するコードノイズ除去装置の機能ブロックは、ハードウェア、ソフトウェア、又はハードウェア及びソフトウェアの両方として実現され得る。具体的には、コンピュータを利用するものであれば、CPUやメインメモリ、GPU、画像メモリ、グラフィックボード、バス、あるいは二次記憶装置(ハードディスクや不揮発性メモリ、CDやDVDなどの記憶メディアとそれらのメディアの読取ドライブなど)、情報入力に利用される入力デバイス、タッチパネル、マイク、スピーカその他の外部周辺装置などのハードウェア構成部、またその外部周辺装置用のインターフェース、通信用インターフェース、それらハードウェアを制御するためのドライバプログラムやその他アプリケーションプログラムなどが挙げられる。そして、メインメモリ上に展開したプログラムに従ったCPUの演算処理によって、入力デバイスやその他インターフェースなどから入力されメモリやハードウェア上に保持されているデータなどが加工、蓄積されたり、前記各ハードウェアやソフトウェアを制御するための命令が生成されたりする。ここで、上記プログラムは、モジュール化された複数のプログラムとして実現されてもよいし、2以上のプログラムを組み合わせて一のプログラムとして実現されても良い。
なお、本発明のコードノイズ除去装置は、一または複数の装置との組み合わせによりシステムとしても実現可能である。そして、このような装置の一部をソフトウェアとして構成することも可能である。さらに、そのようなソフトウェアが記録された記憶媒体も当然に本発明の技術的な範囲に含まれる(本実施形態に限らず、本明細書の全体を通じて同様である。)。
<Functional configuration>
FIG. 1 is a diagram illustrating an example of functional blocks of the code noise removing apparatus according to the present embodiment. As shown in this figure, the “code noise removing device” 0110 of the present embodiment includes a “color display unit” 0101, a “brightness value acquisition unit” 0102, a “brightness value determination reference holding unit” 0103, and a “dark color”. A “thin determining unit” 0104 and a “pixel density control unit” 0105.
Note that the functional blocks of the code noise removing device described below can be realized as hardware, software, or both hardware and software. Specifically, if a computer is used, a CPU, a main memory, a GPU, an image memory, a graphic board, a bus, or a secondary storage device (a storage medium such as a hard disk, a nonvolatile memory, a CD, a DVD, and the like) Media reading drive), input devices used for information input, touch panel, microphone, speaker, and other hardware components such as external peripheral devices, interfaces for external peripheral devices, communication interfaces, and hardware A driver program for controlling the application and other application programs. Then, by the arithmetic processing of the CPU in accordance with the program developed on the main memory, the data input from the input device or other interface etc. and held in the memory or hardware is processed and accumulated, or each of the hardware And commands for controlling the software are generated. Here, the program may be realized as a plurality of modularized programs, or may be realized as a single program by combining two or more programs.
The code noise removal apparatus of the present invention can be realized as a system by combining with one or a plurality of apparatuses. A part of such an apparatus can be configured as software. Further, a storage medium in which such software is recorded is naturally included in the technical scope of the present invention (the same applies throughout the present specification, not limited to the present embodiment).

「カラーディスプレイ部」0101は、バーコードを表示するように構成されている。ここでいうカラーディスプレイとは具体的には黒色(輝度階調が256段階のときの輝度値が0)と白色(輝度階調が256段階のときの輝度値が255)以外の輝度の色の表示が可能となっている。   The “color display unit” 0101 is configured to display a barcode. The color display here is specifically a color with a luminance other than black (the luminance value is 0 when the luminance gradation is 256 steps) and white (the luminance value is 255 when the luminance gradation is 256 steps). Display is possible.

「輝度値取得部」0102は、バーコードが表示されるカラーディスプレイ部のバーコード表示領域の各画素の輝度値を取得するように構成されている。各画素の輝度値の取得態様は特に限定されないが、一例としては、カラーディスプレイ部に表示出力されるべきバーコードについて出力される際の各画素の輝度値を取得する構成が考えられる。   The “brightness value acquisition unit” 0102 is configured to acquire the luminance value of each pixel in the barcode display area of the color display unit on which the barcode is displayed. Although the acquisition mode of the luminance value of each pixel is not particularly limited, as an example, a configuration in which the luminance value of each pixel at the time of outputting a barcode to be displayed and output on the color display unit can be considered.

「輝度値判断基準保持部」0103は、取得した輝度値に応じてその画素を濃色又は薄色の画素とすることを決定するための輝度値基準である輝度値判断基準を保持するように構成されている。濃色又は薄色をどの程度の輝度として定めるか及び輝度値判断基準をどのような内容とするかは適宜決定することが可能である。   The “brightness value determination criterion holding unit” 0103 holds a luminance value determination criterion that is a luminance value criterion for determining that the pixel is a dark or light color pixel according to the acquired luminance value. It is configured. It is possible to appropriately determine how much brightness the dark color or light color is to be determined and what content the brightness value determination standard is.

一般的にカラーディスプレイ部にバーコードを表示させる際、当該バーコードを拡大・縮小等リサイズすると、当初はノイズなく表示されていたバーコードに当該リサイズの結果ノイズが生じる場合がある。スマートフォン等の携帯端末は機種ごとにディスプレイの大きさが異なるのみならず、同一の携帯端末のディスプレイであっても、縦方向に表示させる場合と横方向に表示させる場合とで表示対象の画像をリサイズする処理が通常行われる。そのため、カラーディスプレイ部においてはバーコード等をリサイズする処理が比較的頻繁に行われ、それだけノイズが発生する頻度も無視できない程度に高い。そしてノイズがあるために読取りが困難でせっかく表示したバーコード等が決済に利用できないという問題が従来から指摘されていた。   Generally, when displaying a barcode on a color display unit, if the barcode is resized such as enlarged or reduced, noise may be generated as a result of the resizing in the barcode that was initially displayed without noise. Mobile devices such as smartphones not only have different display sizes depending on the model, but even if the display is the same mobile device, the images to be displayed are different depending on whether they are displayed vertically or horizontally. A resizing process is normally performed. For this reason, in the color display unit, the process of resizing the barcode or the like is performed relatively frequently, and the frequency of noise generation is so high that it cannot be ignored. In addition, it has been pointed out that the bar code or the like that is difficult to read due to noise and cannot be used for settlement.

このような問題が生じるなかでノイズを除去しバーコードを好適に濃薄色に識別するためには、濃色を黒色(輝度値0、以下同じ)、薄色を白色(輝度値255、以下同じ)とするとともに、輝度値を薄色に決定するための基準値である輝度値基準値を140以下255以下のいずれかである場合とし当該基準値以上の値である場合には輝度値を薄色にすると決定することが望ましい。なおここでいう輝度値基準値を150以上255以下とすれば、より好適にノイズを除去することが可能になる。ちなみに、輝度値判断基準は上記のように輝度値基準値を固定値とする場合のほか、所定の関数を用いる方法を採用してもよい。   In order to remove the noise and discriminate the bar code suitably dark color in such a problem, dark color is black (brightness value 0, the same below) and light color is white (brightness value 255, below) And the luminance value reference value that is a reference value for determining the luminance value to be a light color is any of 140 or less and 255 or less. It is desirable to determine that the color is light. Note that if the luminance value reference value here is 150 or more and 255 or less, it is possible to more suitably remove noise. Incidentally, as a luminance value determination criterion, a method using a predetermined function may be adopted in addition to the case where the luminance value reference value is fixed as described above.

「濃薄決定部」0104は、取得した輝度値と前記輝度値判断基準とに基づいて各画素を濃色又は薄色に決定するように構成されている。具体的にいえば、取得した輝度値が輝度値判断基準において濃色と決定されるべきか薄色と決定されるべきかを画素ごとに判断し、決定する方法が考えられる。ただし、取得した輝度値が濃色又は薄色としてカラーディスプレイに表示すべき輝度値であると判断される場合には、上記決定を行わない構成としてもよい。より具体的にいえば、濃色を黒色、薄色を白色と定めた場合、輝度値取得部にて取得した画素のうち、輝度値が0および255である画素については濃薄色の決定処理を行わない構成とする。当該構成をとることにより、濃薄決定部における処理がいわゆるノイズ部分に対してのみ行われることとなり、処理負担の軽減を図ることが可能である。
「画素濃薄制御部」0105は、濃薄決定部での決定に従ってカラーディスプレイ部の各画素を濃色又は薄色とするように構成されている。
The “darkness determination unit” 0104 is configured to determine each pixel to be dark or light based on the acquired luminance value and the luminance value determination criterion. Specifically, a method of determining and determining for each pixel whether the acquired luminance value should be determined as a dark color or a light color according to the luminance value determination standard is conceivable. However, when it is determined that the acquired luminance value is a luminance value to be displayed on the color display as a dark color or a light color, the above determination may not be performed. More specifically, when the dark color is determined to be black and the light color is determined to be white, among the pixels acquired by the luminance value acquisition unit, the dark color determination process is performed on the pixels having the luminance values of 0 and 255 It is set as the structure which does not perform. By adopting this configuration, the processing in the density determination unit is performed only on the so-called noise part, and the processing burden can be reduced.
The “pixel density control unit” 0105 is configured to make each pixel of the color display unit dark or light according to the determination by the density determination unit.

<具体的な構成>
図2は、本実施形態のコードノイズ除去装置の機能的な各構成をハードウェアとして実現した際の構成の一例を示す概略図である。これらの図を利用して、それぞれのハードウェア構成部の働きについて説明する。コードノイズ除去装置は、各種演算処理を実行するための「CPU」0201と、「記憶装置(記憶媒体)」0202と、「メインメモリ」0203と、「出力インターフェース」0204と、「入力インターフェース」0205と、「インターネット通信インターフェース」0206と、を備え、入出力インターフェースを介して、例えば「タッチパネル」0207や「ディスプレイ」0208と、さらにはディスプレイを介して「POS端末」0290などの外部周辺装置と情報の送受信を行う。なお、記憶装置には以下で説明するような各種プログラムが格納されており、CPUはこれら各種プログラムをメインメモリのワーク領域内に読み出して展開、実行する。なお、これらの構成は、「システムバス」0209などのデータ通信経路によって相互に接続され、情報の送受信や処理を行う。
<Specific configuration>
FIG. 2 is a schematic diagram illustrating an example of a configuration when each functional configuration of the code noise removing device of the present embodiment is realized as hardware. The operation of each hardware component will be described with reference to these drawings. The code noise removing apparatus includes a “CPU” 0201, “storage device (storage medium)” 0202, “main memory” 0203, “output interface” 0204, and “input interface” 0205 for executing various arithmetic processes. And an “Internet communication interface” 0206, via an input / output interface, for example, “touch panel” 0207, “display” 0208, and further via the display, information on external peripheral devices such as “POS terminal” 0290 Send and receive. The storage device stores various programs as described below, and the CPU reads these various programs into the work area of the main memory, and develops and executes them. These components are connected to each other via a data communication path such as “system bus” 0209 to transmit / receive information and process information.

(輝度値取得部の具体的な処理)
CPUは、記憶装置から「輝度値取得プログラム」0210をメインメモリに読み出して実行し、バーコードが表示されるカラーディスプレイ部のバーコード表示領域の各画素の輝度値を取得し、メインメモリの所定のアドレスに格納する。
(Specific processing of the luminance value acquisition unit)
The CPU reads out and executes the “brightness value acquisition program” 0210 from the storage device to the main memory, acquires the luminance value of each pixel in the barcode display area of the color display unit on which the barcode is displayed, and stores the predetermined luminance value in the main memory. Store at the address of.

(濃薄決定部の具体的な処理)
CPUは、記憶装置から「濃薄決定プログラム」0220をメインメモリに読み出して実行し、輝度値取得プログラムの実行により得られた輝度値を読み出してあらかじめ保持されている輝度値判断基準に基づいて各画素を濃色又は薄色に決定する処理を行う。
(Specific processing of the concentration determination unit)
The CPU reads the “thickness determination program” 0220 from the storage device and executes it, reads out the luminance value obtained by the execution of the luminance value acquisition program, and based on the luminance value determination criteria held in advance. A process of determining a dark color or a light color is performed.

(画素濃薄制御部の具体的な処理)
CPUは、記憶装置から「画素濃薄制御プログラム」0230をメインメモリに読み出して実行し、濃薄決定プログラムの実行により得られた決定の内容に従い、カラーディスプレイ部の各画素を濃色又は薄色とする処理を行う。
(Specific processing of the pixel density control unit)
The CPU reads out and executes the “pixel density control program” 0230 from the storage device to the main memory, and executes each pixel of the color display unit according to the determination content obtained by executing the density determination program. The process is performed.

<処理の流れ>
図3は、本実施形態のコードノイズ除去装置における処理の流れの一例を示す図である。同図の処理の流れは以下のステップからなる。最初にステップS0301では、バーコードが表示されるカラーディスプレイ部のバーコード表示領域の各画素の輝度値を取得する(輝度値取得ステップ)。そしてステップS0302では、取得した輝度値とあらかじめ保持している輝度値判断基準とに基づいて各画素を濃色又は薄色に決定する(濃薄決定ステップ)。そしてステップS0303では、濃薄決定ステップでの決定に従ってカラーディスプレイ部の各画素を濃色又は薄色とする(画素濃薄制御ステップ)。
<Process flow>
FIG. 3 is a diagram illustrating an example of the flow of processing in the code noise removal apparatus of the present embodiment. The flow of processing in the figure consists of the following steps. First, in step S0301, the luminance value of each pixel in the barcode display area of the color display unit on which the barcode is displayed is acquired (luminance value acquisition step). In step S0302, each pixel is determined to be dark or light based on the acquired luminance value and a luminance value determination criterion held in advance (dark determination step). In step S0303, each pixel of the color display unit is dark or light according to the determination in the darkness determination step (pixel darkness control step).

<効果>
以上の構成を有するコードノイズ除去装置を利用することにより、第三者によるバーコード表示画面の複製を困難にし、万一複製が実現されても、当該バーコードの利用を困難にすることが可能となる。
<Effect>
By using the code noise removal device having the above configuration, it is difficult to copy the barcode display screen by a third party, and even if the copy is realized, it is possible to make it difficult to use the barcode. It becomes.

<<実施形態2>> << Embodiment 2 >>

<概要>
本実施形態のコードノイズ除去装置は、基本的には実施形態1で説明したコードノイズ除去装置と同様であるが、バーコードの濃色領域又は薄色領域の幅比がバーコードの書式ルールに適合しているか画素幅単位で検査し、不適合との検査結果である場合には実施形態1の場合と画素濃薄制御を反転する点を特徴として備えている。
<Overview>
The code noise removal apparatus according to the present embodiment is basically the same as the code noise removal apparatus described in the first embodiment, but the width ratio of the dark color area or the light color area of the barcode conforms to the barcode format rule. The inspection is performed in units of pixel widths for conformity, and in the case of a nonconformity inspection result, the pixel density control is reversed as in the case of the first embodiment.

<機能的構成>
図4は、本実施形態のバーコードサーバ装置の機能ブロックの一例を示す図である。この図にあるように、本実施形態の「コードノイズ除去装置」0410は、「カラーディスプレイ部」0401と、「輝度値取得部」0402と、「輝度値判断基準保持部」0403と、「濃薄決定部」0404と、「画素濃薄制御部」0405と、「ルール適合検査部」0406と、「反転制御部」0407と、を有する。本実実施形態のコードノイズ除去装置の基本的な構成は、実施形態1のコードノイズ除去装置と共通するため、以下では相違点である「ルール適合検査部」および「反転制御部」の機能について説明する。
<Functional configuration>
FIG. 4 is a diagram illustrating an example of functional blocks of the barcode server device according to the present embodiment. As shown in this figure, the “code noise removing device” 0410 of this embodiment includes a “color display unit” 0401, a “brightness value acquisition unit” 0402, a “brightness value determination reference holding unit” 0403, and a “dark color”. A “thin determination unit” 0404, a “pixel density control unit” 0405, a “rule conformity inspection unit” 0406, and an “inversion control unit” 0407. Since the basic configuration of the code noise removal apparatus of the present embodiment is the same as that of the code noise removal apparatus of the first embodiment, the functions of the “rule conformance inspection unit” and “inversion control unit”, which are the differences, are described below. explain.

「ルール適合検査部」0406は、バーコードの濃色領域又は薄色領域の幅比がバーコードの書式ルールに適合しているか画素幅単位で検査するように構成されている。ここでいうバーコードの書式ルールとは、JISをはじめとした各種規格であることが考えられ、一次元コードであれば、JANコードやGSIデータバー等、二次元コードであれば種々のマトリックス型の規格がここでいう書式ルールに該当する。すなわち、ルール適合検査部においては、複数あるバーコードの書式ルールのうち一の書式ルールを選択ないし特定して検査を行う。当該構成をとることにより画素濃薄制御部にてなされた制御の結果、バーコードが依然として読取り可能かどうかを判断することができる。   The “rule conformity inspection unit” 0406 is configured to inspect whether the width ratio of the dark color region or the light color region of the barcode conforms to the barcode format rule in units of pixel width. The bar code format rules here are considered to be various standards such as JIS. For one-dimensional codes, JAN codes, GSI data bars, etc. For two-dimensional codes, various matrix types This standard corresponds to the format rule here. That is, the rule conformity inspection unit selects or specifies one format rule from among a plurality of barcode format rules, and performs an inspection. With this configuration, it is possible to determine whether or not the barcode is still readable as a result of the control performed by the pixel density control unit.

「反転制御部」0407は、ルール適合検査部での検査の結果が不適合である場合には画素濃薄制御部での制御結果を反転するように構成されている。「画素濃薄制御部での制御結果を反転する」具体的な一例としては、バーコードの両端の画素領域について、濃色と制御した場合には薄色に、薄色と制御した場合には濃色に反転することが考えられる。仮に画素濃薄制御部の制御結果に誤りがありその結果バーコードを構成する領域の幅比が本来の書式ルールに適合しなくなって読取りが不可能になる事態が生じたとしても、当該構成をとることにより、当該バーコードを読取り可能に補正して表示することが可能になる。   The “inversion control unit” 0407 is configured to invert the control result in the pixel density control unit when the result of the inspection in the rule conformity inspection unit is incompatible. As a specific example of “inverting the control result in the pixel darkness control unit”, the pixel areas at both ends of the barcode are lightly colored when controlled to dark color, and light when controlled to light color. It is possible to invert to a dark color. Even if there is an error in the control result of the pixel darkness control unit and as a result the width ratio of the area constituting the bar code does not conform to the original format rule, it becomes impossible to read the configuration. As a result, the barcode can be corrected and displayed so as to be readable.

<具体的な構成>
本実施形態のコードノイズ除去装置のハードウェア構成は、基本的に既に説明した実施形態1のコードノイズ除去装置のハードウェア構成と同様である。そこで以下では、実施形態1で説明しなかった「ルール適合検査部」「反転制御部」の具体的な処理について述べる。
<Specific configuration>
The hardware configuration of the code noise elimination device of the present exemplary embodiment is basically the same as the hardware configuration of the code noise elimination device of the first exemplary embodiment already described. Therefore, hereinafter, specific processing of the “rule conformity inspection unit” and the “inversion control unit” that have not been described in the first embodiment will be described.

(ルール適合検査部の具体的な処理)
CPUは、記憶装置から「ルール適合検査プログラム」をメインメモリに読み出して実行し、バーコードの濃色領域又は薄色領域の幅比がバーコードの書式ルールに適合ひているかを画素幅単位で検査する処理を行う。
(Specific processing of the rule conformity inspection department)
The CPU reads and executes the “rule conformity inspection program” from the storage device to the main memory, and determines whether the width ratio of the dark color region or the light color region of the barcode conforms to the barcode format rule in pixel width units. Process to inspect.

(反転制御部の具体的な処理)
CPUは、ルール適合検査プログラムの実行により得られた検査結果が不適合であることを示す内容である場合に、記憶装置から「反転制御プログラム」をメインメモリに読み出して実行し、画素濃薄制御プログラムの実行による制御結果を反転する処理を行う。
(Specific processing of reversal control unit)
The CPU reads the “inversion control program” from the storage device into the main memory and executes it when the inspection result obtained by executing the rule conformity inspection program indicates non-conformity, and executes the pixel density control program. The process of inverting the control result by executing is performed.

<処理の流れ>
図5は、本実施形態のコードノイズ除去装置における処理の流れの一例を示す図である。同図の処理の流れは以下のステップからなる。最初にステップS0501では、バーコードが表示されるカラーディスプレイ部のバーコード表示領域から各画素の輝度値を取得する(輝度値取得ステップ)。そしてステップS0502では、取得した輝度値とあらかじめ保持している輝度値判断基準とに基づいて各画素を濃色又は薄色に決定する(濃薄決定ステップ)。そしてステップS0503では、濃薄決定ステップでの決定に従ってカラーディスプレイ部の各画素を濃色又は薄色とする(画素濃薄制御ステップ)。その後ステップS0504では、バーコードの濃色領域又は薄色領域の幅比がバーコードの書式ルールに適合しているかを判断する。ここでの判断結果が適合しているとの内容である場合にはその後特段の処理を行わない。不適合との判断結果である場合には、画素濃薄制御ステップでの制御結果を反転する(反転制御ステップ)。
<Process flow>
FIG. 5 is a diagram illustrating an example of the flow of processing in the code noise removal apparatus of the present embodiment. The flow of processing in the figure consists of the following steps. First, in step S0501, the luminance value of each pixel is acquired from the barcode display area of the color display unit on which the barcode is displayed (luminance value acquisition step). In step S0502, each pixel is determined to be dark or light based on the acquired luminance value and a luminance value determination criterion held in advance (darkness determination step). In step S0503, each pixel of the color display unit is dark or light according to the determination in the darkness determination step (pixel darkness control step). Thereafter, in step S0504, it is determined whether the width ratio of the dark color region or the light color region of the barcode conforms to the barcode format rule. If it is the content that the determination result here is suitable, no special processing is performed thereafter. If the result of determination is non-conformity, the control result in the pixel density control step is inverted (inversion control step).

<効果>
以上の構成を有するコードノイズ除去装置を利用することにより、過度ないし誤って画素濃薄制御が行われるような場合でも、当該制御結果を補正し適切にノイズを除去したバーコードを表示することが可能になる。
<Effect>
By using the code noise removing apparatus having the above configuration, even when pixel density control is performed excessively or mistakenly, it is possible to correct the control result and display a barcode from which noise is appropriately removed. It becomes possible.

0110…コードノイズ除去装置、0101…カラーディスプレイ部、0102…輝度値取得部、0103…輝度値判断基準保持部、0104…濃薄決定部、0105…画素濃薄制御部 DESCRIPTION OF SYMBOLS 0110 ... Code noise removal apparatus, 0101 ... Color display part, 0102 ... Luminance value acquisition part, 0103 ... Luminance value judgment reference holding part, 0104 ... Darkness determination part, 0105 ... Pixel darkness control part

Claims (12)

バーコードを表示するカラーディスプレイ部と、
バーコードが表示されるカラーディスプレイ部のバーコード表示領域の各画素の輝度値を取得する輝度値取得部と、
取得した輝度値に応じてその画素を濃色又は薄色の画素とすることを決定するための輝度値基準である輝度値判断基準を保持する輝度値判断基準保持部と、
取得した輝度値と前記輝度値判断基準とに基づいて各画素を濃色又は薄色に決定する濃薄決定部と、
濃薄決定部での決定に従ってカラーディスプレイ部の各画素を濃色又は薄色とする画素濃薄制御部と、
を有するコードノイズ除去装置。
A color display that displays the barcode,
A luminance value acquisition unit for acquiring the luminance value of each pixel in the barcode display area of the color display unit on which the barcode is displayed;
A luminance value determination reference holding unit that holds a luminance value determination reference that is a luminance value reference for determining that the pixel is a dark or light pixel according to the acquired luminance value;
A density determination unit that determines each pixel to be a dark color or a light color based on the acquired brightness value and the brightness value determination criterion;
A pixel density control unit for making each pixel of the color display unit a dark color or a light color according to the determination in the density determination unit;
A code noise removing apparatus having
輝度値判断基準保持部に保持されている輝度値判断基準は輝度階調が256階調のとき輝度値を薄色に決定するための基準値である輝度値基準値が階調140以上255以下のいずれかの値である請求項1に記載のコードノイズ除去装置。   The luminance value determination reference held in the luminance value determination reference holding unit is a reference value for determining the luminance value to be light color when the luminance gradation is 256 gradations. The code noise removing device according to claim 1, wherein the code noise removing device has any one of the following values. 前記輝度値基準値は階調150以上255以下のいずれかの値である請求項2に記載のコードノイズ除去装置。   The code noise removal apparatus according to claim 2, wherein the luminance value reference value is any value of gradations 150 to 255. 前記濃色は黒色であり、前記薄色は白色である請求項1から3のいずれか一に記載のコードノイズ除去装置。   The code noise removal device according to any one of claims 1 to 3, wherein the dark color is black and the light color is white. バーコードの濃色領域又は薄色領域の幅比がバーコードの書式ルールに適合しているか画素幅単位で検査するルール適合検査部と、
ルール適合検査部での検査の結果が不適合である場合には画素濃薄制御部での制御結果を反転する反転制御部と、
をさらに有する請求項1から4のいずれか一に記載のコードノイズ除去装置。
A rule conformity inspection unit that inspects in pixel width units whether the width ratio of the dark color region or the light color region of the barcode conforms to the barcode format rule;
An inversion control unit that inverts the control result in the pixel density control unit when the result of the inspection in the rule conformity inspection unit is incompatible,
The code noise removing device according to claim 1, further comprising:
バーコードに代えて二次元コードとした請求項1から5のいずれか一に記載のコードノイズ除去装置。   The code noise removing device according to any one of claims 1 to 5, wherein a two-dimensional code is used instead of the bar code. バーコードを表示するカラーディスプレイ部と、輝度値に応じて取得する画素を濃色又は薄色の画素とすることを決定するための輝度値基準である輝度値判断基準を保持する輝度値判断基準保持部と、を有する計算機であるコードノイズ除去装置の動作方法であって、
バーコードが表示されるカラーディスプレイ部のバーコード表示領域の各画素の輝度値を取得する輝度値取得ステップと、
取得した輝度値と前記輝度値判断基準とに基づいて各画素を濃色又は薄色に決定する濃薄決定ステップと、
濃薄決定ステップでの決定に従ってカラーディスプレイ部の各画素を濃色又は薄色とする画素濃薄制御ステップと、
からなるコードノイズ除去装置の動作方法。
A color display unit that displays a barcode, and a luminance value determination criterion that holds a luminance value determination criterion that is a luminance value criterion for determining that a pixel acquired according to the luminance value is a dark or light pixel. An operation method of a code noise removal apparatus, which is a computer having a holding unit,
A luminance value acquisition step of acquiring the luminance value of each pixel in the barcode display area of the color display unit on which the barcode is displayed;
A density determination step for determining each pixel to be a dark color or a light color based on the acquired brightness value and the brightness value determination criterion;
A pixel density control step for making each pixel of the color display unit a dark color or a light color according to the determination in the density determination step;
A method of operating a code noise removing apparatus comprising:
バーコードの濃色領域又は薄色領域の幅比がバーコードの書式ルールに適合しているか画素幅単位で検査するルール適合検査ステップと、
ルール適合検査ステップでの検査の結果が不適合である場合には画素濃薄制御ステップでの制御結果を反転する反転制御ステップと、
からなる請求項7に記載のコードノイズ除去装置の動作方法。
A rule conformity inspection step for inspecting in pixel width units whether the width ratio of the dark color region or the light color region of the barcode conforms to the barcode format rule;
An inversion control step for inverting the control result in the pixel density control step when the result of the inspection in the rule conformity inspection step is non-conforming,
The operation method of the code noise removal apparatus according to claim 7, comprising:
バーコードに代えて二次元コードとした請求項7または8に記載のコードノイズ除去装置の動作方法。   The operation method of the code noise removal device according to claim 7 or 8, wherein a two-dimensional code is used instead of the bar code. バーコードを表示するカラーディスプレイ部と、輝度値に応じて取得する画素を濃色又は薄色の画素とすることを決定するための輝度値基準である輝度値判断基準を保持する輝度値判断基準保持部と、を有する計算機であるコードノイズ除去装置に実行させるためのプログラムであって、
バーコードが表示されるカラーディスプレイ部のバーコード表示領域の各画素の輝度値を取得する輝度値取得ステップと、
取得した輝度値と前記輝度値判断基準とに基づいて各画素を濃色又は薄色に決定する濃薄決定ステップと、
濃薄決定ステップでの決定に従ってカラーディスプレイ部の各画素を濃色又は薄色とする画素濃薄制御ステップと、
を計算機であるコードノイズ除去装置に実行させるためのプログラム。
A color display unit that displays a barcode, and a luminance value determination criterion that holds a luminance value determination criterion that is a luminance value criterion for determining that a pixel acquired according to the luminance value is a dark or light pixel. A program for causing a code noise removal apparatus, which is a computer having a holding unit, to execute the program,
A luminance value acquisition step of acquiring the luminance value of each pixel in the barcode display area of the color display unit on which the barcode is displayed;
A density determination step for determining each pixel to be a dark color or a light color based on the acquired brightness value and the brightness value determination criterion;
A pixel density control step for making each pixel of the color display unit a dark color or a light color according to the determination in the density determination step;
Is a program for causing a code noise elimination device, which is a computer, to execute.
バーコードの濃色領域又は薄色領域の幅比がバーコードの書式ルールに適合しているか画素幅単位で検査するルール適合検査ステップと、
ルール適合検査ステップでの検査の結果が不適合である場合には画素濃薄制御ステップでの制御結果を反転する反転制御ステップと、
をさらに有する請求項10に記載のコードノイズ除去装置に実行させるためのプログラム。
A rule conformity inspection step for inspecting in pixel width units whether the width ratio of the dark color region or the light color region of the barcode conforms to the barcode format rule;
An inversion control step for inverting the control result in the pixel density control step when the result of the inspection in the rule conformity inspection step is non-conforming,
The program for making the code noise removal apparatus of Claim 10 further performed.
バーコードに代えて二次元コードとした請求項10または11に記載のコードノイズ除去装置に実行させるためのプログラム。   The program for making the code noise removal apparatus of Claim 10 or 11 performed instead of barcode as a two-dimensional code.
JP2014149797A 2014-07-23 2014-07-23 Code noise removing device, operation method of code noise removing device, and program to be executed by the device Active JP6394947B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014149797A JP6394947B2 (en) 2014-07-23 2014-07-23 Code noise removing device, operation method of code noise removing device, and program to be executed by the device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014149797A JP6394947B2 (en) 2014-07-23 2014-07-23 Code noise removing device, operation method of code noise removing device, and program to be executed by the device

Publications (2)

Publication Number Publication Date
JP2016024716A JP2016024716A (en) 2016-02-08
JP6394947B2 true JP6394947B2 (en) 2018-09-26

Family

ID=55271400

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014149797A Active JP6394947B2 (en) 2014-07-23 2014-07-23 Code noise removing device, operation method of code noise removing device, and program to be executed by the device

Country Status (1)

Country Link
JP (1) JP6394947B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022424B (en) 2016-05-10 2019-04-26 腾讯科技(深圳)有限公司 Generate the method and device with the two-dimension code image of dynamic effect

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3803275B2 (en) * 2001-10-02 2006-08-02 株式会社エッグアイ Barcode service provision system
JP4039262B2 (en) * 2003-02-10 2008-01-30 カシオ計算機株式会社 Display terminal, symbol generation device, and symbol display system
JP3668752B2 (en) * 2003-02-21 2005-07-06 赤松産業株式会社 Identification code reader and display color display
JP3723948B2 (en) * 2003-06-13 2005-12-07 株式会社ブイシンク Mobile phone with camera, barcode reading method, and program
JP4686217B2 (en) * 2005-03-10 2011-05-25 大日本印刷株式会社 Method for displaying two-dimensional code with optimum brightness on data broadcasting screen, program for data broadcasting receiver
JP2007156215A (en) * 2005-12-07 2007-06-21 Matsushita Electric Ind Co Ltd Display device
JP2008084109A (en) * 2006-09-28 2008-04-10 Sharp Corp Eye opening/closing determination device and eye opening/closing determination method
JP2009053794A (en) * 2007-08-24 2009-03-12 Metal Tec Kk Two-dimensional bar code reader
US20120151293A1 (en) * 2010-12-09 2012-06-14 Echostar Technologies L.L.C. Sequenced Two-Dimensional Codes in Video
JP5673257B2 (en) * 2011-03-17 2015-02-18 日本電気株式会社 Code reading apparatus, code reading method and code reading program
JP2013073268A (en) * 2011-09-26 2013-04-22 Canon Finetech Inc Information processing device, method for determining bar-code, and program

Also Published As

Publication number Publication date
JP2016024716A (en) 2016-02-08

Similar Documents

Publication Publication Date Title
KR102351947B1 (en) Automated Techniques for Image Verification
CN103548051B (en) Descriptor and image based item model
WO2021248705A1 (en) Image rendering method and apparatus, computer program and readable medium
US10878532B2 (en) Display device, system and controlling method therefor
CN108563930A (en) A kind of method, apparatus, medium and the system of confidential document addition watermark
US20190325562A1 (en) Window rendering method and terminal
CN106663329B (en) Graphics primitives and color channels
US20110097011A1 (en) Multi-resolution image editing
US20160314560A1 (en) Image displaying method, apparatus, and device, and computer program product
JP2014211709A (en) One-dimensional bar code resize device, method, and program, and one-dimensional bar code system
EP3196745A1 (en) Display device, display system, and display control program
JP2011124999A (en) Improvement of anti-tamper using barcode degradation
CN103544329A (en) Collecting method of consumption information
US9142152B2 (en) Display diagnostics using two-dimensional barcodes
US9406059B1 (en) Checkout imaging mechanism
US8634695B2 (en) Shared surface hardware-sensitive composited video
US20130182943A1 (en) Systems and methods for depth map generation
JP6394947B2 (en) Code noise removing device, operation method of code noise removing device, and program to be executed by the device
JP5712489B2 (en) Image processing apparatus, image processing system, and program
CN105051788B (en) Graphics process is carried out using multiple pels
JP6592830B2 (en) Image forming apparatus
CN113762235A (en) Method and device for detecting page overlapping area
US9766844B2 (en) Display processing apparatus and display processing method
US8107758B2 (en) Block based image processing
JP5750744B2 (en) Bar code display device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170721

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180704

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180726

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180815

R150 Certificate of patent or registration of utility model

Ref document number: 6394947

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250