JP2005004642A - Camera-equipped cellphone, bar code reading method and program - Google Patents

Camera-equipped cellphone, bar code reading method and program Download PDF

Info

Publication number
JP2005004642A
JP2005004642A JP2003169674A JP2003169674A JP2005004642A JP 2005004642 A JP2005004642 A JP 2005004642A JP 2003169674 A JP2003169674 A JP 2003169674A JP 2003169674 A JP2003169674 A JP 2003169674A JP 2005004642 A JP2005004642 A JP 2005004642A
Authority
JP
Japan
Prior art keywords
barcode
camera
image
frame
bar 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.)
Granted
Application number
JP2003169674A
Other languages
Japanese (ja)
Other versions
JP3723948B2 (en
Inventor
Hidetaka Amahata
秀隆 天畠
Katsuma Fujii
克磨 藤井
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.)
SYNC CO Ltd V
V Sync Co Ltd
Original Assignee
SYNC CO Ltd V
V Sync 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 SYNC CO Ltd V, V Sync Co Ltd filed Critical SYNC CO Ltd V
Priority to JP2003169674A priority Critical patent/JP3723948B2/en
Publication of JP2005004642A publication Critical patent/JP2005004642A/en
Application granted granted Critical
Publication of JP3723948B2 publication Critical patent/JP3723948B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a camera-equipped cellphone reading a bar code with high accuracy. <P>SOLUTION: This camera-equipped cellphone has: a display part displaying an image photographed by a camera; a frame output part making the display part display a bar code frame restricting a direction of the bar code photographed by the camera aslant to an arrangement direction of pixels of the camera; and a bar code extraction part extracting an image of the bar code from an image photographed inside the bar code frame. The bar code extraction part can have a conversion part binarizing the extracted image of the bar code, and transmitting it to an external information processor. The bar code extraction part can have a threshold value determination part determining a threshold value for the binarization such that respective widths of a bar and a space showing a start code in the extracted image of the bar code become identical. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、バーコードを読み取るカメラ付き携帯電話、バーコード読み取り方法、及びプログラムに関する。
【0002】
【従来の技術】
従来、内蔵カメラを用いてバーコードを読み取る携帯電話がある(例えば、非特許文献1参照。)。
【0003】
【非特許文献1】
”メディアシーク、カメラ付携帯端末向けバーコードリーダー開発”、[online]、平成15年5月9日、株式会社メディアシーク、[平成15年5月12日検索]、インターネット<URL:http://www.mediaseek.co.jp/ir/pdf/2003_0509_01.pdf>
【0004】
【発明が解決しようとする課題】
しかしながら、従来のカメラ付き携帯電話では、バーコードを精度よく読み取ることが困難であるという課題があった。
【0005】
そこで本発明は、上記の課題を解決することのできるカメラ付き携帯電話、バーコード読み取り方法、及びプログラムを提供することを目的とする。この目的は特許請求の範囲における独立項に記載の特徴の組み合わせにより達成される。また従属項は本発明の更なる有利な具体例を規定する。
【0006】
【課題を解決するための手段】
即ち、本発明の第1の形態によると、カメラ付き携帯電話は、カメラで撮影している画像を表示する表示部と、カメラで撮影するバーコードの向きをカメラが有する画素の配列方向に対して斜めに規制するバーコード枠を表示部に表示させる枠出力部と、バーコード枠の内側で撮影された画像からバーコードの画像を抽出するバーコード抽出部とを備える。
【0007】
カメラの画素において、画素の配列方向に対して斜め方向の画素密度は、画素の配列方向の画素密度よりも高い。従って、バーコード枠が、カメラで撮影するバーコードの向きをカメラが有する画素の配列方向に対して斜めに規制することにより、バーコードの読み取り方向を高い画素密度で撮影することができる。すなわち、カメラ付き携帯電話は、バーコードを高い解像度で撮影することができる。
【0008】
また、バーコード抽出部は、バーコード枠の内側で撮影された画像からバーコード画像を抽出するので、バーコード画像を精度よくかつ容易に抽出することができる。バーコード抽出部はさらに、抽出したバーコードの画像を、外部の情報処理装置に送信してもよい。これにより、カメラ付き携帯電話がバーコードを解読するために要する負荷を軽減することができる。
【0009】
バーコード抽出部は、抽出したバーコードの画像を二値化したうえで、外部の情報処理装置へ送信する変換部を有してもよい。これにより、情報処理装置へ送信するバーコード画像のデータサイズを小さくすることができる。従って、バーコード画像を情報処理装置に短時間で送信することができる。
【0010】
バーコード抽出部は、抽出したバーコードの画像のうちで、スタートコードを示すバー及びスペースのそれぞれの幅が同一になるように、二値化の閾値を決定する閾値決定部を更に有してもよい。スタートコードを示すバー及びスペースの幅はバーコードの規格上同一であることが定められている。従って閾値決定部は、これらの幅が同一になるように二値化の閾値を決定することによって、バーとスペースの境界の位置を精度よく反映した二値のバーコード画像を変換部に出力させることができる。
【0011】
本発明の第2の形態によれば、カメラ付き携帯電話でバーコードを読み取る方法は、カメラ付き携帯電話が、カメラで撮影している画像を画面に表示する表示ステップと、カメラで撮影するバーコードの向きをカメラが有する画素の配列方向に対して斜めに規制するバーコード枠を、画面に表示する枠出力ステップと、バーコード枠の内側で撮影された画像からバーコードの画像を抽出するバーコード抽出ステップとを備える。これにより、第1の形態と同様の効果を奏する。
【0012】
本発明の第3の形態によれば、カメラ付き携帯電話用のプログラムは、カメラで撮影している画像を画面に表示する表示機能と、カメラで撮影するバーコードの向きをカメラが有する画素の配列方向に対して斜めに規制するバーコード枠を、画面に表示する枠出力機能と、バーコード枠の内側で撮影された画像からバーコードの画像を抽出するバーコード抽出機能とをカメラ付き携帯電話に実現させる。これにより、第1の形態と同様の効果を奏する。
【0013】
なお上記の発明の概要は、本発明の必要な特徴の全てを列挙したものではなく、これらの特徴群のサブコンビネーションも又発明となりうる。
【0014】
【発明の実施の形態】
以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではなく、又実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。
【0015】
図1は、カメラ付き携帯電話10の機能構成の一例を示す。本実施形態におけるカメラ付き携帯電話10は、内蔵カメラを用いてバーコードを精度よく読み取る。カメラ付き携帯電話10は、カメラ12で撮影した画像を表示する画面14と、カメラ12で撮影するバーコードの向きをカメラが有する画素の配列方向に対して斜めに規制するバーコード枠を画面14に表示させる枠出力部16と、バーコード枠の内側で撮影された画像からバーコードの画像を抽出するバーコード抽出部20とを備える。なお、画面14は、本発明の表示部の一例である。
【0016】
バーコード抽出部20は、抽出したバーコード画像を外部の情報処理装置100に送信する。カメラ付き携帯電話10と情報処理装置100との通信は、有線通信であってもよいし無線通信であってもよい。カメラ12において、画素の配列方向に対して斜め方向の画素ピッチは、画素の配列方向の画素ピッチよりも狭い。従って、バーコード枠が、カメラ12で撮影するバーコードの向きをカメラ12が有する画素の配列方向に対して斜めに規制することにより、バーコードの読み取り方向を狭い画素ピッチで撮影することができる。すなわち、カメラ付き携帯電話10は、バーコードを高い解像度で撮影することができる。
【0017】
またバーコード抽出部20は、バーコード枠の内側で撮影された画像からバーコード画像を抽出するので、バーコード画像を精度よくかつ容易に抽出することができる。バーコード抽出部20は、カメラ12が撮影した画像のうち、バーコード枠の内側におけるバーコード画像を切り出す切り出し部22と、切り出されたバーコード画像を二値化したうえで、外部の情報処理装置100へ送信する変換部26とを有する。変換部26がバーコード画像を二値化することにより、情報処理装置100へ送信するバーコード画像のデータサイズを小さくすることができる。従って、バーコード画像を情報処理装置100に短時間で送信することができる。さらに情報処理装置100においても、カメラ付き携帯電話10から受信するバーコード画像のデータサイズが小さいので、バーコードの解読に要する負荷が軽減される。
【0018】
バーコード抽出部20はさらに、抽出したバーコードの画像のうちで、スタートコードを示すバー及びスペースのそれぞれの幅が同一になるように、二値化の閾値を決定する閾値決定部24を有する。スタートコードを示すバー及びスペースの幅はバーコードの規格上同一であることが定められている。従って閾値決定部24は、これらの幅が同一になるように二値化の閾値を決定することによって、バーとスペースの境界の位置を精度よく反映した二値のバーコード画像を変換部26に出力させることができる。
【0019】
記録媒体60は、カメラ12、画面14、枠出力部16、切り出し部22、閾値決定部24、変換部26、及び情報処理装置100を動作させるプログラムを格納する。記録媒体60は、そのようなプログラムをネットワーク経由で取得してもよい。
【0020】
図2は、バーコード枠50の一実施例を示す。カメラ付き携帯電話10において、バーコードを撮影するメニューを選択すると、画面14にバーコード枠50が表示される。本実施例において、バーコード枠50の向きは画面14の向きに対して斜めに設けられている。バーコード枠50は、読み取るべきバーコード52のバーコード方式に応じて異なる縦横比率を有してもよい。ユーザは、読み取るべきバーコード52に対してカメラ12の距離と向きを調節することにより、バーコード枠50の内側一杯にバーコード52を表示させた状態で撮影を実行する。これにより、バーコード52を精度よく撮影する向き及び距離で、バーコード52を撮影することができる。
【0021】
図3は、図2のバーコード枠50を出力するカメラ付き携帯電話10における、画素13の配列を示す。本実施例において画素13の配列は画面14の向きと一致している。すなわち、図2のバーコード枠50はカメラ12で撮影するバーコード52の向きをカメラ12が有する画素13の配列方向に対して斜めに規制する。このとき、画素13の配列において、画素13の配列方向に対して斜め方向の画素ピッチaは、画素13の配列方向の画素ピッチbよりも狭い。すなわち、カメラ12はバーコード52の読み取り方向を画素ピッチbよりも狭い画素ピッチaで撮影する。従って、カメラ付き携帯電話10は、バーコード52を高い解像度で撮影することができる。
【0022】
図4及び図5は、バーコード枠50及び画素13の配列の他の実施例を示す。本実施例において、画素13の配列は画面14の向きに対して斜めに設けられている。一方、バーコード枠50は画面14の向きと一致している。すなわち本実施例においても、バーコード枠50は、カメラ12で撮影するバーコード52の向きをカメラ12が有する画素13の配列方向に対して斜めに規制する。ここで、画素13の配列において、画素13の配列方向に対して斜め方向の画素ピッチaは、画素13の配列方向の画素ピッチbよりも小さい。従って、カメラ付き携帯電話10は、バーコード52を高い解像度で撮影することができる。なお、本実施例のバーコード枠50は画面14の向きと一致しているので、ユーザにとって自然な操作感が得られる。
【0023】
図6は、バーコード52のスタートコードを示す。スタートコードは2本のバー及びスペースを含み、バー及びスペースのそれぞれの幅は、バーコードの規格上同一であることが定められている。すなわち、本図におけるWB、WB、及びWSは規格上同一である。従って、閾値決定部24は、WB、WB、及びWSの幅が同一になるように二値化の閾値を決定することによって、バーとスペースの境界の位置を精度よく反映した二値のバーコード画像を変換部26に出力させることができる。情報処理装置100は、バーとスペースの境界の位置を精度よく反映した二値のバーコード画像を解読するので、解読の精度が高い。
【0024】
図7は、上記のように構成されたカメラ付き携帯電話10がバーコード52を読み取る動作の一例を示す。まず、バーコード抽出部20が出力する信号を認識するアプリケーションを情報処理装置100において起動する。起動するアプリケーションは、バーコード52の方式に対応したアプリケーションである。
【0025】
次に、カメラ付き携帯電話10において、バーコードを読み取るメニューを選択する(S10)。当該メニューが選択されたことに応じて、枠出力部16は、画面14にバーコード枠50を表示する(S12)。ユーザは、読み取るべきバーコード52に対してカメラ12の距離と向きを調節することにより、バーコード枠50の内側一杯にバーコード52を表示させた状態で撮影を実行する(S14)。これにより、バーコード52の向き及び大きさを、バーコード52を精度よく撮影する状態に合わせた状態で、バーコード52を撮影することができる。切り出し部22は、カメラ12が撮影した画像からバーコード枠50の内側部分を切り出すことによりバーコード画像を切り出す(S16)。
【0026】
次に、閾値決定部24は、バーコード52の画像のうちで、スタートコードを示すバー及びスペースのそれぞれの幅が同一になるように、二値化の閾値を決定する(S18)。変換部26は、閾値決定部24が決定したしきい値を用いてバーコード画像を白黒等の2値に変換し(S20)、情報処理装置100に出力する(S22)。情報処理装置100において起動されているアプリケーションは、当該バーコード画像を解読して、バーコード52に記録されているコードを読み取る。そして、バーコード52のバーコード方式を判断し、読み取ったコードが当該バーコード方式のルールに適合しているか否かを判断する。バーコード方式別のルールは、例えばチェックディジットを用いたエラーチェックである。
【0027】
アプリケーションは、受信したバーコード画像がバーコード方式別のルールに適合しているか否かをチェックし、チェック結果をカメラ付き携帯電話10に送信する。また、当該アプリケーションは、受信したバーコード画像がバーコード方式別のルールに適合している場合には、当該バーコード画像を解読し、さらにユーザが利用するデータ形式に変換する。カメラ付き携帯電話10は、アプリケーションによるチェック結果を受信すると、受信した認識結果を画面14に表示する(S24)。例えば、情報処理装置100に送信したバーコード画像がルールに適合していない旨を受信した場合、再度バーコード52を撮影するように、ユーザに要求するメッセージを画面14に表示する。
【0028】
上記説明から明らかなように、本実施形態に係るカメラ付き携帯電話、バーコード読み取り方法、及びプログラムによれば、バーコードを精度よく読み取ることができる。
【0029】
以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更又は改良を加えることができる。その様な変更又は改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。
【図面の簡単な説明】
【図1】カメラ付き携帯電話10の機能構成の一例を示すブロック図である。
【図2】バーコード枠50の一実施例を示す図である。
【図3】図2のバーコード枠50を出力するカメラ付き携帯電話10における、画素13の配列を示す図である。
【図4】バーコード枠50の他の実施例を示す図である。
【図5】図4のバーコード枠50を出力するカメラ付き携帯電話10における、画素13の配列を示す図である。
【図6】バーコード52のスタートコードを示す図である。
【図7】カメラ付き携帯電話10がバーコード52を読み取る動作の一例を示すフローチャートである。
【符号の説明】
10 カメラ付き携帯電話、12 カメラ、13 画素、14 画面、16 枠出力部、20 バーコード抽出部、22 切り出し部、24 閾値決定部、26変換部、50 バーコード枠、52 バーコード、60 記録媒体、100 情報処理装置
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a camera-equipped mobile phone that reads a barcode, a barcode reading method, and a program.
[0002]
[Prior art]
Conventionally, there is a cellular phone that reads a barcode using a built-in camera (see, for example, Non-Patent Document 1).
[0003]
[Non-Patent Document 1]
"Media seek, barcode reader development for camera-equipped mobile terminals", [online], May 9, 2003, Media seek, [Search May 12, 2003], Internet <URL: http: // / Www. mediaseek. co. jp / ir / pdf / 2003 — 0509 — 01. pdf>
[0004]
[Problems to be solved by the invention]
However, the conventional camera-equipped mobile phone has a problem that it is difficult to accurately read a barcode.
[0005]
Accordingly, an object of the present invention is to provide a camera-equipped mobile phone, a barcode reading method, and a program that can solve the above-described problems. This object is achieved by a combination of features described in the independent claims. The dependent claims define further advantageous specific examples of the present invention.
[0006]
[Means for Solving the Problems]
That is, according to the first aspect of the present invention, the camera-equipped mobile phone includes a display unit that displays an image captured by the camera, and a bar code direction captured by the camera with respect to the pixel arrangement direction of the camera. A frame output unit that displays a barcode frame that is obliquely restricted on the display unit, and a barcode extraction unit that extracts a barcode image from an image photographed inside the barcode frame.
[0007]
In the pixel of the camera, the pixel density in the oblique direction with respect to the pixel arrangement direction is higher than the pixel density in the pixel arrangement direction. Therefore, the barcode frame regulates the direction of the barcode photographed by the camera obliquely with respect to the pixel arrangement direction of the camera, whereby the barcode reading direction can be photographed with a high pixel density. That is, the camera-equipped mobile phone can take a barcode with high resolution.
[0008]
Moreover, since the barcode extraction unit extracts a barcode image from an image photographed inside the barcode frame, the barcode image can be extracted accurately and easily. The barcode extraction unit may further transmit the extracted barcode image to an external information processing apparatus. Thereby, the load required for the camera-equipped mobile phone to decode the barcode can be reduced.
[0009]
The barcode extraction unit may include a conversion unit that binarizes the extracted barcode image and transmits the binarized image to an external information processing apparatus. Thereby, the data size of the barcode image transmitted to the information processing apparatus can be reduced. Therefore, the barcode image can be transmitted to the information processing apparatus in a short time.
[0010]
The barcode extraction unit further includes a threshold value determination unit that determines a threshold value for binarization so that the widths of the bar and space indicating the start code are the same in the extracted barcode image. Also good. The width of the bar indicating the start code and the space is determined to be the same according to the bar code standard. Accordingly, the threshold value determination unit determines the binarization threshold value so that these widths are the same, thereby causing the conversion unit to output a binary barcode image that accurately reflects the position of the boundary between the bar and the space. be able to.
[0011]
According to the second aspect of the present invention, a method of reading a barcode with a camera-equipped mobile phone includes a display step in which the camera-equipped mobile phone displays an image captured by the camera on a screen, and a bar captured by the camera. A barcode output step for displaying a barcode frame that regulates the direction of the code obliquely with respect to the pixel arrangement direction of the camera on the screen, and a barcode image is extracted from the image photographed inside the barcode frame. A barcode extraction step. Thereby, there exists an effect similar to a 1st form.
[0012]
According to the third aspect of the present invention, a program for a camera-equipped mobile phone includes a display function for displaying an image photographed by the camera on a screen, and a pixel having a camera orientation of a barcode photographed by the camera. A camera-equipped mobile phone with a frame output function that displays on the screen a bar code frame that is slanted with respect to the array direction, and a bar code extraction function that extracts a bar code image from an image captured inside the bar code frame Make it happen on the phone. Thereby, there exists an effect similar to a 1st form.
[0013]
The above summary of the invention does not enumerate all the necessary features of the present invention, and sub-combinations of these feature groups can also be the invention.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, the present invention will be described through embodiments of the invention. However, the following embodiments do not limit the invention according to the claims, and all combinations of features described in the embodiments are included. It is not necessarily essential for the solution of the invention.
[0015]
FIG. 1 shows an example of the functional configuration of a camera-equipped mobile phone 10. The camera-equipped mobile phone 10 in this embodiment reads a barcode with high accuracy using a built-in camera. The camera-equipped mobile phone 10 displays a screen 14 that displays an image captured by the camera 12 and a barcode frame that regulates the orientation of the barcode captured by the camera 12 obliquely with respect to the pixel arrangement direction of the camera. A frame output unit 16 to be displayed, and a barcode extraction unit 20 that extracts a barcode image from an image captured inside the barcode frame. The screen 14 is an example of the display unit of the present invention.
[0016]
The barcode extraction unit 20 transmits the extracted barcode image to the external information processing apparatus 100. Communication between the camera-equipped mobile phone 10 and the information processing apparatus 100 may be wired communication or wireless communication. In the camera 12, the pixel pitch in the oblique direction with respect to the pixel arrangement direction is narrower than the pixel pitch in the pixel arrangement direction. Therefore, the barcode frame regulates the direction of the barcode imaged by the camera 12 obliquely with respect to the pixel arrangement direction of the camera 12, so that the barcode reading direction can be imaged at a narrow pixel pitch. . That is, the camera-equipped mobile phone 10 can capture the barcode with high resolution.
[0017]
Moreover, since the barcode extraction unit 20 extracts a barcode image from an image photographed inside the barcode frame, the barcode image can be extracted accurately and easily. The bar code extraction unit 20 cuts out a bar code image inside the bar code frame from the images taken by the camera 12, and binarizes the cut out bar code image, and then performs external information processing. A conversion unit 26 that transmits the information to the device 100. Since the conversion unit 26 binarizes the barcode image, the data size of the barcode image transmitted to the information processing apparatus 100 can be reduced. Therefore, the barcode image can be transmitted to the information processing apparatus 100 in a short time. Further, in the information processing apparatus 100, since the data size of the barcode image received from the camera-equipped mobile phone 10 is small, the load required for decoding the barcode is reduced.
[0018]
The barcode extraction unit 20 further includes a threshold value determination unit 24 that determines a threshold value for binarization so that the widths of the bar and space indicating the start code in the extracted barcode image are the same. . The width of the bar indicating the start code and the space is determined to be the same according to the bar code standard. Therefore, the threshold value determination unit 24 determines the binarization threshold value so that these widths are the same, thereby allowing the conversion unit 26 to convert the binary barcode image that accurately reflects the position of the boundary between the bar and the space. Can be output.
[0019]
The recording medium 60 stores a program for operating the camera 12, the screen 14, the frame output unit 16, the cutout unit 22, the threshold value determination unit 24, the conversion unit 26, and the information processing apparatus 100. The recording medium 60 may acquire such a program via a network.
[0020]
FIG. 2 shows an embodiment of the barcode frame 50. When a menu for shooting a barcode is selected on the camera-equipped mobile phone 10, a barcode frame 50 is displayed on the screen 14. In the present embodiment, the orientation of the barcode frame 50 is provided obliquely with respect to the orientation of the screen 14. The barcode frame 50 may have a different aspect ratio depending on the barcode method of the barcode 52 to be read. The user adjusts the distance and orientation of the camera 12 with respect to the barcode 52 to be read, thereby performing shooting while the barcode 52 is displayed on the inside of the barcode frame 50. Thereby, it is possible to photograph the barcode 52 with the direction and the distance for photographing the barcode 52 with high accuracy.
[0021]
FIG. 3 shows an arrangement of the pixels 13 in the camera-equipped mobile phone 10 that outputs the barcode frame 50 of FIG. In this embodiment, the arrangement of the pixels 13 matches the orientation of the screen 14. That is, the barcode frame 50 in FIG. 2 regulates the orientation of the barcode 52 photographed by the camera 12 obliquely with respect to the arrangement direction of the pixels 13 included in the camera 12. At this time, in the arrangement of the pixels 13, the pixel pitch a 1 in the oblique direction with respect to the arrangement direction of the pixels 13 is narrower than the pixel pitch b in the arrangement direction of the pixels 13. That is, the camera 12 captures the barcode 52 in the reading direction with a pixel pitch a 1 narrower than the pixel pitch b. Accordingly, the camera-equipped mobile phone 10 can capture the barcode 52 with high resolution.
[0022]
4 and 5 show another embodiment of the arrangement of the barcode frame 50 and the pixels 13. In the present embodiment, the array of the pixels 13 is provided obliquely with respect to the direction of the screen 14. On the other hand, the barcode frame 50 matches the orientation of the screen 14. That is, also in the present embodiment, the barcode frame 50 regulates the orientation of the barcode 52 photographed by the camera 12 obliquely with respect to the arrangement direction of the pixels 13 included in the camera 12. Here, in the arrangement of the pixels 13, the pixel pitch a 2 in the oblique direction with respect to the arrangement direction of the pixels 13 is smaller than the pixel pitch b in the arrangement direction of the pixels 13. Accordingly, the camera-equipped mobile phone 10 can capture the barcode 52 with high resolution. In addition, since the barcode frame 50 of a present Example corresponds with the direction of the screen 14, natural operation feeling for a user is obtained.
[0023]
FIG. 6 shows the start code of the bar code 52. The start code includes two bars and spaces, and the widths of the bars and spaces are determined to be the same according to the barcode standard. That is, WB 1 , WB 2 , and WS 1 in this figure are the same in the standard. Therefore, the threshold value determination unit 24 determines the binarization threshold value so that the widths of WB 1 , WB 2 , and WS 1 are the same, thereby accurately reflecting the position of the boundary between the bar and the space. Can be output to the conversion unit 26. Since the information processing apparatus 100 decodes the binary barcode image that accurately reflects the position of the boundary between the bar and the space, the decoding accuracy is high.
[0024]
FIG. 7 shows an example of an operation in which the camera-equipped mobile phone 10 configured as described above reads the barcode 52. First, an application that recognizes a signal output from the barcode extraction unit 20 is activated in the information processing apparatus 100. The application to be started is an application corresponding to the barcode 52 method.
[0025]
Next, in the camera-equipped mobile phone 10, a menu for reading a barcode is selected (S10). In response to the selection of the menu, the frame output unit 16 displays the barcode frame 50 on the screen 14 (S12). The user adjusts the distance and orientation of the camera 12 with respect to the barcode 52 to be read, thereby performing shooting while the barcode 52 is displayed on the inside of the barcode frame 50 (S14). Thereby, the barcode 52 can be photographed in a state where the orientation and size of the barcode 52 are matched with the state where the barcode 52 is photographed with high accuracy. The cutout unit 22 cuts out the barcode image by cutting out the inner part of the barcode frame 50 from the image captured by the camera 12 (S16).
[0026]
Next, the threshold value determination unit 24 determines a threshold value for binarization so that the bar and space indicating the start code have the same width in the image of the barcode 52 (S18). The conversion unit 26 converts the barcode image into binary values such as black and white using the threshold value determined by the threshold value determination unit 24 (S20), and outputs the binary image to the information processing apparatus 100 (S22). An application activated in the information processing apparatus 100 decodes the barcode image and reads the code recorded in the barcode 52. Then, the barcode method of the barcode 52 is determined, and it is determined whether or not the read code conforms to the rules of the barcode method. A rule for each bar code method is an error check using a check digit, for example.
[0027]
The application checks whether the received barcode image conforms to the rules for each barcode method, and transmits the check result to the camera-equipped mobile phone 10. Further, when the received barcode image conforms to the rules for each barcode method, the application decodes the barcode image and further converts it into a data format used by the user. When receiving the check result by the application, the camera-equipped mobile phone 10 displays the received recognition result on the screen 14 (S24). For example, when it is received that the barcode image transmitted to the information processing apparatus 100 does not conform to the rules, a message requesting the user to capture the barcode 52 again is displayed on the screen 14.
[0028]
As is clear from the above description, according to the camera-equipped mobile phone, the barcode reading method, and the program according to the present embodiment, the barcode can be read with high accuracy.
[0029]
As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. Various changes or improvements can be added to the above embodiment. It is apparent from the description of the scope of claims that embodiments with such changes or improvements can be included in the technical scope of the present invention.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating an example of a functional configuration of a camera-equipped mobile phone.
FIG. 2 is a diagram illustrating an example of a barcode frame 50. FIG.
3 is a diagram showing an array of pixels 13 in the camera-equipped mobile phone 10 that outputs the barcode frame 50 of FIG. 2; FIG.
FIG. 4 is a view showing another embodiment of the barcode frame 50. FIG.
5 is a diagram showing an array of pixels 13 in the camera-equipped mobile phone 10 that outputs the barcode frame 50 of FIG. 4;
6 is a diagram showing a start code of a bar code 52. FIG.
7 is a flowchart showing an example of an operation in which the camera-equipped mobile phone 10 reads a barcode 52. FIG.
[Explanation of symbols]
10 camera mobile phone, 12 cameras, 13 pixels, 14 screens, 16 frame output unit, 20 barcode extraction unit, 22 clipping unit, 24 threshold value determination unit, 26 conversion unit, 50 barcode frame, 52 barcode, 60 recording Medium, 100 information processing apparatus

Claims (6)

カメラ付き携帯電話であって、
前記カメラで撮影している画像を表示する表示部と、
前記カメラで撮影するバーコードの向きを前記カメラが有する画素の配列方向に対して斜めに規制するバーコード枠を前記表示部に表示させる枠出力部と、
前記バーコード枠の内側で撮影された画像から前記バーコードの画像を抽出するバーコード抽出部と
を備えるカメラ付き携帯電話。
A camera phone,
A display unit for displaying an image captured by the camera;
A frame output unit that displays on the display unit a barcode frame that regulates the direction of the barcode captured by the camera obliquely with respect to the pixel arrangement direction of the camera;
A camera-equipped mobile phone comprising: a barcode extraction unit that extracts an image of the barcode from an image photographed inside the barcode frame.
前記バーコード抽出部は、抽出した前記バーコードの画像を、外部の情報処理装置に送信する請求項1に記載のカメラ付き携帯電話。The camera-equipped mobile phone according to claim 1, wherein the barcode extraction unit transmits the extracted image of the barcode to an external information processing apparatus. 前記バーコード抽出部は、抽出した前記バーコードの画像を二値化したうえで、前記外部の情報処理装置へ送信する変換部を有する請求項2に記載のカメラ付き携帯電話。The camera-equipped mobile phone according to claim 2, wherein the barcode extraction unit includes a conversion unit that binarizes the extracted barcode image and transmits the binarized image to the external information processing apparatus. 前記バーコード抽出部は、抽出した前記バーコードの画像のうちで、スタートコードを示すバー及びスペースのそれぞれの幅が同一になるように、前記二値化の閾値を決定する閾値決定部を更に有する請求項3に記載のカメラ付き携帯電話。The bar code extraction unit further includes a threshold value determination unit that determines the threshold value of the binarization so that the widths of the bar and space indicating the start code are the same in the extracted bar code image. The camera-equipped mobile phone according to claim 3. カメラ付き携帯電話を用いてバーコードを読み取る方法であって、前記カメラ付き携帯電話が、
前記カメラで撮影している画像を画面に表示する表示ステップと、
前記カメラで撮影するバーコードの向きを前記カメラが有する画素の配列方向に対して斜めに規制するバーコード枠を、前記画面に表示する枠出力ステップと、
前記バーコード枠の内側で撮影された画像から前記バーコードの画像を抽出するバーコード抽出ステップと
を備えるバーコード読み取り方法。
A method of reading a barcode using a camera-equipped mobile phone, wherein the camera-equipped mobile phone is:
A display step for displaying an image taken by the camera on a screen;
A frame output step for displaying on the screen a barcode frame that regulates the orientation of the barcode imaged by the camera obliquely with respect to the pixel arrangement direction of the camera;
A barcode reading method comprising: a barcode extraction step of extracting an image of the barcode from an image photographed inside the barcode frame.
カメラ付き携帯電話用のプログラムであって、
前記カメラで撮影している画像を画面に表示する表示機能と、
前記カメラで撮影するバーコードの向きを前記カメラが有する画素の配列方向に対して斜めに規制するバーコード枠を前記画面に表示する枠出力機能と、
前記バーコード枠の内側で撮影された画像から前記バーコードの画像を抽出するバーコード抽出機能と
を前記カメラ付き携帯電話に実現させるプログラム。
A program for a camera phone,
A display function for displaying an image taken by the camera on a screen;
A frame output function for displaying a barcode frame on the screen for regulating the orientation of a barcode photographed by the camera obliquely with respect to the pixel arrangement direction of the camera;
A program for causing the camera-equipped mobile phone to realize a barcode extraction function for extracting an image of the barcode from an image photographed inside the barcode frame.
JP2003169674A 2003-06-13 2003-06-13 Mobile phone with camera, barcode reading method, and program Expired - Fee Related JP3723948B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003169674A JP3723948B2 (en) 2003-06-13 2003-06-13 Mobile phone with camera, barcode reading method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003169674A JP3723948B2 (en) 2003-06-13 2003-06-13 Mobile phone with camera, barcode reading method, and program

Publications (2)

Publication Number Publication Date
JP2005004642A true JP2005004642A (en) 2005-01-06
JP3723948B2 JP3723948B2 (en) 2005-12-07

Family

ID=34094741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003169674A Expired - Fee Related JP3723948B2 (en) 2003-06-13 2003-06-13 Mobile phone with camera, barcode reading method, and program

Country Status (1)

Country Link
JP (1) JP3723948B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007049774A1 (en) * 2005-10-26 2007-05-03 Casio Computer Co., Ltd. Code reader
JP2008167314A (en) * 2006-12-28 2008-07-17 Ricoh Co Ltd Image processing apparatus
JP2016015578A (en) * 2014-07-01 2016-01-28 共同印刷株式会社 Decryption system using encryption information code, program, and method
JP2016024716A (en) * 2014-07-23 2016-02-08 株式会社Mrsホールディングズ Code noise removal device, operation method of code noise removal device, and program to order code noise removal device to operate

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007049774A1 (en) * 2005-10-26 2007-05-03 Casio Computer Co., Ltd. Code reader
JP2007122229A (en) * 2005-10-26 2007-05-17 Casio Comput Co Ltd Code reader and program
JP4569441B2 (en) * 2005-10-26 2010-10-27 カシオ計算機株式会社 Code reader and program
US8226006B2 (en) 2005-10-26 2012-07-24 Casio Computer Co., Ltd. Code reader device which displays a code extracting area of a subject image to have a size based on a specified display size of the subject image, and recording medium therefor
JP2008167314A (en) * 2006-12-28 2008-07-17 Ricoh Co Ltd Image processing apparatus
JP2016015578A (en) * 2014-07-01 2016-01-28 共同印刷株式会社 Decryption system using encryption information code, program, and method
JP2016024716A (en) * 2014-07-23 2016-02-08 株式会社Mrsホールディングズ Code noise removal device, operation method of code noise removal device, and program to order code noise removal device to operate

Also Published As

Publication number Publication date
JP3723948B2 (en) 2005-12-07

Similar Documents

Publication Publication Date Title
US9755703B2 (en) Cloud-based system for processing of decodable indicia
JP5318122B2 (en) Method and apparatus for reading information contained in bar code
JP5265708B2 (en) Image capture device with integrated barcode scanning
KR100684147B1 (en) Digital still camera and method for controlling the same
JP2009111869A (en) Picked-up image processing method, picked-up image processing system, and display device
JP2007034625A (en) Information display device
JPWO2008149709A1 (en) Portable terminal, portable terminal control method, portable terminal control program, and computer-readable recording medium recording the same
JP2003169187A (en) Information processing terminal
JP3723948B2 (en) Mobile phone with camera, barcode reading method, and program
US9361500B2 (en) Image processing apparatus, image processing method, and recording medium
JP4407955B2 (en) Cartoon page recognition system and comic information reproduction system
JP2007122351A (en) Image reading system
JP2009141472A (en) Imaging apparatus, method of setting imaging apparatus and program
JP2005122609A (en) Device for recognizing photographed object
JP4251643B2 (en) Image capturing apparatus and program
CN105893996B (en) Information processing method and electronic equipment
JP2008301050A (en) Digital composite machine
JP4306619B2 (en) Mobile communication terminal, imaging control method thereof, and program
KR100821159B1 (en) Mobile communication terminal of processing of capturing hotcode and method thereof
JP2004350041A (en) Mobile phone with camera
JP2007133474A (en) Image segmentation device
JP2008259008A (en) Imaging apparatus
JP2007049328A (en) Image information reading device and method, and portable terminal
JP2002223351A (en) Image reader, image processor and storage medium
JP2005311788A (en) Communication device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050804

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: 20050823

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050908

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080930

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090930

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees