JP2010055578A - Image analyzing device, image analysis method, imaging apparatus, image analysis program and recording medium - Google Patents

Image analyzing device, image analysis method, imaging apparatus, image analysis program and recording medium Download PDF

Info

Publication number
JP2010055578A
JP2010055578A JP2008222876A JP2008222876A JP2010055578A JP 2010055578 A JP2010055578 A JP 2010055578A JP 2008222876 A JP2008222876 A JP 2008222876A JP 2008222876 A JP2008222876 A JP 2008222876A JP 2010055578 A JP2010055578 A JP 2010055578A
Authority
JP
Japan
Prior art keywords
external light
light intensity
sensitivity
image
touch
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
JP2008222876A
Other languages
Japanese (ja)
Other versions
JP4964850B2 (en
Inventor
Ryoji Yoshimoto
良治 吉本
Akira Fujiwara
晶 藤原
Daisuke Yamashita
大輔 山下
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2008222876A priority Critical patent/JP4964850B2/en
Publication of JP2010055578A publication Critical patent/JP2010055578A/en
Application granted granted Critical
Publication of JP4964850B2 publication Critical patent/JP4964850B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To accurately calculate the intensity of external light in the surroundings of a pointing object for pointing an imaging screen having a plurality of imaging sensors. <P>SOLUTION: A touch position detection device 10 includes an external light intensity calculation part 3 for analyzing an image captured by a photo-sensor 12 to calculate the external light intensity which is the intensity of light in the surroundings of the light made incident on a portion of the photo-sensor 12. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、複数の撮像センサを有する撮像画面を指示する指示物体の撮像画像を解析する画像解析装置、当該画像解析装置を備える撮像装置、および画像解析方法に関するものである。   The present invention relates to an image analysis apparatus that analyzes a captured image of a pointing object that indicates an imaging screen having a plurality of imaging sensors, an imaging apparatus that includes the image analysis apparatus, and an image analysis method.

近年、LCD(液晶ディスプレイ)や有機ELディスプレイなどのディスプレイの各画素に光センサを内蔵し、表示するだけでなく撮像も同時にできるディスプレイが開発されている。この光センサ内蔵ディスプレイを用いて、当該光センサ内蔵ディスプレイの表面の任意の位置を指示するユーザの指またはタッチペン等の指示部材の画像を撮像し、その画像をもとにタッチパネルを実現する技術開発もなされている。例えば、特許文献1において光センサ内蔵LCDを用いてタッチパネルを実現する技術が説明されている。なお、以下では、上記ユーザの指および指示部材をまとめて、指示物体と称する。   2. Description of the Related Art In recent years, displays have been developed that incorporate a photosensor in each pixel of a display such as an LCD (Liquid Crystal Display) or an organic EL display, and that can simultaneously display as well as display. Technology development that uses this optical sensor built-in display to capture an image of a pointing member such as a user's finger or a touch pen that indicates an arbitrary position on the surface of the optical sensor built-in display, and realizes a touch panel based on the image It has also been made. For example, Patent Document 1 describes a technique for realizing a touch panel using an optical sensor built-in LCD. Hereinafter, the user's finger and the pointing member are collectively referred to as a pointing object.

このように、光センサ内蔵LCDを用いたタッチパネルを実現する技術は開発されている。しかし、光センサで取得した画像は、タッチパネルにタッチされる指(または指示部材)の周囲の光である外光の強さおよび外光の入射する方向により大きく変化する。そのため、そのような変化の激しい画像から精度良くタッチと非タッチとを区別するためには、外光の影響を考慮した画像解析を行う必要がある。   As described above, a technique for realizing a touch panel using an optical sensor built-in LCD has been developed. However, the image acquired by the optical sensor varies greatly depending on the intensity of external light that is light around the finger (or pointing member) touched on the touch panel and the direction in which the external light is incident. For this reason, in order to accurately distinguish between touch and non-touch from such a rapidly changing image, it is necessary to perform image analysis in consideration of the influence of external light.

そこで、特許文献2に記載の発明ではユーザの入力または外光センサなどから外光の強さを取得し、外光の強さがある閾値を超えたかどうかを基準に、画像処理方法を切替える手法を採用し、外光の変化に対応しようとしている。   Therefore, in the invention described in Patent Document 2, the intensity of external light is acquired from a user input or an external light sensor, and the image processing method is switched based on whether the external light intensity exceeds a certain threshold. To adapt to changes in external light.

また、特許文献3に記載の発明では、画像中の黒画像と白画像との割合を判定することにより、外光の強弱を判定し、画像処理方法を切替える手法を採用している。
特開2006−244446号公報(2006年9月14日公開) 特開2007−183706号公報(2007年7月19日公開) 特開2004−318819号公報(2004年11月11日公開)
The invention described in Patent Document 3 employs a method of determining the intensity of external light by determining the ratio of a black image and a white image in the image and switching the image processing method.
JP 2006-244446 A (published September 14, 2006) JP 2007-183706 A (published July 19, 2007) JP 2004-318819 A (published on November 11, 2004)

ところが、特許文献2および3に記載の構成では、外光の強さを精度良く判定できないという問題が生ずる。   However, the configurations described in Patent Documents 2 and 3 have a problem that the intensity of external light cannot be accurately determined.

具体的には、特許文献2の発明では、外光を検出するための外光センサは、画像取得用光センサとは離れた位置にあるため、画像取得用光センサに入射する外光の強度を正確に算出することができない。   Specifically, in the invention of Patent Document 2, since the external light sensor for detecting external light is located away from the image acquisition optical sensor, the intensity of external light incident on the image acquisition optical sensor. Cannot be calculated accurately.

また、特許文献3の発明では、撮像画像に含まれる黒画像と白画像との割合から大雑把に外光の強度を判定しているだけであり、外光の強度を正確に算出することができない。   In the invention of Patent Document 3, the intensity of external light is only roughly determined from the ratio of the black image and the white image included in the captured image, and the intensity of external light cannot be accurately calculated. .

さらに、特許文献2および3には、算出した外光の強度を用いて、タッチパネル上の位置を指示する指示物体の画像を処理し、タッチ、非タッチの識別精度を向上させる技術は開示されていない。   Furthermore, Patent Documents 2 and 3 disclose a technique for processing a pointing object image that indicates a position on a touch panel using the calculated intensity of external light to improve touch and non-touch identification accuracy. Absent.

本発明は、上記の問題点を解決するためになされたもので、その目的は、外光の強度を正確に算出することができる画像解析装置、撮像装置および画像解析方法を提供することにある。また、本発明の他の目的は、外光の強度を用いて、指示物体の画像を処理することにより、タッチ、非タッチの識別精度を向上させることである。   The present invention has been made to solve the above-described problems, and an object thereof is to provide an image analysis apparatus, an imaging apparatus, and an image analysis method capable of accurately calculating the intensity of external light. . Another object of the present invention is to improve the identification accuracy of touch and non-touch by processing the image of the pointing object using the intensity of external light.

本発明に係る画像解析装置は、上記の課題を解決するために、複数の撮像センサを有する撮像画面に対して接触している、または接触していない指示物体の、上記撮像センサによって撮像された撮像画像を解析する画像解析装置であって、上記撮像画像を取得する取得手段と、上記取得手段が取得した撮像画像を解析することにより、上記撮像センサの一部に入射した上記指示物体の周囲の光の強度である外光強度を算出する外光強度算出手段とを備えることを特徴としている。   In order to solve the above problems, an image analysis apparatus according to the present invention captures an image of a pointing object that is in contact with or not in contact with an imaging screen having a plurality of imaging sensors. An image analysis apparatus for analyzing a captured image, wherein an acquisition unit that acquires the captured image and a surrounding of the pointing object that is incident on a part of the imaging sensor by analyzing the captured image acquired by the acquisition unit And an external light intensity calculating means for calculating the external light intensity which is the intensity of the light.

本発明に係る画像解析方法は、上記の課題を解決するために、複数の撮像センサを有する撮像画面に対して接触している、または接触していない指示物体の、上記撮像センサによって撮像された撮像画像を解析する画像解析装置における画像解析方法であって、上記撮像画像を取得する取得工程と、上記取得工程において取得された撮像画像を解析することにより、上記撮像センサの一部に入射した上記指示物体の周囲の光の強度である外光強度を算出する外光強度算出工程とを含むことを特徴としている。   In order to solve the above-described problem, the image analysis method according to the present invention captures an image of a pointing object that is in contact with or not in contact with an imaging screen having a plurality of imaging sensors. An image analysis method in an image analysis apparatus for analyzing a captured image, wherein the captured image is acquired, and the captured image acquired in the acquisition step is analyzed to be incident on a part of the imaging sensor And an external light intensity calculating step of calculating an external light intensity that is an intensity of light around the pointing object.

指示物体の像が背景よりも暗く写った撮像画像を用いて、撮像画面に対して指示物体が接触しているかどうかを判定する場合には、背景の画素値、換言すれば、指示物体の周囲の光の強度である外光強度を正確に算出し、その外光強度を利用して撮像画像の解析を行うことが好ましい。   When determining whether the pointing object is in contact with the imaging screen using a captured image in which the pointing object image is darker than the background, the background pixel value, in other words, around the pointing object It is preferable to accurately calculate the external light intensity, which is the intensity of the light, and to analyze the captured image using the external light intensity.

上記の構成によれば、取得手段は、指示物体の撮像画像を取得し、外光強度算出手段は、その撮像画像を解析することにより、撮像センサの一部に入射した指示物体の周囲の光の強度である外光強度を算出する。つまり、外光強度算出手段は、撮像センサによって撮像された撮像画像そのものを用いて外光強度を算出する。   According to the above configuration, the acquisition unit acquires a captured image of the pointing object, and the external light intensity calculation unit analyzes the captured image, thereby obtaining light around the pointing object that is incident on a part of the imaging sensor. The intensity of external light, which is the intensity of That is, the external light intensity calculation means calculates the external light intensity using the captured image itself captured by the image sensor.

それゆえ、外光強度測定用のセンサを設けることなく、外光強度を簡単な構成で、より正確に算出することができる。   Therefore, the external light intensity can be calculated more accurately with a simple configuration without providing a sensor for measuring the external light intensity.

また、上記外光強度算出手段は、上記取得手段が取得した撮像画像に含まれる複数の画素から少なくとも一部の画素を選択し、選択した画素を、その画素値が高い順に並べた場合の所定の順位にある画素の画素値を上記外光強度とすることが好ましい。   The external light intensity calculating unit selects at least a part of pixels from a plurality of pixels included in the captured image acquired by the acquiring unit and arranges the selected pixels in descending order of pixel values. It is preferable to set the pixel value of the pixels in the order of the above-mentioned external light intensity.

指示物体の像が背景よりも暗く写った撮像画像の場合、外光強度は、撮像画像の画素の中で比較的高い画素値を有する画素の群から算出することが好ましい。しかし、最も高い画素値を外光強度として採用した場合には、ノイズ等の影響を受け易くなり、外光強度を正確に算出できない可能性が高い。   In the case of a captured image in which the image of the pointing object is darker than the background, the external light intensity is preferably calculated from a group of pixels having a relatively high pixel value among the pixels of the captured image. However, when the highest pixel value is adopted as the external light intensity, it is likely to be affected by noise or the like, and there is a high possibility that the external light intensity cannot be accurately calculated.

上記の構成によれば、外光強度算出手段は、取得手段が取得した撮像画像に含まれる複数の画素から少なくとも一部の画素を選択し、選択した画素の画素値を高い順に並べる。そして、外光強度算出手段は、最上位から所定の順位(例えば、10番目)にある画素の画素値を外光強度として採用する。   According to said structure, an external light intensity | strength calculation means selects at least one pixel from the some pixel contained in the captured image which the acquisition means acquired, and arranges the pixel value of the selected pixel in order of high order. Then, the external light intensity calculation means employs the pixel values of the pixels in a predetermined order (for example, 10th) from the top as the external light intensity.

それゆえ、上記所定の順位を適切に設定することにより、外光強度を適切に算出することができる。   Therefore, the external light intensity can be appropriately calculated by appropriately setting the predetermined order.

また、上記所定の順位は、選択された画素の総数の10%未満の数に相当することが好ましい。   Moreover, it is preferable that the predetermined order corresponds to a number less than 10% of the total number of selected pixels.

上記の構成によれば、外光強度算出手段は、選択された画素の総数の10%未満の数に相当する順位にある画素の画素値を上記外光強度として採用する。例えば、選択された画素の総数が1000であり、上記所定の順位が、選択された画素の総数の2%の数に相当する順位であれば、上記所定の順位は20番目になる。   According to the above configuration, the external light intensity calculation means employs the pixel value of the pixel in the order corresponding to a number less than 10% of the total number of selected pixels as the external light intensity. For example, if the total number of selected pixels is 1000 and the predetermined rank is a rank corresponding to 2% of the total number of selected pixels, the predetermined rank is the 20th.

それゆえ、撮像画像の中から外光強度を算出するために適当な画素値を有する画素を適切に選択することができる。   Therefore, it is possible to appropriately select a pixel having an appropriate pixel value from the captured image in order to calculate the external light intensity.

また、上記画像解析装置は、上記外光強度算出手段が算出した外光強度から、上記指示物体が上記撮像画面に対して接触していない場合の当該指示物体の像を上記撮像画像から削除するための画素値の基準値を算出する基準値算出手段と、上記取得手段が取得した撮像画像に含まれる画素のうち、上記基準値算出手段が算出した基準値以上の画素値を有する画素の画素値を上記基準値に置き換える画像処理手段とをさらに備えることが好ましい。   Further, the image analysis device deletes the image of the pointing object when the pointing object is not in contact with the imaging screen from the captured image, based on the external light intensity calculated by the external light intensity calculating unit. A reference value calculating means for calculating a reference value of the pixel value for the pixel, and a pixel having a pixel value equal to or greater than the reference value calculated by the reference value calculating means among the pixels included in the captured image acquired by the acquiring means It is preferable to further comprise image processing means for replacing the value with the reference value.

上記の構成によれば、基準値算出手段は、指示物体が撮像画面に対して接触していない場合の当該指示物体の像を撮像画像から削除するための画素値の基準値を、外光強度算出手段が算出した外光強度に基づいて算出する。そして、画像処理手段は、撮像画像に含まれる画素のうち、上記基準値以上の画素値を有する画素の画素値を基準値に置き換える。   According to the above configuration, the reference value calculation means calculates the reference value of the pixel value for deleting the image of the pointing object from the captured image when the pointing object is not in contact with the imaging screen. It calculates based on the external light intensity calculated by the calculating means. Then, the image processing means replaces a pixel value of a pixel having a pixel value equal to or higher than the reference value among the pixels included in the captured image with the reference value.

それゆえ、指示物体が撮像画面に対して接触していない場合の当該指示物体の像を形成する画素の画素値および背景に相当する画素の画素値は、すべて基準値まで下げられ、均一な背景が形成される。従って、指示物体が撮像画面に対して接触していない場合の当該指示物体の像が撮像画像から削除されることになる。   Therefore, when the pointing object is not in contact with the imaging screen, the pixel value of the pixel forming the image of the pointing object and the pixel value of the pixel corresponding to the background are all reduced to the reference value, and the uniform background Is formed. Therefore, the image of the pointing object when the pointing object is not in contact with the imaging screen is deleted from the captured image.

その結果、指示物体の認識に不要な、指示物体が撮像画面に対して接触していない場合の指示物体の像を撮像画像から削除でき、指示物体の認識の精度を高めることができる。   As a result, an image of the pointing object that is unnecessary for the recognition of the pointing object when the pointing object is not in contact with the imaging screen can be deleted from the captured image, and the recognition accuracy of the pointing object can be improved.

また、上記画像解析装置は、上記取得手段が取得した撮像画像から上記指示物体の像の特徴を示す特徴領域を抽出する特徴領域抽出手段と、上記外光強度算出手段が算出した外光強度から、上記特徴領域が上記撮像画面に接触した指示物体の接触部分の像に由来するものであるかどうかを判定するための画素値の基準値を算出する基準値算出手段と、上記基準値算出手段が算出した基準値以上の画素値を有する画素に由来する上記特徴領域を削除する削除手段と、上記削除手段によって削除されなかった特徴領域から、上記撮像画面に接触した指示物体の接触部分の像の位置を算出する位置算出手段とをさらに備えることが好ましい。   Further, the image analysis device includes a feature region extraction unit that extracts a feature region indicating a feature of the image of the pointing object from a captured image acquired by the acquisition unit, and an external light intensity calculated by the external light intensity calculation unit. A reference value calculating means for calculating a reference value of a pixel value for determining whether or not the characteristic region is derived from an image of a contact portion of the pointing object that has touched the imaging screen; and the reference value calculating means An image of a contact portion of the pointing object that has touched the imaging screen from the feature area that has not been deleted by the deletion means that deletes the feature area derived from a pixel having a pixel value equal to or greater than the reference value calculated by It is preferable to further comprise a position calculating means for calculating the position of.

上記の構成によれば、特徴領域抽出手段は、撮像画像から指示物体の像の特徴を示す特徴領域を抽出する。基準値算出手段は、外光強度算出手段が算出した外光強度に基づいて、特徴領域が撮像画面に接触した指示物体の接触部分の像に由来するものであるかどうかを判定するための画素値の基準値を算出する。そして、削除手段は、特徴領域抽出手段が抽出した特徴領域から上記基準値以上の画素値を有する画素に由来する特徴領域を削除し、位置算出手段は、削除手段によって削除されなかった特徴領域から、撮像画面に接触した指示物体の接触部分の像の位置を算出する。   According to the above configuration, the feature region extraction unit extracts a feature region indicating the feature of the image of the pointing object from the captured image. The reference value calculation means is a pixel for determining whether or not the feature region is derived from the image of the contact portion of the pointing object that has touched the imaging screen, based on the external light intensity calculated by the external light intensity calculation means Calculate the reference value. The deletion unit deletes a feature region derived from a pixel having a pixel value equal to or higher than the reference value from the feature region extracted by the feature region extraction unit, and the position calculation unit deletes the feature region that has not been deleted by the deletion unit. Then, the position of the image of the contact portion of the pointing object that has touched the imaging screen is calculated.

それゆえ、指示物体の認識に不要な、指示物体が撮像画面に対して接触していない場合の指示物体の像に由来する特徴領域を削除でき、指示物体の認識の精度を高めることができる。   Therefore, it is possible to delete a feature region that is unnecessary for recognition of the pointing object and is derived from the image of the pointing object when the pointing object is not in contact with the imaging screen, and the accuracy of recognition of the pointing object can be improved.

また、上記基準値算出手段は、所定の数式を用いて上記基準値を算出し、上記外光強度算出手段が算出した外光強度に応じて、複数種類の上記所定の数式を使い分けることが好ましい。   Further, it is preferable that the reference value calculation means calculates the reference value using a predetermined mathematical expression, and uses a plurality of types of the predetermined mathematical expressions according to the external light intensity calculated by the external light intensity calculation means. .

上記の構成によれば、外光強度の変化に応じて、その外光強度に適した基準値を算出することができる。例えば、基準値算出手段は、外光強度が第1の範囲にある場合に第1の数式を用いて上記基準値を算出し、外光強度が第2の範囲にある場合に第2の数式を用いて上記基準値を算出することができる。   According to said structure, according to the change of external light intensity, the reference value suitable for the external light intensity can be calculated. For example, the reference value calculation means calculates the reference value using the first mathematical expression when the external light intensity is in the first range, and the second mathematical expression when the external light intensity is in the second range. Can be used to calculate the reference value.

また、上記画像解析装置を動作させる画像解析プログラムであって、コンピュータを上記各手段として機能させるための画像解析プログラムおよび当該画像解析プログラムを記録したコンピュータ読み取り可能な記録媒体も本発明の技術的範囲に含まれる。   Further, an image analysis program for operating the image analysis apparatus, an image analysis program for causing a computer to function as each of the means, and a computer-readable recording medium on which the image analysis program is recorded are also included in the technical scope of the present invention. include.

本発明に係る撮像装置は、上記の課題を解決するために、複数の撮像センサを有する撮像画面を備え、当該撮像画面に対して接触している、または接触していない指示物体の撮像画像を上記撮像センサによって撮像する撮像装置であって、上記画像解析装置を備え、上記取得手段は、上記撮像センサによって撮像された撮像画像を取得することを特徴としている。   In order to solve the above-described problem, an imaging apparatus according to the present invention includes an imaging screen having a plurality of imaging sensors, and captures an image of a pointing object that is in contact with or not in contact with the imaging screen. An image pickup apparatus for picking up an image by the image pickup sensor, including the image analysis apparatus, wherein the acquisition unit acquires a picked-up image picked up by the image pickup sensor.

上記の構成により、複数の撮像センサによって撮像画像を取得することができ、取得した撮像画像から外光強度を従来より簡単に、かつ、より正確に算出することができる。   With the above configuration, a captured image can be acquired by a plurality of imaging sensors, and the external light intensity can be calculated from the acquired captured image more easily and more accurately than in the past.

また、上記撮像装置は、上記外光強度算出手段が算出した外光強度に基づいて上記撮像センサの感度を設定する感度設定手段をさらに備えることが好ましい。   The imaging apparatus preferably further includes sensitivity setting means for setting the sensitivity of the imaging sensor based on the external light intensity calculated by the external light intensity calculation means.

上記の構成により、適切な感度で撮像画像を取得することができ、指示物体の認識に適した撮像画像を取得することができる。   With the above configuration, a captured image can be acquired with appropriate sensitivity, and a captured image suitable for recognition of the pointing object can be acquired.

上記感度設定手段は、上記撮像センサの感度を段階的に設定し、上記外光強度が所定の基準値以下になった場合に、上記撮像センサの感度を一度に複数段階上昇させることが好ましい。   The sensitivity setting means preferably sets the sensitivity of the imaging sensor in a stepwise manner, and when the external light intensity becomes a predetermined reference value or lower, the sensitivity of the imaging sensor is preferably increased in multiple steps at a time.

上記の構成によれば、外光強度が所定の基準値以下になった場合に、撮像センサの感度が一度に複数段階上昇する。それゆえ、感度を少しずつ高めていくよりも、より迅速に適切な撮像を行うことができる。   According to the above configuration, when the external light intensity becomes equal to or lower than the predetermined reference value, the sensitivity of the image sensor increases at a plurality of stages at a time. Therefore, appropriate imaging can be performed more quickly than when the sensitivity is gradually increased.

上記感度設定手段は、上記外光強度算出手段が算出した外光強度が飽和しないように上記撮像センサの感度を設定することが好ましい。   It is preferable that the sensitivity setting unit sets the sensitivity of the imaging sensor so that the external light intensity calculated by the external light intensity calculation unit is not saturated.

外光強度が飽和した場合には、当該指示物体の像を認識する精度が著しく低下する。なお、外光強度が飽和するとは、外光強度が、撮像センサが定量的に検出できる光の強度の範囲を超えることを意味する。   When the external light intensity is saturated, the accuracy of recognizing the image of the pointing object is significantly reduced. Note that the saturation of external light intensity means that the external light intensity exceeds the range of light intensity that can be quantitatively detected by the imaging sensor.

上記の構成により、外光強度が飽和しない感度で撮像画像を取得することができ、指示物体の認識に適した撮像画像を取得することができる。   With the above configuration, a captured image can be acquired with a sensitivity that does not saturate the external light intensity, and a captured image suitable for recognition of the pointing object can be acquired.

上記感度設定手段は、上記撮像センサの感度が第1感度に設定されている状態で上記外光強度が第1基準値に達したときに上記感度を上記第1感度から当該第1感度よりも低い第2感度へ低下させ、上記撮像センサの感度が上記第2感度に設定されている状態で上記外光強度が第2基準値に低下したときに上記感度を上記第2感度から上記第1感度へ上昇させ、上記第2基準値は、上記第1基準値に対応する実際の外光強度を上記第2感度に設定されている撮像センサで検出した場合の外光強度よりも小さいことが好ましい。   The sensitivity setting means changes the sensitivity from the first sensitivity to the first sensitivity when the external light intensity reaches a first reference value in a state where the sensitivity of the imaging sensor is set to the first sensitivity. The sensitivity is lowered from the second sensitivity to the first sensitivity when the outside light intensity is lowered to the second reference value in a state where the sensitivity of the imaging sensor is set to the second sensitivity. The second reference value may be smaller than the external light intensity when the actual external light intensity corresponding to the first reference value is detected by the imaging sensor set to the second sensitivity. preferable.

上記の構成によれば、撮像センサの感度が第2感度に設定されている状態で撮像センサの感度を第1感度に上昇させる外光強度(外光強度算出手段によって算出される外光強度)の基準である第2基準値は、撮像センサの感度が第1感度に設定されている状態で撮像センサの感度を第2感度に低下させる外光強度(外光強度算出手段によって算出される外光強度)の基準である第1基準値に対応する実際の外光強度を第2感度に設定されている撮像センサで検出した場合の外光強度(外光強度算出手段によって算出される外光強度)よりも小さい。   According to the above configuration, external light intensity (external light intensity calculated by the external light intensity calculating means) that increases the sensitivity of the image sensor to the first sensitivity in a state where the sensitivity of the image sensor is set to the second sensitivity. The second reference value, which is a reference of the external light intensity, is an external light intensity (external light intensity calculated by the external light intensity calculation means) that reduces the sensitivity of the image sensor to the second sensitivity in a state where the sensitivity of the image sensor is set to the first sensitivity. External light intensity (external light calculated by the external light intensity calculating means) when the actual external light intensity corresponding to the first reference value that is the reference of the light intensity is detected by the imaging sensor set to the second sensitivity Less than (strength).

それゆえ、撮像センサの感度を第1感度から第2感度に低下させた場合に、外光強度算出手段によって算出される外光強度がすぐに第2基準値に達して、撮像センサの感度が第1感度へ再び切り替わる可能性が少なくなる。従って、外光強度が多少変化しただけで、撮像センサの感度が第1感度から第2感度へまたは第2感度から第1感度へ頻繁に切り替わることを防止することができる。   Therefore, when the sensitivity of the image sensor is decreased from the first sensitivity to the second sensitivity, the external light intensity calculated by the external light intensity calculation means immediately reaches the second reference value, and the sensitivity of the image sensor is reduced. The possibility of switching back to the first sensitivity is reduced. Accordingly, it is possible to prevent the sensitivity of the imaging sensor from frequently switching from the first sensitivity to the second sensitivity or from the second sensitivity to the first sensitivity, only by a slight change in the external light intensity.

以上のように、本発明に係る画像解析装置は、撮像画像を取得する取得手段と、上記取得手段が取得した撮像画像を解析することにより、撮像センサの一部に入射した指示物体の周囲の光の強度である外光強度を算出する外光強度算出手段とを備える構成である。   As described above, the image analysis apparatus according to the present invention includes an acquisition unit that acquires a captured image, and an analysis of the captured image that is acquired by the acquisition unit. It is a structure provided with the external light intensity | strength calculation means which calculates the external light intensity which is an intensity | strength of light.

本発明に係る画像方法は、撮像画像を取得する取得工程と、上記取得工程において取得された撮像画像を解析することにより、撮像センサの一部に入射した指示物体の周囲の光の強度である外光強度を算出する外光強度算出工程とを含む構成である。   The image method according to the present invention is an acquisition step of acquiring a captured image, and the intensity of light around the pointing object incident on a part of the imaging sensor by analyzing the captured image acquired in the acquisition step. And an external light intensity calculation step for calculating the external light intensity.

それゆえ、外光強度を簡単な構成で、より正確に算出することができるという効果を奏する。   Therefore, there is an effect that the external light intensity can be calculated more accurately with a simple configuration.

〔実施の形態1〕
本発明の実施の一形態について図1〜図16に基づいて説明すれば、以下のとおりである。ここでは、本発明の実施形態のひとつとして、タッチパネル上の任意の位置を指示するユーザの指またはタッチペン等の指示部材(指示物体と総称する)の画像を撮像し、その画像をもとに指示物体が指示した位置を検出するタッチ位置検出装置10について説明する。なお、タッチ位置検出装置を表示装置、撮像装置、入力装置または電子機器と表現することもできる。
[Embodiment 1]
An embodiment of the present invention will be described below with reference to FIGS. Here, as one of the embodiments of the present invention, an image of a pointing member (generally referred to as a pointing object) such as a user's finger or a touch pen that points to an arbitrary position on the touch panel is picked up, and an instruction is made based on the image. The touch position detection apparatus 10 that detects the position indicated by the object will be described. Note that the touch position detection device can also be expressed as a display device, an imaging device, an input device, or an electronic device.

(タッチ位置検出装置10の構成)
図1は、本実施形態のタッチ位置検出装置10の構成を示すブロック図である。図1に示すように、タッチ位置検出装置(画像解析装置、撮像装置)10は、タッチパネル部(撮像部)1、画像解析部(画像解析装置)9およびアプリケーション実行部15を備えている。
(Configuration of Touch Position Detection Device 10)
FIG. 1 is a block diagram illustrating a configuration of a touch position detection apparatus 10 according to the present embodiment. As illustrated in FIG. 1, the touch position detection device (image analysis device, imaging device) 10 includes a touch panel unit (imaging unit) 1, an image analysis unit (image analysis device) 9, and an application execution unit 15.

画像解析部9は、画像調整部2、外光強度算出部(外光強度算出手段)3、最適感度算出部(感度設定手段)4、タッチ・非タッチ間画素値算出部(基準値算出手段)5、認識不要情報削除部(画像処理手段)6、特徴量抽出部(特徴領域抽出手段)7およびタッチ位置検出部(位置算出手段)8を備えている。   The image analysis unit 9 includes an image adjustment unit 2, an external light intensity calculation unit (external light intensity calculation unit) 3, an optimum sensitivity calculation unit (sensitivity setting unit) 4, and a touch / non-touch pixel value calculation unit (reference value calculation unit). ) 5, a recognition unnecessary information deletion unit (image processing unit) 6, a feature amount extraction unit (feature region extraction unit) 7, and a touch position detection unit (position calculation unit) 8.

タッチパネル部1は、撮像素子としての光センサ(撮像センサ)12を内蔵した光センサ内蔵LCD11、AD(analog/digital)コンバータ13および感度調整部14を備えている。   The touch panel unit 1 includes an optical sensor built-in LCD 11 including an optical sensor (imaging sensor) 12 as an imaging element, an AD (analog / digital) converter 13, and a sensitivity adjustment unit 14.

光センサ内蔵LCD(液晶パネル/ディスプレイ)11は、光センサ12を内蔵しているため、表示だけではなく画像の撮像が可能である。それゆえ、光センサ内蔵LCD11は、タッチパネルとしての光センサ内蔵LCD11の表面をタッチする指示物体の像を含む画像(以下、撮像画像(またはセンサ画像)と称する)を撮像する撮像画面として機能する。   Since the optical sensor built-in LCD (liquid crystal panel / display) 11 includes the optical sensor 12, not only display but also imaging can be performed. Therefore, the optical sensor built-in LCD 11 functions as an imaging screen that captures an image (hereinafter, referred to as a captured image (or sensor image)) including an image of the pointing object that touches the surface of the optical sensor built-in LCD 11 as a touch panel.

光センサ12は、光センサ内蔵LCD11の各画素に対して1つずつ設けられている。換言すれば、光センサ12は、光センサ内蔵LCD11の内部において、マトリクス状に配置されている。ただし、光センサ12の配置様式および個数は、上述のものに限定されず、適宜変更してもよい。   One photosensor 12 is provided for each pixel of the LCD 11 with a built-in photosensor. In other words, the photosensors 12 are arranged in a matrix within the photosensor built-in LCD 11. However, the arrangement pattern and the number of the optical sensors 12 are not limited to those described above, and may be changed as appropriate.

光センサ12で取得した信号は、ADコンバータ13によりデジタル化された後、画像調整部2へ出力される。   The signal acquired by the optical sensor 12 is digitized by the AD converter 13 and then output to the image adjustment unit 2.

画像調整部2は、タッチパネル部1で撮像された撮像画像のゲインおよびオフセットを調整するキャリブレーション処理などを行い、調整した撮像画像を外光強度算出部3および認識不要情報削除部6へ出力する。これ以降の説明では、8bit、256階調の精度でグレースケールの画像が出力されたものとして説明する。なお、画像調整部2はタッチパネル部1から撮像画像を取得する取得手段としても機能している。また、画像調整部2は、取得した撮像画像または調整した撮像画像を記憶部40に格納してもよい。   The image adjustment unit 2 performs a calibration process for adjusting the gain and offset of the captured image captured by the touch panel unit 1 and outputs the adjusted captured image to the external light intensity calculation unit 3 and the recognition unnecessary information deletion unit 6. . In the following description, it is assumed that a grayscale image is output with an accuracy of 8 bits and 256 gradations. The image adjustment unit 2 also functions as an acquisition unit that acquires a captured image from the touch panel unit 1. The image adjustment unit 2 may store the acquired captured image or the adjusted captured image in the storage unit 40.

外光強度算出部3は、画像調整部2から出力された撮像画像から外光強度を算出し、算出した外光強度を最適感度算出部4およびタッチ・非タッチ間画素値算出部5へ出力する。外光強度算出部3における処理の詳細については後述する。なお、外光強度とは、光センサ12に入射した指示物体(撮像対象)の周囲の光の強度である。外光強度算出部3は、外光強度を反映した撮像画像中の画素の画素値(輝度値)を外光強度として算出する。   The external light intensity calculation unit 3 calculates the external light intensity from the captured image output from the image adjustment unit 2, and outputs the calculated external light intensity to the optimum sensitivity calculation unit 4 and the touch / non-touch pixel value calculation unit 5. To do. Details of the processing in the external light intensity calculation unit 3 will be described later. The external light intensity is the intensity of light around the pointing object (imaging target) incident on the optical sensor 12. The external light intensity calculation unit 3 calculates the pixel value (luminance value) of the pixel in the captured image reflecting the external light intensity as the external light intensity.

最適感度算出部4は、外光強度算出部3で算出された外光強度に応じて、指示物体を認識するための最適な光センサ12の感度を算出し、感度調整部14へ出力する。最適感度算出部4における処理の詳細については後述する。   The optimum sensitivity calculation unit 4 calculates the optimum sensitivity of the optical sensor 12 for recognizing the pointing object according to the outside light intensity calculated by the outside light intensity calculation unit 3, and outputs it to the sensitivity adjustment unit 14. Details of processing in the optimum sensitivity calculation unit 4 will be described later.

感度調整部14は、各光センサ12の感度を最適感度算出部4から出力された最適感度に調整する。   The sensitivity adjustment unit 14 adjusts the sensitivity of each optical sensor 12 to the optimum sensitivity output from the optimum sensitivity calculation unit 4.

タッチ・非タッチ間画素値算出部5は、認識不要情報削除部6において、指示物体の認識に不要な撮像画像中の情報を削除するための画素値の基準値(タッチ・非タッチ間画素値)を算出する。より具体的には、タッチ・非タッチ間画素値算出部5は、外光強度算出部3が算出した外光強度から、指示物体が光センサ内蔵LCD11に対して接触していない場合の当該指示物体の像を撮像画像から削除するための画素の基準値であるタッチ・非タッチ間画素値を算出する。タッチ・非タッチ間画素値算出部5における処理の詳細については後述する。   The pixel value calculation unit 5 between touch and non-touch is a reference value (pixel value between touch and non-touch) for deleting information in the captured image unnecessary for recognition of the pointing object in the recognition-unnecessary information deletion unit 6. ) Is calculated. More specifically, the touch / non-touch pixel value calculation unit 5 uses the external light intensity calculated by the external light intensity calculation unit 3 to indicate the instruction when the pointing object is not in contact with the optical sensor built-in LCD 11. A pixel value between touch and non-touch, which is a pixel reference value for deleting the object image from the captured image, is calculated. Details of processing in the pixel value calculation unit 5 between touch and non-touch will be described later.

認識不要情報削除部6は、タッチ・非タッチ間画素値算出部5が算出したタッチ・非タッチ間画素値を取得し、撮像画像に含まれる画素のうち、タッチ・非タッチ間画素値以上の画素値を有する画素の画素値をタッチ・非タッチ間画素値に置き換えることにより、指示物体の認識に不要な撮像画像中の情報を削除する。   The recognition-unnecessary information deletion unit 6 acquires the touch / non-touch pixel value calculated by the touch / non-touch pixel value calculation unit 5, and out of the pixels included in the captured image, the pixel value between the touch / non-touch pixel values is greater than or equal to. By replacing the pixel value of the pixel having the pixel value with the pixel value between touch and non-touch, information in the captured image that is unnecessary for the recognition of the pointing object is deleted.

特徴量抽出部7は、認識不要情報削除部6によって処理された撮像画像から、ソーベルフィルタなどのエッジ検出処理により指示物体の特徴を示す特徴量(エッジ特徴量)を撮像画像の画素ごとに抽出する。換言すれば、特徴量抽出部7は、指示物体の像(形状)の特徴を示す特徴領域を撮像画像から抽出する。特徴量抽出部7は、指示物体の特徴量を、例えば、注目する画素の周囲8方向における画素値の勾配(グラデーション)方向を示す8方向のベクトルを含む特徴量として抽出する。特徴量抽出部7における特徴量抽出処理は、指示物体の形状(特にエッジ)を検出できるものであればよく、特に限定されない。特徴量抽出部7は、抽出した特徴量と、当該特徴量が抽出された画素(特徴領域)とを互いに対応付けてタッチ位置検出部8へ出力する。   The feature amount extraction unit 7 obtains, for each pixel of the captured image, a feature amount (edge feature amount) indicating the feature of the pointing object by edge detection processing such as a Sobel filter from the captured image processed by the recognition unnecessary information deletion unit 6. Extract. In other words, the feature amount extraction unit 7 extracts a feature region indicating the feature of the image (shape) of the pointing object from the captured image. The feature amount extraction unit 7 extracts the feature amount of the pointing object, for example, as a feature amount including an 8-direction vector indicating the gradient (gradation) direction of the pixel value in the eight directions around the pixel of interest. The feature amount extraction processing in the feature amount extraction unit 7 is not particularly limited as long as it can detect the shape (particularly the edge) of the pointing object. The feature amount extraction unit 7 associates the extracted feature amount with the pixel (feature region) from which the feature amount has been extracted, and outputs it to the touch position detection unit 8.

タッチ位置検出部8は、特徴量抽出部7が抽出した特徴量を示す特徴領域に対して、パターンマッチすることによりタッチ位置を特定する。このパターンマッチの手法は、指示物体の像の位置を適切に特定できるものであれば、どのようなものであってもよい。タッチ位置検出部8は、特定したタッチ位置を示す座標をアプリケーション実行部15へ出力する。   The touch position detection unit 8 specifies the touch position by pattern matching with the feature region indicating the feature amount extracted by the feature amount extraction unit 7. Any pattern matching method may be used as long as the position of the image of the pointing object can be appropriately specified. The touch position detection unit 8 outputs coordinates indicating the specified touch position to the application execution unit 15.

アプリケーション実行部15は、タッチ位置検出部8が出力した座標を用いて、当該座標に対応したアプリケーションを実行するか、または、特定のアプリケーションにおいて、当該座標に対応した処理を行う。アプリケーション実行部15において実行されるアプリケーションはどのようなものであってもよい。   The application execution unit 15 executes an application corresponding to the coordinates using the coordinates output by the touch position detection unit 8, or performs processing corresponding to the coordinates in a specific application. Any application may be executed in the application execution unit 15.

(外光強度算出部3における処理の詳細)
次に、外光強度算出部3における処理の意義および内容について詳細に説明する。
(Details of processing in the external light intensity calculation unit 3)
Next, the significance and contents of the processing in the external light intensity calculation unit 3 will be described in detail.

まず、光センサ内蔵LCD11の光センサ12が撮像した撮像画像から外光強度を算出する理由について説明する。例えば光センサ内蔵LCD11の外部に照度センサを装備して外光強度を算出することも可能であるが、撮像画像を取得する光センサ12と照度センサとでは光の波長などの違いによって反応が異なるので、照度センサで算出した外光強度と光センサ12で算出した外光強度とでは大きく異なる可能性がある。   First, the reason for calculating the external light intensity from the captured image captured by the optical sensor 12 of the optical sensor built-in LCD 11 will be described. For example, an illuminance sensor can be provided outside the optical sensor built-in LCD 11 to calculate the external light intensity. However, the reaction differs between the optical sensor 12 that obtains a captured image and the illuminance sensor depending on the wavelength of light and the like. Therefore, there is a possibility that the external light intensity calculated by the illuminance sensor and the external light intensity calculated by the optical sensor 12 may be greatly different.

例えば、室内光で照度センサが1000Luxを示す光と、太陽光で照度センサが1000Luxを示す光とでは、照度センサにとっては同じ1000Luxである。しかし、照度センサにとっては同じ1000Luxの光であっても、光に含まれる波長領域が大きく異なるので、光センサ12で外光強度を算出した場合とは異なる結果になる。そのため、光センサ12に入射する光の強度を算出するためには、光センサ12で取得した画像から算出することが好ましい。   For example, the light for which the illuminance sensor indicates 1000 Lux for indoor light and the light for which the illuminance sensor indicates 1000 Lux for sunlight are the same 1000 Lux for the illuminance sensor. However, for the illuminance sensor, even if the light has the same 1000 Lux, the wavelength region included in the light is greatly different, and therefore the result is different from the case where the light intensity is calculated by the optical sensor 12. Therefore, in order to calculate the intensity of light incident on the optical sensor 12, it is preferable to calculate from the image acquired by the optical sensor 12.

また、外部に照度センサではなく、光センサ12と同じ特性を持つセンサを装備することも可能であるが、光センサ12と外部のセンサとで光の当たり具合など微妙に場所や環境が変化するので、外光強度を算出するためには、光センサ12で外光強度を算出することが最も好ましい。   In addition, it is possible to equip the outside with a sensor having the same characteristics as the light sensor 12 instead of the illuminance sensor, but the place and environment such as the light hit condition slightly change between the light sensor 12 and the external sensor. Therefore, in order to calculate the external light intensity, it is most preferable to calculate the external light intensity with the optical sensor 12.

それゆえ、外光強度算出部3は、光センサ12によって撮像された撮像画像(より正確には、画像調整部2から出力された撮像画像)から外光強度を算出する。   Therefore, the external light intensity calculation unit 3 calculates the external light intensity from the captured image captured by the optical sensor 12 (more precisely, the captured image output from the image adjustment unit 2).

図2は、外光強度算出部3の処理の内容を説明するための図であり、(a)は外光強度の算出に用いる画素を示す図であり、(b)は外光強度算出部3が作成するヒストグラムと外光強度との関係を示す図である。   2A and 2B are diagrams for explaining the processing contents of the external light intensity calculation unit 3. FIG. 2A is a diagram illustrating pixels used for calculating the external light intensity, and FIG. 2B is an external light intensity calculation unit. FIG. 3 is a diagram illustrating a relationship between a histogram created by No. 3 and external light intensity.

外光強度算出部3は、画像調整部2から出力された撮像画像に含まれる複数の画素から少なくとも一部の画素を選択し、選択した画素を、その画素値が高い順に並べた場合の所定の順位にある画素の画素値を外光強度と見なす。   The external light intensity calculation unit 3 selects at least some of the plurality of pixels included in the captured image output from the image adjustment unit 2 and sets the selected pixels in order from the highest pixel value. The pixel values of the pixels in the order of are considered as the external light intensity.

つまり、外光強度算出部3は、撮像画像に含まれる複数の画素について、大きい順に並べた画素値と当該画素値を有する画素の個数との関係を示すヒストグラムを作成する。このヒストグラムは、撮像画像の全画素の画素値から作成するのが好ましい。しかし、コストや処理速度の観点から図2(a)に示すように、撮像画像を構成する全ての画素(換言すれば、全ての光センサ12からの出力値)から求めるのではなく、撮像画像の画素値から、ある程度間隔をあけて等間隔に選択された画素(図2(a)にて符号25を付した黒点で示される画素)(サンプル点)を用いてもよい。符号26を付した画素は、サンプリングされない画素である。   That is, the external light intensity calculation unit 3 creates a histogram indicating the relationship between the pixel values arranged in descending order and the number of pixels having the pixel value for a plurality of pixels included in the captured image. This histogram is preferably created from the pixel values of all the pixels of the captured image. However, from the viewpoint of cost and processing speed, as shown in FIG. 2A, the captured image is not obtained from all the pixels constituting the captured image (in other words, output values from all the optical sensors 12). Pixels selected at regular intervals (pixels indicated by black dots denoted by reference numeral 25 in FIG. 2A) (sample points) may be used with a certain interval from the pixel values. Pixels denoted by reference numeral 26 are pixels that are not sampled.

外光の強さが異なる環境でタッチパネル部1上に指を置いた状態で撮像画像を取得した場合、図2(b)に示すように撮像画像の明るさが異なるので、作成されるヒストグラムも異なり、外光が強い環境で取得した画像ほどヒストグラムの分布する領域が画素値の高い部分にひっぱられるような形になる。なお、図2(b)において、Aはセンサ画像(3)から求めた外光強度であり、Bはセンサ画像(2)から求めた外光強度であり、Cはセンサ画像(1)から求めた外光強度である。   When the captured image is acquired with the finger placed on the touch panel unit 1 in an environment with different external light intensity, the brightness of the captured image is different as shown in FIG. In contrast, an image acquired in an environment with strong external light has a shape in which a region in which a histogram is distributed is pulled by a portion having a higher pixel value. In FIG. 2B, A is the external light intensity obtained from the sensor image (3), B is the external light intensity obtained from the sensor image (2), and C is obtained from the sensor image (1). Outside light intensity.

次に、求めたヒストグラムから明るさを算出する処理では、ヒストグラムの画素値が高いほうから順にカウントしていき、そのカウント数がヒストグラムを作成したサンプル点数のある割合に達した時の画素値を外光強度の値として採用する。   Next, in the process of calculating brightness from the obtained histogram, the pixel value of the histogram is counted in order from the highest pixel value, and the pixel value when the count reaches a certain percentage of the number of sample points that created the histogram is calculated. Adopted as the value of external light intensity.

このようにヒストグラムの上位の数%の部分の画素値を外光強度として算出する理由について説明する。図3は、外光強度算出部3における処理の意義を説明するための図である。例えば図3に示すように、同じ外光強度の条件下でも指や手の置き方によって取得される画像に変化が生じる。図3のセンサ画像(1)はパネルの左からパネルの左端のほうに指を置いた場合の撮像画像であり、図3のセンサ画像(2)はパネルの左からパネルの右端のほうに指を置いた場合の撮像画像である。   The reason for calculating the pixel value of the upper few percent of the histogram as the external light intensity will be described. FIG. 3 is a diagram for explaining the significance of processing in the external light intensity calculation unit 3. For example, as shown in FIG. 3, a change occurs in an image acquired depending on how to place a finger or a hand even under the same external light intensity condition. The sensor image (1) in FIG. 3 is a captured image when a finger is placed from the left of the panel toward the left end of the panel, and the sensor image (2) in FIG. 3 is a finger from the left of the panel toward the right end of the panel. It is a picked-up image at the time of putting.

どちらの場合も外光の強度は同じであるが、パネル上の指を置く場所によって画像が異なるので、作成したヒストグラムも図3に示すように異なったものとなる。この場合に正確に外光強度を算出しようとした場合、例えばヒストグラムの上位5%の部分を外光強度とすれば図3のセンサ画像(1)と図3のセンサ画像(2)において差はほとんど生じないが、上位50%の部分を外光強度として算出した場合は図3のセンサ画像(1)と図3のセンサ画像(2)との間で算出した外光強度の値に大きな差が生じることになる。   In both cases, the intensity of the external light is the same, but since the image differs depending on where the finger is placed on the panel, the created histograms are different as shown in FIG. In this case, if the external light intensity is calculated accurately, for example, if the upper 5% portion of the histogram is the external light intensity, the difference between the sensor image (1) in FIG. 3 and the sensor image (2) in FIG. Although it hardly occurs, when the upper 50% portion is calculated as the external light intensity, there is a large difference in the external light intensity value calculated between the sensor image (1) in FIG. 3 and the sensor image (2) in FIG. Will occur.

以上の理由により、ヒストグラムから外光強度を算出する場合は、上位数%から外光強度を算出することで、指や手を置く場所による算出値のゆれを極力減らすことが可能になる。   For the above reasons, when calculating the external light intensity from the histogram, it is possible to reduce the fluctuation of the calculated value due to the place where the finger or the hand is placed as much as possible by calculating the external light intensity from the upper few%.

しかし、例えば上位0.1%など極端にヒストグラムの上位の値から算出すると、画素値の欠陥などによる精度の低下を招くことになるので、一桁%程度から外光強度を算出するのが好ましい。すなわち、撮像画像から選択された画素を、その画素値が高い順に並べた場合の、外光強度として採用される画素値を有する画素の順位は、選択された画素の総数の10%未満の数に相当することが好ましい。   However, for example, calculation from an extremely high value of the histogram such as the upper 0.1% causes a decrease in accuracy due to a defect in the pixel value, etc., so it is preferable to calculate the external light intensity from about one digit%. . That is, when the pixels selected from the captured image are arranged in descending order of the pixel values, the rank of the pixels having the pixel value adopted as the external light intensity is a number that is less than 10% of the total number of the selected pixels. It is preferable to correspond to these.

図4は、外光強度算出部3における処理の変更例を説明するための図である。   FIG. 4 is a diagram for explaining a modification example of processing in the external light intensity calculation unit 3.

外光強度を求める方式はヒストグラムに限定されるものではなく、例えば図4に示すように、撮像画像内のサンプル点をとる領域(符号31〜35を付している)を限定し、限定された各領域31〜35内の画素(サンプル点)の画素値の平均値を求めて、平均値が一番高い値を外光強度として採用するようにしてもよい。なお、符号36で示す白抜きの画素は、非サンプル点である。   The method of obtaining the external light intensity is not limited to the histogram, but is limited to a region (marked with reference numerals 31 to 35) where sample points are taken in the captured image, for example, as shown in FIG. Alternatively, the average value of the pixel values of the pixels (sample points) in each of the regions 31 to 35 may be obtained, and the value having the highest average value may be adopted as the external light intensity. Note that white pixels indicated by reference numeral 36 are non-sample points.

(タッチ・非タッチ間画素値算出部5における処理の詳細)
タッチ・非タッチ間画素値算出部5の説明をする前に、光センサ12で取得したタッチ、非タッチの撮像画像がどのような画像になるのか、図5を参照しつつ説明する。図5の(a)、(c)、(e)および(g)は、指示物体を撮像するときの周囲の明るさを示す図であり、(b)、(d)、(f)および(h)は、撮像画像の一例を示す図である。
(Details of processing in the touch / non-touch pixel value calculation unit 5)
Before explaining the pixel value calculation unit 5 between touch and non-touch, what kind of image the captured image of touch and non-touch acquired by the optical sensor 12 will be described with reference to FIG. (A), (c), (e), and (g) of FIG. 5 are diagrams showing ambient brightness when the pointing object is imaged. (B), (d), (f), and (f) h) is a diagram illustrating an example of a captured image.

従来の光センサパネルでは、指でパネルをタッチした部分はバックライトの光が指腹に反射してセンサに反射光が入射される。図5の(b)に示すように、指腹の反射光よりも外光が弱い場合、指腹は背景より明るく白い丸となり、図5の(d)に示すように、指腹の反射光より外光が強い場合、指腹は背景より暗く黒い丸となる。ペンの場合も同様である。   In a conventional optical sensor panel, light from a backlight is reflected on the finger pad at a portion where the panel is touched with a finger, and reflected light is incident on the sensor. As shown in FIG. 5B, when the external light is weaker than the reflected light of the finger pad, the finger pad becomes a brighter white circle than the background, and the reflected light of the finger pad is shown in FIG. When the outside light is stronger, the finger pad becomes darker and darker than the background. The same applies to a pen.

それとは別の方式として、タッチ位置検出装置10の構成を変えることにより、常に背景画素値が、指腹の像を形成する画素の画素値(以下、指腹下画素値と称する)よりも明るい状況を作りだすことができる。図6は、タッチパネル部1の変更例を示す断面図である。図6に示すように、光センサ内蔵LCD11の表面に透明基板16と弾性フィルム17とを設け、その反対側にバックライト19を設けてもよい。   As another method, by changing the configuration of the touch position detection device 10, the background pixel value is always brighter than the pixel value of the pixel forming the finger pad image (hereinafter referred to as the finger pad pixel value). You can create a situation. FIG. 6 is a cross-sectional view showing a modified example of the touch panel unit 1. As shown in FIG. 6, a transparent substrate 16 and an elastic film 17 may be provided on the surface of the LCD 11 with a built-in optical sensor, and a backlight 19 may be provided on the opposite side.

弾性フィルム17には、突起部17aが形成されているため、透明基板16と弾性フィルム17との間に空気層18が形成される。この空気層18により、透明基板16の表面に圧力がかかっていないときには、バックライト19からの光の反射がおこる。一方で圧力がかかっているときは空気層18での反射がなくなるために、反射率が低くなる。この方法により常に指でタッチした部分の画素値(指腹下画素値)を背景画素値よりも暗くすることができる。   Since the elastic film 17 has the protrusions 17 a, an air layer 18 is formed between the transparent substrate 16 and the elastic film 17. The air layer 18 reflects light from the backlight 19 when no pressure is applied to the surface of the transparent substrate 16. On the other hand, when pressure is applied, the reflection at the air layer 18 is lost, so the reflectance is low. With this method, the pixel value (the pixel value under the finger pad) of the part always touched with the finger can be made darker than the background pixel value.

この弾性フィルム17を設けた時の撮像画像の例を図7に示す。弾性フィルム17の影響により、周囲が真っ暗な状態でも、背景部分より指で押した部分が暗くなるので、常に指で押した部分が暗くなる状態を維持できる。外光が明るくなったときも同様に押した部分が常に暗くなる。ペンの場合も同様である。   An example of a captured image when the elastic film 17 is provided is shown in FIG. Due to the influence of the elastic film 17, even when the surroundings are in a completely dark state, the portion pressed with the finger becomes darker than the background portion, so that the portion pressed with the finger can always be kept dark. Similarly, when the outside light becomes brighter, the pressed part is always darker. The same applies to a pen.

以下の説明では、弾性フィルム17を有するタッチパネル部1において、背景画素値よりも指腹下画素値が小さくなる場合について説明する。   In the following description, a case in which the pixel value under the finger pad is smaller than the background pixel value in the touch panel unit 1 having the elastic film 17 will be described.

図8に光センサ12で取得したタッチ、非タッチの撮像画像がどのような画像になるのかを示す。指などが何も置かれていない状態で外光が直接光センサ12に入った場合、図8の条件(1)のように指の像が含まれない画像41(背景のみの画像)が得られる。図8の条件(2)のように光センサ内蔵LCD11の上に指を近づけているが、タッチしていない場合は、指の影44が薄く映り込んだような画像42になる。図8の条件(3)のように指を完全に光センサ内蔵LCD11に押し付けた状態では、画像42よりも影45の部分が濃くなった画像43が取得される。   FIG. 8 shows what the touched and non-touch captured images acquired by the optical sensor 12 are. When external light directly enters the optical sensor 12 with no finger or the like placed thereon, an image 41 (background only image) that does not include a finger image is obtained as in condition (1) in FIG. It is done. As shown in condition (2) of FIG. 8, the finger is brought close to the optical sensor built-in LCD 11, but when not touched, the image 42 is like a shadow 44 of the finger being reflected lightly. In a state where the finger is completely pressed against the optical sensor built-in LCD 11 as in condition (3) in FIG. 8, an image 43 in which the shadow 45 portion is darker than the image 42 is acquired.

次に、図8の画像41の画素値(外光強度算出部3で求めた外光強度と等価)と、図8の画像42における非タッチ時の指腹下画素値と、図8の画像43におけるタッチ時の指腹下画素値との関係を図9に示す。図9(a)に示すように、背景画素の画素値(符号51で示す)、非タッチ時の指腹下画素値(符号52で示す)およびタッチ時の指腹下画素値(符号53で示す)は、外光強度が強くなる(明るくなる)につれて高くなっていく。その時の撮像画像をそれぞれ図9(b)に示す。   Next, the pixel value of the image 41 in FIG. 8 (equivalent to the external light intensity obtained by the external light intensity calculation unit 3), the pixel value under the finger pad when not touching in the image 42 in FIG. 8, and the image in FIG. FIG. 9 shows the relationship between the pixel value under the finger pad at the time of touch at 43. As shown in FIG. 9 (a), the pixel value of the background pixel (indicated by reference numeral 51), the lower fingertip pixel value at non-touch (indicated by reference numeral 52), and the lower fingertip pixel value at the time of touching (indicated by reference numeral 53). (Shown) increases as the external light intensity increases (becomes brighter). The captured images at that time are shown in FIG.

背景画素の画素値は、非タッチ時の指腹下画素値よりも常に高く、非タッチ時の指腹下画素値は、タッチ時の指腹下画素値よりも常に高くなるという関係が成り立つので、非タッチ時の指腹下画素値とタッチ時の指腹下画素値との間には常に画素値差のギャップがあることになる。   Since the pixel value of the background pixel is always higher than the pixel value under the finger pad when not touching, and the pixel value under the finger pad when not touching is always higher than the pixel value under the finger pad when touching. There is always a gap in pixel value difference between the pixel value under the finger pad when not touching and the pixel value under the finger pad when touching.

この関係が成り立つのであれば、図10に示すように、非タッチ時の指腹下画素値(符号52で示す)とタッチ時の指腹下部分の画素値(符号53で示す)との間に閾値(符号54で示す)を設定することができれば、閾値以上の画素値は認識に不必要な情報として削除することができ、認識精度を向上させることができる。   If this relationship holds, as shown in FIG. 10, the pixel value under the finger pad when not touched (indicated by reference numeral 52) and the pixel value under the finger pad when touched (indicated by reference numeral 53). If a threshold value (indicated by reference numeral 54) can be set for the pixel value, pixel values equal to or greater than the threshold value can be deleted as information unnecessary for recognition, and recognition accuracy can be improved.

そこで、タッチ・非タッチ間画素値算出部5では、外光強度の変化に応じてこの非タッチ時の指腹下画素値とタッチ時の指腹下画素値との間の画素値であるタッチ・非タッチ間画素値を動的に算出する。   Therefore, the touch / non-touch pixel value calculation unit 5 is a touch that is a pixel value between the fingertip lower pixel value at the time of non-touch and the finger lower pixel value at the time of touch according to a change in external light intensity. -Calculate the non-touch pixel value dynamically.

しかし、オンライン処理時(実際にユーザが光センサ内蔵LCD11をタッチする時)には、タッチ時の指腹下画素値および非タッチ時の指腹下画素値を得ることは不可能であるので、現場で得ることができる外光強度とタッチ・非タッチ間画素値との関係を示す式を予め設定しておき、この式に外光強度を代入することによりタッチ・非タッチ間画素値を算出する。   However, at the time of online processing (when the user actually touches the LCD 11 with a built-in optical sensor), it is impossible to obtain the finger pad pixel value at the time of touch and the finger pad pixel value at the time of non-touch. Preset a formula that indicates the relationship between the external light intensity that can be obtained in the field and the pixel value between touch and non-touch, and calculate the pixel value between touch and non-touch by substituting the external light intensity into this formula. To do.

この式は下記(1)式に示すものであり、この式に外光強度算出部3で算出した外光強度(A)を代入することによりタッチ・非タッチ間画素値(T)を算出することができる。   This formula is shown in the following formula (1), and the pixel value (T) between touch and non-touch is calculated by substituting the external light intensity (A) calculated by the external light intensity calculation unit 3 into this formula. be able to.

T=AX ・・・(1)
上記(1)式においてXは、予め求められている定数である。このXを求めるために、まず下記(2)式を満たすNの値を設定する。
T = AX (1)
In the above equation (1), X is a constant determined in advance. In order to obtain this X, first, a value of N satisfying the following equation (2) is set.

T=(B+C)/N ・・・(2)
上記(2)式において、Bは非タッチ時の指腹下画素値であり、Cはタッチ時の指腹下画素値である。Nは、TがBとCとの間になるような任意の数値である。
T = (B + C) / N (2)
In the above equation (2), B is the pixel value under the finger pad when not touching, and C is the pixel value under the finger pad when touching. N is an arbitrary numerical value such that T is between B and C.

そして、上記(2)式をもとに、下記(3)を満たすXを算出する。   Then, X satisfying the following (3) is calculated based on the above equation (2).

T=AX=(B+C)/N ・・・(3)
オンライン処理時には、タッチ・非タッチ間画素値算出部5は、フレーム毎に外光強度算出部3が求めたAを上記(1)式に代入することにより、Tを算出する。
T = AX = (B + C) / N (3)
During online processing, the pixel value calculation unit 5 between touch and non-touch calculates T by substituting A obtained by the external light intensity calculation unit 3 for each frame into the equation (1).

なお、上記(1)式は、タッチ・非タッチ間画素値算出部5が利用可能な記憶部(例えば、記憶部40に格納されていればよい。   In addition, the said (1) Formula should just be stored in the memory | storage part (For example, the memory | storage part 40) which can use the pixel value calculation part 5 between touch and non-touch.

図11(a)および(b)は、環境照度の変化に対応した、タッチ時および非タッチ時の指腹下画素値の変化の別の例をそれぞれ示すグラフである。   FIGS. 11A and 11B are graphs respectively showing other examples of changes in the pixel values under the finger pad when touching and when not touching, corresponding to changes in environmental illuminance.

タッチ・非タッチ間画素値を求める際に、タッチ、非タッチ画素値の特性が図11の(a)および(b)に示すように、分岐点を境に変化する場合は、分岐点(外光強度がある画素値に達した点)を境に、タッチ・非タッチ間画素値を算出する式を変更するようにしてもよい。   When obtaining the pixel value between touch and non-touch, when the characteristics of the touch and non-touch pixel values change at the branch point as shown in FIGS. 11A and 11B, the branch point (outside The formula for calculating the pixel value between touch and non-touch may be changed at the point where the light intensity reaches a certain pixel value).

すなわち、記憶部40にタッチ・非タッチ間画素値を求めるための2種類の異なる数式を格納しておき、タッチ・非タッチ間画素値算出部5は、外光強度算出部3が算出した外光強度が所定の値に達する前後で2種類の異なる数式を使い分けてもよい。換言すれば、タッチ・非タッチ間画素値算出部5は、外光強度算出部3が算出した外光強度に応じて、タッチ・非タッチ間画素値を求めるための複数種類の数式を使い分けてもよい。   That is, two different mathematical formulas for obtaining the pixel value between touch and non-touch are stored in the storage unit 40, and the pixel value calculation unit 5 between touch and non-touch is an external value calculated by the external light intensity calculation unit 3. Two different mathematical expressions may be used before and after the light intensity reaches a predetermined value. In other words, the touch / non-touch pixel value calculation unit 5 uses a plurality of types of mathematical formulas for obtaining the touch / non-touch pixel value according to the external light intensity calculated by the external light intensity calculation unit 3. Also good.

上記2種類の異なる数式とは、例えば、上記(1)式において定数Xの値が互いに異なる数式である。   The two different types of mathematical formulas are, for example, mathematical formulas having different values of the constant X in the formula (1).

(認識不要情報削除部6における処理の詳細)
このようにして求めたタッチ・非タッチ間画素値は、認識不要情報削除部6に出力される。認識不要情報削除部6では、タッチ・非タッチ間画素値算出部5で求めたタッチ・非タッチ間画素値以上の画素値を有する撮像画像の画素の画素値をタッチ・非タッチ間画素値に置き換えることにより、指示物体の認識に不要な情報を削除する。
(Details of processing in the recognition unnecessary information deletion unit 6)
The pixel value between touch and non-touch determined in this way is output to the recognition unnecessary information deletion unit 6. The recognition-unnecessary information deleting unit 6 converts the pixel value of the captured image pixel having a pixel value equal to or larger than the touch / non-touch pixel value obtained by the touch / non-touch pixel value calculation unit 5 to the touch / non-touch pixel value. By replacing, information unnecessary for recognition of the pointing object is deleted.

図12は、認識不要情報削除部6における処理を説明するための図である。同図の最下段には、背景画素値と指腹下画素値との関係が示されている。   FIG. 12 is a diagram for explaining processing in the recognition unnecessary information deleting unit 6. At the bottom of the figure, the relationship between the background pixel value and the finger pad pixel value is shown.

すなわち、タッチ・非タッチ間画素値よりも高い画素値を有する画素は、光センサ内蔵LCD11にタッチした指示物体の像の形成に関与していないと考えられるため、図12に示すように、タッチ・非タッチ間画素値以上の画素値を有する画素の画素値をタッチ・非タッチ間画素値に置き換えることにより、指示物体の背景に存在している不要な像を削除することができる。   That is, since a pixel having a pixel value higher than the pixel value between touch and non-touch is considered not to be involved in the formation of the image of the pointing object touching the photosensor built-in LCD 11, as shown in FIG. By replacing the pixel value of a pixel having a pixel value equal to or greater than the non-touch pixel value with the touch / non-touch pixel value, an unnecessary image existing in the background of the pointing object can be deleted.

(最適感度算出部4における処理の詳細)
図13は、外光強度が飽和した場合の問題点を説明するための図である。
(Details of processing in the optimum sensitivity calculation unit 4)
FIG. 13 is a diagram for explaining a problem when the external light intensity is saturated.

上記の処理をフレームごとに行うことで、タッチ位置を検出することができる。しかし、図13(a)に示すように外光強度が大きく上昇して、算出した外光強度が飽和画素値に達した場合、それ以上外光が強くなってもどれくらい外光が強くなったのかを算出することができなくなる。   The touch position can be detected by performing the above processing for each frame. However, as shown in FIG. 13 (a), when the external light intensity greatly increases and the calculated external light intensity reaches the saturation pixel value, the external light intensity is increased no matter how much the external light becomes stronger. Cannot be calculated.

そのため、外光強度から算出しているタッチ・非タッチ間画素値も正確に算出することができなくなってしまい、最悪の場合パネルの上に指を置いた状態でも全ての画素が飽和してしまい、まっ白な画像になってしまう。図13(a)では、外光強度が飽和画素値に達した場合にタッチ・非タッチ間画素値算出部5によって算出されたタッチ・非タッチ間画素値を符号54で示し、外光強度が飽和画素値に達していない場合の(実際の)タッチ・非タッチ間画素値を符号55で示している。   As a result, the pixel value between touch and non-touch calculated from the external light intensity cannot be calculated accurately, and in the worst case, all pixels are saturated even when the finger is placed on the panel. , It becomes a white image. In FIG. 13A, the touch / non-touch pixel value calculated by the touch / non-touch pixel value calculation unit 5 when the external light intensity reaches the saturated pixel value is indicated by reference numeral 54, and the external light intensity is The (actual) touch / non-touch pixel value when the saturation pixel value is not reached is indicated by reference numeral 55.

この問題を解決するためには、光センサ12の感度を落として図13(b)に示すように外光強度が飽和しない状態にする必要がある。この感度を落とす処理により外光強度が飽和しないようになるので、正確にタッチ・非タッチ間画素値を算出することができるようになる。光センサ12の感度を切り替えるタイミングは、外光強度が飽和した時点(図13(a)において符号56で示す時点)またはその直前である。   In order to solve this problem, it is necessary to reduce the sensitivity of the optical sensor 12 so that the external light intensity is not saturated as shown in FIG. Since the process of reducing the sensitivity does not saturate the external light intensity, the pixel value between touch and non-touch can be accurately calculated. The timing of switching the sensitivity of the optical sensor 12 is the time when the external light intensity is saturated (the time indicated by reference numeral 56 in FIG. 13A) or just before that.

最適感度算出部4では、外光強度算出部3で算出された外光強度に応じて、指示物体の認識にとって最適な感度算出を行い、感度調整部14を通して最適な撮像画像を取得できるように光センサ12の感度を調整する。   The optimum sensitivity calculation unit 4 calculates the optimum sensitivity for the recognition of the pointing object in accordance with the outside light intensity calculated by the outside light intensity calculation unit 3 so that an optimum captured image can be acquired through the sensitivity adjustment unit 14. The sensitivity of the optical sensor 12 is adjusted.

感度切替をした場合としない場合との撮像画像の例を図14に示す。図14の上段は感度切替をしない場合を示している。感度切替をしない場合は外光強度が強くなるにつれ背景画素値と同時に、指を透過する光により指腹下画素値も高くなってしまい、最後には全ての画素が飽和してしまい、まっ白な画像になる。このような画像からは正確にタッチ位置検出を行うことは不可能である。   An example of a captured image with and without sensitivity switching is shown in FIG. The upper part of FIG. 14 shows a case where the sensitivity is not switched. If the sensitivity is not switched, as the ambient light intensity increases, the background pixel value and the light transmitted through the finger also increase the lower pixel value of the finger pad. Finally, all the pixels are saturated and become completely white. Become an image. It is impossible to accurately detect the touch position from such an image.

一方、図14の下段に示すように、感度切替をした場合は、感度切替をしない場合と同じ外光強度でも、感度が落ちているので背景画素値および指腹下画素値が飽和することなく、タッチ位置が検出できる画像の状態を保てていることがわかる。   On the other hand, as shown in the lower part of FIG. 14, when the sensitivity is switched, the background pixel value and the lower finger pad pixel value are not saturated because the sensitivity is reduced even at the same external light intensity as when the sensitivity is not switched. It can be seen that an image state in which the touch position can be detected is maintained.

ここで、最適感度算出部4の処理の一例として、感度1/1から感度1/4まで段階的に光センサ12の感度を切替える処理について図15を参照しつつ説明する。図15は、最適感度算出部4における感度切替処理の例を説明するための図である。   Here, as an example of the process of the optimum sensitivity calculation unit 4, a process of switching the sensitivity of the optical sensor 12 stepwise from sensitivity 1/1 to sensitivity 1/4 will be described with reference to FIG. FIG. 15 is a diagram for explaining an example of sensitivity switching processing in the optimum sensitivity calculation unit 4.

まず、感度を落とす場合の例を説明する。感度1/1で外光強度が飽和画素値である255に達した時、感度DOWN(低下)処理が行われ感度1/2になる。この時、感度1/1で外光強度が255だったものが、感度1/2になることにより、同じ外光でも外光強度は半分の128と算出される。同じく感度1/2で外光強度が飽和画素値である255に達した時は感度DOWN処理により感度1/4になり、感度1/2で255だった外光強度は、感度1/4では128になる。   First, an example in which sensitivity is lowered will be described. When the external light intensity reaches 255, which is the saturation pixel value, with sensitivity 1/1, sensitivity DOWN (decrease) processing is performed and the sensitivity becomes 1/2. At this time, when the external light intensity is 255 at the sensitivity of 1/1, the external light intensity is calculated to be 128, which is half of the same external light, because the sensitivity becomes 1/2. Similarly, when the external light intensity reaches 255, which is the saturation pixel value, with sensitivity 1/2, the sensitivity is reduced by the sensitivity DOWN process, and the external light intensity, which is 255 at sensitivity 1/2, is the sensitivity 1/4. It becomes 128.

次に感度を上げる場合の例を説明する。感度1/4で外光強度が飽和画素値「255」の約1/4の64以下になった場合は、感度UP(上昇)処理により感度1/2に戻す。感度1/4で64だった外光強度は感度1/2になることにより128と算出される。感度1/2で外光強度が飽和画素値の約1/4の64以下になった場合は、感度UP処理により光センサ12の感度は感度1/1に戻る。   Next, an example of increasing sensitivity will be described. When the external light intensity becomes less than 64, which is about ¼ of the saturation pixel value “255”, with sensitivity 1/4, the sensitivity is returned to 1/2 by sensitivity UP (increase) processing. The external light intensity that is 64 at the sensitivity 1/4 is calculated as 128 when the sensitivity becomes 1/2. When the external light intensity becomes 64, which is about 1/4 of the saturation pixel value, with sensitivity 1/2, the sensitivity of the optical sensor 12 returns to sensitivity 1/1 by the sensitivity increase processing.

外光強度が255で飽和してしまうため、外光強度がそれ以上の場合は、外光強度がどの程度強くなったのかを算出することはできない。そのため、感度DOWNの場合は、感度1/1、1/2、1/4と順に感度を落としていくことが好ましい。しかし、感度UPの場合は外光強度が飽和することがないので、感度1/4から1/1にジャンプさせることができる。例えば、図15で感度1/4のときに外光強度が128付近から32以下にいきなり低下した場合は、感度を1/2にアップさせるのではなく、感度を1/1に上昇させるようにしても良い。   Since the external light intensity is saturated at 255, when the external light intensity is higher than that, it is not possible to calculate how much the external light intensity has increased. Therefore, in the case of sensitivity DOWN, it is preferable to decrease the sensitivity in order of sensitivity 1/1, 1/2, 1/4. However, since the external light intensity does not saturate when the sensitivity is increased, the sensitivity can be jumped from 1/4 to 1/1. For example, if the external light intensity suddenly decreases from near 128 to 32 or less when the sensitivity is 1/4 in FIG. 15, the sensitivity is not increased to 1/2, but the sensitivity is increased to 1/1. May be.

すなわち、最適感度算出部4は、外光強度に応じて光センサ12の感度を段階的に設定し、外光強度が所定の基準値以下になった場合に、光センサ12の感度を一度に複数段階上昇させる。なお、感度設定の段階は、上述の3段階に限定されず、2段階でも4段階以上でもよい。   That is, the optimum sensitivity calculation unit 4 sets the sensitivity of the optical sensor 12 in a stepwise manner according to the external light intensity, and when the external light intensity becomes a predetermined reference value or less, the sensitivity of the optical sensor 12 is set at a time. Raise multiple stages. Note that the sensitivity setting stage is not limited to the above three stages, and may be two stages or four or more stages.

ここでは軽度な外光強度の変化により、感度UP・DOWNが頻繁に切り替わらないようにするために、感度DOWNポイントを255(感度DOWN後は128になる)、感度UPポイントを64(感度UP後は128になる)として、ヒステリシスを持たせるようにした。換言すれば、最適感度算出部4は、光センサ12の感度が第1感度(例えば、感度1/1)に設定されている状態で外光強度が第1基準値(例えば、255)に達したときに光センサ12の感度を第1感度から当該第1感度よりも低い第2感度(例えば、感度1/2)へ低下させ、光センサ12の感度が第2感度に設定されている状態で外光強度が第2基準値(例えば、64)に低下したときに光センサ12の感度を第2感度から第1感度へ上昇させる。上記第2基準値は、第1基準値に対応する実際の外光強度を第2感度に設定されている光センサ12で検出した場合の外光強度(例えば、128)よりも所定の値だけ小さいことが好ましい。この所定の値は、当業者によって適宜設定されればよい。   Here, in order to prevent the sensitivity UP / DOWN from switching frequently due to slight changes in external light intensity, the sensitivity DOWN point is 255 (becomes 128 after sensitivity down), and the sensitivity UP point is 64 (after sensitivity up). Is set to 128), and hysteresis is provided. In other words, the optimum sensitivity calculation unit 4 has the external light intensity reaches the first reference value (for example, 255) in a state where the sensitivity of the optical sensor 12 is set to the first sensitivity (for example, sensitivity 1/1). The sensitivity of the optical sensor 12 is reduced from the first sensitivity to a second sensitivity (for example, sensitivity 1/2) lower than the first sensitivity, and the sensitivity of the optical sensor 12 is set to the second sensitivity. When the external light intensity decreases to the second reference value (for example, 64), the sensitivity of the optical sensor 12 is increased from the second sensitivity to the first sensitivity. The second reference value is a predetermined value higher than the external light intensity (for example, 128) when the actual external light intensity corresponding to the first reference value is detected by the optical sensor 12 set to the second sensitivity. Small is preferable. This predetermined value may be appropriately set by those skilled in the art.

なお、上記第1および第2基準値は、最適感度算出部4が利用可能な記憶部に格納されていればよい。   The first and second reference values may be stored in a storage unit that can be used by the optimum sensitivity calculation unit 4.

以上のように外光強度に応じて光センサ12の感度UP・DOWN処理を行うことで、画像のダイナミックレンジを最適な値に調整し、最適な画像で認識処理を行うことができるようになる。   As described above, by performing the sensitivity UP / DOWN process of the optical sensor 12 according to the external light intensity, the dynamic range of the image can be adjusted to an optimal value, and the recognition process can be performed with the optimal image. .

(タッチ位置検出装置10における処理の流れ)
次に、図16を参照しつつ、タッチ位置検出装置10におけるタッチ位置検出処理の流れの一例について説明する。図16は、タッチ位置検出装置10におけるタッチ位置検出処理の流れの一例を示すフローチャートである。
(Processing flow in the touch position detection apparatus 10)
Next, an example of the flow of touch position detection processing in the touch position detection device 10 will be described with reference to FIG. FIG. 16 is a flowchart illustrating an example of the flow of touch position detection processing in the touch position detection device 10.

まず、光センサ内蔵LCD11の光センサ12によって指示物体の撮像画像が撮像される。光センサ12が取得した撮像画像は、ADコンバータ13を介して、画像調整部2へ出力される(S1)。   First, a captured image of the pointing object is captured by the optical sensor 12 of the LCD 11 with a built-in optical sensor. The captured image acquired by the optical sensor 12 is output to the image adjustment unit 2 via the AD converter 13 (S1).

画像調整部2は、撮像画像を受け取ると(取得工程)、当該撮像画像のゲインおよびオフセットを調整するキャリブレーション処理などを行い、調整した撮像画像を外光強度算出部3および認識不要情報削除部6へ出力する(S2)。   When the image adjustment unit 2 receives the captured image (acquisition process), the image adjustment unit 2 performs a calibration process for adjusting the gain and offset of the captured image, and the adjusted captured image is subjected to the external light intensity calculation unit 3 and the recognition unnecessary information deletion unit. 6 (S2).

外光強度算出部3は、撮像画像を受け取ると、当該撮像画像から上述したように外光強度を算出し(外光強度算出工程)、算出した外光強度を最適感度算出部4およびタッチ・非タッチ間画素値算出部5へ出力する(S3)。   When the external light intensity calculation unit 3 receives the captured image, the external light intensity is calculated from the captured image as described above (external light intensity calculation step), and the calculated external light intensity is calculated using the optimum sensitivity calculation unit 4 and the touch sensitivity. It outputs to the non-touch pixel value calculation part 5 (S3).

最適感度算出部4は、外光強度算出部3で算出された外光強度に応じて、指示物体を認識するための最適な感度を算出し、感度調整部14へ出力する(S4)。感度調整部14は、最適感度算出部4から出力された最適感度に対応するように各光センサ12の感度を調整する。   The optimum sensitivity calculation unit 4 calculates the optimum sensitivity for recognizing the pointing object in accordance with the outside light intensity calculated by the outside light intensity calculation unit 3, and outputs it to the sensitivity adjustment unit 14 (S4). The sensitivity adjustment unit 14 adjusts the sensitivity of each optical sensor 12 so as to correspond to the optimum sensitivity output from the optimum sensitivity calculation unit 4.

ここで、外光強度が飽和している場合および外光強度が所定の値よりも低い場合には、感度調整部14によって光センサ12の感度が調整される。この感度調整は、次のフレームの撮像画像に反映される。   Here, when the external light intensity is saturated and when the external light intensity is lower than a predetermined value, the sensitivity of the optical sensor 12 is adjusted by the sensitivity adjustment unit 14. This sensitivity adjustment is reflected in the captured image of the next frame.

次に、タッチ・非タッチ間画素値算出部5は、上述したように、外光強度算出部3が算出した外光強度からタッチ・非タッチ間画素値を算出し、算出したタッチ・非タッチ間画素値を認識不要情報削除部6へ出力する(S5)。   Next, as described above, the touch / non-touch pixel value calculation unit 5 calculates the touch / non-touch pixel value from the external light intensity calculated by the external light intensity calculation unit 3, and calculates the calculated touch / non-touch. The inter-pixel value is output to the recognition unnecessary information deleting unit 6 (S5).

認識不要情報削除部6は、タッチ・非タッチ間画素値を受け取ると、撮像画像に含まれる画素のうち、タッチ・非タッチ間画素値以上の画素値を有する画素の画素値をタッチ・非タッチ間画素値に置き換えることにより、指示物体の認識に不要な撮像画像中の情報(すなわち、指示物体の背景の情報)を削除する(S6)。認識不要情報削除部6は、処理した撮像画像を特徴量抽出部7へ出力する。   When the recognition unnecessary information deletion unit 6 receives the pixel value between touch and non-touch, the pixel value of a pixel having a pixel value greater than or equal to the pixel value between touch and non-touch among the pixels included in the captured image is touched and non-touched. By replacing with the inter-pixel value, information in the captured image that is unnecessary for the recognition of the pointing object (that is, information on the background of the pointing object) is deleted (S6). The recognition unnecessary information deletion unit 6 outputs the processed captured image to the feature amount extraction unit 7.

特徴量抽出部7は、認識不要情報削除部6から撮像画像を受け取ると、エッジ検出処理により指示物体の特徴を示す特徴量(エッジ特徴量)を撮像画像の画素ごとに抽出し、抽出した特徴量および当該特徴量を示す画素(特徴領域)の位置情報(画素の座標)をタッチ位置検出部8へ出力する(S7)。   When the feature amount extraction unit 7 receives the captured image from the recognition unnecessary information deletion unit 6, the feature amount extraction unit 7 extracts a feature amount (edge feature amount) indicating the feature of the pointing object for each pixel of the captured image by the edge detection process. The position information (pixel coordinates) of the amount and the pixel (feature area) indicating the feature amount is output to the touch position detection unit 8 (S7).

タッチ位置検出部8は、特徴量および特徴領域の位置情報を受け取ると、当該特徴領域に対してパターンマッチすることによりタッチ位置を算出する(S8)。タッチ位置検出部8は、算出したタッチ位置を示す座標をアプリケーション実行部15へ出力する。   When the touch position detection unit 8 receives the feature amount and the position information of the feature area, the touch position detection unit 8 calculates the touch position by pattern matching with the feature area (S8). The touch position detection unit 8 outputs coordinates indicating the calculated touch position to the application execution unit 15.

なお、画像調整部2が、調整した撮像画像を記憶部40に格納する場合には、外光強度算出部3および認識不要情報削除部6は、記憶部40から撮像画像を取得すればよい。   When the image adjustment unit 2 stores the adjusted captured image in the storage unit 40, the external light intensity calculation unit 3 and the recognition unnecessary information deletion unit 6 may acquire the captured image from the storage unit 40.

〔実施の形態2〕
本発明の他の実施形態について図17〜図19に基づいて説明すれば、以下のとおりである。なお、実施の形態1と同様の部材に関しては、同じ符号を付し、その説明を省略する。
[Embodiment 2]
The following will describe another embodiment of the present invention with reference to FIGS. In addition, about the member similar to Embodiment 1, the same code | symbol is attached | subjected and the description is abbreviate | omitted.

(タッチ位置検出装置20の構成)
図17は、本実施形態のタッチ位置検出装置20の構成を示すブロック図である。図17に示すように、タッチ位置検出装置20は、タッチ位置検出装置10とは異なり、特徴量抽出部(特徴領域抽出手段)21および認識不要情報削除部(削除手段)22を備えている。
(Configuration of Touch Position Detection Device 20)
FIG. 17 is a block diagram illustrating a configuration of the touch position detection device 20 according to the present embodiment. As shown in FIG. 17, the touch position detection device 20, unlike the touch position detection device 10, includes a feature amount extraction unit (feature area extraction unit) 21 and a recognition unnecessary information deletion unit (deletion unit) 22.

特徴量抽出部21は、画像調整部2から出力された撮像画像に含まれる、指示物体の像の特徴を示す特徴量を抽出し、認識不要情報削除部22へ出力する。特徴量抽出部21における処理は、特徴量抽出部7における処理と同じであり、処理の対象および特徴量の出力先が異なっているだけである。   The feature amount extraction unit 21 extracts a feature amount indicating the feature of the image of the pointing object included in the captured image output from the image adjustment unit 2 and outputs the feature amount to the recognition unnecessary information deletion unit 22. The process in the feature quantity extraction unit 21 is the same as the process in the feature quantity extraction unit 7 except that the processing target and the output destination of the feature quantity are different.

認識不要情報削除部22は、外光強度算出部3が算出した外光強度に基づいて、特徴量抽出部21が抽出した特徴量を示す特徴領域の少なくとも一部を削除する。より詳細には、認識不要情報削除部22は、タッチ・非タッチ間画素値算出部5が算出したタッチ・非タッチ間画素値以上の画素値を有する画素に由来する特徴量(特徴領域)を削除する。画素と対応付けられた特徴量を削除すれば特徴領域(特徴量を示す画素)の情報を削除したことになるため、特徴量の削除と特徴領域の削除とはほぼ同義である。   The recognition unnecessary information deletion unit 22 deletes at least a part of the feature region indicating the feature amount extracted by the feature amount extraction unit 21 based on the external light intensity calculated by the external light intensity calculation unit 3. More specifically, the recognition unnecessary information deletion unit 22 calculates a feature amount (feature region) derived from a pixel having a pixel value equal to or greater than the touch / non-touch pixel value calculated by the touch / non-touch pixel value calculation unit 5. delete. If the feature amount associated with the pixel is deleted, the information on the feature region (the pixel indicating the feature amount) is deleted. Therefore, the deletion of the feature amount and the deletion of the feature region are almost synonymous.

そして、認識不要情報削除部22によって雑音除去された特徴量(特徴領域)に対して、タッチ位置検出部8がパターンマッチすることによりタッチ位置を特定する。   Then, the touch position detection unit 8 specifies a touch position by pattern matching with the feature amount (feature region) from which noise is removed by the recognition unnecessary information deletion unit 22.

図18は、認識不要情報削除部22における認識不要情報削除処理を説明するための図である。図18に示すように、非タッチ時の撮像画像に含まれている、光センサ内蔵LCD11に接触していない指示物体の像(タッチ・非タッチ間画素値以上の画素値を有する画素)の特徴量は、認識不要情報削除部22によって削除される。そのため、図18の「不要部分削除前」の画像に見られる特徴量(環状の領域)は、非タッチ時の撮像画像では削除されているが、タッチ時の撮像画像では削除されていない。   FIG. 18 is a diagram for explaining recognition unnecessary information deletion processing in the recognition unnecessary information deleting unit 22. As shown in FIG. 18, the characteristics of an image of a pointing object (a pixel having a pixel value greater than or equal to the pixel value between touch and non-touch) that is not in contact with the optical sensor built-in LCD 11 included in the captured image at the time of non-touch. The amount is deleted by the recognition unnecessary information deleting unit 22. Therefore, the feature amount (annular region) seen in the image “before unnecessary part deletion” in FIG. 18 is deleted in the captured image at the time of non-touch, but is not deleted in the captured image at the time of touch.

実施形態1のタッチ位置検出装置10においては、図12に示すように背景画素値と指腹下画素値との関係を変化させた後(背景画素値と指腹下画素値との差を縮めた後)に特徴量抽出を行うので、不要部分を削除した後の撮像画像から特徴量を抽出するためにはエッジ特徴量を抽出するための閾値を変化させる(緩める)必要がある。   In the touch position detection apparatus 10 according to the first embodiment, after changing the relationship between the background pixel value and the lower finger pad pixel value as illustrated in FIG. 12 (the difference between the background pixel value and the lower finger pad pixel value is reduced). In order to extract the feature value from the captured image after deleting the unnecessary portion, it is necessary to change (relax) the threshold value for extracting the edge feature value.

一方、本実施形態のタッチ位置検出装置20のように、特徴量抽出を行った後に、タッチ・非タッチ間画素値以上の画素値を有する画素に対応する特徴量の削除を行う場合には、特徴量抽出時のパラメータを変更する必要がないので、こちらの方式のほうが効果的である。   On the other hand, like the touch position detection device 20 of the present embodiment, after performing feature amount extraction, when deleting feature amounts corresponding to pixels having pixel values greater than or equal to the touch / non-touch pixel value, This method is more effective because there is no need to change parameters when extracting feature values.

このような理由により、本実施形態では、撮像画像から特徴量抽出をした後に、タッチ・非タッチ間画素値を用いた雑音除去処理を採用している。   For this reason, the present embodiment employs noise removal processing using a touch / non-touch pixel value after extracting a feature amount from a captured image.

(タッチ位置検出装置20における処理の流れ)
次に、図19を参照しつつ、タッチ位置検出装置20におけるタッチ位置検出処理の流れの一例について説明する。図19は、タッチ位置検出装置20におけるタッチ位置検出処理の流れの一例を示すフローチャートである。図19に示すステップS11〜S15は、図16に示したステップS1〜S5と同様のものである。
(Processing flow in the touch position detection device 20)
Next, an example of the flow of touch position detection processing in the touch position detection device 20 will be described with reference to FIG. FIG. 19 is a flowchart illustrating an example of a flow of touch position detection processing in the touch position detection device 20. Steps S11 to S15 shown in FIG. 19 are the same as steps S1 to S5 shown in FIG.

ステップS15において、タッチ・非タッチ間画素値算出部5は、算出したタッチ・非タッチ間画素値を認識不要情報削除部22へ出力する。   In step S <b> 15, the touch / non-touch pixel value calculation unit 5 outputs the calculated touch / non-touch pixel value to the recognition unnecessary information deletion unit 22.

ステップS16において、特徴量抽出部21は、画像調整部2から出力された撮像画像から指示物体の像の特徴を示す特徴量を抽出し、抽出した特徴量および当該特徴量を示す特徴領域の位置情報を含む特徴領域データを、撮像画像とともに認識不要情報削除部22へ出力する。   In step S <b> 16, the feature amount extraction unit 21 extracts a feature amount indicating the feature of the image of the pointing object from the captured image output from the image adjustment unit 2, and the extracted feature amount and the position of the feature region indicating the feature amount The feature area data including information is output to the recognition unnecessary information deleting unit 22 together with the captured image.

認識不要情報削除部22は、タッチ・非タッチ間画素値算出部5からタッチ・非タッチ間画素値を、特徴量抽出部21から撮像画像および特徴領域データを受け取ると、タッチ・非タッチ間画素値以上の画素値を有する画素に由来する特徴量を削除する(S17)。より具体的には、認識不要情報削除部22は、特徴領域データが示す特徴量と対応付けられた、撮像画像中の画素(特徴領域)の画素値を、撮像画像を参照することにより取得し、その画素値がタッチ・非タッチ間画素値以上であれば、当該特徴量を特徴領域データから削除する。認識不要情報削除部22は、この処理を特徴領域データが示す特徴量ごとに行う。認識不要情報削除部22は、処理した特徴領域データをタッチ位置検出部8へ出力する。   When the recognition unnecessary information deletion unit 22 receives the touch / non-touch pixel value from the touch / non-touch pixel value calculation unit 5 and the captured image and the feature area data from the feature amount extraction unit 21, the recognition / non-touch pixel value is received. A feature amount derived from a pixel having a pixel value equal to or greater than the value is deleted (S17). More specifically, the recognition unnecessary information deleting unit 22 acquires the pixel value of the pixel (feature region) in the captured image associated with the feature amount indicated by the feature region data by referring to the captured image. If the pixel value is equal to or greater than the pixel value between touch and non-touch, the feature amount is deleted from the feature area data. The recognition unnecessary information deleting unit 22 performs this process for each feature amount indicated by the feature area data. The recognition unnecessary information deletion unit 22 outputs the processed feature area data to the touch position detection unit 8.

タッチ位置検出部8は、認識不要情報削除部22によって処理された特徴領域データを受け取ると、当該特徴領域データが示す特徴領域に対してパターンマッチすることによりタッチ位置を算出する(S18)。タッチ位置検出部8は、算出したタッチ位置を示す座標をアプリケーション実行部15へ出力する。   Upon receiving the feature area data processed by the recognition unnecessary information deletion unit 22, the touch position detection unit 8 calculates a touch position by pattern matching with the feature area indicated by the feature area data (S18). The touch position detection unit 8 outputs coordinates indicating the calculated touch position to the application execution unit 15.

(変更例)
本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。
(Example of change)
The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims, and embodiments obtained by appropriately combining technical means disclosed in different embodiments. Is also included in the technical scope of the present invention.

また、上述したタッチ位置検出装置10およびタッチ位置検出装置20の各ブロック、特に外光強度算出部3、最適感度算出部4、タッチ・非タッチ間画素値算出部5、認識不要情報削除部6および認識不要情報削除部22は、ハードウェアロジックによって構成してもよいし、次のようにCPUを用いてソフトウェアによって実現してもよい。   In addition, each block of the touch position detection device 10 and the touch position detection device 20 described above, in particular, the external light intensity calculation unit 3, the optimum sensitivity calculation unit 4, the touch / non-touch pixel value calculation unit 5, and the recognition unnecessary information deletion unit 6 And the recognition unnecessary information deletion part 22 may be comprised by a hardware logic, and may be implement | achieved by software using CPU as follows.

すなわち、タッチ位置検出装置10およびタッチ位置検出装置20は、各機能を実現する制御プログラムの命令を実行するCPU(central processing unit)、上記プログラムを格納したROM(read only memory)、上記プログラムを展開するRAM(random access memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の目的は、上述した機能を実現するソフトウェアであるタッチ位置検出装置10およびタッチ位置検出装置20の制御プログラム(画像解析プログラム)のプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記タッチ位置検出装置10およびタッチ位置検出装置20に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。   That is, the touch position detection device 10 and the touch position detection device 20 develop a CPU (central processing unit) that executes instructions of a control program that realizes each function, a ROM (read only memory) that stores the program, and the program. A random access memory (RAM), and a storage device (recording medium) such as a memory for storing the program and various data. An object of the present invention is to provide program codes (execution format program, intermediate code program, source program) of a control program (image analysis program) for the touch position detection device 10 and the touch position detection device 20 which are software for realizing the functions described above. ) Is supplied to the touch position detecting device 10 and the touch position detecting device 20, and the computer (or CPU or MPU) reads out and executes the program code recorded on the recording medium. This can also be achieved.

上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ系、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM/EPROM/EEPROM/フラッシュROM等の半導体メモリ系などを用いることができる。   Examples of the recording medium include tapes such as magnetic tapes and cassette tapes, magnetic disks such as floppy (registered trademark) disks / hard disks, and disks including optical disks such as CD-ROM / MO / MD / DVD / CD-R. Card system such as IC card, IC card (including memory card) / optical card, or semiconductor memory system such as mask ROM / EPROM / EEPROM / flash ROM.

また、タッチ位置検出装置10およびタッチ位置検出装置20を通信ネットワークと接続可能に構成し、上記プログラムコードを通信ネットワークを介して供給してもよい。この通信ネットワークとしては、特に限定されず、例えば、インターネット、イントラネット、エキストラネット、LAN、ISDN、VAN、CATV通信網、仮想専用網(virtual private network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、通信ネットワークを構成する伝送媒体としては、特に限定されず、例えば、IEEE1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL回線等の有線でも、IrDAやリモコンのような赤外線、Bluetooth(登録商標)、802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線でも利用可能である。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   The touch position detection device 10 and the touch position detection device 20 may be configured to be connectable to a communication network, and the program code may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite communication. A net or the like is available. Also, the transmission medium constituting the communication network is not particularly limited. For example, even in the case of wired such as IEEE 1394, USB, power line carrier, cable TV line, telephone line, ADSL line, etc., infrared rays such as IrDA and remote control, Bluetooth ( (Registered trademark), 802.11 wireless, HDR, mobile phone network, satellite line, terrestrial digital network, and the like can also be used. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

なお、本発明は、以下のようにも表現できる。   The present invention can also be expressed as follows.

すなわち、本発明の表示装置は、画像を取得することが可能な光センサ内蔵の表示装置において、前記表示装置は光センサで取得した画像から光センサに入射する光の強さを検出する外光強度算出手段を備えることを特徴としている。   That is, the display device of the present invention is a display device with a built-in optical sensor capable of acquiring an image, and the display device detects external light that detects the intensity of light incident on the optical sensor from an image acquired by the optical sensor. It is characterized by comprising intensity calculation means.

また、前記外光強度算出手段は光センサで取得した画像のヒストグラムを算出する画像ヒストグラム算出手段を備え、画像ヒストグラム算出手段で算出されたヒストグラムから光の強度を算出することが好ましい。   Further, it is preferable that the external light intensity calculation means includes image histogram calculation means for calculating a histogram of an image acquired by the optical sensor, and calculates light intensity from the histogram calculated by the image histogram calculation means.

また、前記画像ヒストグラム算出手段は、全画素中の任意のサンプル点からヒストグラムを算出することが好ましい。   The image histogram calculation means preferably calculates a histogram from arbitrary sample points in all pixels.

前記外光強度算出手段は、前記画像ヒストグラム算出手段で算出されたヒストグラムにおいて、画素値の高いほうから順に度数を足し合わせていき、合計がヒストグラム全体の度数を足し合わせた合計値と比較して予め設定した割合より高くなったとき、その画素値を外光強度として算出することが好ましい。   In the histogram calculated by the image histogram calculation means, the external light intensity calculation means adds the frequencies in order from the highest pixel value, and compares the total with the total value obtained by adding the frequencies of the entire histogram. When the ratio becomes higher than a preset ratio, the pixel value is preferably calculated as the external light intensity.

前記表示装置は、前期外光強度算出手段で算出された外光強度を使って画像処理することが好ましい。   It is preferable that the display device performs image processing using the external light intensity calculated by the external light intensity calculation unit in the previous period.

撮像画面を指示する指示物体の指示物体の周囲の外光強度を正確に算出でき、算出した外光強度に基づいて指示物体の撮像画像を処理することにより、指示物体の認識精度を高めることができるため、タッチパネルを有する位置検出装置、入力装置に適用できる。   It is possible to accurately calculate the ambient light intensity around the pointing object of the pointing object indicating the imaging screen, and to increase the recognition accuracy of the pointing object by processing the captured image of the pointing object based on the calculated external light intensity. Therefore, the present invention can be applied to a position detection device and an input device having a touch panel.

本発明の一実施形態に係るタッチ位置検出装置の構成を示すブロック図である。It is a block diagram which shows the structure of the touch position detection apparatus which concerns on one Embodiment of this invention. (a)は外光強度の算出に用いる画素を示す図であり、(b)は外光強度算出部が作成するヒストグラムと外光強度との関係を示す図である。(A) is a figure which shows the pixel used for calculation of external light intensity, (b) is a figure which shows the relationship between the histogram which an external light intensity calculation part produces, and external light intensity. 外光強度算出部における処理の意義を説明するための図である。It is a figure for demonstrating the significance of the process in an external light intensity calculation part. 外光強度算出部における処理の変更例を説明するための図である。It is a figure for demonstrating the example of a change of the process in an external light intensity calculation part. 指示物体を撮像するときの周囲の明るさおよび撮像画像の例を示す図である。It is a figure which shows the surrounding brightness and the example of a captured image when an indication object is imaged. タッチパネル部の変更例を示す断面図である。It is sectional drawing which shows the example of a change of a touchscreen part. 指示物体を撮像するときの周囲の明るさおよび弾性フィルムを設けた時の撮像画像の例を示す図である。It is a figure which shows the example of the picked-up image when the surrounding brightness at the time of imaging a pointing object and an elastic film are provided. タッチ、非タッチの撮像画像の例を示す図である。It is a figure which shows the example of the captured image of a touch and a non-touch. (a)は環境照度と撮像画像の画素値との関係を示すグラフであり、(b)は異なる環境照度下での撮像画像の例を示す図である。(A) is a graph which shows the relationship between environmental illumination intensity and the pixel value of a captured image, (b) is a figure which shows the example of the captured image under different environmental illumination intensity. タッチ・非タッチ間画素値を説明するためのグラフである。It is a graph for demonstrating the pixel value between touch and non-touch. (a)および(b)は、環境照度の変化に対応した、タッチ時および非タッチ時の指腹下画素値の変化の別の例をそれぞれ示すグラフである。(A) And (b) is a graph which shows another example of the change of the pixel value under a finger pad at the time of a touch at the time of non-touch corresponding to the change of environmental illumination intensity, respectively. 認識不要情報削除部における処理を説明するための図である。It is a figure for demonstrating the process in a recognition unnecessary information deletion part. (a)および(b)は、外光強度が飽和した場合の問題点を説明するための図である。(A) And (b) is a figure for demonstrating a problem when external light intensity | strength is saturated. 感度切替をした場合としない場合との撮像画像の例を示す図である。It is a figure which shows the example of the captured image with the case where sensitivity switching is carried out, and the case where it does not. 最適感度算出部における感度切替処理の例を説明するための図である。It is a figure for demonstrating the example of the sensitivity switching process in an optimal sensitivity calculation part. 上記タッチ位置検出装置におけるタッチ位置検出処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the touch position detection process in the said touch position detection apparatus. 本発明の別の実施形態に係るタッチ位置検出装置の構成を示すブロック図である。It is a block diagram which shows the structure of the touch position detection apparatus which concerns on another embodiment of this invention. 認識不要情報削除部における処理を説明するための図である。It is a figure for demonstrating the process in a recognition unnecessary information deletion part. 上記タッチ位置検出装置におけるタッチ位置検出処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the touch position detection process in the said touch position detection apparatus.

符号の説明Explanation of symbols

1 タッチパネル部
2 画像調整部(取得手段)
3 外光強度算出部(外光強度算出手段)
4 最適感度算出部(感度設定手段)
5 タッチ・非タッチ間画素値算出部(基準値算出手段)
6 認識不要情報削除部(画像処理手段)
7 特徴量抽出部(特徴領域抽出手段)
8 タッチ位置検出部(位置算出手段)
9 画像解析部(画像解析装置)
10 タッチ位置検出装置(画像解析装置、撮像装置)
12 光センサ(撮像センサ)
20 タッチ位置検出装置(画像解析装置、撮像装置)
21 特徴量抽出部(特徴領域抽出手段)
22 認識不要情報削除部(削除手段)
41 画像(撮像画像)
42 画像(撮像画像)
43 画像(撮像画像)
DESCRIPTION OF SYMBOLS 1 Touch panel part 2 Image adjustment part (acquisition means)
3 External light intensity calculation unit (external light intensity calculation means)
4 Optimum sensitivity calculator (sensitivity setting means)
5 Touch / non-touch pixel value calculation unit (reference value calculation means)
6 Unrecognized information deletion unit (image processing means)
7 Feature extraction unit (feature area extraction means)
8 Touch position detection unit (position calculation means)
9 Image analysis unit (image analysis device)
10 Touch position detection device (image analysis device, imaging device)
12 Optical sensor (imaging sensor)
20 Touch position detection device (image analysis device, imaging device)
21 Feature extraction unit (feature region extraction means)
22 Recognition unnecessary information deletion part (deletion means)
41 images (captured images)
42 images (captured images)
43 images (captured images)

Claims (14)

複数の撮像センサを有する撮像画面に対して接触している、または接触していない指示物体の、上記撮像センサによって撮像された撮像画像を解析する画像解析装置であって、
上記撮像画像を取得する取得手段と、
上記取得手段が取得した撮像画像を解析することにより、上記撮像センサの一部に入射した上記指示物体の周囲の光の強度である外光強度を算出する外光強度算出手段とを備えることを特徴とする画像解析装置。
An image analysis apparatus that analyzes a captured image of an indication object that is in contact with or not in contact with an imaging screen having a plurality of imaging sensors, and is captured by the imaging sensor,
Acquisition means for acquiring the captured image;
An external light intensity calculating means for calculating an external light intensity that is an intensity of light around the pointing object incident on a part of the imaging sensor by analyzing the captured image acquired by the acquiring means. A characteristic image analysis apparatus.
上記外光強度算出手段は、上記取得手段が取得した撮像画像に含まれる複数の画素から少なくとも一部の画素を選択し、選択した画素を、その画素値が高い順に並べた場合の所定の順位にある画素の画素値を上記外光強度とすることを特徴とする請求項1に記載の画像解析装置。   The external light intensity calculation means selects at least some pixels from a plurality of pixels included in the captured image acquired by the acquisition means, and has a predetermined order when the selected pixels are arranged in descending order of the pixel values. The image analysis apparatus according to claim 1, wherein a pixel value of a pixel in the area is set as the external light intensity. 上記所定の順位は、選択された画素の総数の10%未満の数に相当することを特徴とする請求項2に記載の画像解析装置。   The image analysis apparatus according to claim 2, wherein the predetermined order corresponds to a number less than 10% of the total number of selected pixels. 上記外光強度算出手段が算出した外光強度から、上記指示物体が上記撮像画面に対して接触していない場合の当該指示物体の像を上記撮像画像から削除するための画素値の基準値を算出する基準値算出手段と、
上記取得手段が取得した撮像画像に含まれる画素のうち、上記基準値算出手段が算出した基準値以上の画素値を有する画素の画素値を上記基準値に置き換える画像処理手段とをさらに備えることを特徴とする請求項1〜3のいずれか1項に記載の画像解析装置。
Based on the external light intensity calculated by the external light intensity calculating means, a reference value of a pixel value for deleting an image of the pointing object when the pointing object is not in contact with the imaging screen from the captured image is obtained. A reference value calculating means for calculating;
Image processing means for replacing a pixel value of a pixel having a pixel value greater than or equal to the reference value calculated by the reference value calculation means among the pixels included in the captured image acquired by the acquisition means with the reference value; The image analysis apparatus according to claim 1, wherein the image analysis apparatus is characterized.
上記取得手段が取得した撮像画像から上記指示物体の像の特徴を示す特徴領域を抽出する特徴領域抽出手段と、
上記外光強度算出手段が算出した外光強度から、上記特徴領域が上記撮像画面に接触した指示物体の接触部分の像に由来するものであるかどうかを判定するための画素値の基準値を算出する基準値算出手段と、
上記基準値算出手段が算出した基準値以上の画素値を有する画素に由来する上記特徴領域を削除する削除手段と、
上記削除手段によって削除されなかった特徴領域から、上記撮像画面に接触した指示物体の接触部分の像の位置を算出する位置算出手段とをさらに備えることを特徴とする請求項1〜3のいずれか1項に記載の画像解析装置。
Feature region extraction means for extracting a feature region indicating the characteristics of the image of the pointing object from the captured image acquired by the acquisition means;
A reference value of a pixel value for determining whether or not the characteristic region is derived from the image of the contact portion of the pointing object that has touched the imaging screen, based on the external light intensity calculated by the external light intensity calculation unit. A reference value calculating means for calculating;
Deleting means for deleting the feature region derived from a pixel having a pixel value equal to or higher than the reference value calculated by the reference value calculating means;
The position calculating means for calculating the position of the image of the contact portion of the pointing object that has touched the imaging screen from the feature area that has not been deleted by the deleting means. The image analysis apparatus according to item 1.
上記基準値算出手段は、所定の数式を用いて上記基準値を算出し、上記外光強度算出手段が算出した外光強度に応じて、複数種類の上記所定の数式を使い分けることを特徴とする請求項5に記載の画像解析装置。   The reference value calculating means calculates the reference value using a predetermined mathematical expression, and uses a plurality of types of the predetermined mathematical expressions according to the external light intensity calculated by the external light intensity calculating means. The image analysis apparatus according to claim 5. 請求項1〜6のいずれか1項に記載の画像解析装置を動作させる画像解析プログラムであって、コンピュータを上記各手段として機能させるための画像解析プログラム。   An image analysis program for operating the image analysis apparatus according to any one of claims 1 to 6, wherein the image analysis program causes a computer to function as each of the means. 請求項7に記載の画像解析プログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the image analysis program according to claim 7 is recorded. 複数の撮像センサを有する撮像画面に対して接触している、または接触していない指示物体の、上記撮像センサによって撮像された撮像画像を解析する画像解析装置における画像解析方法であって、
上記撮像画像を取得する取得工程と、
上記取得工程において取得された撮像画像を解析することにより、上記撮像センサの一部に入射した上記指示物体の周囲の光の強度である外光強度を算出する外光強度算出工程とを含むことを特徴とする画像解析方法。
An image analysis method in an image analysis apparatus for analyzing a captured image of an indication object that is in contact with or not in contact with an imaging screen having a plurality of imaging sensors and is captured by the imaging sensor,
An acquisition step of acquiring the captured image;
An external light intensity calculating step of calculating an external light intensity that is an intensity of light around the pointing object incident on a part of the imaging sensor by analyzing the captured image acquired in the acquiring step. An image analysis method characterized by the above.
複数の撮像センサを有する撮像画面を備え、当該撮像画面に対して接触している、または接触していない指示物体の撮像画像を上記撮像センサによって撮像する撮像装置であって、
請求項1〜6のいずれか1項に記載の画像解析装置を備え、
上記取得手段は、上記撮像センサによって撮像された撮像画像を取得することを特徴とする撮像装置。
An imaging apparatus that includes an imaging screen having a plurality of imaging sensors, and that captures an imaging image of a pointing object that is in contact with or not in contact with the imaging screen by the imaging sensor,
The image analysis apparatus according to any one of claims 1 to 6, comprising:
The imaging device according to claim 1, wherein the acquisition unit acquires a captured image captured by the imaging sensor.
上記外光強度算出手段が算出した外光強度に基づいて上記撮像センサの感度を設定する感度設定手段をさらに備えることを特徴とする請求項10に記載の撮像装置。   The imaging apparatus according to claim 10, further comprising sensitivity setting means for setting the sensitivity of the imaging sensor based on the external light intensity calculated by the external light intensity calculation means. 上記感度設定手段は、上記撮像センサの感度を段階的に設定し、上記外光強度が所定の基準値以下になった場合に、上記撮像センサの感度を一度に複数段階上昇させることを特徴とする請求項11に記載の撮像装置。   The sensitivity setting means sets the sensitivity of the imaging sensor in a stepwise manner, and increases the sensitivity of the imaging sensor at a plurality of levels at a time when the external light intensity becomes a predetermined reference value or less. The imaging device according to claim 11. 上記感度設定手段は、上記外光強度算出手段が算出した外光強度が飽和しないように上記撮像センサの感度を設定することを特徴とする請求項11または12に記載の撮像装置。   The imaging apparatus according to claim 11 or 12, wherein the sensitivity setting unit sets the sensitivity of the imaging sensor so that the external light intensity calculated by the external light intensity calculation unit is not saturated. 上記感度設定手段は、上記撮像センサの感度が第1感度に設定されている状態で上記外光強度が第1基準値に達したときに上記感度を上記第1感度から当該第1感度よりも低い第2感度へ低下させ、上記撮像センサの感度が上記第2感度に設定されている状態で上記外光強度が第2基準値に低下したときに上記感度を上記第2感度から上記第1感度へ上昇させ、
上記第2基準値は、上記第1基準値に対応する実際の外光強度を上記第2感度に設定されている撮像センサで検出した場合の外光強度よりも小さいことを特徴とする請求項11〜13のいずれか1項に記載の撮像装置。
The sensitivity setting means changes the sensitivity from the first sensitivity to the first sensitivity when the external light intensity reaches a first reference value in a state where the sensitivity of the imaging sensor is set to the first sensitivity. The sensitivity is lowered from the second sensitivity to the first sensitivity when the outside light intensity is lowered to the second reference value in a state where the sensitivity of the imaging sensor is set to the second sensitivity. Increase to sensitivity,
The second reference value is smaller than an external light intensity when an actual external light intensity corresponding to the first reference value is detected by an imaging sensor set to the second sensitivity. The imaging device according to any one of 11 to 13.
JP2008222876A 2008-08-29 2008-08-29 Image analysis apparatus, image analysis method, imaging apparatus, image analysis program, and recording medium Expired - Fee Related JP4964850B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008222876A JP4964850B2 (en) 2008-08-29 2008-08-29 Image analysis apparatus, image analysis method, imaging apparatus, image analysis program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008222876A JP4964850B2 (en) 2008-08-29 2008-08-29 Image analysis apparatus, image analysis method, imaging apparatus, image analysis program, and recording medium

Publications (2)

Publication Number Publication Date
JP2010055578A true JP2010055578A (en) 2010-03-11
JP4964850B2 JP4964850B2 (en) 2012-07-04

Family

ID=42071380

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008222876A Expired - Fee Related JP4964850B2 (en) 2008-08-29 2008-08-29 Image analysis apparatus, image analysis method, imaging apparatus, image analysis program, and recording medium

Country Status (1)

Country Link
JP (1) JP4964850B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010055576A (en) * 2008-08-29 2010-03-11 Sharp Corp Image processor, image processing program, computer-readable recording medium, electronic apparatus and image processing method
JP2017527061A (en) * 2015-08-12 2017-09-14 シャオミ・インコーポレイテッド Touch screen control method, apparatus, program, and recording medium
CN107483823A (en) * 2017-08-31 2017-12-15 努比亚技术有限公司 A kind of image processing method and terminal
JP2019202791A (en) * 2018-05-21 2019-11-28 三友機器株式会社 silo

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006172106A (en) * 2004-12-15 2006-06-29 Toshiba Matsushita Display Technology Co Ltd Image fetching function-equipped display device
JP2007141177A (en) * 2005-11-22 2007-06-07 Tokai Rika Co Ltd Operation input device
JP2008102418A (en) * 2006-10-20 2008-05-01 Toshiba Matsushita Display Technology Co Ltd Display device
JP4796104B2 (en) * 2008-08-29 2011-10-19 シャープ株式会社 Imaging apparatus, image analysis apparatus, external light intensity calculation method, image analysis method, imaging program, image analysis program, and recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006172106A (en) * 2004-12-15 2006-06-29 Toshiba Matsushita Display Technology Co Ltd Image fetching function-equipped display device
JP2007141177A (en) * 2005-11-22 2007-06-07 Tokai Rika Co Ltd Operation input device
JP2008102418A (en) * 2006-10-20 2008-05-01 Toshiba Matsushita Display Technology Co Ltd Display device
JP4796104B2 (en) * 2008-08-29 2011-10-19 シャープ株式会社 Imaging apparatus, image analysis apparatus, external light intensity calculation method, image analysis method, imaging program, image analysis program, and recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010055576A (en) * 2008-08-29 2010-03-11 Sharp Corp Image processor, image processing program, computer-readable recording medium, electronic apparatus and image processing method
JP2017527061A (en) * 2015-08-12 2017-09-14 シャオミ・インコーポレイテッド Touch screen control method, apparatus, program, and recording medium
US10067594B2 (en) 2015-08-12 2018-09-04 Xiaomi Inc. Method and device for controlling touch screen
CN107483823A (en) * 2017-08-31 2017-12-15 努比亚技术有限公司 A kind of image processing method and terminal
JP2019202791A (en) * 2018-05-21 2019-11-28 三友機器株式会社 silo

Also Published As

Publication number Publication date
JP4964850B2 (en) 2012-07-04

Similar Documents

Publication Publication Date Title
JP4796104B2 (en) Imaging apparatus, image analysis apparatus, external light intensity calculation method, image analysis method, imaging program, image analysis program, and recording medium
JP4699536B2 (en) POSITION DETECTION DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM
US9686475B2 (en) Integrated light sensor for dynamic exposure adjustment
JP4690473B2 (en) Image analysis apparatus, image analysis method, imaging apparatus, image analysis program, and recording medium
US8606011B1 (en) Adaptive thresholding for image recognition
KR102124604B1 (en) Method for stabilizing image and an electronic device thereof
US7800594B2 (en) Display device including function to input information from screen by light
TWI539384B (en) Image element brightness adjustment
JP2004348739A (en) Method and system for detecting click optically
KR20120039498A (en) Information processing device, information processing method, program, and electronic device
CN107330859B (en) Image processing method and device, storage medium and terminal
CN110100251A (en) For handling the equipment, method and graphic user interface of document
JP2008250950A (en) Image processor, control program, computer-readable recording medium, electronic equipment and control method of image processor
CN109819088B (en) Light sensation calibration method and related device
JP4964850B2 (en) Image analysis apparatus, image analysis method, imaging apparatus, image analysis program, and recording medium
JP2006243927A (en) Display device
CN112528888A (en) Optical fingerprint acquisition method and device, electronic equipment and storage medium
US20090021484A1 (en) Optical pointing device and automatic gain control method thereof
EP2924610A2 (en) Flesh color detection condition determining apparatus, and flesh color detection condition determining method
JP4947105B2 (en) Image processing apparatus, image processing program, and imaging apparatus
JP2011029710A (en) Image processor, image processing program, and imaging apparatus
JP2010211328A (en) Position detection device, control method, control program, and recording medium
JP5316662B2 (en) Image processing apparatus, image processing program, and imaging apparatus
JP4964849B2 (en) Image processing apparatus, image processing program, computer-readable recording medium, electronic apparatus, and image processing method
JP2011118465A (en) Position detecting device, imaging apparatus, method and program for detecting position, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100826

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110929

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111011

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111125

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120328

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150406

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees