JP2007066000A - Personal digital assistance and image processing method - Google Patents

Personal digital assistance and image processing method Download PDF

Info

Publication number
JP2007066000A
JP2007066000A JP2005251326A JP2005251326A JP2007066000A JP 2007066000 A JP2007066000 A JP 2007066000A JP 2005251326 A JP2005251326 A JP 2005251326A JP 2005251326 A JP2005251326 A JP 2005251326A JP 2007066000 A JP2007066000 A JP 2007066000A
Authority
JP
Japan
Prior art keywords
image
normalized
unit
information
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
JP2005251326A
Other languages
Japanese (ja)
Other versions
JP4103909B2 (en
Inventor
Haruhiko Obayashi
治彦 大林
Motoaki Hirata
元朗 平田
Atsushi Ogawa
淳 小川
Koji Hayashi
耕次 林
Hisashi Shigekusa
久志 重草
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 JP2005251326A priority Critical patent/JP4103909B2/en
Publication of JP2007066000A publication Critical patent/JP2007066000A/en
Application granted granted Critical
Publication of JP4103909B2 publication Critical patent/JP4103909B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a personal digital assistance and an image processing method capable of obtaining and outputting clear image data even if a captured image of an information code is distorted. <P>SOLUTION: When capturing the image of the information code such as a bar code and a QR (Quick Response) code, a control section of this personal digital assistance detects the alignment of the information code and a bar width or a data cell size, or an information unit, from bright and dark patterns of the image, normalizes the bar width or the data cell size based on the sizes and normalizes the bar code or QR code image based on the normalized information unit. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、画像を撮像する撮像手段と、撮像された画像のデータを処理する画像処理手段と、処理された画像データを所定の出力先に出力するデータ出力手段とを備えて構成される携帯情報端末、及び画像を撮像し、撮像した画像のデータを処理し、処理した画像データを所定の出力先に出力する画像処理方法に関する。   The present invention is a portable device comprising imaging means for capturing an image, image processing means for processing data of the captured image, and data output means for outputting the processed image data to a predetermined output destination. The present invention relates to an information terminal and an image processing method for capturing an image, processing data of the captured image, and outputting the processed image data to a predetermined output destination.

近年、バーコードに加えて例えばQRコード(登録商標)のような2次元コードの普及が進んでおり、日常生活においてそれらが使用される状況が増えつつある。その結果、バーコードや2次元コードなどを例えばカメラ機能付き携帯電話機などで撮像し、その画像を一旦ディスプレイに表示させたり或いはプリンタなどに出力して印刷させた状態のコードを、コード読取装置によって読取るというような場合がある。
しかし、上記のような状況を想定すると、撮像された情報コードの画像が不鮮明であれば、ディスプレイに表示させた、又は印刷させた状態の情報コードも不鮮明となるため、コード読取装置による読取りが失敗することになる。情報コードの画像が不鮮明になる理由は、例えば撮像する際に手ブレやピンボケが生じたり、また、エリアセンサの読取り面が情報コードの配置面に対して大きく傾いて両者が不平行の状態にあったことなどにより、撮像された情報コードの画像に歪が生じているためと考えられる。
In recent years, in addition to barcodes, two-dimensional codes such as QR codes (registered trademark) have been widely used, and the situation where they are used in daily life is increasing. As a result, a barcode or a two-dimensional code is imaged by, for example, a mobile phone with a camera function, and the code is displayed on a display or output to a printer or the like to be printed by a code reader. There is a case of reading.
However, assuming the above situation, if the image of the captured information code is unclear, the information code displayed or printed on the display is unclear, so that the code reader can read the information code. Will fail. The reason why the image of the information code becomes unclear is that, for example, camera shake or defocusing occurs when the image is taken, or the reading surface of the area sensor is greatly inclined with respect to the information code arrangement surface so that the two are not parallel. This is probably because the image of the captured information code is distorted.

ここで、撮像された情報コードの画像を表示手段に表示させる技術としては、例えば特許文献1に開示されているように、自動振込端末側において口座番号や預金残高などの数字情報を、QRコードの配列規則に基づくビット列に変換して携帯電話機に送信し、携帯電話機が、送信されたビット列を明暗パターンに変換してQRコード画像をLCDに表示させるようにしたものがある。
また、特許文献2には、キーボード、スキャナ、データ読出装置や、インターネットから情報をダウンロード可能なブラウザ等により取得したバーコードを、ディスプレイに表示してバーコード読み取り装置に読み取らせる場合に、ディスプレイの表示仕様に応じたレイアウトに従って、バーコードを作成・配置する技術が開示されている。
特開2002−111809号公報 特開2002−117372号公報
Here, as a technique for displaying the image of the captured information code on the display means, for example, as disclosed in Patent Document 1, numeric information such as an account number and a deposit balance is displayed on the automatic transfer terminal side as a QR code. Are converted to a bit string based on this arrangement rule and transmitted to a mobile phone, and the mobile phone converts the transmitted bit string into a light and dark pattern to display a QR code image on an LCD.
Japanese Patent Laid-Open No. 2004-228688 discloses a display of a bar code acquired by a keyboard, a scanner, a data reading device, a browser that can download information from the Internet, and the like. A technique for creating and arranging barcodes according to a layout according to display specifications is disclosed.
JP 2002-111809 A JP 2002-117372 A

しかしながら、これらの従来技術は、何れも表示元となる情報コードの画像が不鮮明な状態にあることは想定しておらず、情報コードの画像(又はデータ)は正常であることを前提として行なう表示の制御に関するものである。従って、これらの従来技術は上記技術課題の解決に資するものであるとは言えない。
本発明は上記事情に鑑みてなされたものであり、その目的は、撮像した情報コードの画像が歪んでいる場合でも、鮮明な画像データを得て出力することができる携帯情報端末、及び画像処理方法を提供することにある。
However, none of these conventional techniques assumes that the information code image that is the display source is in an unclear state, and the display is performed on the assumption that the information code image (or data) is normal. Is related to the control of Therefore, it cannot be said that these conventional techniques contribute to the solution of the above technical problem.
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a portable information terminal capable of obtaining and outputting clear image data even when an image of a captured information code is distorted, and image processing. It is to provide a method.

請求項1記載の携帯情報端末によれば、撮像手段が情報コードの画像を撮像すると、画像処理手段のパターン検出手段は、その画像の明暗パターンを検査して明パターン及び暗パターンの配列を検出し、情報単位設定手段は、その明暗パターンの配列に基づき情報単位のサイズを検出すると、その情報単位のサイズに基づいて所定の形状及び所定のサイズの正規化情報単位を設定する。
更に、正規化画像生成手段は、明,暗パターンの夫々を、設定された正規化情報単位で置換して正規化画像を生成し、データ出力手段は、この生成された正規化画像を所定の出力先に出力する。従って、撮像された情報コードの画像が歪んでいたり不鮮明となっている場合でも、その情報コード画像の情報単位の形状やサイズを得て画像を正規化することで、歪みが補正された鮮明な情報コード画像データを生成して出力することができる。
According to the portable information terminal of claim 1, when the image pickup means picks up the image of the information code, the pattern detection means of the image processing means inspects the light / dark pattern of the image and detects the arrangement of the light pattern and the dark pattern. Then, when the information unit setting unit detects the size of the information unit based on the arrangement of the light and dark patterns, the information unit setting unit sets a predetermined shape and a normalized information unit having a predetermined size based on the size of the information unit.
Further, the normalized image generating means generates a normalized image by replacing each of the bright and dark patterns with the set normalization information unit, and the data output means outputs the generated normalized image to a predetermined value. Output to the output destination. Therefore, even when the captured image of the information code is distorted or unclear, the distortion is corrected by obtaining the shape and size of the information unit of the information code image and normalizing the image. Information code image data can be generated and output.

請求項2記載の携帯情報端末によれば、コード種設定手段は、正規化処理対象とする情報コードの種類を予め設定し、画像処理手段の特定パターン検出手段は、上記情報コードの種類で決まる固有の特定パターンを、撮像された画像から検出された明暗パターンの配列より検出する。更に、コード種判別手段は、上記特定パターンの位置又はサイズに基づいて撮像された画像に含まれている情報コードの種類を判別し、情報単位設定手段は、判別されたコード種類に対応した形状の正規化情報単位を設定する。即ち、情報コードは、それぞれの種類に応じた固有の特定パターンを有しているので、その特定パターンを検出すれば、画像に含まれている情報コードの種類を容易に判別することができる。そして、正規化情報単位も判別した情報コードの種類に応じて設定できるので、正規化処理を迅速に行なうことができる。   According to the portable information terminal of the second aspect, the code type setting means presets the type of information code to be normalized, and the specific pattern detection means of the image processing means is determined by the type of information code. The specific specific pattern is detected from the array of light and dark patterns detected from the captured image. Further, the code type discriminating unit discriminates the type of information code included in the image captured based on the position or size of the specific pattern, and the information unit setting unit has a shape corresponding to the discriminated code type. Set the normalized information unit. That is, since the information code has a specific pattern specific to each type, the type of the information code included in the image can be easily determined by detecting the specific pattern. Since the normalized information unit can also be set according to the determined type of information code, the normalization process can be performed quickly.

請求項3記載の携帯情報端末によれば、コード種設定手段は、正規化処理を行なう対象とする少なくとも1つの情報コードの種類を設定するので、予め読取り対象として想定される情報コードの種類を特定しておくことで、種類の判別をより迅速に行なうことができる。
請求項4記載の携帯情報端末によれば、情報単位設定手段は、正規化情報単位を設定すると、その正規化情報単位のサイズと所定比率のサイズを有するパターンで構成される正規化特定パターン画像を生成し、検出された特定パターンに対応する位置に正規化特定パターン画像を配置する。即ち、情報コードの種類によっては特定パターンが情報単位のサイズと所定比率のサイズを有して構成されているものがあるので、上記のように構成すれば、特定パターンの正規化処理をより簡単に行なうことができる。
According to the portable information terminal of the third aspect, since the code type setting means sets at least one type of information code to be subjected to normalization processing, the type of information code assumed as a reading target in advance is set. By specifying, it is possible to more quickly determine the type.
According to the portable information terminal of claim 4, when the information unit setting means sets the normalized information unit, the normalized specific pattern image configured by a pattern having a size of the normalized information unit and a predetermined size. And a normalized specific pattern image is arranged at a position corresponding to the detected specific pattern. That is, depending on the type of information code, there is a specific pattern that is configured to have a size of a unit of information and a predetermined ratio. Therefore, by configuring as described above, the normalization process of the specific pattern is easier. Can be done.

請求項5記載の携帯情報端末によれば、コード種設定手段は、情報コードの種類に応じてその配列基準方向を設定し、画像処理手段は、配列方向検出手段によって検出された情報コード画像の配列方向が上記配列基準方向に一致するように、正規化処理された画像の配列方向を修正する。従って、ユーザが撮像した情報コードの画像が、設定された配列基準方向に対して傾いていた場合でも、正規化された情報コードの画像データを配列基準方向に一致させた状態で出力することができる。   According to the portable information terminal of the fifth aspect, the code type setting unit sets the arrangement reference direction according to the type of the information code, and the image processing unit sets the information code image detected by the arrangement direction detection unit. The arrangement direction of the normalized image is corrected so that the arrangement direction matches the arrangement reference direction. Therefore, even when the image of the information code captured by the user is tilted with respect to the set arrangement reference direction, the normalized information code image data can be output in a state matched with the arrangement reference direction. it can.

請求項6記載の携帯情報端末によれば、画像処理手段は、検出した配列方向が配列基準方向に対してなす角度が±90度を超えている場合は、基準方向に対して90度、又は180度、もしくは270度回転した方向に一致するように正規化処理された画像の配列方向を修正する。従って、撮像された情報コードの画像がどのような状態で傾いているとしても、正規化処理した画像の方向を、配列基準方向、又はそれを基準として90度単位で回転させた何れかの方向に一致させることができる。   According to the portable information terminal of claim 6, the image processing means is configured to detect 90 degrees with respect to the reference direction when the angle formed by the detected arrangement direction with respect to the arrangement reference direction exceeds ± 90 degrees, or The arrangement direction of the normalized image is corrected so as to coincide with the direction rotated by 180 degrees or 270 degrees. Therefore, no matter what state the image of the captured information code is tilted, the direction of the normalized image is either the array reference direction or any direction rotated by 90 degrees on the basis of it Can match.

請求項7記載の携帯情報端末によれば、画像処理手段は、正規化処理された画像の配列方向を修正する際、画像を回転させる角度が最も小さくなる方向に対して一致させる。従って、撮像された情報コード画像の方向が配列基準方向に対して±90度を超えて傾いている場合は、配列基準方向を基準として90度単位で回転させた何れかの方向のうち撮像された状態に最も近い方向に、正規化処理した画像の方向を一致させることができる。   According to the portable information terminal of the seventh aspect, when correcting the arrangement direction of the normalized image, the image processing means matches the direction in which the angle for rotating the image is the smallest. Therefore, when the direction of the captured information code image is tilted by more than ± 90 degrees with respect to the array reference direction, the image is picked up from any of the directions rotated by 90 degrees with respect to the array reference direction. The direction of the normalized image can be matched with the direction closest to the state.

請求項8記載の携帯情報端末によれば、操作制御手段は、ユーザから操作指示手段を介して配列方向の修正を実行させる旨の操作指示があった場合に、画像処理手段に配列方向の修正を実行させるので、ユーザは、撮像した画像毎に配列方向の修正を実行するか否かを選択することができる。
請求項9記載の携帯情報端末によれば、操作制御手段は、撮像手段が撮像した画像のデータを表示手段に出力して表示させるので、ユーザは、表示手段に表示される画像を確認しながら画像の取込みを行なうことができる。
According to the portable information terminal of claim 8, the operation control means corrects the arrangement direction to the image processing means when an operation instruction is issued to cause the arrangement direction to be corrected via the operation instruction means from the user. Therefore, the user can select whether or not to correct the arrangement direction for each captured image.
According to the portable information terminal of the ninth aspect, since the operation control means outputs and displays the data of the image captured by the imaging means on the display means, the user confirms the image displayed on the display means. Images can be captured.

請求項10記載の携帯情報端末によれば、操作制御手段は、撮像手段が撮像した画像を表示手段に表示させた場合に、併せて、正規化画像生成手段に正規化処理を実行させるか否かの選択をユーザに促すためのメッセージを表示させ、ユーザから実行させる旨の操作指示があった場合に、正規化処理を実行させる。従って、撮像した情報コード画像が鮮明だった場合には正規化処理を行なわずに、不鮮明な場合だけ正規化処理を実行するといったことが可能となる。
請求項11記載の携帯情報端末によれば、データ出力手段は、正規化処理した画像を表示手段に出力して表示させるので、表示手段に、鮮明な情報コード画像を表示させることができる。
According to the portable information terminal of the tenth aspect, when the operation control unit displays the image captured by the imaging unit on the display unit, the operation control unit also determines whether the normalized image generation unit executes the normalization process. When a message for prompting the user to select is displayed, and when there is an operation instruction to be executed by the user, normalization processing is executed. Therefore, when the captured information code image is clear, normalization processing is not performed, and normalization processing can be performed only when the information code image is unclear.
According to the portable information terminal of the eleventh aspect, the data output means outputs and displays the normalized image on the display means, so that a clear information code image can be displayed on the display means.

(第1実施例)
以下、本発明の第1実施例について図1乃至図6を参照して説明する。図6は、携帯情報端末のうち画像データ処理に関連する部分の電気的構成を概略的に示している。
図6に示すように、携帯情報端末1は、読取対象となる情報コードの記録面Rに対して照明光を投光するLED2,3と、記録面Rの画像を撮像するためのレンズ4及びCCD5(Charge Coupled Device)とで構成された画像を撮像するための撮像手段を備えている。また、全体の制御を行なうための制御部6は、CPU,ROM,RAM,I/O及びこれらを接続するバス等(何れも図示せず)を含んで構成されたもので、予め設定されたプログラムに基づいて画像処理等の各種制御を行うようになっている。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to FIGS. FIG. 6 schematically shows an electrical configuration of a part related to image data processing in the portable information terminal.
As shown in FIG. 6, the portable information terminal 1 includes LEDs 2 and 3 that project illumination light onto a recording surface R of an information code to be read, a lens 4 that captures an image of the recording surface R, and An image pickup means for picking up an image composed of a CCD 5 (Charge Coupled Device) is provided. The control unit 6 for performing the overall control is configured to include a CPU, a ROM, a RAM, an I / O, and a bus (not shown) for connecting them, and is set in advance. Various controls such as image processing are performed based on the program.

上述したCCD5の画像信号出力端子は、増幅回路7,A/D変換回路8を介してメモリ10に接続されている。CCD5により撮像された画像信号は、増幅回路7でアナログ的に増幅され、A/D変換回路8を経てデジタル信号に変換されると、メモリ10へ出力されて記憶される。
同期信号発生回路11は、CCD5,アドレス発生回路12へ同期信号を与えるようになっている。また、アドレス発生回路12は、この同期信号に基づいたアドレス信号をメモリ10に出力する。LED2,3,増幅回路7,A/D変換回路8,メモリ10及び同期信号発生回路11は、制御部6から制御信号が与えられると共に情報の授受を行なうように構成されている。
The above-described image signal output terminal of the CCD 5 is connected to the memory 10 via the amplifier circuit 7 and the A / D conversion circuit 8. The image signal picked up by the CCD 5 is amplified in an analog manner by the amplifier circuit 7, converted into a digital signal through the A / D conversion circuit 8, and then output to the memory 10 and stored therein.
The synchronization signal generation circuit 11 provides a synchronization signal to the CCD 5 and address generation circuit 12. The address generation circuit 12 outputs an address signal based on the synchronization signal to the memory 10. The LEDs 2, 3, amplifier circuit 7, A / D conversion circuit 8, memory 10, and synchronization signal generation circuit 11 are configured to receive a control signal from the control unit 6 and to exchange information.

携帯情報端末1には、各種の操作入力を行うための操作スイッチ13(操作指示手段に相当)が設けられており制御部6により入力が受け付けられる。また、制御部6には、制御状態の表示や報知動作をするためのLED14,ブザー15,液晶表示器16(表示手段に相当)及び外部の機器との通信を行うための通信インターフェイス17等が接続されている。また、各回路の駆動源として電池18が配設されている。
尚、本実施例では、制御部6が画像処理手段としての各種機能(パターン検出手段,情報単位設定手段,正規化画像生成手段,特定パターン検出手段,コード種判別手段,配列方向検出手段)を有する。また、制御部6は、データ出力手段,コード種設定手段(基準方向設定手段)及び操作制御手段としても機能する。
The portable information terminal 1 is provided with an operation switch 13 (corresponding to an operation instruction unit) for performing various operation inputs, and an input is received by the controller 6. In addition, the control unit 6 includes an LED 14, a buzzer 15, a liquid crystal display 16 (corresponding to display means) for displaying a control state and a notification operation, a communication interface 17 for communicating with an external device, and the like. It is connected. A battery 18 is provided as a drive source for each circuit.
In the present embodiment, the control unit 6 has various functions as an image processing means (pattern detection means, information unit setting means, normalized image generation means, specific pattern detection means, code type discrimination means, array direction detection means). Have. The control unit 6 also functions as data output means, code type setting means (reference direction setting means), and operation control means.

次に、本実施例の作用について図1乃至図5も参照して説明する。尚、ここで言う「正規化」とは、図1(a)や図4の左側に示す画像のように、形が歪んでいたりコントラストが不鮮明となっていたりするものを、図4の右側に示すように歪みがない鮮明な画像に変換することを意味する。
また、正規化処理を行なう対象とする情報コードには、バーコード(JAN,Code39,Code128),PDF417,QRコード,マイクロQRコード,データマトリクス,マキシコード等がある。制御部6には、これら代表的な情報コード固有の特定パターン、例えば、データマトリクスでは、コードの外枠に配置されたL字のアライメントパターン(L字ガイドセル)と点線状のタイミングセル、マキシコードでは、中央に配置された2重丸のファインダパターンからその情報コードの種類が判別できるように予め設定されている。
Next, the operation of this embodiment will be described with reference to FIGS. The term “normalization” used herein refers to an image whose shape is distorted or whose contrast is unclear, such as the image shown on the left side of FIG. As shown, it means that the image is converted into a clear image without distortion.
Information codes to be subjected to normalization include bar codes (JAN, Code 39, Code 128), PDF417, QR code, micro QR code, data matrix, maxi code, and the like. The control unit 6 includes specific patterns specific to these representative information codes, for example, in the data matrix, an L-shaped alignment pattern (L-shaped guide cell) arranged on the outer frame of the code, a dotted timing cell, a maxi- mum. The code is set in advance so that the type of the information code can be discriminated from the double circle finder pattern arranged in the center.

図3は、携帯情報端末1の制御部6を中心として行われる情報コード画像の正規化処理を示すフローチャートである。まず、LED2,3による照明光が、情報コードが記録されたシート等の記録面Rに対して複数の方向から投光されると、その反射光は、レンズ4を介してCCD5の撮像面に結像される。そして、図3において、制御部6は、CCD5により撮像された画像信号を増幅回路7,A/D変換回路8を介し画像データとしてメモリ10に取り込む(ステップS1)。但し、ユーザの操作によって画像の取込みが行なわれる前の段階では、制御部6は、メモリ10内の画像データを順次液晶表示器16に出力させて、CCD5により撮像されている画像をそのままリアルタイムで表示させている(いわゆる、ビューファインダ機能)。一例として、図7には、携帯情報端末1を携帯電話機として構成した場合に、ビューファインダ機能が作用している状態を示す。   FIG. 3 is a flowchart showing information code image normalization processing performed mainly by the control unit 6 of the portable information terminal 1. First, when illumination light from the LEDs 2 and 3 is projected from a plurality of directions onto a recording surface R such as a sheet on which an information code is recorded, the reflected light is incident on the imaging surface of the CCD 5 via the lens 4. Imaged. In FIG. 3, the control unit 6 captures the image signal picked up by the CCD 5 into the memory 10 as image data via the amplifier circuit 7 and the A / D conversion circuit 8 (step S <b> 1). However, before the image is captured by the user's operation, the control unit 6 sequentially outputs the image data in the memory 10 to the liquid crystal display 16 so that the image captured by the CCD 5 is directly in real time. Displayed (so-called viewfinder function). As an example, FIG. 7 shows a state in which the viewfinder function is operating when the portable information terminal 1 is configured as a mobile phone.

そして、制御部6は、メモリ10に取り込まれた画像データのうち、その明,暗レベルから情報コードが存在している領域を推定し(ステップS2)、その情報コードの存在領域内において各種情報コード固有の特定パターンを検出する(ステップS3)。次に、制御部6は、この検出した特定パターンから情報コードの種類を判別し、判別した情報コードがバーコード等の1次元コードである場合には(ステップS4で「YES」)ステップS6に進み、1次元コード画像の正規化処理を実行する。
一方、判別した情報コードがQRコード等の2次元コードである場合には(ステップS5で「YES」)ステップS11に進み、2次元コード画像の正規化処理を実行する。尚、何れの情報コードにも該当しなかった場合(ステップS4,S5で何れも「NO」)には、処理を終了する。また、情報コードがバーコードである場合は、ステップS3においてその種類も判別しておく。
Then, the control unit 6 estimates the area where the information code exists from the light and dark levels of the image data taken into the memory 10 (step S2), and various information in the area where the information code exists. A specific pattern specific to the code is detected (step S3). Next, the control unit 6 determines the type of the information code from the detected specific pattern, and if the determined information code is a one-dimensional code such as a barcode (“YES” in step S4), the process proceeds to step S6. Then, the normalization process of the one-dimensional code image is executed.
On the other hand, if the determined information code is a two-dimensional code such as a QR code (“YES” in step S5), the process proceeds to step S11, and normalization processing of the two-dimensional code image is executed. If none of the information codes correspond (NO in steps S4 and S5), the process ends. If the information code is a bar code, the type is also determined in step S3.

まず、図2(a)に示すようなバーコードを正規化する処理について説明する。制御部6は、図2(a)に示すように、バーコード画像のバーの垂直2等分線を求めるようにしてバーの並び方向を検出する(ステップS6)。そして、このバーの並び方向に沿ってバー及びスペースの幅を検出すると、検出した各バー,スペースの幅の比を求め、その比が整数値となるようにまるめ処理を行なう。
例えば、最小の幅(基準寸法)を基準「1」とした場合に得られる各幅の比が、(1.2):(1.2):(1.1):(2.4):(2.4):(2.3):(1.1):…であったとすれば、その比を図2(b)に示すように、1:1:1:2:2:2:1:…に設定する(ステップS7)。そして、算出した整数比に応じて各バー及びスペースの幅を算出し(ステップS8)、更に、夫々のバーの長さからそれらの平均値を算出する(ステップS9)。尚、ステップS8における幅の基準も各幅の平均に相当するものに設定する。そして、制御部6は、算出した整数比の幅で、且つ算出したバーの平均長さを持つバー画像及びスペース画像のデータ、即ち正規化画像データを生成し(ステップS10)、この正規化画像データを液晶表示器16に出力して表示させる(ステップS11)。
First, a process for normalizing a barcode as shown in FIG. As shown in FIG. 2A, the control unit 6 detects the bar arrangement direction so as to obtain the vertical bisector of the bar of the barcode image (step S6). When the widths of the bars and spaces are detected along the bar arrangement direction, the ratio between the widths of the detected bars and spaces is obtained, and rounding processing is performed so that the ratio becomes an integer value.
For example, the ratio of the widths obtained when the minimum width (reference dimension) is the reference “1” is (1.2) :( 1.2) :( 1.1) :( 2.4): If (2.4) :( 2.3) :( 1.1):..., The ratio is 1: 1: 1: 2: 2: 2: 1: is set (step S7). Then, the width of each bar and space is calculated according to the calculated integer ratio (step S8), and the average value is calculated from the length of each bar (step S9). The width reference in step S8 is also set to be equivalent to the average of each width. Then, the control unit 6 generates bar image data and space image data having the calculated integer ratio width and the calculated average bar length, that is, normalized image data (step S10). Data is output and displayed on the liquid crystal display 16 (step S11).

次に、図1(a)に示すQRコードのような2次元コードを正規化する処理について説明する。まず、制御部6は、検出した特定パターンの図形的特徴から情報コードの種類を特定する(ステップS12)。即ち、QRコードの場合、特定パターンは「切出しシンボル」である。また、特定パターンに基づいて、各情報コードを構成する情報単位の形状も決定される。即ち、QRコードの場合は矩形のデータセル、マキシコードの場合は六角形のデータセルである。そして、この特定パターンの大きさ及び位置から平均的なデータセルの大きさ(基準寸法)及び縦横のデータセルの配列数を推定する(ステップS13)。図1に示す場合は、切出しシンボルのサイズから、21×21セルのQRコードであると判断される。   Next, a process for normalizing a two-dimensional code such as the QR code shown in FIG. First, the control unit 6 specifies the type of information code from the detected graphic feature of the specific pattern (step S12). That is, in the case of a QR code, the specific pattern is a “cutout symbol”. Further, the shape of information units constituting each information code is also determined based on the specific pattern. That is, in the case of QR code, it is a rectangular data cell, and in the case of maxi code, it is a hexagonal data cell. Then, the average data cell size (reference dimension) and the number of vertical and horizontal data cells are estimated from the size and position of the specific pattern (step S13). In the case shown in FIG. 1, it is determined that the QR code is 21 × 21 cells from the size of the cut symbol.

次に、図1(b)に示すように、特定パターン及びデータセルを所定位置に配置した情報コード画像データを生成する(ステップS14)。QRコードの場合、切出しシンボルの幅比は、セルサイズを「1」として、1:1:3:1:1となっているので、その比に応じて切出しシンボルの画像データを生成し、所定位置(図中左上隅,左下隅,右上隅の3箇所)に配置する。ただし、この時点では、データセルの位置決めを行なっているだけであり、各セルの値(白/黒)は空白(ブランク)となっている。また、図1(b)では、データセルの配置を示すためにマス目を表示しているが、実処理としてマス目の線を引いた画像を生成することはない。
そして、制御部6は、図1(c)に示すように、特定パターンの位置と大きさとに基づいて各データセルの明暗を検出する(即ち、各セルの画像データを二値化する)。それから、対応する位置の空白データセルを明又は暗データセル画像に置換し(ステップS15)、正規化した画像データを液晶表示器16に出力して表示させる(ステップS16)。
Next, as shown in FIG. 1B, information code image data in which specific patterns and data cells are arranged at predetermined positions is generated (step S14). In the case of the QR code, the width ratio of the cut symbol is 1: 1: 3: 1: 1 with the cell size being “1”. Therefore, image data of the cut symbol is generated according to the ratio, It is placed at the position (three places, upper left corner, lower left corner, upper right corner in the figure). However, at this time, the data cells are only positioned, and the value (white / black) of each cell is blank (blank). In FIG. 1B, squares are displayed to show the arrangement of the data cells, but an image in which squares are drawn is not generated as actual processing.
Then, as shown in FIG. 1C, the control unit 6 detects the brightness of each data cell based on the position and size of the specific pattern (that is, binarizes the image data of each cell). Then, the blank data cell at the corresponding position is replaced with a light or dark data cell image (step S15), and the normalized image data is output and displayed on the liquid crystal display 16 (step S16).

以上のように本実施例によれば、携帯情報端末1において情報コードの画像を撮像した場合、制御部6は、その画像の明,暗パターンから、情報コードの配列と、情報単位であるデータセルサイズ又はバー幅を検出して、それらのサイズ等に基づいてデータセルサイズ又はバー幅を正規化し、正規化した情報単位に基づいて情報コード画像の正規化処理を行なうようにした。
従って、ユーザが、撮像した情報コードの画像が歪んでいたり不鮮明となっている場合でも、その情報コード画像の情報単位の形状やサイズを得て画像を正規化することで歪みが補正された鮮明な情報コード画像データを生成し、その画像データを液晶表示器16に出力することができる。つまり、液晶表示器16の画面上に歪がない鮮明な情報コード画像を表示させることができるので、その情報コード画像を、情報コード読取装置等に読み取らせてデコードさせれば、コード内の情報を取得することが可能となる。
As described above, according to the present embodiment, when an image of an information code is captured by the portable information terminal 1, the control unit 6 determines the arrangement of the information code and the data that is the information unit from the bright and dark patterns of the image. The cell size or bar width is detected, the data cell size or bar width is normalized based on the size, etc., and the information code image is normalized based on the normalized information unit.
Therefore, even when the image of the captured information code is distorted or unclear, the distortion is corrected by obtaining the shape and size of the information unit of the information code image and normalizing the image. Information code image data can be generated and the image data can be output to the liquid crystal display 16. That is, since a clear information code image without distortion can be displayed on the screen of the liquid crystal display 16, if the information code image is read by an information code reader or the like and decoded, the information in the code is displayed. Can be obtained.

また、制御部6は、撮像された情報コード画像データの明,暗パターンからその情報コードの特定パターンを検出すると、この特定パターンからその情報コードの種類を判別するように予め設定し、判別した情報コードの種類に対応したデータセルの形状やサイズ又はバー幅を設定して正規化処理するようにした。
従って、情報コードがそれぞれの種類に応じて有している固有の特定パターンさえ検出すれば、画像に含まれている情報コードの種類を容易に判別することができる。そして、正規化情報単位とするデータセルの形状やサイズ又はバー幅も判別した情報コードの種類に応じて設定できるので、正規化処理を迅速に行なうことができる。更に、制御部6は、予め正規化処理を行なう対象として想定される代表的な情報コードの種類を設定したので、情報コードの種類をより迅速に判別できる。
Further, when the control unit 6 detects a specific pattern of the information code from the bright and dark patterns of the captured information code image data, the control unit 6 sets in advance and determines the type of the information code from the specific pattern. Normalization processing was performed by setting the shape, size, or bar width of the data cell corresponding to the type of information code.
Therefore, the type of the information code included in the image can be easily determined by detecting only a specific specific pattern that the information code has for each type. Since the shape, size, or bar width of the data cell as the normalized information unit can be set according to the determined information code type, the normalization process can be performed quickly. Furthermore, since the control unit 6 has set in advance a typical information code type that is supposed to be subjected to normalization processing, it can determine the information code type more quickly.

また、制御部6は、正規化情報単位とするデータセルサイズ、又はバー幅から、これらと所定比率のサイズとなるように正規化した特定パターン画像を生成し、撮像した画像データから検出した特定パターンに対応する位置に正規化特定パターン画像を配置するようにしたので、特定パターンの正規化処理をより簡単に行なうことができる。加えて、制御部6は、メモリ10に取込まれた画像データを順次液晶表示器16に出力して表示させるようにしたので、ユーザは、液晶表示器16に表示される画像を確認しながら画像の取込みを行なうことができる。   Further, the control unit 6 generates a specific pattern image normalized so as to have a predetermined ratio from the data cell size or bar width as a normalization information unit, and the specific detection detected from the captured image data Since the normalized specific pattern image is arranged at the position corresponding to the pattern, normalization processing of the specific pattern can be performed more easily. In addition, since the control unit 6 sequentially outputs the image data captured in the memory 10 to the liquid crystal display 16 for display, the user confirms the image displayed on the liquid crystal display 16. Images can be captured.

(第2実施例)
図7乃至図10は本発明の第2実施例を示すものであり、第1実施例と同一の部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。通常、カメラ機能付き携帯情報端末等を使用して情報コードの画像を撮像する場合には、ユーザが携帯情報端末1を手で持った状態で画像の取り込みが行なわれるため、撮像した情報コードの画像をそのまま液晶表示器16に表示させると、図8や図10に示すように傾いた画像となる場合が殆どである。そこで、第2実施例では、情報コード画像を表示させる場合の方向修正処理について説明する。
(Second embodiment)
7 to 10 show a second embodiment of the present invention. The same parts as those in the first embodiment are denoted by the same reference numerals and the description thereof is omitted, and only different parts will be described below. Usually, when an image of an information code is captured using a portable information terminal with a camera function or the like, the image is captured while the user holds the portable information terminal 1 with his / her hand. When the image is displayed on the liquid crystal display 16 as it is, the image is inclined as shown in FIGS. 8 and 10 in most cases. Therefore, in the second embodiment, a direction correction process when displaying an information code image will be described.

まず、バーコード画像の配列方向を修正する場合について、図7に示すフローチャートに沿って説明する。このフローチャートは第1実施例における図4の一部相当図であり、ステップS10とS11との間にステップS17を追加したものである。第2実施例において、制御部6は、液晶表示器16の矩形をなす表示画面の上,下辺に対して平行となる方向を、情報コード画像を表示させる場合の配列基準方向として設定している。
そして、制御部6は、ステップS6で検出したバーの並び方向、即ち、バーコード画像の配列方向を、上記の配列基準方向と一致させるように修正し(ステップS17)、配列方向を修正した正規化画像データを液晶表示器16に出力して表示させる(ステップS11)。例えば図8に示すように、撮像したバーコード画像のバー,スペースの配列方向が、図中に破線で示す配列基準方向に対して角度α傾いている場合は、その角度αだけバーコード画像を回転させて夫々の方向が一致する(平行となる)ようにする。
First, the case of correcting the arrangement direction of the barcode image will be described with reference to the flowchart shown in FIG. This flowchart is a partial equivalent diagram of FIG. 4 in the first embodiment, in which step S17 is added between steps S10 and S11. In the second embodiment, the control unit 6 sets the directions parallel to the upper and lower sides of the rectangular display screen of the liquid crystal display 16 as the arrangement reference direction when displaying the information code image. .
Then, the control unit 6 corrects the arrangement direction of the bars detected in step S6, that is, the arrangement direction of the barcode image so as to coincide with the above arrangement reference direction (step S17), and corrects the arrangement direction. The converted image data is output and displayed on the liquid crystal display 16 (step S11). For example, as shown in FIG. 8, when the arrangement direction of the bar and space of the captured barcode image is inclined at an angle α with respect to the arrangement reference direction indicated by a broken line in the figure, Rotate them so that their directions match (become parallel).

次に、図10に示すQRコードのような2次元コード画像の配列方向を修正する場合について、図9に示すフローチャートに沿って説明する。このフローチャートも第1実施例の一部相当図であり、ステップS12とS13との間にステップS18を、ステップS15とS16との間にステップS19を追加したものである。
まず、第1実施例と同様の処理により、制御部6は、撮像された情報コード画像が21×21セルのQRコードであると判断し(ステップS12)、このQRコード画像の配列方向(即ち、データセルの2次元的な配列方向)を検出しておく(ステップS18)。尚、図10(a)中に示す2つの矢印がQRコード画像の配列方向である。その後、ステップS13乃至S15まで第1実施例と同様の処理を行ない、図10(c)に示すように正規化したQRコード画像データを生成する。尚、この時点では、画像の配列方向は撮像された状態と同じである。
Next, the case of correcting the arrangement direction of a two-dimensional code image such as the QR code shown in FIG. 10 will be described with reference to the flowchart shown in FIG. This flowchart is also a partial equivalent diagram of the first embodiment, in which step S18 is added between steps S12 and S13, and step S19 is added between steps S15 and S16.
First, by the same processing as in the first embodiment, the control unit 6 determines that the captured information code image is a QR code of 21 × 21 cells (step S12), and the arrangement direction of this QR code image (ie, the QR code image) The two-dimensional arrangement direction of the data cells is detected (step S18). Note that the two arrows shown in FIG. 10A indicate the arrangement direction of the QR code image. Thereafter, processing similar to that in the first embodiment is performed from step S13 to step S15, and normalized QR code image data is generated as shown in FIG. At this time, the arrangement direction of the images is the same as the captured state.

そして、ステップS19において、制御部6は、このQRコード画像の配列方向(ここでは、2つの切出しシンボルが左右に並ぶ方向)を、配列基準方向と一致させるように修正し、図10(d)に示すように配列方向を修正した正規化画像データを液晶表示器16に出力して表示させる(ステップS16)。即ち、図10(a)に示すように、撮像したQRコード画像のデータセルの2次元的な配列方向が、図中に破線で示す配列基準方向に対して角度β傾いている場合は、その角度βだけQRコード画像を回転させて夫々の方向が一致するようにする。   In step S19, the control unit 6 corrects the arrangement direction of the QR code image (here, the direction in which the two cut-out symbols are arranged side by side) so as to coincide with the arrangement reference direction, and FIG. As shown in FIG. 5, the normalized image data whose arrangement direction is corrected is output to the liquid crystal display 16 and displayed (step S16). That is, as shown in FIG. 10A, when the two-dimensional arrangement direction of the data cells of the captured QR code image is inclined by an angle β with respect to the arrangement reference direction indicated by a broken line in the figure, The QR code image is rotated by an angle β so that the directions coincide with each other.

以上のように第2実施例によれば、制御部6は、撮像されたバーコード、又はQRコードの画像の配列方向を検出して、その配列方向が設定した配列基準方向に対して傾いている場合は、正規化処理されたバーコード、又はQRコード画像の配列方向を、配列基準方向に一致させて修正するようにした。従って、バーコード、又はQRコードの画像は、液晶表示器16の表示画面に対して傾きなく表示されるようになり、その表示されたバーコード、又はQRコードの画像をバーコードリーダ等に読み取らせる際に、バーコードリーダに対して液晶表示器16を傾ける必要がなくなる。   As described above, according to the second embodiment, the control unit 6 detects the arrangement direction of the image of the captured barcode or QR code, and the arrangement direction is inclined with respect to the set arrangement reference direction. If so, the arrangement direction of the normalized barcode or QR code image is corrected so as to coincide with the arrangement reference direction. Accordingly, the barcode or QR code image is displayed without tilting with respect to the display screen of the liquid crystal display 16, and the displayed barcode or QR code image is read by a barcode reader or the like. It is not necessary to incline the liquid crystal display 16 with respect to the bar code reader.

(第3実施例)
図11及び図12は本発明の第3実施例を示すものであり、第2実施例と同一の部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。第3実施例では、バーコード及びQRコード画像の配列方向の修正処理を、第2実施例における図7のステップS17,図9のステップS19に替えて、図12に示すフローチャートに従って実行する。
例えば、図11に示すようなQRコード画像の配列方向を修正する際の処理について、説明する。まず、図11(a)の左図に示すように、撮像した画像の配列方向が基準方向に対して100度傾いていた場合、この傾きは45度以上135度未満であるから(ステップT1で「NO」,T2で「YES」)ステップT5へ進み、制御部6は、図11(a)の右図に示すように、画像の配列方向を配列基準方向に対して90度回転させた方向に一致させるように修正する。
(Third embodiment)
11 and 12 show a third embodiment of the present invention. The same parts as those of the second embodiment are designated by the same reference numerals and the description thereof is omitted. Only different parts will be described below. In the third embodiment, the correction process of the arrangement direction of the barcode and the QR code image is executed according to the flowchart shown in FIG. 12 instead of step S17 in FIG. 7 and step S19 in FIG. 9 in the second embodiment.
For example, a process for correcting the arrangement direction of a QR code image as shown in FIG. 11 will be described. First, as shown in the left diagram of FIG. 11A, when the arrangement direction of the captured images is inclined by 100 degrees with respect to the reference direction, this inclination is not less than 45 degrees and less than 135 degrees (in step T1). “NO”, T2 is “YES”) Proceeding to step T5, the control unit 6 rotates the image arrangement direction by 90 degrees with respect to the arrangement reference direction as shown in the right diagram of FIG. Modify to match

次に、図11(b)の左図に示すように、QRコード画像が195度傾いていた場合、この傾きは135度以上225度未満であるから(ステップT1,T2で「NO」,T3で「YES」)ステップT6へ進み、制御部6は、図11(b)の右図に示すように、画像の配列方向を配列基準方向に対して180度回転させた方向に一致させるように修正する。また、図11(c)の左図に示すように、QRコード画像が280度傾いていた場合、この傾きは225度以上315度未満であるから(ステップT1,T2,T3で「NO」)ステップT7へ進み、制御部6は、図11(c)の右図に示すように、画像の配列方向を配列基準方向に対して270度回転させた方向に一致させるように修正する。
尚、図示しないが、撮像した画像の傾きが−45度以下(315度以上)で45度未満である場合には(ステップT1で「YES」)ステップT4へ進み、制御部6は、第2実施例と同様に、画像の配列方向を配列基準方向に一致させるように修正する。
Next, as shown in the left diagram of FIG. 11B, when the QR code image is inclined by 195 degrees, this inclination is not less than 135 degrees and less than 225 degrees (“NO” in steps T1 and T2, T3 The process proceeds to step T6, and the control unit 6 matches the image arrangement direction to the direction rotated 180 degrees with respect to the arrangement reference direction, as shown in the right figure of FIG. 11B. Correct it. Further, as shown in the left diagram of FIG. 11C, when the QR code image is inclined by 280 degrees, this inclination is not less than 225 degrees and less than 315 degrees (“NO” in steps T1, T2, and T3). Proceeding to step T7, as shown in the right diagram of FIG. 11C, the control unit 6 corrects the arrangement direction of the images so as to coincide with a direction rotated by 270 degrees with respect to the arrangement reference direction.
Although not shown, when the tilt of the captured image is −45 degrees or less (315 degrees or more) and less than 45 degrees (“YES” in step T1), the process proceeds to step T4, and the control unit 6 Similar to the embodiment, correction is performed so that the arrangement direction of the images matches the arrangement reference direction.

以上のように第3実施例によれば、制御部6は、正規化処理されたバーコード、又はQRコード画像の配列方向を、配列基準方向、もしくは配列基準方向を基準として90度単位で回転させた方向のうち、傾きを修正するために画像を回転させる角度が最も小さくなるような方向に一致させて修正するようにした。
即ち、正規化処理したバーコード、又はQRコード画像の配列方向を、撮像した時の状態に最も近い配列方向に一致させることができ、ユーザにとって違和感がより少ない状態で、正規化処理されたバーコード、又はQRコード画像を液晶表示器16に表示させることができる。
As described above, according to the third embodiment, the control unit 6 rotates the array direction of the normalized barcode or QR code image by 90 degrees with reference to the array reference direction or the array reference direction. In order to correct the inclination, the direction in which the image is rotated becomes the smallest direction in order to correct the inclination.
That is, the normalized barcode or QR code image arrangement direction can be matched with the arrangement direction closest to the imaged state, and the normalized barcode can be displayed with less discomfort for the user. A code or a QR code image can be displayed on the liquid crystal display 16.

(第4実施例)
図13は本発明の第4実施例を示すものであり、以下第1実施例と異なる部分についてのみ説明する。第4実施例では、ユーザが情報コード画像の正規化処理を実行させるか否かを選択するように構成した場合を示す。図13は、第1実施例における図3の一部相当図であり、ステップS1とステップS2との間にステップS20を挿入したものである。
即ち、制御部6は、バーコード、又はQRコード等を撮像してその画像データをメモリ10に取り込んだ後、ステップS20において、液晶表示器16に、撮像した画像データの正規化処理を実行するか否かの選択をユーザに促すためのメッセージを表示させる。そして、ユーザから操作スイッチ13等を介して実行させる旨の指示があった場合には(ステップS20で「YES」)、ステップS2以降の処理を実行する。一方、ユーザにより正規化処理を実行させない旨の指示があった場合は(ステップS20で「NO」)、そのまま処理を終了する。
(Fourth embodiment)
FIG. 13 shows a fourth embodiment of the present invention, and only the parts different from the first embodiment will be described below. The fourth embodiment shows a case where the user is configured to select whether or not to execute the information code image normalization process. FIG. 13 is a partial equivalent diagram of FIG. 3 in the first embodiment, in which step S20 is inserted between step S1 and step S2.
That is, the control unit 6 captures a bar code or QR code and captures the image data in the memory 10, and then executes normalization processing of the captured image data on the liquid crystal display 16 in step S20. A message for prompting the user to select whether or not is displayed. If the user gives an instruction to execute the operation via the operation switch 13 or the like (“YES” in step S20), the processes after step S2 are executed. On the other hand, if the user gives an instruction not to execute the normalization process (“NO” in step S20), the process ends as it is.

以上のように第4実施例によれば、携帯情報端末1において、液晶表示器16に正規化処理を実行するか否かの選択をユーザに促すためのメッセージを表示させ、ユーザが操作スイッチ13等を操作して実行させる旨の指示を行なった場合に、正規化処理を実行するようにした。従って、ユーザは、例えば撮像した情報コード画像が鮮明だった場合には正規化処理を行なわず、不鮮明な場合だけ正規化処理を実行するというように選択することが可能となる。   As described above, according to the fourth embodiment, in the portable information terminal 1, a message for prompting the user to select whether or not to perform the normalization process is displayed on the liquid crystal display 16, and the user operates the operation switch 13 The normalization process is executed when an instruction to execute the above is given. Therefore, for example, the user can select not to perform the normalization process when the captured information code image is clear, but to perform the normalization process only when the information code image is unclear.

本発明は上記し、且つ、図面に記載した実施例にのみ限定されるものではなく、次のような変形または拡張が可能である。
正規化情報コード画像の出力先を液晶表示器16としたが、正規化した画像データをプリンタ等に出力し、紙等に印刷して正規化情報コード画像を出力するようにしても良い。
第2、及び第3実施例の情報コード画像の傾きを修正する処理において、制御部6は、修正処理を行なう前に、第4実施例と同様に、液晶表示器16に修正処理を実行するか否かの選択をユーザに促すためのメッセージを表示させ、ユーザが操作スイッチ13等を操作して実行させる旨の指示を行なった場合に、画像の傾きを修正するようにしても良い。斯様にすれば、ユーザが意図して情報コード画像を傾いた状態で撮像した場合は、正規化した画像を液晶表示器16にそのまま表示させることができる。
第3実施例で情報コード画像の傾きを修正する処理において、撮像した画像の傾き度合いを判定する境界の「以上」を「超える」に変更すると共に、「未満」を「以下」に変更しても良い。
また、第3実施例において、例えば、撮像した画像の配列方向の基準方向に対する傾きが0度〜90度の場合には画像の配列方向を基準方向に一致させ、90度〜180度の場合は基準方向に対して90度回転させた方向に一致させ、180度〜270度の場合は基準方向に対して180度回転させた方向に一致させ、270度〜360度の場合は基準方向に対して270度回転させた方向に一致させるようにしても良い。
The present invention is not limited to the embodiments described above and shown in the drawings, and the following modifications or expansions are possible.
Although the output destination of the normalized information code image is the liquid crystal display 16, the normalized image data may be output to a printer or the like and printed on paper or the like to output the normalized information code image.
In the process of correcting the inclination of the information code image in the second and third embodiments, the control unit 6 executes the correction process on the liquid crystal display 16 as in the fourth embodiment before performing the correction process. A message for prompting the user to select whether or not to perform the operation may be displayed, and the tilt of the image may be corrected when the user gives an instruction to operate and operate the operation switch 13 or the like. In this way, when the user intentionally captures the information code image in a tilted state, the normalized image can be displayed on the liquid crystal display 16 as it is.
In the process of correcting the inclination of the information code image in the third embodiment, the boundary “determining the degree of inclination of the captured image is changed to“ exceeding ”and“ less than ”is changed to“ below ”. Also good.
In the third embodiment, for example, when the inclination of the captured image with respect to the reference direction relative to the reference direction is 0 degree to 90 degrees, the arrangement direction of the images is matched with the reference direction, and when the inclination direction is 90 degrees to 180 degrees. Match the direction rotated 90 degrees with respect to the reference direction. If 180 degrees to 270 degrees, match the direction rotated 180 degrees with respect to the reference direction. If 270 degrees to 360 degrees, match the reference direction. It is also possible to match the direction rotated by 270 degrees.

制御部6は、正規化情報単位とするデータセルサイズ、又はバー幅から、これらと所定比率のサイズとなるように正規化した特定パターン画像を生成するようにしたが、正規化情報単位とするデータセルサイズ、又はバー幅を複数設定して、これらに基づいて正規化した特定パターン画像を生成するようにしても良い。
制御部6は、情報コードの読取りを行なう直前に、その情報コードの種類を1つだけ特定しても良い。また、読取り対象とする情報コードを特定せずとも、想定されるもの全てを常時読取り対象としても良い。
ビューファインダ機能は、必要に応じて設けるようにしても良い。
各実施例では、制御部6を中心としてソフトウェアにより処理するようにしたが、この処理内容を、ゲートアレイのようなハードウェアによって実現しても良い。
制御部6が、情報コードをデコードする機能を備えていても良い。
The control unit 6 generates the specific pattern image normalized so as to have a predetermined ratio with the data cell size or bar width as the normalized information unit. A plurality of data cell sizes or bar widths may be set, and a specific pattern image normalized based on these may be generated.
The controller 6 may specify only one type of information code immediately before reading the information code. Moreover, it is good also as always reading object, without specifying the information code made into reading object.
The viewfinder function may be provided as necessary.
In each embodiment, the processing is performed by software with the control unit 6 as the center, but the processing content may be realized by hardware such as a gate array.
The control unit 6 may have a function of decoding the information code.

本発明の第1実施例であり、QRコード画像の正規化処理を示す図The figure which is 1st Example of this invention and shows the normalization process of QR Code image バーコード画像の正規化処理を示す図The figure which shows the normalization processing of the barcode image 携帯情報端末の制御部が、情報コード画像を正規化する処理内容を示すフローチャートThe flowchart which shows the processing content which the control part of a portable information terminal normalizes an information code image 正規化処理の概念を説明する図Diagram explaining the concept of normalization processing ビューファインダ機能を説明する図Diagram explaining the viewfinder function 携帯情報端末の画像処理に関する電気的構成を示すブロック図The block diagram which shows the electric constitution regarding the image processing of the portable information terminal 本発明の第2実施例を示す図3のバーコード処理に対応する一部相当図The partial equivalent figure corresponding to the barcode processing of FIG. 3 which shows 2nd Example of this invention 図2(a)相当図Fig. 2 (a) equivalent diagram 図3の2次元コード処理に対応する一部相当図Partial equivalent diagram corresponding to the two-dimensional code processing of FIG. 本発明の第2実施例を示す図1相当図FIG. 1 equivalent view showing a second embodiment of the present invention 本発明の第3実施例を示す図10相当図FIG. 10 equivalent view showing the third embodiment of the present invention. 図7のステップS17、又は図9のステップS19相当図FIG. 7 corresponds to step S17 in FIG. 7 or step S19 in FIG. 本発明の第4実施例を示す図3相当図FIG. 3 equivalent view showing a fourth embodiment of the present invention.

符号の説明Explanation of symbols

図面中、1は携帯情報端末、2,3はLED(撮像手段)、4はレンズ(撮像手段)、5はCCD(撮像手段)、6は制御部(画像処理手段,データ出力手段,コード種設定手段,操作制御手段)、13は操作スイッチ(操作指示手段)、16は液晶表示器(表示手段)を示す。   In the drawing, 1 is a portable information terminal, 2 and 3 are LEDs (imaging means), 4 is a lens (imaging means), 5 is a CCD (imaging means), and 6 is a control unit (image processing means, data output means, code type). Setting means, operation control means), 13 is an operation switch (operation instruction means), and 16 is a liquid crystal display (display means).

Claims (19)

画像を撮像する撮像手段と、撮像された画像のデータを処理する画像処理手段と、処理された画像データを所定の出力先に出力するデータ出力手段とを備えて構成される携帯情報端末において、
前記画像処理手段は、
前記撮像手段が情報コードの画像を撮像した場合に、その画像の明暗パターンを検査して明パターン及び暗パターンの配列を検出するパターン検出手段と、
検出された明暗パターンの配列に基づいて明パターン及び/又は暗パターンの基準寸法である情報単位のサイズを検出し、検出した情報単位のサイズに基づいて所定の形状及び所定のサイズの正規化情報単位を設定する情報単位設定手段と、
前記パターン検出手段によって検出された明暗パターンの配列に基づいて、その明,暗パターンの夫々を、前記情報単位設定手段によって設定された正規化情報単位で置換して正規化画像を生成する正規化処理を行なう正規化画像生成手段とを備え、
前記データ出力手段は、生成された正規化画像を所定の出力先に出力することを特徴とする携帯情報端末。
In a portable information terminal configured to include an imaging unit that captures an image, an image processing unit that processes data of the captured image, and a data output unit that outputs the processed image data to a predetermined output destination.
The image processing means includes
Pattern detecting means for inspecting the light / dark pattern of the image and detecting the arrangement of the light pattern and the dark pattern when the image pickup means picks up an image of the information code;
The size of the information unit that is the reference dimension of the light pattern and / or the dark pattern is detected based on the detected arrangement of the light / dark pattern, and the normalization information of the predetermined shape and the predetermined size is detected based on the detected size of the information unit An information unit setting means for setting a unit;
Normalization for generating a normalized image by replacing each of the bright and dark patterns with the normalized information unit set by the information unit setting means based on the arrangement of the light and dark patterns detected by the pattern detection means A normalized image generating means for performing processing,
The data output means outputs the generated normalized image to a predetermined output destination.
前記正規化画像生成手段が正規化処理を行なう対象とする情報コードの種類を設定するコード種設定手段を備えると共に、
前記画像処理手段は、
前記コード種設定手段に設定された情報コードの種類によって決まる固有の特定パターンを、撮像された画像の中から前記パターン検出手段によって検出された明暗パターンの配列より検出する特定パターン検出手段と、
検出された特定パターンの位置又はサイズに基づいて、前記撮像された画像に含まれている情報コードの種類を判別するコード種判別手段とを備え、
前記情報単位設定手段は、判別されたコード種類に対応した形状の正規化情報単位を設定することを特徴とする請求項1記載の携帯情報端末。
The normalized image generating means includes code type setting means for setting the type of information code to be subjected to normalization processing,
The image processing means includes
A specific pattern detection unit for detecting a specific specific pattern determined by the type of information code set in the code type setting unit, from an array of light and dark patterns detected by the pattern detection unit from the captured image;
Code type discriminating means for discriminating the type of information code included in the captured image based on the position or size of the detected specific pattern;
2. The portable information terminal according to claim 1, wherein the information unit setting unit sets a normalized information unit having a shape corresponding to the determined code type.
前記コード種設定手段は、前記正規化画像生成手段が正規化処理を行なう対象とする少なくとも1つの情報コードの種類を設定することを特徴とする請求項2記載の携帯情報端末。   3. The portable information terminal according to claim 2, wherein the code type setting unit sets at least one information code type to be normalized by the normalized image generation unit. 前記情報単位設定手段は、正規化情報単位を設定すると、その正規化情報単位のサイズと所定比率のサイズを有するパターンで構成される正規化特定パターン画像を生成し、
前記正規化画像生成手段は、前記特定パターン検出手段によって検出された特定パターンに対応する位置に、前記正規化特定パターン画像を配置することを特徴とする請求項2又は3記載の携帯情報端末。
When the information unit setting unit sets the normalized information unit, the information unit setting unit generates a normalized specific pattern image including a pattern having a size of the normalized information unit and a predetermined ratio,
The portable information terminal according to claim 2 or 3, wherein the normalized image generation unit arranges the normalized specific pattern image at a position corresponding to the specific pattern detected by the specific pattern detection unit.
前記コード種設定手段は、情報コードの種類に応じてその配列基準方向を設定する基準方向設定手段を備え、
前記画像処理手段は、
撮像された情報コード画像の配列方向を検出する配列方向検出手段を備え、
検出された配列方向が前記配列基準方向に一致するように、正規化処理された画像の配列方向を修正することを特徴とする請求項2乃至4の何れかに記載の携帯情報端末。
The code type setting means includes a reference direction setting means for setting the arrangement reference direction according to the type of information code,
The image processing means includes
Comprising an arrangement direction detecting means for detecting the arrangement direction of the imaged information code image;
The portable information terminal according to claim 2, wherein the arrangement direction of the normalized image is corrected so that the detected arrangement direction matches the arrangement reference direction.
前記画像処理手段は、検出された配列方向が前記配列基準方向に対してなす角度が±90度を越えている場合は、基準方向に対して90度、又は180度、もしくは270度回転した方向に一致するように正規化処理された画像の配列方向を修正することを特徴とする請求項5記載の携帯情報端末。   The image processing means is a direction rotated by 90 degrees, 180 degrees, or 270 degrees with respect to the reference direction when the angle formed by the detected arrangement direction with respect to the array reference direction exceeds ± 90 degrees. The mobile information terminal according to claim 5, wherein the arrangement direction of the images that have been normalized so as to match is corrected. 前記画像処理手段は、正規化処理された画像の配列方向を修正する際、前記画像を回転させる角度が最も小さくなる方向に対して一致させることを特徴とする請求項6記載の携帯情報端末。   7. The portable information terminal according to claim 6, wherein the image processing means matches the direction in which the angle at which the image is rotated becomes the smallest when correcting the arrangement direction of the normalized images. 前記画像処理手段を操作して制御する操作制御手段と、
ユーザが操作指示を入力するための操作指示手段とを備え、
前記操作制御手段は、前記操作指示手段を介して前記配列方向の修正を実行させる旨の操作指示があった場合に、前記画像処理手段に前記修正を実行させることを特徴とする請求項5乃至7の何れかに記載の携帯情報端末。
Operation control means for operating and controlling the image processing means;
An operation instruction means for a user to input an operation instruction;
The operation control means causes the image processing means to execute the correction when there is an operation instruction for executing the correction of the arrangement direction via the operation instruction means. 8. The portable information terminal according to any one of 7.
前記画像処理手段及び前記データ出力手段を操作して制御する操作制御手段と、
画像表示を行なう表示手段とを備え、
前記操作制御手段は、前記撮像手段が撮像した画像のデータを前記表示手段に出力して表示させることを特徴とする請求項1乃至8の何れかに記載の携帯情報端末。
Operation control means for operating and controlling the image processing means and the data output means;
Display means for displaying an image,
The portable information terminal according to any one of claims 1 to 8, wherein the operation control unit outputs and displays data of an image captured by the imaging unit on the display unit.
ユーザが操作指示を入力するための操作指示手段を備え、
前記操作制御手段は、前記撮像手段が撮像した画像を前記表示手段に表示させた場合に、併せて、前記正規化画像生成手段に正規化処理を実行させるか否かの選択をユーザに促すためのメッセージを表示させ、前記操作指示手段を介して実行させる旨の操作指示があった場合に、前記正規化画像生成手段に正規化処理を実行させることを特徴とする請求項9記載の携帯情報端末。
Comprising an operation instruction means for a user to input an operation instruction;
The operation control unit prompts the user to select whether or not to cause the normalized image generation unit to perform normalization processing when the image captured by the imaging unit is displayed on the display unit. The portable information according to claim 9, wherein the normalization process is executed by the normalized image generation unit when an operation instruction to execute the message is displayed via the operation instruction unit. Terminal.
前記データ出力手段は、前記正規化画像生成手段によって正規化処理された画像データを、前記表示手段に出力して表示させることを特徴とする請求項9又は10記載の携帯情報端末。   The portable information terminal according to claim 9 or 10, wherein the data output means outputs the image data normalized by the normalized image generation means to the display means for display. 画像を撮像し、撮像した画像のデータを処理し、処理した画像データを所定の出力先に出力する画像処理方法において、
撮像した画像の明暗パターンを検査して明パターン及び暗パターンの配列を検出し、
検出した明暗パターンの配列に基づいて明パターン及び/又は暗パターンの基準寸法である情報単位のサイズを検出し、検出した情報単位のサイズに基づいて所定の形状及び所定のサイズの正規化情報単位を設定し、
検出した明暗パターンの配列に基づいて、その明,暗パターンの夫々を、設定された正規化情報単位で置換して正規化画像を生成する正規化処理を行ない、
生成された正規化画像を所定の出力先に出力することを特徴とする画像処理方法。
In an image processing method for capturing an image, processing data of the captured image, and outputting the processed image data to a predetermined output destination.
Inspecting the light / dark pattern of the captured image to detect the arrangement of the light pattern and the dark pattern,
The size of the information unit that is the reference dimension of the light pattern and / or the dark pattern is detected based on the detected arrangement of the light / dark pattern, and the normalized information unit having a predetermined shape and a predetermined size is detected based on the detected size of the information unit Set
Based on the detected arrangement of light and dark patterns, normalization processing is performed to generate a normalized image by replacing each of the light and dark patterns with a set normalization information unit,
An image processing method, comprising: outputting a generated normalized image to a predetermined output destination.
前記正規化処理を行なう対象とする情報コードの種類を予め設定し、
設定された情報コードの種類によって決まる固有の特定パターンを、前記撮像した画像の中から検出された明暗パターンの配列より検出し、
検出した特定パターンの位置又はサイズに基づいて、前記撮像した画像に含まれている情報コードの種類を判別し、
判別されたコード種類に対応した形状の正規化情報単位を設定することを特徴とする請求項12記載の画像処理方法。
A type of information code to be subjected to the normalization process is set in advance,
A specific specific pattern determined by the set information code type is detected from an array of light and dark patterns detected from the captured image,
Based on the position or size of the detected specific pattern, the type of information code included in the captured image is determined,
13. The image processing method according to claim 12, wherein a normalized information unit having a shape corresponding to the determined code type is set.
前記正規化処理を行なう対象とする少なくとも1つの情報コードの種類を設定することを特徴とする請求項13記載の画像処理方法。   14. The image processing method according to claim 13, wherein at least one information code type to be subjected to the normalization process is set. 前記正規化情報単位を設定すると、その正規化情報単位のサイズと所定比率のサイズを有するパターンで構成される正規化特定パターン画像を生成し、
前記検出された特定パターンに対応する位置に、前記正規化特定パターン画像を配置することを特徴とする請求項12乃至14の何れかに記載の画像処理方法。
When the normalized information unit is set, a normalized specific pattern image composed of a pattern having a size of the normalized information unit and a predetermined ratio is generated.
15. The image processing method according to claim 12, wherein the normalized specific pattern image is arranged at a position corresponding to the detected specific pattern.
情報コードの種類に応じてその配列基準方向を設定し、撮像された情報コード画像の配列方向を検出すると、
検出した配列方向が前記配列基準方向に一致するように、正規化処理された画像の配列方向を修正することを特徴とする請求項12乃至15の何れかに記載の画像処理方法。
When the arrangement reference direction is set according to the type of information code and the arrangement direction of the captured information code image is detected,
16. The image processing method according to claim 12, wherein the arrangement direction of the normalized image is corrected so that the detected arrangement direction coincides with the arrangement reference direction.
前記検出した配列方向が前記配列基準方向に対してなす角度が±90度を超えている場合は、基準方向に対して90度、又は180度、もしくは270度回転した方向に一致するように正規化処理された画像の配列方向を修正することを特徴とする請求項16記載の画像処理方法。   When the detected array direction is more than ± 90 degrees with respect to the array reference direction, it is normalized so as to coincide with a direction rotated 90 degrees, 180 degrees, or 270 degrees with respect to the reference direction. The image processing method according to claim 16, wherein the arrangement direction of the processed image is corrected. 前記正規化処理された画像の配列方向を修正する際、前記画像を回転させる角度が最も小さくなる方向に対して一致させることを特徴とする請求項17記載の画像処理方法。   18. The image processing method according to claim 17, wherein when the arrangement direction of the normalized images is corrected, the image rotation method is made to coincide with a direction in which the rotation angle of the image is minimized. 前記正規化処理した画像を、表示手段に出力して表示させることを特徴とする請求項12乃至18の何れかに記載の画像処理方法。

The image processing method according to claim 12, wherein the normalized image is output and displayed on a display unit.

JP2005251326A 2005-08-31 2005-08-31 Portable information terminal and image processing method Expired - Fee Related JP4103909B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005251326A JP4103909B2 (en) 2005-08-31 2005-08-31 Portable information terminal and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005251326A JP4103909B2 (en) 2005-08-31 2005-08-31 Portable information terminal and image processing method

Publications (2)

Publication Number Publication Date
JP2007066000A true JP2007066000A (en) 2007-03-15
JP4103909B2 JP4103909B2 (en) 2008-06-18

Family

ID=37928133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005251326A Expired - Fee Related JP4103909B2 (en) 2005-08-31 2005-08-31 Portable information terminal and image processing method

Country Status (1)

Country Link
JP (1) JP4103909B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009181219A (en) * 2008-01-29 2009-08-13 Toshiba Tec Corp Bar code reader and its method
JP2010211738A (en) * 2009-03-12 2010-09-24 Ricoh Co Ltd Image processing system, image processing server, mfp and image processing method
KR101198591B1 (en) 2011-11-28 2012-11-07 (주)이컴앤드시스템 An positioning/decoding device for a data matrix image of arbitrary rotated angle
JP2020161106A (en) * 2019-03-22 2020-10-01 株式会社デンソーウェーブ Information reading device and program
US20230097901A1 (en) * 2021-09-23 2023-03-30 Sigmastar Technology Ltd. Image correction method and processor

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009181219A (en) * 2008-01-29 2009-08-13 Toshiba Tec Corp Bar code reader and its method
JP2010211738A (en) * 2009-03-12 2010-09-24 Ricoh Co Ltd Image processing system, image processing server, mfp and image processing method
KR101198591B1 (en) 2011-11-28 2012-11-07 (주)이컴앤드시스템 An positioning/decoding device for a data matrix image of arbitrary rotated angle
JP2020161106A (en) * 2019-03-22 2020-10-01 株式会社デンソーウェーブ Information reading device and program
JP7283312B2 (en) 2019-03-22 2023-05-30 株式会社デンソーウェーブ Information reader and program
US20230097901A1 (en) * 2021-09-23 2023-03-30 Sigmastar Technology Ltd. Image correction method and processor
US11908108B2 (en) * 2021-09-23 2024-02-20 Sigmastar Technology Ltd. Image correction method and processor

Also Published As

Publication number Publication date
JP4103909B2 (en) 2008-06-18

Similar Documents

Publication Publication Date Title
JP4635889B2 (en) Portable two-dimensional code reader
JP4412214B2 (en) Pattern recognition apparatus, pattern recognition method, and electronic apparatus having the pattern recognition apparatus
JP4254724B2 (en) Bar code reading method and computer program
JP4103909B2 (en) Portable information terminal and image processing method
WO2004093433A1 (en) Code recognizing method and device
JP2007034625A (en) Information display device
JPH06309485A (en) Optical information reader
JP5017988B2 (en) Code reader and program
JP2007133566A (en) Information code reading device
JP2010226580A (en) Color correction method and imaging system
JP5217872B2 (en) Symbol reader and program
JP4335229B2 (en) QR code recognition device, QR code recognition device control method, QR code recognition device control program, and computer-readable recording medium recording the same
JP5720623B2 (en) Two-dimensional code reader
CN110945530B (en) Two-dimensional code and two-dimensional code reading device
JP2005122609A (en) Device for recognizing photographed object
JP4957616B2 (en) Two-dimensional code reader
JP5482925B2 (en) Image capturing apparatus and program
JP5967000B2 (en) Information code reading system, information code reading device, information code
JP3690281B2 (en) Information code
JP6288487B2 (en) Image processing apparatus and program
JP4378491B2 (en) Code image output device
JP2007257360A (en) Two-dimensional code, two-dimensional code reader and two-dimensional code-reading program
JP2008287702A (en) Portable electronic device, method of reading fingerprint, and method of reading barcode
JP3900083B2 (en) Image communication system
JP2007334478A (en) Image processor and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070913

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080229

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080317

R150 Certificate of patent or registration of utility model

Ref document number: 4103909

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110404

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120404

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120404

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20130404

Year of fee payment: 5

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20130404

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130404

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140404

Year of fee payment: 6

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

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

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees