JP2022154970A - Code reading device - Google Patents

Code reading device Download PDF

Info

Publication number
JP2022154970A
JP2022154970A JP2021058253A JP2021058253A JP2022154970A JP 2022154970 A JP2022154970 A JP 2022154970A JP 2021058253 A JP2021058253 A JP 2021058253A JP 2021058253 A JP2021058253 A JP 2021058253A JP 2022154970 A JP2022154970 A JP 2022154970A
Authority
JP
Japan
Prior art keywords
code
color
image
information
colors
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.)
Pending
Application number
JP2021058253A
Other languages
Japanese (ja)
Inventor
展秀 澤田
Nobuhide Sawada
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.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
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 Denso Wave Inc filed Critical Denso Wave Inc
Priority to JP2021058253A priority Critical patent/JP2022154970A/en
Publication of JP2022154970A publication Critical patent/JP2022154970A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

To provide a technique for reading an information code by utilizing gradation of colors of an image acquired from a camera.SOLUTION: A code reading device executes code processing of acquiring an image indicating a specific code from a camera and reading information recorded in the specific code from the image. The specific code is constituted from 3 or more colors in black-white gradation. The specific code includes a first information code having a first pattern and a second information code having a second pattern. The first pattern is a pattern in 2 colors of a first color of 3 or more colors and a second color being the second color of the 3 or more colors and closer to white than the first color. The second pattern is a pattern in 2 colors of a third color of the 3 or more colors and a fourth color being the fourth color of the 3 or more colors and closer to white than both of the second color and the third color.SELECTED DRAWING: Figure 1

Description

本明細書で開示する技術は、情報コードに記録されている情報を読み取るためのコード読取装置に関する。 The technology disclosed in this specification relates to a code reader for reading information recorded in an information code.

特許文献1には、情報コード(例えばバーコード)を撮像可能なカメラを備えるコード読取装置が開示されている。コード読取装置は、カメラが情報コードを撮像する場合に、情報コードを示す画像から情報コードに記録されている情報を読み取る。 Patent Literature 1 discloses a code reader equipped with a camera capable of capturing an information code (for example, a bar code). The code reader reads the information recorded in the information code from the image showing the information code when the camera captures the information code.

特開2020-161106号公報Japanese Patent Application Laid-Open No. 2020-161106

近年、カメラの色のグラデーションの解像度が高まっている。コード読取装置も、比較的に高い解像度を有するカメラを備える場合がある。コード読取装置は、カメラから取得した画像を二値化して、二値化後の画像によって表されるバーコード内の情報を読み取る。単純な二値化に対して高解像度の色のグラデーションは冗長である。従来の単純な二値化の方法では、高解像度の色のグラデーションのうち、情報コードに利用される2色(例えば白黒)以外の色は、情報コードの読取に利用されていなかった。 In recent years, the resolution of color gradations in cameras has increased. Code readers may also have cameras with relatively high resolution. The code reader binarizes the image acquired from the camera and reads the information in the barcode represented by the binarized image. High-resolution color gradation is redundant for simple binarization. In the conventional simple binarization method, among high-resolution color gradations, colors other than the two colors (for example, black and white) used for the information code were not used for reading the information code.

本明細書では、カメラから取得した画像の色のグラデーションを利用して、情報コードを読み取るための技術を提供する。 This specification provides a technique for reading an information code using color gradation of an image acquired from a camera.

本明細書で開示するコード読取装置は、特定のコードを撮像可能なカメラと、前記カメラから前記特定のコードを示す画像を取得して、当該画像から前記特定のコードに記録されている情報を読み取るコード処理を実行する処理実行部と、を備え、前記特定のコードは、黒色と白色のグラデーションである白黒グラデーションの間の3個以上の色で構成されており、前記特定のコードは、第1のパターンを有する第1の情報コードと、第2のパターンを有する第2の情報コードと、を含み、前記第1の情報コードは、第1の情報を記録し、前記第2の情報コードは、第2の情報を記録し、前記第1のパターンは、前記3個以上の色のうちの第1の色と、前記3個以上の色のうちの第2の色であって、前記第1の色よりも前記白色に近い前記第2の色と、の2色のパターンであり、前記第2のパターンは、前記3個以上の色のうちの第3の色と、前記3個以上の色のうちの第4の色であって、前記第2の色及び前記第3の色の双方よりも前記白色に近い前記第4の色と、の2色のパターンであり、前記画像において、前記白黒グラデーションは、所定の解像度で表されており、前記コード処理は、前記画像を前記所定の解像度より低い第1の解像度で表される第1の画像に変換する第1の変換処理であって、前記第1の解像度は、前記所定の解像度を前記第1の色と前記第2の色との間の色を中心として縮小した解像度である、前記第1の変換処理と、前記画像を前記所定の解像度より低い第2の解像度で表される第2の画像に変換する第2の変換処理であって、前記第2の解像度は、前記所定の解像度を前記第3の色と前記第4の色との間の色を中心として縮小した解像度である、前記第2の変換処理と、前記第1の画像から前記第1の情報コードに記録されている前記第1の情報を読み取る第1の読取処理と、前記第2の画像から前記第2の情報コードに記録されている前記第2の情報を読み取る第2の読取処理と、を備える。ここで、前記第1の色は、例えば、前記黒色であり、前記第4の色は、前記白色であってもよい。また、特定のコードは、4個以上の色で構成されていてもよく、前記第3の色は、前記第2の色よりも前記白色に近い色であってもよい。 The code reading device disclosed in the present specification includes a camera capable of imaging a specific code, acquires an image showing the specific code from the camera, and reads information recorded in the specific code from the image. a processing execution unit that executes code processing for reading, wherein the specific code is composed of three or more colors between a black-and-white gradation that is a gradation of black and white; A first information code having one pattern and a second information code having a second pattern, wherein the first information code records first information and the second information code records second information, wherein the first pattern is a first color among the three or more colors and a second color among the three or more colors, and the second color closer to the white color than the first color, and the second pattern includes the third color among the three or more colors and the three A two-color pattern of a fourth color among the above colors, the fourth color being closer to the white than both the second color and the third color, and the image wherein the black-and-white gradation is expressed at a predetermined resolution, and the code processing is a first conversion process for converting the image into a first image expressed at a first resolution lower than the predetermined resolution. wherein the first resolution is a resolution obtained by reducing the predetermined resolution centering on a color between the first color and the second color; a second conversion process for converting an image into a second image expressed at a second resolution lower than the predetermined resolution, wherein the second resolution is the predetermined resolution as the third color; converting the first information recorded in the first information code from the second conversion processing, which is a resolution reduced centering on the color between the fourth color and the first image; A first reading process for reading, and a second reading process for reading the second information recorded in the second information code from the second image. Here, the first color may be, for example, the black, and the fourth color may be the white. Also, the specific code may be composed of four or more colors, and the third color may be a color closer to white than the second color.

上記のコード読取装置によって読み取られる特定のコードは、第1の色から第4の色の白黒グラデーションを有する。例えば、従来のコード読取装置で特定のコードを読み取ることを想定する。この場合、特定のコードの画像が単純に二値化されるので、二値化後の画像からは、第4の色と他の色(即ち第1~第3の色)とのコントラスト比によって表される情報、即ち、第2の情報コード内の第2の情報が読み取られ得るに過ぎない。これに対して、上記の構成によれば、コード読取装置は、特定のコードを示す画像を第1の色と第2の色の間の色を中心とした第1の解像度で表される第1の画像に変更して第1の画像から第1の情報コードに記録されている第1の情報を読み取るともに、特定のコードを示す画像を第3の色と第4の色の間の色を中心とした第2の解像度で表される第2の画像に変更して第2の画像から第2の情報コードに記録されている第2の情報を読み取る。即ち、コード読取装置は、白黒グラデーションを表す所定の解像度を第1の解像度及び第2の解像度に縮小して、従来のコード読取装置では読み取ることができなかった第1の情報を読み取ることができる。 The particular code read by the code reader described above has a black and white gradation from the first color to the fourth color. For example, assume that a conventional code reader reads a particular code. In this case, since the image of the specific code is simply binarized, from the image after binarization, depending on the contrast ratio between the fourth color and the other colors (that is, the first to third colors) Only the information represented, ie the second information in the second information code, can be read. On the other hand, according to the above configuration, the code reading device displays the image showing the specific code at the first resolution centering on the color between the first color and the second color. The first information recorded in the first information code is read from the first image by changing to one image, and the image showing the specific code is changed to a color between the third color and the fourth color. is changed to a second image represented by a second resolution centered on , and the second information recorded in the second information code is read from the second image. That is, the code reader reduces the predetermined resolution representing the black-and-white gradation to the first resolution and the second resolution, and can read the first information that cannot be read by the conventional code reader. .

また、上記のコード読取装置の制御方法、コード読取装置のためのコンピュータプログラム、及び、当該コンピュータプログラムを保存する記憶媒体も、新規で有用である。 Also, the control method of the code reading device, the computer program for the code reading device, and the storage medium storing the computer program are novel and useful.

実施例の概念図である。1 is a conceptual diagram of an embodiment; FIG. コード読取装置のブロック図である。1 is a block diagram of a code reader; FIG. コード読取装置が実行する処理を示すフローチャート図である。It is a flowchart figure which shows the process which a code reader performs. 白黒グラデーションの解像度を説明する図である。FIG. 4 is a diagram for explaining the resolution of black-and-white gradation;

(コード読取装置10の構成;図1、図2)
本実施例のコード読取装置10は、情報コード(例えばバーコード、二次元コード、多段のバーコード等)に記録されている情報を読み取るための携帯装置である。なお、図1に示すコード読取装置10の外観は、一例に過ぎず、例えば、コード読取装置10は、スマートフォンと同様の外観を有していてもよいし、据え置き型の装置であってもよい。
(Configuration of code reader 10; FIGS. 1 and 2)
The code reader 10 of this embodiment is a portable device for reading information recorded in an information code (for example, a bar code, a two-dimensional code, a multi-level bar code, etc.). Note that the appearance of the code reading device 10 shown in FIG. 1 is merely an example. For example, the code reading device 10 may have the same appearance as a smartphone, or may be a stationary device. .

コード読取装置10は、操作部12と、表示部14と、カメラ20と、制御部30と、を備える。操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をコード読取装置10に入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。また、表示部14は、ユーザの操作を受け付け可能なタッチパネル(即ち操作部12)として機能してもよい。 The code reader 10 includes an operation section 12 , a display section 14 , a camera 20 and a control section 30 . The operation unit 12 has a plurality of keys. A user can input various instructions to the code reader 10 by operating the operation unit 12 . The display unit 14 is a display for displaying various information. Further, the display unit 14 may function as a touch panel (that is, the operation unit 12) capable of accepting user operations.

カメラ20は、LEDライト等の発光源と、CCDイメージセンサと、を含む。カメラ20の色のグラデーションの解像度は、12bitである。カメラ20から取得した画像は、4096諧調の色のグラデーションで表される。なお、変形例では、カメラ20の解像度は、8bit、14bit等であってもよい。 Camera 20 includes a light source such as an LED light and a CCD image sensor. The color gradation resolution of the camera 20 is 12 bits. The image acquired from the camera 20 is represented by a 4096-tone color gradation. Note that, in a modified example, the resolution of the camera 20 may be 8 bits, 14 bits, or the like.

制御部30は、CPU32と、不揮発性メモリなどによって構成されるメモリ34と、を備える。CPU32は、メモリ34に記憶されているプログラム40に従って、様々な処理を実行する。 The control unit 30 includes a CPU 32 and a memory 34 configured by a nonvolatile memory or the like. The CPU 32 executes various processes according to programs 40 stored in the memory 34 .

コード読取装置10は、従来のバーコード200に記録されている情報を読み取るだけでなく、特殊なコード100に記録されている情報も読取可能である。 The code reader 10 can read not only the information recorded in the conventional bar code 200 but also the information recorded in the special code 100 .

図1に示すように、特殊なコード100は、黒色と白色のグラデーションである白黒グラデーションの間の白色、薄いグレー、濃いグレー、黒色の4色で構成されている。特殊なコード100は、上段のバーコード100aと、下段のバーコード100bと、を含む。上段のバーコード100aは、黒色と濃いグレーとの2色のパターンを有するバーコードである。下段のバーコード100bは、薄いグレーと白色との2色のパターンを有するバーコードである。なお、図1に記載の特殊なコード100は、模式的な図であることに留意されたい。 As shown in FIG. 1, the special code 100 consists of four colors: white, light gray, dark gray, and black, between a black and white gradation that is a gradation between black and white. The special code 100 includes an upper bar code 100a and a lower bar code 100b. The upper barcode 100a is a barcode having a two-color pattern of black and dark gray. The lower barcode 100b is a barcode having a two-color pattern of light gray and white. It should be noted that the special code 100 shown in FIG. 1 is schematic.

(コード読取装置10の処理;図3)
図3を参照して、コード読取装置10のCPU32がプログラム40に従って実行する処理について説明する。図3の処理は、特殊なコード100に記録されている情報を読み取るための処理である。図3の処理は、コード読取装置10が、操作部12を介して、特殊なコード100内の情報の読取の指示を受け付けることをトリガとして開始される。
(Processing of code reader 10; FIG. 3)
Processing executed by the CPU 32 of the code reader 10 according to the program 40 will be described with reference to FIG. The processing in FIG. 3 is processing for reading information recorded in the special code 100 . The processing in FIG. 3 is triggered by the code reading device 10 receiving an instruction to read information in the special code 100 via the operation unit 12 .

S10では、CPU32は、カメラ20を起動して、特殊なコード100の撮像をカメラ20に実行させる。これにより、CPU32は、カメラ20から画像を取得する。なお、以下では、カメラ20から取得した画像を「撮像画像」と記載する。ここで、例えば、撮像画像が特殊なコード100の画像(以下では「コード画像」と記載)を含む場合には、コード画像は、図4に示すような、12bit(即ち4096諧調)の白黒グラデーションの解像度で表される。 In S<b>10 , the CPU 32 activates the camera 20 and causes the camera 20 to capture the special code 100 . Thereby, the CPU 32 acquires an image from the camera 20 . In addition, below, the image acquired from the camera 20 is described as a "captured image." Here, for example, when the captured image includes an image of a special code 100 (hereinafter referred to as a "code image"), the code image is a 12-bit (that is, 4096-gradation) black-and-white gradation as shown in FIG. resolution.

S20では、CPU32は、撮像画像を、12bitの解像度よりも低い下位8bitの解像度で表される第1の画像に変換する。下位8bitの解像度は、12bitの解像度を黒色と濃いグレーとの間の色(例えば、4bit目の諧調の色)を中心に縮小した解像度である。図4に示すように、下位8bitの解像度では、濃いグレーの諧調は、4bit目の諧調よりも白色側である。撮像画像がコード画像を含む場合において、第1の画像のうちのコード画像に対応する画像が二値化されると、当該画像における白色、薄いグレー、及び、濃いグレーの部分は、白色に変換され、当該画像における黒色の部分は、黒色に変換される。即ち、第1の画像の二値化により、図1の画像IM1が得られる。画像IM1によって示される白黒のパターンは、上段のバーコード100aの白黒のパターンと同じである。 In S20, the CPU 32 converts the captured image into a first image expressed with a lower 8-bit resolution lower than the 12-bit resolution. The lower 8-bit resolution is a resolution obtained by reducing the 12-bit resolution centering on colors between black and dark gray (for example, gradation colors of the 4th bit). As shown in FIG. 4, in the lower 8-bit resolution, the dark gray gradation is closer to the white side than the 4th bit gradation. When the captured image includes the code image, when the image corresponding to the code image in the first image is binarized, the white, light gray, and dark gray portions in the image are converted to white. and black parts in the image are converted to black. That is, the image IM1 of FIG. 1 is obtained by binarizing the first image. The black and white pattern indicated by image IM1 is the same as the black and white pattern of barcode 100a in the upper row.

S22では、CPU32は、第1の画像から情報を読み取ることが可能か否かを判断する。例えば、CPU32は、第1の画像から特殊なコード100のパターンを表す特徴(以下では「コードパターン」と記載)が検出される場合に、第1の画像から情報を読み取ることが可能であると判断し(S22でYES)、S24に進む。一方、CPU32は、第1の画像からコードパターンが検出されない場合に、第1の画像から情報を読み取ることが不可能であると判断し(S22でNO)、S24をスキップして、S30に進む。 In S22, the CPU 32 determines whether information can be read from the first image. For example, the CPU 32 determines that information can be read from the first image when a feature representing a pattern of the special code 100 (hereinafter referred to as "code pattern") is detected from the first image. It judges (YES at S22), and proceeds to S24. On the other hand, when the code pattern is not detected from the first image, the CPU 32 determines that information cannot be read from the first image (NO in S22), skips S24, and proceeds to S30. .

S24では、CPU32は、第1の画像を二値化する。そして、CPU32は、二値化後の画像(例えば図1の画像IM1)をデコードすることによって、上段のバーコード100aに記録されている情報を読み取る。CPU32は、S24が終了すると、S30に進む。 In S24, the CPU 32 binarizes the first image. Then, the CPU 32 reads the information recorded in the upper bar code 100a by decoding the binarized image (for example, the image IM1 in FIG. 1). After completing S24, the CPU 32 proceeds to S30.

S30では、CPU32は、撮像画像を、12bitの解像度よりも低い上位8bitの解像度で表される第2の画像に変換する。上位8bitの解像度は、12bitの解像度を白色と薄いグレーとの間の色(例えば、8bit目の諧調の色)を中心に縮小した解像度である。図4に示すように、上位8bitの解像度では、薄いグレーの諧調は、8bit目の諧調よりも黒色側である。撮像画像がコード画像を含む場合において、第2の画像のうちのコード画像に対応する画像が二値化されると、当該画像における薄いグレー、濃いグレー、及び、黒色の部分は、黒色に変換され、当該画像における白色の部分は、白色に変換される。即ち、第2の画像の二値化により、図1の画像IM2が得られる。画像IM2によって示される白黒のパターンは、下段のバーコード100bの白黒のパターンと同じである。 In S<b>30 , the CPU 32 converts the captured image into a second image represented by a higher 8-bit resolution lower than the 12-bit resolution. The upper 8-bit resolution is a resolution obtained by reducing the 12-bit resolution centering on colors between white and light gray (for example, gradation colors of the 8th bit). As shown in FIG. 4, in the upper 8-bit resolution, the light gray gradation is closer to black than the 8-bit gradation. When the captured image includes the code image, when the image corresponding to the code image in the second image is binarized, the light gray, dark gray, and black portions in the image are converted to black. and the white parts in the image are converted to white. That is, the image IM2 of FIG. 1 is obtained by binarizing the second image. The black and white pattern indicated by image IM2 is the same as the black and white pattern of the lower bar code 100b.

S32は、第2の画像が利用される点を除いて、S22と同様である。CPU32は、第2の画像から情報を読み取ることが可能であると判断する(S32でYES)場合に、S34に進む。一方、CPU32は、第2の画像から情報を読み取ることが不可能であると判断する場合(S32でNO)に、S34をスキップして、S40に進む。 S32 is similar to S22, except that a second image is used. When the CPU 32 determines that information can be read from the second image (YES in S32), the process proceeds to S34. On the other hand, when the CPU 32 determines that it is impossible to read information from the second image (NO in S32), it skips S34 and proceeds to S40.

S34では、CPU32は、第2の画像を二値化する。そして、CPU32は、二値化後の画像(例えば図1の画像IM2)をデコードすることによって、下段のバーコード100bに記録されている情報を読み取る。CPU32は、S34が終了すると、S40に進む。 In S34, the CPU 32 binarizes the second image. Then, the CPU 32 reads the information recorded in the lower bar code 100b by decoding the binarized image (for example, the image IM2 in FIG. 1). After completing S34, the CPU 32 proceeds to S40.

S40では、CPU32は、特殊なコード100の読取結果を出力する。特殊なコード100の読取が成功する場合には、読取結果は、特殊なコード100に記録されている2個の情報を含む。特殊なコード100の読取が失敗する場合には、読取結果は、読取失敗を示す情報を含む。例えば、CPU32は、読取結果を表示部14に表示させることにより、読取結果を出力する。また、変形例では、CPU32は、読取結果を外部の装置(例えばサーバ)に送信することによって、読取結果を出力してもよい。また、他の変形例では、CPU32は、読取結果を示す音声を出力してもよい。S40が終了すると、図3の処理が終了する。 In S40, the CPU 32 outputs the reading result of the special code 100. FIG. If the special code 100 is read successfully, the reading result contains two pieces of information recorded in the special code 100 . If the reading of the special code 100 fails, the reading result will contain information indicating the reading failure. For example, the CPU 32 outputs the reading result by displaying the reading result on the display unit 14 . Alternatively, the CPU 32 may output the reading result by transmitting the reading result to an external device (for example, a server). Also, in another modification, the CPU 32 may output a voice indicating the reading result. When S40 ends, the process of FIG. 3 ends.

(本実施例の効果)
例えば、従来のコード読取装置で特殊なコード100を読み取ることを想定する。この場合、特殊なコード100の画像が単純に二値化されるので、二値化後の画像からは、白色と他の色(即ち薄いグレー、濃いグレー、黒色)とのコントラスト比によって表される情報、即ち、下段のバーコード100bの情報が読み取られ得るに過ぎない。これに対して、本実施例の構成によれば、コード読取装置10は、コード画像を下位8bitの解像度で表される第1の画像(図1の画像IM1参照)に変更し、第1の画像から上段のバーコード100a内の情報を読み取るともに、コード画像を上位8bitの解像度で表される第2の画像(図1の画像IM2参照)に変更し、第2の画像から下段のバーコード100b内の情報を読み取る。即ち、コード読取装置10は、12bitの解像度を下位8bitの解像度及び上位8bitの解像度に縮小して、従来のコード読取装置では読み取ることができなかった上段のバーコード100a内の情報を読み取ることができる。
(Effect of this embodiment)
For example, assume that a conventional code reader reads a special code 100 . In this case, since the image of the special code 100 is simply binarized, the binarized image is represented by the contrast ratio between white and other colors (i.e., light gray, dark gray, and black). Only the information on the lower bar code 100b can be read. On the other hand, according to the configuration of this embodiment, the code reader 10 changes the code image to the first image (see image IM1 in FIG. 1) represented by the lower 8-bit resolution, While reading the information in the upper bar code 100a from the image, the code image is changed to the second image (see image IM2 in FIG. 1) represented by the higher 8-bit resolution, and the lower bar code is read from the second image. Read the information in 100b. That is, the code reader 10 reduces the 12-bit resolution to a lower 8-bit resolution and a higher 8-bit resolution, and can read the information in the upper bar code 100a that could not be read by the conventional code reader. can.

例えば、特殊なコード100を店舗で利用することが想定される。例えば、上段のバーコード100aには、店舗内の商品の賞味期限等の情報が記録され、下段のバーコード100bには、店舗内の商品を識別する識別コード(例えばPOSコード)が記録される。店舗の管理者は、コード読取装置10を利用して、特殊なコード100を読み取ることにより、識別コードだけでなく、賞味期限等の情報も取得することができる。一方、店舗の販売員は、従来のコード読取装置(例えばPOSレジに接続されているスキャナ)を利用して、特殊なコード100を読み取ることにより、識別コードを取得することができる。例えば、管理者が利用する情報コードに加えて、販売員が利用する情報コードを用意する比較例が想定される。この比較例では、1個の商品に対して、2個の情報コードが別々の場所に表示される。これに対して、本実施例の構成によれば、1個の商品に対して、1個の特殊なコード100を1か所に表示すればよい。そして、1個の特殊なコード100により、商品を扱う作業者の立場に応じて、異なる情報を作業者に取得させることができる。 For example, it is assumed that a special code 100 is used at a store. For example, the upper barcode 100a records information such as the expiration date of the product in the store, and the lower barcode 100b records an identification code (for example, a POS code) for identifying the product in the store. . By reading the special code 100 using the code reader 10, the manager of the store can obtain not only the identification code but also information such as the expiration date. On the other hand, a store clerk can obtain an identification code by reading the special code 100 using a conventional code reader (for example, a scanner connected to a POS cash register). For example, a comparative example in which an information code used by a salesperson is prepared in addition to an information code used by an administrator is assumed. In this comparative example, two information codes are displayed at separate locations for one product. On the other hand, according to the configuration of this embodiment, it is sufficient to display one special code 100 at one place for one product. By using one special code 100, a worker can obtain different information depending on the position of the worker handling the product.

(対応関係)
特殊なコード100、上段のバーコード100a、下段のバーコード100bが、それぞれ、「特定のコード」、「第1の情報コード」、「第2の情報コード」の一例である。黒色、濃いグレー、薄いグレー、白色が、それぞれ、「第1の色」、「第2の色」、「第3の色」、「第4の色」の一例である。コード読取装置10、カメラ20、制御部30が、それぞれ、「コード読取装置」、「カメラ」、「処理実行部」の一例である。12bitの解像度、下位8bitの解像度、上位8bitの解像度が、それぞれ、「所定の解像度」、「第1の解像度」、「第2の解像度」の一例である。図3のS20、S24、S30、S34が、それぞれ、「第1の変換処理」、「第1の読取処理」、「第2の変換処理」、「第2の読取処理」の一例である。
(correspondence relationship)
The special code 100, the upper bar code 100a, and the lower bar code 100b are examples of the "specific code,""first information code," and "second information code," respectively. Black, dark gray, light gray, and white are examples of "first color,""secondcolor,""thirdcolor," and "fourth color," respectively. The code reader 10, the camera 20, and the control unit 30 are examples of the "code reader,""camera," and "processing execution unit," respectively. The 12-bit resolution, the lower 8-bit resolution, and the upper 8-bit resolution are examples of the "predetermined resolution,""firstresolution," and "second resolution," respectively. S20, S24, S30, and S34 in FIG. 3 are examples of "first conversion processing,""first reading processing,""second conversion processing," and "second reading processing," respectively.

以上、本明細書で開示する技術の具体例を説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。例えば、以下の変形例を採用してもよい。 Specific examples of the technology disclosed in this specification have been described above, but these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above. For example, the following modifications may be adopted.

(変形例1)「第1の情報コード(及び第2の情報コード)」は、バーコードに限らず、例えば、多段のバーコード、二次元コード等であってもよい。 (Modification 1) The "first information code (and second information code)" is not limited to a barcode, and may be, for example, a multi-stage barcode, a two-dimensional code, or the like.

(変形例2)上記の実施例では、特殊なコード100は、白色、薄いグレー、濃いグレー、黒色の4個の色で構成されている。これに代えて、特殊なコード100は、最も薄いグレー、薄いグレー、濃いグレー、最も濃いグレーの4色で構成されていてもよい。別言すれば、特殊なコード100は、白黒グラデーションの間の任意の4色で構成されていればよい。本変形例では、最も濃いグレー、最も薄いグレーが、それぞれ、「第1の色」、「第4の色」の一例である。 (Modification 2) In the above embodiment, the special code 100 consists of four colors: white, light gray, dark gray and black. Alternatively, special code 100 may consist of four colors: lightest grey, light grey, dark grey, and darkest grey. In other words, the special code 100 may consist of any four colors between black and white gradations. In this modification, the darkest gray and lightest gray are examples of the "first color" and the "fourth color", respectively.

(変形例3)上記の実施例では、撮像画像が下位8bitの解像度で表される第1の画像に変換される(図3のS20)。これに代えて、撮像画像が、黒色側の任意の諧調の間の範囲(例えば、7bit目の諧調から2bit目の諧調の範囲、9bit目の諧調から2bit目の諧調の範囲)における解像度で表される画像に変換されてもよい。本変形例では、黒色側の任意の諧調の間の範囲における解像度が、「第1の解像度」の一例である。 (Modification 3) In the above embodiment, the captured image is converted into the first image represented by the lower 8-bit resolution (S20 in FIG. 3). Instead of this, the captured image is represented at a resolution in a range between arbitrary gradations on the black side (for example, a range from the 7th bit gradation to the 2nd bit gradation, and a range from the 9th bit gradation to the 2nd bit gradation). image. In this modified example, the resolution in the range between arbitrary gradations on the black side is an example of the “first resolution”.

(変形例4)上記の実施例では、特殊なコード100は、白色、薄いグレー、濃いグレー、黒色の4個の色で構成されている。これに代えて、特殊なコード100は、白色、グレー、黒色の3個の色で構成されてもよい。本変形例では、グレーが、「第2の色及び第3の色」の一例である。また、他の変形例では、特殊なコード100は、5個以上の色で構成されてもよい。一般的に言えば、「特定のコード」は、3個以上の色で構成されていればよい。 (Modification 4) In the above embodiment, the special code 100 consists of four colors: white, light gray, dark gray and black. Alternatively, special code 100 may consist of three colors: white, gray and black. In this modified example, gray is an example of "second color and third color". Also, in other variations, the special code 100 may consist of more than five colors. Generally speaking, the "specific code" may consist of three or more colors.

本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。 The technical elements described in this specification or in the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims as of the filing. In addition, the techniques exemplified in this specification or drawings achieve multiple purposes at the same time, and achieving one of them has technical utility in itself.

10 :コード読取装置
12 :操作部
14 :表示部
20 :カメラ
30 :制御部
32 :CPU
34 :メモリ
40 :プログラム
100 :特殊なコード
100a :上段のバーコード
100b :下段のバーコード
IM1、IM2 :二値化後の画像
10: Code reader 12: Operation unit 14: Display unit 20: Camera 30: Control unit 32: CPU
34: Memory 40: Program 100: Special code 100a: Upper bar code 100b: Lower bar code IM1, IM2: Image after binarization

Claims (3)

特定のコードを撮像可能なカメラと、
前記カメラから前記特定のコードを示す画像を取得して、当該画像から前記特定のコードに記録されている情報を読み取るコード処理を実行する処理実行部と、
を備え、
前記特定のコードは、黒色と白色のグラデーションである白黒グラデーションの間の3個以上の色で構成されており、
前記特定のコードは、第1のパターンを有する第1の情報コードと、第2のパターンを有する第2の情報コードと、を含み、
前記第1の情報コードは、第1の情報を記録し、
前記第2の情報コードは、第2の情報を記録し、
前記第1のパターンは、前記3個以上の色のうちの第1の色と、前記3個以上の色のうちの第2の色であって、前記第1の色よりも前記白色に近い前記第2の色と、の2色のパターンであり、
前記第2のパターンは、前記3個以上の色のうちの第3の色と、前記3個以上の色のうちの第4の色であって、前記第2の色及び前記第3の色の双方よりも前記白色に近い前記第4の色と、の2色のパターンであり、
前記画像において、前記白黒グラデーションは、所定の解像度で表されており、
前記コード処理は、
前記画像を前記所定の解像度より低い第1の解像度で表される第1の画像に変換する第1の変換処理であって、前記第1の解像度は、前記所定の解像度を前記第1の色と前記第2の色との間の色を中心として縮小した解像度である、前記第1の変換処理と、
前記画像を前記所定の解像度より低い第2の解像度で表される第2の画像に変換する第2の変換処理であって、前記第2の解像度は、前記所定の解像度を前記第3の色と前記第4の色との間の色を中心として縮小した解像度である、前記第2の変換処理と、
前記第1の画像から前記第1の情報コードに記録されている前記第1の情報を読み取る第1の読取処理と、
前記第2の画像から前記第2の情報コードに記録されている前記第2の情報を読み取る第2の読取処理と、
を備える、コード読取装置。
a camera capable of imaging a specific code;
a processing execution unit that acquires an image showing the specific code from the camera and executes code processing that reads information recorded in the specific code from the image;
with
the specific code is composed of three or more colors between a black and white gradation that is a gradation of black and white;
The specific code includes a first information code having a first pattern and a second information code having a second pattern,
The first information code records first information,
The second information code records second information,
The first pattern is a first color among the three or more colors and a second color among the three or more colors, and is closer to the white than the first color. a two-color pattern of the second color and
The second pattern is a third color among the three or more colors and a fourth color among the three or more colors, wherein the second color and the third color A two-color pattern of the fourth color that is closer to the white than both of the
In the image, the black-and-white gradation is expressed at a predetermined resolution,
The code processing is
a first conversion process for converting the image into a first image expressed at a first resolution lower than the predetermined resolution, wherein the first resolution converts the predetermined resolution to the first color; the first conversion process being a reduced resolution centered on a color between and the second color;
a second conversion process for converting the image into a second image expressed at a second resolution lower than the predetermined resolution, wherein the second resolution converts the predetermined resolution to the third color; the second conversion process being a reduced resolution centered on a color between and the fourth color;
a first reading process of reading the first information recorded in the first information code from the first image;
a second reading process of reading the second information recorded in the second information code from the second image;
A code reader.
前記第1の色は、前記黒色であり、
前記第4の色は、前記白色である、請求項1に記載のコード読取装置。
the first color is the black;
2. The code reader according to claim 1, wherein said fourth color is said white.
前記特定のコードは、4個以上の色で構成されており、
前記第3の色は、前記第2の色よりも前記白色に近い色である、請求項2に記載のコード読取装置。
The specific code is composed of four or more colors,
3. The code reader according to claim 2, wherein said third color is closer to said white than said second color.
JP2021058253A 2021-03-30 2021-03-30 Code reading device Pending JP2022154970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021058253A JP2022154970A (en) 2021-03-30 2021-03-30 Code reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021058253A JP2022154970A (en) 2021-03-30 2021-03-30 Code reading device

Publications (1)

Publication Number Publication Date
JP2022154970A true JP2022154970A (en) 2022-10-13

Family

ID=83556905

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021058253A Pending JP2022154970A (en) 2021-03-30 2021-03-30 Code reading device

Country Status (1)

Country Link
JP (1) JP2022154970A (en)

Similar Documents

Publication Publication Date Title
EP2453411B1 (en) Method and system operative to process monochrome image data
US6722569B2 (en) Optical reader having a color imager
JP4791563B2 (en) Apparatus and method for capturing and automatically processing data obtained from optical codes
JP4374331B2 (en) Image generating apparatus, program, and recording medium
US20020171745A1 (en) Multimode image capturing and decoding optical reader
JP4288756B2 (en) Information code approximate existence area estimation method, information code reading method and apparatus, and recording medium
JP4863346B2 (en) Color image superimposed barcode generation method and apparatus
WO2006049704A2 (en) Methods and apparatus for dynamic signal processing
EP0392460B1 (en) Relief image scanner
JP2012194831A (en) Code reader, code reading method and code reading program
JP2022154970A (en) Code reading device
JPS62162181A (en) Optical reader
JP2722434B2 (en) Optical character reader
US20240046057A1 (en) Information processing system
US11842033B1 (en) Method for sharing console variable setting of application and system with plurality of electronic devices
JP2002216073A (en) Device for reading readable character or the like and method for the same
Mathumitha et al. Enhanced Detection and Decoding of QR Code and Barcode using Machine Learning
JPH0469785A (en) Optical information reader
JPS6324382A (en) Optical character reader
JP2015099482A (en) Code reading device, sales registration device, and code reading program
JP2023162011A (en) Program, method, and system
KR20230028126A (en) Method and device for identification barcode image
JPH0469787A (en) Optical information reader
JPH02129776A (en) Bar code reader
CN101853375A (en) Image comparison fault-tolerance processing system and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230725