JP5614849B2 - Command signal transmitting apparatus and operation method thereof - Google Patents

Command signal transmitting apparatus and operation method thereof Download PDF

Info

Publication number
JP5614849B2
JP5614849B2 JP2011204664A JP2011204664A JP5614849B2 JP 5614849 B2 JP5614849 B2 JP 5614849B2 JP 2011204664 A JP2011204664 A JP 2011204664A JP 2011204664 A JP2011204664 A JP 2011204664A JP 5614849 B2 JP5614849 B2 JP 5614849B2
Authority
JP
Japan
Prior art keywords
command
image
command signal
unit
computer
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.)
Expired - Fee Related
Application number
JP2011204664A
Other languages
Japanese (ja)
Other versions
JP2013065253A (en
Inventor
章裕 宮田
章裕 宮田
宏志 小西
宏志 小西
東野 豪
豪 東野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2011204664A priority Critical patent/JP5614849B2/en
Publication of JP2013065253A publication Critical patent/JP2013065253A/en
Application granted granted Critical
Publication of JP5614849B2 publication Critical patent/JP5614849B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Analysis (AREA)

Description

本発明は、命令信号送信装置およびその動作方法に関するものである。   The present invention relates to a command signal transmission apparatus and an operation method thereof.

従来において、例えば、指を使ってコンピュータに命令信号を送信し、命令信号に応じた動作をコンピュータに実行させる技術がある。   Conventionally, for example, there is a technique of transmitting a command signal to a computer using a finger and causing the computer to execute an operation according to the command signal.

例えば、多くのスマートフォンは、図12(a)のように、タッチディスプレイ111にボタンBTを表示し、ボタンBTを指でタッチすることで操作が実現できる。   For example, as shown in FIG. 12A, many smartphones can realize an operation by displaying a button BT on the touch display 111 and touching the button BT with a finger.

また、特許文献1、2に記載のように、指のジェスチャを非接触で識別する方法を用い、特定操作に関連づけたジェスチャをスマートフォンのカメラで撮影することで、スマートフォンを操作する方法もある。   Further, as described in Patent Documents 1 and 2, there is a method of operating a smartphone by using a method of identifying a finger gesture without contact and photographing a gesture associated with a specific operation with a camera of the smartphone.

特開2010−15294号公報JP 2010-15294 A 特開2005−321966号公報JP 2005-321966 A

(1)操作難易度が高い問題
前述の、タッチディスプレイにボタンを表示する方法は、ボタンが表示される位置によっては操作の難易度が上がるという問題がある。特に、荷物で片手がふさがっていて、片手でスマートフォンを操作する場合等にこの問題は深刻である。
(1) Problem of high operation difficulty The above-described method of displaying a button on a touch display has a problem that the operation difficulty increases depending on the position where the button is displayed. This problem is particularly serious when one hand is occupied by a luggage and a smartphone is operated with one hand.

例えば、右手が塞がっており、左手だけでスマートフォンを操作する場合を考える。   For example, consider a case where the right hand is blocked and the smartphone is operated with only the left hand.

図12(a)のように、ボタンBTがタッチディスプレイ111の下部に表示されていれば、親指でボタンBTを簡単に押すことができる。しかし、図12(b)のように、ボタンBTがタッチディスプレイ111の上部に表示されていると、親指を目一杯伸ばしてボタンBTを押すか、図12(c)のようにスマートフォンを持ち直してボタンBTを押す必要があり、操作の難易度が上がるだけでなく、操作の際にスマートフォンを落としてしまう危険性もある。   If the button BT is displayed at the bottom of the touch display 111 as shown in FIG. 12A, the button BT can be easily pressed with the thumb. However, if the button BT is displayed on the upper part of the touch display 111 as shown in FIG. 12B, the thumb is fully extended and the button BT is pushed, or the smartphone is held again as shown in FIG. It is necessary to press the button BT, which not only increases the difficulty of the operation, but also has a risk of dropping the smartphone during the operation.

(2)ロバスト性が低い問題
前述の、特定操作に関連づけた指のジェスチャでスマートフォンを操作する方法は、ジェスチャを認識する際のロバスト性が低いという問題がある。
(2) Problem with low robustness The above-described method of operating a smartphone with a finger gesture associated with a specific operation has a problem of low robustness when recognizing a gesture.

例えば、右手が塞がっており、左手だけでスマートフォンを操作する場合を考える。   For example, consider a case where the right hand is blocked and the smartphone is operated with only the left hand.

この場合、図13(a)、(b)のように、左手でスマートフォンを持ち、スマートフォンの背面11bのカメラ12で、左手人差し指のジェスチャを認識する方法が考えられる。特許文献1の方法は、カメラ12で撮像された画像中の色情報等を用いて単色物体領域を特定するため、条件によっては指のジェスチャを認識できる可能性がある。   In this case, as shown in FIGS. 13 (a) and 13 (b), a method of recognizing the gesture of the left index finger with the camera 12 on the back surface 11b of the smartphone with the smartphone in the left hand is conceivable. The method of Patent Document 1 specifies a monochromatic object region using color information or the like in an image captured by the camera 12, so that there is a possibility that a finger gesture can be recognized depending on conditions.

しかし、指のジェスチャを行っている背景に手の色に近い物体が写った場合、この方法では認識精度が低下してしまう。また、カメラ12と指の距離が近いため、指に上手くカメラのフォーカスが合わなかったり、指がカメラ12の撮影領域から外れてしまったりすることが多く、指ジェスチャの認識精度は低下しやすい。   However, when an object close to the color of the hand appears in the background where the finger gesture is performed, this method results in a decrease in recognition accuracy. In addition, since the distance between the camera 12 and the finger is short, the camera is not well focused on the finger or the finger is often out of the shooting area of the camera 12, and the recognition accuracy of the finger gesture is likely to decrease.

色情報に加えて、空間中の他の物体の位置情報を用いる特許文献2の方法は、色情報のみを用いる方法よりロバスト性が高くなる。しかし、この方法は、空間中の他の物体の位置情報をシステムに予め登録しておく必要があるため、移動しながら操作するスマートフォンには適用にしにくい。   The method of Patent Document 2 that uses position information of other objects in space in addition to color information is more robust than a method that uses only color information. However, this method is difficult to apply to a smartphone that is operated while moving because position information of other objects in the space needs to be registered in the system in advance.

以上のように、指を使ってコンピュータに命令信号を送信する技術においては、操作難易度が高く、ロバスト性が低く、そのため、操作が容易で、ロバスト性が高い命令信号送信装置およびその動作方法の実現が望まれる。   As described above, in the technique of transmitting a command signal to a computer using a finger, the command signal transmitting device having a high degree of operation difficulty and low robustness, and therefore easy to operate and having high robustness, and an operation method thereof Realization of is desired.

上記の課題を解決するために、本願は以下の手段を講じた。
In order to solve the above problems, the present application has taken the following measures.

第1の本発明は
コンピュータに所望の動作を行わせるための命令を示す命令信号を当該コンピュータに送信する命令信号送信装置であって、
本体と、
前記本体に設けられ、前記本体の外側の方向を撮像するカメラと、
予め命令が記憶される命令記憶部と、
前記カメラで撮像された画像を取得する画像取得部と、
前記カメラの前の空間の少なくとも一部が塞がれることにより前記画像に生じる特徴を検出する画像特徴検出部と、
前記検出された特徴が予め定められた条件を満たすなら前記命令記憶部から命令を読み出す命令読出部と、
前記命令を示す命令信号をコンピュータに送信する命令信号送信部と
を備え、
前記命令記憶部は、
前記画像における予め定められた閾値以下の明度を有する低明度領域の位置を示す位置識別子に対応づけて命令が記憶されるものであり、
前記画像特徴検出部は、
前記画像において、領域別に前記閾値以下の明度を有するピクセルをカウントすることにより、前記画像における低明度領域の位置を求め、
前記命令読出部は、
当該位置を示す位置識別子に対応づけられた命令を読み出す
ことを特徴とする命令信号送信装置をもって解決手段とする。
The first aspect of the present invention is
A command signal transmitting apparatus that transmits a command signal indicating a command for causing a computer to perform a desired operation to the computer,
The body,
A camera provided on the main body and imaging the direction of the outside of the main body;
An instruction storage unit in which instructions are stored in advance;
An image acquisition unit for acquiring an image captured by the camera;
An image feature detection unit for detecting a feature generated in the image due to at least a part of a space in front of the camera being blocked;
A command reading unit that reads a command from the command storage unit if the detected feature satisfies a predetermined condition;
A command signal transmitter for transmitting a command signal indicating the command to a computer,
The instruction storage unit
A command is stored in association with a position identifier indicating a position of a low brightness area having a brightness equal to or lower than a predetermined threshold in the image,
The image feature detection unit
In the image, by counting pixels having brightness below the threshold for each region, the position of the low brightness region in the image is determined,
The instruction reading unit
A command signal transmitting apparatus that reads a command associated with a position identifier indicating the position is used as a solving means.

第2の本発明は
コンピュータに所望の動作を行わせるための命令を示す命令信号を当該コンピュータに送信する命令信号送信装置の動作方法であって、
前記命令信号送信装置は、本体と、前記本体に設けられ、前記本体の外側の方向を撮像するカメラと、予め命令が記憶される命令記憶部とを備え、
前記動作方法は、
前記命令信号送信装置の画像取得部が、前記カメラで撮像された画像を取得するステップと、
前記命令信号送信装置の画像特徴検出部が、前記カメラの前の空間の少なくとも一部が塞がれることにより前記画像に生じる特徴を検出するステップと、
前記命令信号送信装置の命令読出部が、前記検出された特徴が予め定められた条件を満たすなら前記命令記憶部から命令を読み出すステップと、
前記命令信号送信装置の命令信号送信部が、前記命令を示す命令信号をコンピュータに送信するステップと
を備え、
前記命令記憶部は、
前記画像における予め定められた閾値以下の明度を有する低明度領域の位置を示す位置識別子に対応づけて命令が記憶されるものであり、
前記画像特徴検出部は、
前記画像において、領域別に前記閾値以下の明度を有するピクセルをカウントすることにより、前記画像における低明度領域の位置を求め、
前記命令読出部は、
当該位置を示す位置識別子に対応づけられた命令を読み出す
ことを特徴とする命令信号送信装置の動作方法をもって解決手段とする。
The second aspect of the present invention
An operation method of an instruction signal transmitting apparatus for transmitting an instruction signal indicating an instruction for causing a computer to perform a desired operation to the computer,
The command signal transmitting device includes a main body, a camera provided in the main body and imaging a direction outside the main body, and a command storage unit in which a command is stored in advance.
The operation method is as follows:
An image acquisition unit of the command signal transmission device acquires an image captured by the camera;
An image feature detection unit of the command signal transmission device detecting a feature generated in the image due to at least a part of a space in front of the camera being blocked;
A command reading unit of the command signal transmitting device reads the command from the command storage unit if the detected feature satisfies a predetermined condition;
A command signal transmitting unit of the command signal transmitting device includes a step of transmitting a command signal indicating the command to a computer;
The instruction storage unit
A command is stored in association with a position identifier indicating a position of a low brightness area having a brightness equal to or lower than a predetermined threshold in the image,
The image feature detection unit
In the image, by counting pixels having brightness below the threshold for each region, the position of the low brightness region in the image is determined,
The instruction reading unit
The command associated with the position identifier indicating the position is read, and the operation method of the command signal transmitting device is characterized in that the solution means.

本発明によれば、操作が容易で、ロバスト性が高い命令信号送信装置およびその動作方法を提供することができる。   According to the present invention, it is possible to provide a command signal transmitting apparatus that is easy to operate and highly robust, and an operation method thereof.

第1の実施の形態に係る命令信号送信装置を組み込んだスマートフォンの外観を示す図である。It is a figure which shows the external appearance of the smart phone incorporating the command signal transmitter which concerns on 1st Embodiment. 第1の実施の形態に係る命令信号送信装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the command signal transmitter which concerns on 1st Embodiment. 命令信号送信装置10の動作の流れを示すフローチャートである。4 is a flowchart showing a flow of operation of the command signal transmission device 10. 画像の典型例を示す図である。It is a figure which shows the typical example of an image. 画像取得部14から明度判定部151に送信される配列データの一例を示す図である。It is a figure which shows an example of the arrangement | sequence data transmitted to the lightness determination part 151 from the image acquisition part 14. FIG. 明度判定部151が行う図5のステップS9での動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement in FIG.5 S9 which the lightness determination part 151 performs. 明度判定部151から低明度領域割合判定部152に送信される配列データの一例を示す図である。It is a figure which shows an example of the arrangement | sequence data transmitted to the low lightness area | region ratio determination part 152 from the lightness determination part 151. FIG. 第2の実施の形態に係る命令信号送信装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the command signal transmitter which concerns on 2nd Embodiment. 命令信号送信装置100の動作の流れを示すフローチャートである。3 is a flowchart showing an operation flow of the command signal transmitting apparatus 100. 画像の典型例を示す図である。It is a figure which shows the typical example of an image. 画像特徴検出部15Aが行う図10のステップSS11での動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement by step SS11 of FIG. 10 which image feature detection part 15A performs. 従来のスマートフォンを操作する方法の一例を示す図である。It is a figure which shows an example of the method of operating the conventional smart phone. 従来のスマートフォンを操作する別な方法の一例を示す図である。It is a figure which shows an example of another method of operating the conventional smart phone.

以下、本発明の実施の形態について図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[第1の実施の形態]
図1は、第1の実施の形態に係る命令信号送信装置を組み込んだスマートフォンの外観を示す図である。
[First Embodiment]
FIG. 1 is a diagram illustrating an appearance of a smartphone incorporating the command signal transmission device according to the first embodiment.

スマートフォン1は、本体11と、本体11の外側の方向を撮像するカメラ12と、本体11の内部に設けられた構成要素(詳しくは後述する)を備える。   The smartphone 1 includes a main body 11, a camera 12 that images the direction of the outside of the main body 11, and components (described later in detail) provided inside the main body 11.

スマートフォン1を自然に持つと、本体11の前面11aからは、図1(a)のように見え、本体11の背面11bからは、図1(b)のように見える。前面11aには、タッチディスプレイ111が設けられ、カメラ12のレンズ12aは、背面11bに設けられている。   When the smartphone 1 is held naturally, it looks from the front surface 11a of the main body 11 as shown in FIG. 1A, and from the back surface 11b of the main body 11 as shown in FIG. A touch display 111 is provided on the front surface 11a, and a lens 12a of the camera 12 is provided on the back surface 11b.

カメラ12は、特に指を伸ばしたり、持ち方を変えたりすることなく、人差し指UPがレンズ12aの前の空間を塞ぐことができるような位置に配置される。   The camera 12 is disposed at a position where the index finger UP can block the space in front of the lens 12a without particularly stretching or changing the way of holding the finger.

図2は、第1の実施の形態に係る命令信号送信装置の概略構成を示すブロック図である。   FIG. 2 is a block diagram showing a schematic configuration of the command signal transmitting apparatus according to the first embodiment.

命令信号送信装置10は、前述のスマートフォン1に組み込まれ、同じくスマートフォン1に組み込まれた前述のタッチディスプレイ111およびタッチディスプレイ111を制御するコンピュータであるタッチディスプレイ制御部112とともに使用される。   The command signal transmission device 10 is incorporated in the smartphone 1 described above, and is used together with the touch display 111 and the touch display control unit 112 which is a computer that controls the touch display 111 and is incorporated in the smartphone 1.

命令信号送信装置10は、前述の本体11(同図では省略する)と、カメラ12と、タッチディスプレイ111を制御するための命令が予め記憶された命令記憶部13と、カメラ12で撮像された画像(以下、画像とは当該画像をいう)を取得する画像取得部14と、カメラ12の前の空間の少なくとも一部が塞がれることにより画像に生じる特徴を検出する画像特徴検出部15と、検出された特徴が予め定められた条件を満たすなら命令記憶部13から命令を読み出す命令読出部16と、読み出された命令を示す命令信号をタッチディスプレイ制御部112に送信する命令信号送信部17とを備える。   The command signal transmitting apparatus 10 is captured by the camera body 12, the main body 11 (not shown in the figure), the camera 12, the command storage unit 13 in which commands for controlling the touch display 111 are stored in advance. An image acquisition unit 14 that acquires an image (hereinafter, the image is referred to as the image), an image feature detection unit 15 that detects a feature generated in the image when at least a part of the space in front of the camera 12 is blocked, A command reading unit 16 that reads a command from the command storage unit 13 if the detected feature satisfies a predetermined condition, and a command signal transmission unit that transmits a command signal indicating the read command to the touch display control unit 112 17.

画像特徴検出部15は、画像を構成する各ピクセルの明度が予め定められた閾値以下か否かを判定する明度判定部151と、当該閾値以下の明度を有するピクセルで構成される領域(低明度領域という)が画像に占める面積の割合(低明度領域割合という)を計算し、低明度領域割合が予め定められた閾値以上か否かを判定する低明度領域割合判定部152とを備える。   The image feature detection unit 15 includes a lightness determination unit 151 that determines whether or not the lightness of each pixel constituting the image is equal to or less than a predetermined threshold value, and an area (low lightness value) that includes pixels having a lightness value equal to or lower than the threshold value. A low lightness area ratio determination unit 152 that calculates a ratio of an area (referred to as an area) to an image (referred to as a low lightness area ratio) and determines whether the low lightness area ratio is equal to or greater than a predetermined threshold.

命令記憶部13には、低明度領域の面積の割合が予め定められた閾値より大きい場合に読み出すべき命令が記憶されている。この命令は、ここでは、「タッチディスプレイ111の表示をオフする」ための命令であることとする。   The instruction storage unit 13 stores an instruction to be read when the area ratio of the low brightness area is larger than a predetermined threshold. Here, it is assumed that this command is a command for “turning off the display of the touch display 111”.

(第1の実施の形態の動作)
次に、命令信号送信装置10の動作の一例を説明する。ここでは、図1の人差し指UPを用いて、タッチディスプレイ111の表示をオフする動作について説明する。
(Operation of the first embodiment)
Next, an example of the operation of the command signal transmission device 10 will be described. Here, an operation of turning off the display on the touch display 111 using the index finger UP of FIG. 1 will be described.

図3は、命令信号送信装置10の動作の流れを示すフローチャートである。   FIG. 3 is a flowchart showing an operation flow of the command signal transmitting apparatus 10.

まず、ユーザは、人差し指UPでレンズ12aの前の空間を塞ぐ(S1)。   First, the user closes the space in front of the lens 12a with the index finger UP (S1).

次に、カメラ12が、人差し指UPで塞がれたレンズ12aの前の空間を示す画像を生成する、つまり、レンズ12aの前の空間を撮像する(S3)。   Next, the camera 12 generates an image indicating the space in front of the lens 12a closed with the index finger UP, that is, images the space in front of the lens 12a (S3).

次に、画像取得部14が、カメラ12で撮像された画像を取得する(S5)。   Next, the image acquisition unit 14 acquires an image captured by the camera 12 (S5).

図4は、画像の典型例を示す図である。   FIG. 4 is a diagram illustrating a typical example of an image.

多くの場合、レンズ12aの前の空間のうち、人差し指UPで塞がれた部分Bは黒くなり、塞がれていない部分Wは白くなる。部分Wには、レンズ12aの先にある景色や物体が映るが、人差し指UPで塞がれていないので、外光が入り、人差し指UPで塞がれていない部分Wは、塞がれた部分Bより明るく映る。   In many cases, in the space in front of the lens 12a, the portion B covered with the index finger UP is black, and the uncovered portion W is white. In the portion W, a scene or an object in front of the lens 12a is reflected, but since it is not blocked by the index finger UP, outside light enters and the portion W not blocked by the index finger UP is a blocked portion. Brighter than B.

図3に戻り、画像取得部14は、画像を配列データに変換し、配列データを画像特徴検出部15の明度判定部151に送信する(S7)。   Returning to FIG. 3, the image acquisition unit 14 converts the image into array data, and transmits the array data to the brightness determination unit 151 of the image feature detection unit 15 (S7).

図5は、画像取得部14から明度判定部151に送信される配列データの一例を示す図である。   FIG. 5 is a diagram illustrating an example of array data transmitted from the image acquisition unit 14 to the brightness determination unit 151.

配列データは、画像を構成する各ピクセルに関する行を含んで構成される。
各行は、対応するピクセルを示すピクセルIDと、当該ピクセルの画像における位置を示す座標と、当該ピクセルの色を構成する各色成分量つまり赤、緑、青の成分量を示すR値、G値、B値とを含む。
The array data includes a row for each pixel constituting the image.
Each row includes a pixel ID indicating the corresponding pixel, coordinates indicating the position of the pixel in the image, and each color component amount constituting the color of the pixel, that is, an R value, a G value indicating the component amount of red, green, and blue, B value.

ピクセルIDは、1〜N(整数)の整数値で表現される。Nは、画像内の総ピクセル数、換言すれば、配列データの総行数である。   The pixel ID is expressed by an integer value of 1 to N (integer). N is the total number of pixels in the image, in other words, the total number of rows of array data.

座標は、画像の左上隅を基準としたピクセルの横方向の座標、縦方向の座標からなる。R値、G値、B値は、それぞれ例えば、0〜255の整数値で表現される。   The coordinates consist of the horizontal coordinate and vertical coordinate of the pixel with the upper left corner of the image as a reference. The R value, the G value, and the B value are expressed by integer values of 0 to 255, for example.

図3に戻り、次に、明度判定部151は、画像の各ピクセルにつき、ピクセルの明度が予め定められた閾値以下か否かを判定し、判定結果を配列データに書き込み、配列データを低明度領域割合判定部152に送信する(S9)。   Returning to FIG. 3, next, the lightness determination unit 151 determines, for each pixel of the image, whether the lightness of the pixel is equal to or less than a predetermined threshold, writes the determination result into the array data, and writes the array data to the low lightness. It transmits to the area | region ratio determination part 152 (S9).

図6は、明度判定部151が行う図5のステップS9での動作の一例を示すフローチャートである。ここでは、R値が閾値Th(R)以下であり、かつ、G値が閾値Th(G)以下であり、かつ、B値が閾値Th(B)以下である場合には、かかるR値、G値、B値を有するピクセルの明度は、ある閾値以下であることが予め判っており、明度判定部151は、閾値Th(R)、Th(G)、Th(B)を予め記憶していることとする。つまり、実質的に、明度の閾値が記憶されているのである。例えば、閾値Th(R)、Th(G)、Th(B)は、共に30である。なお、各閾値は、スマートフォン1の周囲環境が明るい場合は高く、暗い場合は低く設定するのが好ましい。   FIG. 6 is a flowchart illustrating an example of the operation in step S9 of FIG. 5 performed by the lightness determination unit 151. Here, when the R value is equal to or less than the threshold value Th (R), the G value is equal to or less than the threshold value Th (G), and the B value is equal to or less than the threshold value Th (B), the R value, It is known in advance that the brightness of the pixel having the G value and the B value is not more than a certain threshold value, and the brightness determination unit 151 stores the threshold values Th (R), Th (G), and Th (B) in advance. Suppose that That is, the brightness threshold value is actually stored. For example, the threshold values Th (R), Th (G), and Th (B) are all 30. Each threshold is preferably set high when the surrounding environment of the smartphone 1 is bright and low when it is dark.

また、明度判定部151は、例えば、配列データの総行数つまり、画像を構成する総ピクセル数Nを計数し、これを記憶していることとする。   Further, for example, the lightness determination unit 151 counts the total number of rows of array data, that is, the total number N of pixels constituting the image, and stores this.

図6(a)に示すように、まず、明度判定部151は、ピクセルIDについての変数iを1に初期化する(T1)。   As shown in FIG. 6A, first, the lightness determination unit 151 initializes a variable i for the pixel ID to 1 (T1).

次に、明度判定部151は、変数iが総ピクセル数N以下か否かを判定する(T3)。 明度判定部151は、変数iが総ピクセル数N以下なら(T3:YES)、変数iに対応するピクセルの明度が閾値以下か否かを判定し、判定結果を配列データの該当行に書き込む(T5)。続いて、明度判定部151は、変数iに1を加え(T7)、制御をステップT3に戻す。   Next, the lightness determination unit 151 determines whether or not the variable i is equal to or less than the total number of pixels N (T3). If the variable i is equal to or smaller than the total number of pixels N (T3: YES), the lightness determination unit 151 determines whether the lightness of the pixel corresponding to the variable i is equal to or less than a threshold value, and writes the determination result in the corresponding row of the array data ( T5). Subsequently, the lightness determination unit 151 adds 1 to the variable i (T7), and returns the control to step T3.

一方、明度判定部151は、変数iが総ピクセル数Nより大きいなら(T3:NO)、配列データを低明度領域割合判定部152に送信し(T9)、処理を終える。   On the other hand, if the variable i is larger than the total number of pixels N (T3: NO), the lightness determination unit 151 transmits the array data to the low lightness area ratio determination unit 152 (T9), and ends the process.

図6(b)に示すように、ステップT5では、明度判定部151は、まず、変数iに等しいピクセルIDを含む行を配列データから読み出す(T51)。   As shown in FIG. 6B, in step T5, the lightness determination unit 151 first reads a row including a pixel ID equal to the variable i from the array data (T51).

次に、明度判定部151は、読み出した行のR値が閾値Th(R)以下か否かを判定する(T52)。   Next, the lightness determination unit 151 determines whether or not the R value of the read row is equal to or less than a threshold value Th (R) (T52).

明度判定部151は、R値が閾値Th(R)以下なら(T52:YES)、読み出した行のG値が閾値Th(G)以下か否かを判定する(T53)。   If the R value is equal to or less than the threshold Th (R) (T52: YES), the lightness determination unit 151 determines whether the G value of the read row is equal to or less than the threshold Th (G) (T53).

明度判定部151は、G値が閾値Th(G)以下なら(T53:YES)、読み出した行のB値が閾値Th(B)以下か否かを判定する(T54)。   If the G value is equal to or smaller than the threshold Th (G) (T53: YES), the lightness determination unit 151 determines whether or not the B value of the read row is equal to or smaller than the threshold Th (B) (T54).

明度判定部151は、B値が閾値Th(B)以下なら(T54:YES)、読み出した行に対し、ピクセルの明度が閾値以下であることを示す低明度フラグ「1」を書き込み(T55)、制御をステップT7に進める。   If the B value is equal to or less than the threshold Th (B) (T54: YES), the brightness determination unit 151 writes a low brightness flag “1” indicating that the brightness of the pixel is equal to or less than the threshold to the read row (T55). Then, the control proceeds to step T7.

一方、明度判定部151は、R値が閾値Th(R)より大きいなら(T52:NO)、または、G値が閾値Th(G)より大きいなら(T53:NO)、または、B値が閾値Th(B)より大きいなら(T53:NO)、読み出した行に対し、ピクセルの明度が閾値より大きいことを示す低明度フラグ「0」を書き込み(T56)、制御をステップT7に進める。   On the other hand, the lightness determination unit 151 determines that the R value is greater than the threshold Th (R) (T52: NO), the G value is greater than the threshold Th (G) (T53: NO), or the B value is the threshold. If greater than Th (B) (T53: NO), a low brightness flag “0” indicating that the brightness of the pixel is greater than the threshold value is written to the read row (T56), and control proceeds to step T7.

図7は、明度判定部151から低明度領域割合判定部152に送信される配列データの一例を示す図である。   FIG. 7 is a diagram illustrating an example of array data transmitted from the lightness determination unit 151 to the low lightness area ratio determination unit 152.

例えば、ピクセルID「1」の行には、R値「0」が30(閾値Th(R))以下であり、かつ、G値「0」が30(閾値Th(G))以下であり、かつ、B値「0」が30(閾値Th(B))以下であることから、低明度フラグ「1」が書き込まれている。ピクセルID「2」、「3」の行も、かかる条件を満たすので、低明度フラグ「1」が書き込まれている。   For example, in the row of the pixel ID “1”, the R value “0” is 30 (threshold Th (R)) or less, and the G value “0” is 30 (threshold Th (G)) or less. In addition, since the B value “0” is 30 (threshold Th (B)) or less, the low brightness flag “1” is written. Since the rows with pixel IDs “2” and “3” also satisfy this condition, the low brightness flag “1” is written.

一方、ピクセルID「1001」の行には、例えば、R値「40」が30(閾値Th(R))より大きいことから、低明度フラグ「0」が書き込まれている。ピクセルID「1002」、「1003」の行も、R値、G値、B値のいずれかが、かかる条件を満たすので、低明度フラグ「0」が書き込まれている。   On the other hand, in the row of the pixel ID “1001”, for example, since the R value “40” is larger than 30 (threshold value Th (R)), the low brightness flag “0” is written. The row of pixel IDs “1002” and “1003” is also written with the low brightness flag “0” because any of the R value, G value, and B value satisfies this condition.

図3に戻り、低明度領域割合判定部152は、明度について定められた閾値(上記のように閾値Th(R)などにより間接的にしかし実質的には定められている閾値)以下の明度を有するピクセルで構成される低明度領域が占める面積の割合である低明度領域割合を計算し、低明度領域割合が予め定められた閾値以上か否かを判定し、判定結果を命令読出部16に通知する(S11)。   Returning to FIG. 3, the low lightness area ratio determination unit 152 sets the lightness below the threshold value determined for the lightness (threshold value indirectly or substantially determined by the threshold value Th (R) as described above). The low lightness area ratio, which is the ratio of the area occupied by the low lightness area composed of the pixels having the pixels, is calculated, it is determined whether or not the low lightness area ratio is equal to or greater than a predetermined threshold value, and the determination result is sent to the instruction reading unit 16 Notification is made (S11).

具体的には、低明度領域割合判定部152は、配列データにおいて、低明度フラグ「1」を含む行数を総行数で除した値つまり低明度領域割合を計算し、低明度領域割合が予め定められた閾値(例えば、0.8)以上か否かを判定し、判定結果を命令読出部16に通知する(S11)。低明度フラグ「1」を含む行数が1700、総行数が2000の場合、低明度領域割合は、1700/2000=0.85となる。この場合、判定結果は、「低明度領域割合は閾値以上である」となる。   Specifically, the low lightness area ratio determination unit 152 calculates a value obtained by dividing the number of rows including the low lightness flag “1” by the total number of lines in the array data, that is, a low lightness area ratio. It is determined whether or not a predetermined threshold (for example, 0.8) or more, and the determination result is notified to the instruction reading unit 16 (S11). When the number of rows including the low brightness flag “1” is 1700 and the total number of rows is 2000, the low brightness area ratio is 1700/2000 = 0.85. In this case, the determination result is “the low brightness area ratio is equal to or greater than the threshold”.

次に、命令読出部16は、判定結果が「低明度領域割合が閾値以上である」なら(S13:YES)、命令記憶部13から命令つまり「タッチディスプレイ111の表示をオフする」ための命令を読みだし、命令を命令信号送信部17に送信し(S15)、一方、判定結果が「低明度領域割合が閾値未満である」なら(S13:NO)、処理を終える。   Next, when the determination result is “the low lightness area ratio is equal to or greater than the threshold” (S13: YES), the command reading unit 16 issues a command from the command storage unit 13, that is, a command to “turn off display on the touch display 111”. Is transmitted to the command signal transmission unit 17 (S15). On the other hand, if the determination result is “the low brightness area ratio is less than the threshold” (S13: NO), the process is terminated.

命令信号送信部17は、ステップS15の命令を受信したなら、かかる命令を示す命令信号をタッチディスプレイ制御部112に送信する(S17)。   If the command signal transmission part 17 receives the command of step S15, the command signal which shows this command will be transmitted to the touch display control part 112 (S17).

タッチディスプレイ制御部112は、かかる命令信号を受信したなら、命令にしたがい、つまり、タッチディスプレイ111を制御することで、その表示をオフ(消去)させ(S19)、処理が終わる。   When receiving the command signal, the touch display control unit 112 follows the command, that is, controls the touch display 111 to turn off (erase) the display (S19), and the process ends.

以上説明したように、第1の実施の形態に係る命令信号送信装置10は、コンピュータ(112)に所望の動作を行わせるための命令を示す命令信号を当該コンピュータ(112)に送信するものであり、本体11と、本体11に設けられ、本体11の外側の方向を撮像するカメラ12と、予め命令が記憶される命令記憶部13と、カメラ12で撮像された画像を取得する画像取得部14と、カメラ12の前の空間の少なくとも一部が塞がれることにより画像に生じる特徴を検出する画像特徴検出部15と、検出された特徴が予め定められた条件を満たす(S13:YES)なら、命令記憶部13から命令を読み出す命令読出部16と、命令を示す命令信号をコンピュータ(112)に送信する命令信号送信部17とを備えることで、カメラ12の前の空間の少なくとも一部を塞ぐという容易な操作で、しかも、高いロバスト性をもって、コンピュータ(112)に命令信号を送信することができる。   As described above, the command signal transmitting apparatus 10 according to the first embodiment transmits a command signal indicating a command for causing the computer (112) to perform a desired operation to the computer (112). Yes, a main body 11, a camera 12 that images the direction of the outside of the main body 11, a command storage unit 13 that stores commands in advance, and an image acquisition unit that acquires images captured by the camera 12 14, an image feature detection unit 15 that detects a feature generated in an image when at least a part of a space in front of the camera 12 is blocked, and the detected feature satisfies a predetermined condition (S <b> 13: YES). Then, the camera includes a command reading unit 16 that reads a command from the command storage unit 13 and a command signal transmission unit 17 that transmits a command signal indicating the command to the computer (112). By a simple operation of plugging up at least a part of the two previous space, moreover, with a high robustness can transmit a command signal to the computer (112).

具体的には、命令記憶部13は、画像における予め定められた閾値以下の明度を有する低明度領域が占める面積の割合が予め定められた条件を満たした場合に読み出すべき命令が記憶されるものであり、画像特徴検出部15は、画像における低明度領域が占める面積の割合を求め、当該面積の割合が前記条件を満たすか否かを判定する(S11)ので、低明度領域が占める面積の割合が条件を満たすようにカメラ12の前の空間を塞ぐことで、コンピュータ(112)に命令信号を送信することができる。   Specifically, the instruction storage unit 13 stores an instruction to be read when the ratio of the area occupied by the low-lightness area having the lightness equal to or lower than a predetermined threshold in the image satisfies a predetermined condition. The image feature detection unit 15 obtains the ratio of the area occupied by the low brightness area in the image and determines whether the area ratio satisfies the above condition (S11). The command signal can be transmitted to the computer (112) by closing the space in front of the camera 12 so that the ratio satisfies the condition.

なお、第1の実施の形態においては、命令信号送信装置10をスマートフォン1に組み込んだが、命令信号送信装置10は、他の装置に組み込んでもよいし、単独で存在していてもよい。また、命令信号送信装置10の構成要素を複数の装置に適宜分散させて配置してもよい。   In addition, in 1st Embodiment, although the command signal transmitter 10 was integrated in the smart phone 1, the command signal transmitter 10 may be integrated in another apparatus and may exist independently. Further, the constituent elements of the command signal transmitting apparatus 10 may be appropriately distributed among a plurality of apparatuses.

また、第1の実施の形態では、ピクセルの明度が閾値以下であるかを判定するのに、R値、G値、B値を用いたが、その他の表色方式を用いてもよい。   In the first embodiment, the R value, the G value, and the B value are used to determine whether the brightness of the pixel is equal to or less than the threshold value. However, other color systems may be used.

[第2の実施の形態]
次に、本発明の第2の実施の形態について説明する。第2の実施の形態では、第1の実施の形態に同一または類似の装置および装置構成を用い、同一または類似のものについては第1の実施の形態で使用した符号を使用して重複説明を略し、第1の実施の形態とは異なる事項を中心に説明を行う。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. In the second embodiment, the same or similar apparatus and apparatus configuration as those in the first embodiment are used, and the same or similar elements are redundantly described by using the reference numerals used in the first embodiment. For brevity, the description will focus on matters different from the first embodiment.

命令信号送信装置は、図1のように、本体11とカメラ12を備えるスマートフォン1に組み込まれる。   As shown in FIG. 1, the command signal transmission device is incorporated in a smartphone 1 including a main body 11 and a camera 12.

図8は、第2の実施の形態に係る命令信号送信装置の概略構成を示すブロック図である。   FIG. 8 is a block diagram showing a schematic configuration of the command signal transmission apparatus according to the second embodiment.

命令信号送信装置100は、スマートフォン1に組み込まれたウェブブラウザ115およびウェブブラウザ115を制御するコンピュータであるウェブブラウザ制御部116とともに使用される。   The command signal transmission device 100 is used with a web browser 115 incorporated in the smartphone 1 and a web browser control unit 116 that is a computer that controls the web browser 115.

命令信号送信装置10は、前述の本体11(同図では省略)と、カメラ12と、ウェブブラウザ115を制御するための命令が画像における予め定められた閾値以下の明度を有する低明度領域の位置を示す位置識別子に対応づけて予め記憶される命令記憶部13Aと、画像を取得する画像取得部14と、カメラ12の前の空間の少なくとも一部が塞がれることにより画像に生じる特徴を検出する画像特徴検出部15Aと、検出された特徴が予め定められた条件を満たすなら命令を命令記憶部13Aから読み出す、つまり、画像の特徴である低明度領域の位置を示す位置識別子に対応づけられた命令を命令記憶部13Aから読み出す命令読出部16Aと、命令信号をウェブブラウザ制御部116に送信する命令信号送信部17とを備える。   The command signal transmitting apparatus 10 is configured to detect the position of the low brightness area where the command for controlling the main body 11 (not shown in the figure), the camera 12, and the web browser 115 has a brightness equal to or lower than a predetermined threshold in the image. A command storage unit 13A that is stored in advance in association with a position identifier indicating the image, an image acquisition unit 14 that acquires an image, and a feature that occurs in the image when at least part of the space in front of the camera 12 is blocked If the detected feature satisfies a predetermined condition, the command is read out from the command storage unit 13A, that is, associated with a position identifier indicating the position of the low brightness area that is the feature of the image. A command reading unit 16A that reads the command from the command storage unit 13A and a command signal transmission unit 17 that transmits a command signal to the web browser control unit 116.

画像特徴検出部15Aは、画像を構成する各ピクセルの明度が予め定められた閾値以下か否かを判定する明度判定部151Aと、低明度領域が画像の横方向の中心に対して左、右のいずれに存在するかを判定する低明度領域位置判定部152Aとを備える。   The image feature detection unit 15A includes a lightness determination unit 151A that determines whether or not the lightness of each pixel constituting the image is equal to or less than a predetermined threshold value, and the left and right of the low lightness region with respect to the horizontal center of the image. And a low brightness area position determination unit 152A for determining which of the two is present.

命令記憶部13Aは、画像における低明度領域の位置に対応づけて命令が記憶されるものであり、ここでは、低明度領域が画像の横方向の中心に対して左に存在するという特徴を示す位置識別子(位置識別子Lという)に対応づけて、ウェブブラウザ115のいわゆる「戻る」の動作に対応する命令が記憶され、低明度領域が画像の横方向の中心に対して右に存在するという特徴を示す位置識別子(位置識別子Rという)に対応づけて、ウェブブラウザ115のいわゆる「進む」の動作に対応する命令が記憶されている。   The instruction storage unit 13A stores an instruction in association with the position of the low-lightness area in the image, and shows a feature that the low-lightness area exists on the left side with respect to the horizontal center of the image. A feature corresponding to a so-called “return” operation of the web browser 115 is stored in association with the position identifier (referred to as position identifier L), and the low brightness area exists on the right side with respect to the horizontal center of the image. Is stored in association with a position identifier (referred to as a position identifier R) indicating the so-called “forward” operation of the web browser 115.

(第2の実施の形態の動作)
次に、命令信号送信装置100の動作の一例を説明する。ここでは、図1の人差し指UPを用いて、ウェブブラウザ115に「戻る」や「進む」を実行させる動作について説明する。
(Operation of Second Embodiment)
Next, an example of the operation of the command signal transmission device 100 will be described. Here, an operation of causing the web browser 115 to execute “return” or “forward” using the index finger UP of FIG. 1 will be described.

図9は、命令信号送信装置100の動作の流れを示すフローチャートである。   FIG. 9 is a flowchart showing an operation flow of the command signal transmitting apparatus 100.

まず、ユーザは、人差し指UPでレンズ12aの前の空間を塞ぐ(SS1)。
次に、カメラ12が、人差し指UPで塞がれたレンズ12aの前の空間を示す画像を生成する、つまり、レンズ12aの前の空間を撮像する(SS3)。
First, the user closes the space in front of the lens 12a with the index finger UP (SS1).
Next, the camera 12 generates an image indicating the space in front of the lens 12a closed with the index finger UP, that is, images the space in front of the lens 12a (SS3).

次に、画像取得部14が、カメラ12で撮像された画像を取得する(SS5)。   Next, the image acquisition unit 14 acquires an image captured by the camera 12 (SS5).

図10は、画像の典型例を示す図である。
ユーザは、ウェブブラウザ115に「戻る」の動作をさせたい場合は、レンズ12aの前の空間の左側を塞ぎ、これにより、図10(a)に示すような画像が得られる。
FIG. 10 is a diagram illustrating a typical example of an image.
When the user wants to perform a “return” operation on the web browser 115, the left side of the space in front of the lens 12a is closed, whereby an image as shown in FIG. 10A is obtained.

一方、ユーザは、ウェブブラウザ115に「進む」の動作をさせたい場合は、レンズ12aの前の空間の右側を塞ぎ、これにより、図10(b)に示すような画像が得られる。 図9に戻り、画像取得部14は、画像を配列データに変換し、配列データを画像特徴検出部15Aに送信する(SS7)。配列データは、図5のような形式のデータである。   On the other hand, when the user wants the web browser 115 to perform the “forward” operation, the user closes the right side of the space in front of the lens 12a, whereby an image as shown in FIG. 10B is obtained. Returning to FIG. 9, the image acquisition unit 14 converts the image into array data, and transmits the array data to the image feature detection unit 15A (SS7). The array data is data in a format as shown in FIG.

画像特徴検出部15Aは、配列データに基づき、画像における低明度領域の位置を示す位置識別子を求め、位置識別子を命令読出部16Aに送信する(SS11)。   The image feature detection unit 15A obtains a position identifier indicating the position of the low brightness area in the image based on the array data, and transmits the position identifier to the instruction reading unit 16A (SS11).

図11は、画像特徴検出部15Aが行う図10のステップSS11での動作の一例を示すフローチャートである。ここでは、R値が閾値Th(R)以下であり、かつ、G値が閾値Th(G)以下であり、かつ、B値が閾値Th(B)以下である場合には、かかるR値、G値、B値を有するピクセルの明度は、ある閾値以下であることが予め判っており、明度判定部151Aは、閾値Th(R)、Th(G)、Th(B)を予め記憶していることとする。つまり、実質的に、明度の閾値が記憶されているのである。例えば、閾値Th(R)、Th(G)、Th(B)は、共に30である。なお、各閾値は、スマートフォン1の周囲環境が明るい場合は高く、暗い場合は低く設定するのが好ましい。   FIG. 11 is a flowchart showing an example of the operation in step SS11 of FIG. 10 performed by the image feature detection unit 15A. Here, when the R value is equal to or less than the threshold value Th (R), the G value is equal to or less than the threshold value Th (G), and the B value is equal to or less than the threshold value Th (B), the R value, It is known in advance that the brightness of the pixel having the G value and the B value is below a certain threshold value, and the brightness determination unit 151A stores the threshold values Th (R), Th (G), and Th (B) in advance. Suppose that That is, the brightness threshold value is actually stored. For example, the threshold values Th (R), Th (G), and Th (B) are all 30. Each threshold is preferably set high when the surrounding environment of the smartphone 1 is bright and low when it is dark.

また、明度判定部151Aは、例えば、画像を構成する総ピクセル数Nを計数し、これを記憶していることとする。また、明度判定部151Aは、横方向の総ピクセル数Wを計数し、これを記憶していることとする。   Further, for example, the lightness determination unit 151A counts the total number N of pixels constituting the image and stores it. Further, it is assumed that the lightness determination unit 151A counts the total number of pixels W in the horizontal direction and stores this.

図11(a)に示すように、まず、明度判定部151Aは、ピクセルIDについての変数iを1に初期化し、また、2つの変数つまり、画像の左半分に存在しかつ閾値以下の明度を有するピクセルの数を示す変数Count(L)および画像の右半分に存在しかつ閾値以下の明度を有するピクセルの数を示す変数Count(R)を0に初期化する(TT1)。   As shown in FIG. 11A, first, the lightness determination unit 151A initializes the variable i for the pixel ID to 1, and also determines the lightness that is present in two variables, that is, the left half of the image and equal to or less than the threshold value. A variable Count (L) indicating the number of pixels having the value and a variable Count (R) indicating the number of pixels existing in the right half of the image and having a lightness equal to or less than the threshold value are initialized to 0 (TT1).

次に、明度判定部151Aは、変数iが総ピクセル数N以下か否かを判定する(TT3)。   Next, the lightness determination unit 151A determines whether or not the variable i is equal to or less than the total number of pixels N (TT3).

明度判定部151Aは、変数iが総ピクセル数N以下なら(TT3:YES)、変数iに対応するピクセルの明度が閾値以下か否かを判定し、明度が閾値以下なら、低明度領域位置判定部152Aが、当該ピクセルの位置に応じて変数Count(L)または変数Count(R)を更新する(TT5)。続いて、明度判定部151Aは、変数iに1を加え(TT7)、ステップTT3に戻る。   If the variable i is less than or equal to the total number of pixels N (TT3: YES), the lightness determination unit 151A determines whether the lightness of the pixel corresponding to the variable i is less than or equal to a threshold value. The unit 152A updates the variable Count (L) or the variable Count (R) according to the position of the pixel (TT5). Subsequently, the lightness determination unit 151A adds 1 to the variable i (TT7), and returns to Step TT3.

一方、変数iが総ピクセル数Nより大きいなら(TT3:NO)、低明度領域位置判定部152Aが、変数Count(L)と変数Count(R)を比較する(TT9)。つまり、低明度領域位置判定部152Aは、低明度領域が画像の横方向の中心に対して左、右のいずれに存在するかを判定する(TT9)。   On the other hand, if the variable i is larger than the total number of pixels N (TT3: NO), the low brightness area position determination unit 152A compares the variable Count (L) with the variable Count (R) (TT9). That is, the low brightness area position determination unit 152A determines whether the low brightness area exists on the left or the right with respect to the horizontal center of the image (TT9).

低明度領域位置判定部152Aは、変数Count(L)が変数Count(R)より大きいなら、つまり、低明度領域が画像の左部分にあるなら(TT9:YES)、位置識別子Lを命令読出部16Aに送信して(TT11)、処理を終える。   When the variable Count (L) is larger than the variable Count (R), that is, when the low brightness area is in the left part of the image (TT9: YES), the low lightness area position determination unit 152A uses the command identifier to read the position identifier L. It transmits to 16A (TT11) and finishes the process.

一方、低明度領域位置判定部152Aは、変数Count(L)が変数Count(R)以下なら、つまり、低明度領域が画像の右部分にあるなら(TT9:NO)、位置識別子Rを命令読出部16Aに送信して(TT13)、処理を終える。   On the other hand, if the variable Count (L) is equal to or less than the variable Count (R), that is, if the low brightness area is in the right part of the image (TT9: NO), the low brightness area position determination unit 152A reads the command of the position identifier R. It transmits to the part 16A (TT13) and finishes the process.

図11(b)に示すように、ステップTT5では、明度判定部151Aは、図6(b)に示した明度判定部151の動作と同様に、ステップT51〜T54を行い、R値が閾値Th(R)より大きいなら(T52:NO)、または、G値が閾値Th(G)より大きいなら(T53:NO)、または、B値が閾値Th(B)より大きいなら(T53:NO)、制御をステップTT7に進める。   As shown in FIG. 11B, in step TT5, the lightness determination unit 151A performs steps T51 to T54 in the same manner as the operation of the lightness determination unit 151 shown in FIG. If (R) is greater (T52: NO), or if the G value is greater than the threshold Th (G) (T53: NO), or if the B value is greater than the threshold Th (B) (T53: NO), Control proceeds to step TT7.

一方、低明度領域位置判定部152Aは、R値が閾値Th(R)以下(T52:YES)、かつ、G値が閾値Th(G)以下(T53:YES)、かつ、B値が閾値Th(B)以下(T54:YES)なら、配列データの変数iと同じピクセルIDを含む行から横方向の座標を読み出し、この座標が総ピクセル数Wを2で割った値未満か否かを判定する(TT61)。   On the other hand, the low brightness region position determination unit 152A determines that the R value is equal to or less than the threshold value Th (R) (T52: YES), the G value is equal to or less than the threshold value Th (G) (T53: YES), and the B value is equal to the threshold value Th. (B) If the following (T54: YES), the horizontal coordinate is read from the row including the same pixel ID as the variable i of the array data, and it is determined whether or not the coordinate is less than the value obtained by dividing the total number of pixels W by 2. (TT61).

低明度領域位置判定部152Aは、横方向の座標が総ピクセル数Wを2で割った値未満なら(TT61:YES)、変数Count(L)に1を加算し(TT63)、制御をステップTT7に進める。   If the coordinate in the horizontal direction is less than the value obtained by dividing the total number of pixels W by 2 (TT61: YES), the low brightness area position determination unit 152A adds 1 to the variable Count (L) (TT63), and performs control at step TT7. Proceed to

一方、低明度領域位置判定部152Aは、横方向の座標が総ピクセル数Wを2で割った値以上なら(TT61:NO)、変数Count(R)に1を加算し(TT65)、制御をステップTT7に進める。   On the other hand, if the horizontal coordinate is equal to or greater than the value obtained by dividing the total number of pixels W by 2 (TT61: NO), the low brightness area position determination unit 152A adds 1 to the variable Count (R) (TT65), and performs control. Proceed to step TT7.

図9に戻り、命令読出部16Aは、低明度領域位置判定部152Aから位置識別子Lを受信したなら、命令記憶部13Aから位置識別子Lに対応づけられた命令、つまり、ウェブブラウザ115のいわゆる「戻る」に対応する命令を読みだし、命令を命令信号送信部17に送信する一方、位置識別子Rを受信したなら、命令記憶部13から位置識別子Rに対応づけられた命令、つまり、ウェブブラウザ115のいわゆる「進む」に対応する命令を読みだし、命令を命令信号送信部17に送信する(SS15)。   Returning to FIG. 9, when the instruction reading unit 16A receives the position identifier L from the low brightness area position determination unit 152A, the instruction associated with the position identifier L from the instruction storage unit 13A, that is, the so-called “of the web browser 115”. When the command corresponding to “return” is read out and the command is transmitted to the command signal transmission unit 17 while the location identifier R is received, the command associated with the location identifier R from the command storage unit 13, that is, the web browser 115. The command corresponding to the so-called “advance” is read, and the command is transmitted to the command signal transmitter 17 (SS15).

命令信号送信部17は、ステップSS15の命令を受信したなら、かかる命令を示す命令信号をウェブブラウザ制御部116に送信する(SS17)。   If the command signal transmission part 17 receives the command of step SS15, the command signal which shows this command will be transmitted to the web browser control part 116 (SS17).

ウェブブラウザ制御部116は、かかる命令信号を受信したなら、命令信号に対応する命令にしたがい、つまり、ウェブブラウザ115を制御することで、ウェブブラウザ115に「戻る」または「進む」の動作をさせ(SS19)、処理が終わる。   When receiving the command signal, the web browser control unit 116 controls the web browser 115 according to the command corresponding to the command signal, that is, causes the web browser 115 to perform a “return” or “forward” operation. (SS19), the process ends.

以上説明したように、第2の実施の形態に係る命令信号送信装置100は、コンピュータ(116)に所望の動作を行わせるための命令を示す命令信号を当該コンピュータ(116)に送信するものであり、本体11と、本体11に設けられ、本体11の外側の方向を撮像するカメラ12と、予め命令が記憶される命令記憶部13Aと、カメラ12で撮像された画像を取得する画像取得部14と、カメラ12の前の空間の少なくとも一部が塞がれることにより画像に生じる特徴を検出する画像特徴検出部15Aと、検出された特徴が予め定められた条件を満たす(TT9:YESなど)なら、命令記憶部13Aから命令を読み出す命令読出部16Aと、命令を示す命令信号をコンピュータ(116)に送信する命令信号送信部17とを備えることで、カメラ12の前の空間の少なくとも一部を塞ぐという容易な操作で、しかも、高いロバスト性をもって、コンピュータ(116)に命令信号を送信することができる。   As described above, the command signal transmitting apparatus 100 according to the second embodiment transmits a command signal indicating a command for causing the computer (116) to perform a desired operation to the computer (116). Yes, the main body 11, the camera 12 that images the direction outside the main body 11, a command storage unit 13A that stores commands in advance, and an image acquisition unit that acquires images captured by the camera 12 14 and an image feature detection unit 15A that detects a feature that occurs in an image when at least a part of the space in front of the camera 12 is blocked, and the detected feature satisfies a predetermined condition (TT9: YES, etc.) ), A command reading unit 16A that reads a command from the command storage unit 13A and a command signal transmission unit 17 that transmits a command signal indicating the command to the computer (116). And, in an easy operation of plugging up at least a part of the front space of the camera 12, moreover, with a high robustness can transmit a command signal to the computer (116).

具体的には、命令記憶部13Aは、画像における予め定められた閾値以下の明度を有する低明度領域の位置を示す位置識別子L、Rに対応づけて命令が記憶されるものであり、画像特徴検出部15Aは、画像における低明度領域の位置を求め(TT9)、命令読出部16Aは、当該位置を示す位置識別子に対応づけられた命令を読み出す(SS15)ので、低明度領域が予め定められた位置に存在するようにカメラ12の前の空間を塞ぐことで、コンピュータ(116)に命令信号を送信することができる。   Specifically, the instruction storage unit 13A stores instructions in association with position identifiers L and R indicating the positions of low-lightness areas having lightness equal to or lower than a predetermined threshold in the image. The detection unit 15A obtains the position of the low brightness area in the image (TT9), and the instruction reading unit 16A reads the command associated with the position identifier indicating the position (SS15), so the low brightness area is determined in advance. The command signal can be transmitted to the computer (116) by closing the space in front of the camera 12 so as to exist at the specified position.

なお、第2の実施の形態では、低明度領域が画像の右に存在するか左に存在するかを判定したが、画像を複数の部分に分割し、低明度領域がどの部分に存在するかを判定してもよい。   In the second embodiment, it is determined whether the low brightness area exists on the right side or the left side of the image. However, the image is divided into a plurality of parts, and in which part the low brightness area exists. May be determined.

なお、各実施の形態に係る命令信号送信装置としてコンピュータを機能させるためのコンピュータプログラムは、半導体メモリ、磁気ディスク、光ディスク、光磁気ディスク、磁気テープなどのコンピュータ読み取り可能な記録媒体に記録でき、また、インターネットなどの通信網を介して伝送させて、広く流通させることができる。   A computer program for causing a computer to function as the command signal transmission device according to each embodiment can be recorded on a computer-readable recording medium such as a semiconductor memory, a magnetic disk, an optical disk, a magneto-optical disk, or a magnetic tape. It can be widely distributed by being transmitted through a communication network such as the Internet.

1…スマートフォン
10、100…命令信号送信装置
11…本体
12…カメラ
12a…レンズ
13、13A…命令記憶部
14…画像取得部
15、15A…画像特徴検出部
16、16A…命令読出部
17…命令信号送信部
111…タッチディスプレイ
112…タッチディスプレイ制御部
115…ウェブブラウザ
116…ウェブブラウザ制御部
151、151A…明度判定部
152…低明度領域割合判定部
152A…低明度領域位置判定部
L、R…位置識別子
DESCRIPTION OF SYMBOLS 1 ... Smartphone 10,100 ... Command signal transmitter 11 ... Main body 12 ... Camera 12a ... Lens 13, 13A ... Command memory | storage part 14 ... Image acquisition part 15, 15A ... Image feature detection part 16, 16A ... Command reading part 17 ... Command Signal transmitting unit 111 ... Touch display 112 ... Touch display control unit 115 ... Web browser 116 ... Web browser control unit 151, 151A ... Lightness determination unit 152 ... Low lightness region ratio determination unit 152A ... Low lightness region position determination unit L, R ... Location identifier

Claims (3)

コンピュータに所望の動作を行わせるための命令を示す命令信号を当該コンピュータに送信する命令信号送信装置であって、
本体と、
前記本体に設けられ、前記本体の外側の方向を撮像するカメラと、
予め命令が記憶される命令記憶部と、
前記カメラで撮像された画像を取得する画像取得部と、
前記カメラの前の空間の少なくとも一部が塞がれることにより前記画像に生じる特徴を検出する画像特徴検出部と、
前記検出された特徴が予め定められた条件を満たすなら前記命令記憶部から命令を読み出す命令読出部と、
前記命令を示す命令信号をコンピュータに送信する命令信号送信部と
を備え、
前記命令記憶部は、
前記画像における予め定められた閾値以下の明度を有する低明度領域の位置を示す位置識別子に対応づけて命令が記憶されるものであり、
前記画像特徴検出部は、
前記画像において、領域別に前記閾値以下の明度を有するピクセルをカウントすることにより、前記画像における低明度領域の位置を求め、
前記命令読出部は、
当該位置を示す位置識別子に対応づけられた命令を読み出す
ことを特徴とする命令信号送信装置。
A command signal transmitting apparatus that transmits a command signal indicating a command for causing a computer to perform a desired operation to the computer,
The body,
A camera provided on the main body and imaging the direction of the outside of the main body;
An instruction storage unit in which instructions are stored in advance;
An image acquisition unit for acquiring an image captured by the camera;
An image feature detection unit for detecting a feature generated in the image due to at least a part of a space in front of the camera being blocked;
A command reading unit that reads a command from the command storage unit if the detected feature satisfies a predetermined condition;
A command signal transmitter for transmitting a command signal indicating the command to a computer,
The instruction storage unit
A command is stored in association with a position identifier indicating a position of a low brightness area having a brightness equal to or lower than a predetermined threshold in the image,
The image feature detection unit
In the image, by counting pixels having brightness below the threshold for each region, the position of the low brightness region in the image is determined,
The instruction reading unit
A command signal transmitting apparatus that reads a command associated with a position identifier indicating the position.
コンピュータに所望の動作を行わせるための命令を示す命令信号を当該コンピュータに送信する命令信号送信装置の動作方法であって、
前記命令信号送信装置は、本体と、前記本体に設けられ、前記本体の外側の方向を撮像するカメラと、予め命令が記憶される命令記憶部とを備え、
前記動作方法は、
前記命令信号送信装置の画像取得部が、前記カメラで撮像された画像を取得するステップと、
前記命令信号送信装置の画像特徴検出部が、前記カメラの前の空間の少なくとも一部が塞がれることにより前記画像に生じる特徴を検出するステップと、
前記命令信号送信装置の命令読出部が、前記検出された特徴が予め定められた条件を満たすなら前記命令記憶部から命令を読み出すステップと、
前記命令信号送信装置の命令信号送信部が、前記命令を示す命令信号をコンピュータに送信するステップと
を備え、
前記命令記憶部は、
前記画像における予め定められた閾値以下の明度を有する低明度領域の位置を示す位置識別子に対応づけて命令が記憶されるものであり、
前記画像特徴検出部は、
前記画像において、領域別に前記閾値以下の明度を有するピクセルをカウントすることにより、前記画像における低明度領域の位置を求め、
前記命令読出部は、
当該位置を示す位置識別子に対応づけられた命令を読み出す
ことを特徴とする命令信号送信装置の動作方法。
An operation method of an instruction signal transmitting apparatus for transmitting an instruction signal indicating an instruction for causing a computer to perform a desired operation to the computer,
The command signal transmitting device includes a main body, a camera provided in the main body and imaging a direction outside the main body, and a command storage unit in which a command is stored in advance.
The operation method is as follows:
An image acquisition unit of the command signal transmission device acquires an image captured by the camera;
An image feature detection unit of the command signal transmission device detecting a feature generated in the image due to at least a part of a space in front of the camera being blocked;
A command reading unit of the command signal transmitting device reads the command from the command storage unit if the detected feature satisfies a predetermined condition;
A command signal transmitting unit of the command signal transmitting device includes a step of transmitting a command signal indicating the command to a computer;
The instruction storage unit
A command is stored in association with a position identifier indicating a position of a low brightness area having a brightness equal to or lower than a predetermined threshold in the image,
The image feature detection unit
In the image, by counting pixels having brightness below the threshold for each region, the position of the low brightness region in the image is determined,
The instruction reading unit
A method of operating a command signal transmitting apparatus, comprising: reading a command associated with a position identifier indicating the position.
請求項1記載の命令信号送信装置としてコンピュータを動作させるためのコンピュータプログラム。
A computer program for operating a computer as the command signal transmitting apparatus according to claim 1 .
JP2011204664A 2011-09-20 2011-09-20 Command signal transmitting apparatus and operation method thereof Expired - Fee Related JP5614849B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011204664A JP5614849B2 (en) 2011-09-20 2011-09-20 Command signal transmitting apparatus and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011204664A JP5614849B2 (en) 2011-09-20 2011-09-20 Command signal transmitting apparatus and operation method thereof

Publications (2)

Publication Number Publication Date
JP2013065253A JP2013065253A (en) 2013-04-11
JP5614849B2 true JP5614849B2 (en) 2014-10-29

Family

ID=48188677

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011204664A Expired - Fee Related JP5614849B2 (en) 2011-09-20 2011-09-20 Command signal transmitting apparatus and operation method thereof

Country Status (1)

Country Link
JP (1) JP5614849B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005277780A (en) * 2004-03-24 2005-10-06 Sharp Corp Videophone and videophone system
JP4381282B2 (en) * 2004-10-22 2009-12-09 株式会社東芝 Mobile device
JP5221404B2 (en) * 2009-01-27 2013-06-26 京セラ株式会社 Portable electronic device and sound adjustment method

Also Published As

Publication number Publication date
JP2013065253A (en) 2013-04-11

Similar Documents

Publication Publication Date Title
US9912853B2 (en) Switching between cameras of an electronic device
US10007401B2 (en) Information processing apparatus, method, and non-transitory computer-readable medium
CN108399349B (en) Image recognition method and device
US9900500B2 (en) Method and apparatus for auto-focusing of an photographing device
US9207779B2 (en) Method of recognizing contactless user interface motion and system there-of
KR20160095060A (en) Camera selection based on occlusion of field of view
CN106713696B (en) Image processing method and device
SE538272C2 (en) Improved identification of a gesture
US20230245441A9 (en) Image detection method and apparatus, and electronic device
US9648307B2 (en) Display apparatus and display method thereof
US11574415B2 (en) Method and apparatus for determining an icon position
JP5811495B2 (en) Image display device, image display method, and program
US20220245839A1 (en) Image registration, fusion and shielding detection methods and apparatuses, and electronic device
US10652442B2 (en) Image capturing apparatus with operation members provided on different sides, control method of the same, and storage medium
CN108227923A (en) A kind of virtual touch-control system and method based on body-sensing technology
CN110944163A (en) Image processing method and electronic equipment
US11768543B2 (en) Methods and apparatuses for controlling a system via a sensor
KR102495326B1 (en) Electronic device and control method thereof
KR102374428B1 (en) Graphic sensor, mobile terminal and graphic shooting method
JP5614849B2 (en) Command signal transmitting apparatus and operation method thereof
KR20140036832A (en) Sensing apparatus for user terminal using camera, method for the same and controlling method for the same
CN114863432A (en) Terminal device, contrast adjusting method, device and medium
CN104871532A (en) Image capture device and operation control method thereof
CN114051302B (en) Light control method, device, electronic equipment and storage medium
US20220035476A1 (en) Automatic control of image capture device display operation underwater

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130813

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140122

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140228

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140401

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140529

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20140609

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140905

R150 Certificate of patent or registration of utility model

Ref document number: 5614849

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees