JP2019168397A - Distance measuring device, distance measuring method, and image processing device equipped with distance measuring device - Google Patents

Distance measuring device, distance measuring method, and image processing device equipped with distance measuring device Download PDF

Info

Publication number
JP2019168397A
JP2019168397A JP2018057875A JP2018057875A JP2019168397A JP 2019168397 A JP2019168397 A JP 2019168397A JP 2018057875 A JP2018057875 A JP 2018057875A JP 2018057875 A JP2018057875 A JP 2018057875A JP 2019168397 A JP2019168397 A JP 2019168397A
Authority
JP
Japan
Prior art keywords
distance
detection
optical sensor
image processing
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2018057875A
Other languages
Japanese (ja)
Inventor
久保田 勉
Tsutomu Kubota
勉 久保田
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2018057875A priority Critical patent/JP2019168397A/en
Publication of JP2019168397A publication Critical patent/JP2019168397A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measurement Of Optical Distance (AREA)
  • Control Or Security For Electrophotography (AREA)

Abstract

To solve the problem that, in order to avoid damaging a user's health by an inadvertent direct gaze, a laser beam for measuring the distance to an object is required not to have excessively large output, but when output is low, the accuracy of measuring the distance to a remote object decreases, which may result in miscalculating the distance to an object when the distance is determined by one instance of measurement, while this will not cause a significant problem when it comes to a near object, even if the distance is determined by a few instances of measurement.SOLUTION: The present invention includes long distance measurement for determining the distance to an object using the results of multiple instances of measurement so that it is possible to detect even when a user is present a far away, and short distance measurement for determining the distance to an object using the results of a fewer number of measurements than the multiple measurements when it is determined that a user is present in a range nearer than a reference distance.SELECTED DRAWING: Figure 6A

Description

本発明は、光学センサを用いた測距デバイスに関するものである。特に、画像処理装置に組み込まれ、ユーザ検知するために用いられる測距デバイスに関するものである。   The present invention relates to a distance measuring device using an optical sensor. In particular, the present invention relates to a distance measuring device incorporated in an image processing apparatus and used for user detection.

近年の複合機(MFP:MultiFunction Peripheral)には、物体までの距離を測定する測距デバイスを搭載することによって、MFPに近づく人を検知して、省電力状態から通常状態に復帰することを行うものがある。   Recent multifunction devices (MFP: MultiFunction Peripheral) are equipped with a ranging device that measures the distance to an object, thereby detecting a person approaching the MFP and returning from a power saving state to a normal state. There is something.

物体までの距離を測定する技術としては、可視光あるいは不可視光を照射して、その反射光の強度に基づいて、物体までの距離を測定する手法がある。特許文献1には、遠くの物体を検出するためのモードにおいて照射する光の出力を、近くの物体を検出するためのモードにおいて照射する光の出力よりも大きくする技術が開示されている。   As a technique for measuring the distance to an object, there is a technique of irradiating visible light or invisible light and measuring the distance to the object based on the intensity of the reflected light. Japanese Patent Application Laid-Open No. 2004-228561 discloses a technique for making the output of light irradiated in a mode for detecting a distant object larger than the output of light irradiated in a mode for detecting a near object.

特開2003−50127号公報JP 2003-50127 A

対象物までの距離を測定するために照射する光としてレーザー光を利用する場合には、ユーザが誤って直接レーザー光を見てしまっても健康に害を及ぼさないように、レーザー光の出力を大きくし過ぎないことが要請される。しかし、レーザー光の出力が低いと、反射光の強度が減衰してしまうことから、遠方の物体に対する測距精度が下がってしまう。
このような状況において、遠方の対象物までの距離を、例えば1回の測距結果のみで決定してしまうと、遠方の物体までの距離を誤って算出してしまうことがある。一方で、近傍の物体であれば、反射光の強度はそれほど減衰しないため、少ない回数の測距結果により、近傍の物体までの距離を決定しても大きな問題は起こらない。
When using laser light as the light to irradiate to measure the distance to the object, the laser light output should be set so that it does not harm health if the user looks at the laser light by mistake. It is required not to make it too large. However, if the output of the laser light is low, the intensity of the reflected light is attenuated, so that the distance measurement accuracy for a distant object is lowered.
In such a situation, if the distance to the far object is determined by only one distance measurement result, for example, the distance to the far object may be erroneously calculated. On the other hand, since the intensity of the reflected light is not attenuated so much in the case of a nearby object, even if the distance to the nearby object is determined based on a small number of distance measurement results, no major problem occurs.

本発明は、光を照射する発光素子と、前記発光素子から照射され、対象物で反射された反射光を受光する受光素子と、を備える光学センサと、前記受光素子が受光した前記反射光に基づいて、前記光学センサから前記対象物までの距離を検出距離として検出する検出手段と、第1の基準距離を記憶する記憶手段と、前記検出手段が検出した前記検出距離に基づいて、前記光学センサから前記対象物までの距離を算出する算出手段と、を有する測距デバイスであって、前記算出手段は、第1の回数、前記検出手段が検出した第1の前記検出距離に基づいて、前記光学センサから前記対象物までの距離を第1の判定距離として算出するとともに、前記第1の判定距離が前記第1の基準距離より近くにある場合は、前記算出手段は、第2の回数、前記検出手段が検出した第2の前記検出距離に基づいて、前記光学センサから前記対象物までの距離を第2の判定距離として算出し、前記第1の回数は前記第2の回数より多いことを特徴とする。   The present invention relates to an optical sensor comprising: a light emitting element that emits light; and a light receiving element that receives reflected light emitted from the light emitting element and reflected by an object; and the reflected light received by the light receiving element. Based on a detection means for detecting a distance from the optical sensor to the object as a detection distance, a storage means for storing a first reference distance, and the optical distance based on the detection distance detected by the detection means. A distance measuring device having a calculation means for calculating a distance from a sensor to the object, wherein the calculation means is based on the first detection distance detected by the detection means for a first number of times. The distance from the optical sensor to the object is calculated as a first determination distance, and when the first determination distance is closer than the first reference distance, the calculation means calculates the second number of times. ,in front Based on the second detection distance detected by the detection means, the distance from the optical sensor to the object is calculated as a second determination distance, and the first number is larger than the second number. Features.

複数回の測距結果を用いて対象物までの距離を判定するモードと、当該複数回よりも少ない回数の測距結果を用いて対象物までの距離を判定するモードとを有することで、対象物までの距離を適切に判定することができる。   By having a mode for determining the distance to the object using a plurality of distance measurement results and a mode for determining the distance to the object using a distance measurement result that is less than the plurality of distance measurement results. The distance to the object can be determined appropriately.

画像処理装置の側面外観図である。1 is a side external view of an image processing apparatus. 画像処理装置の上面外観図である。1 is a top external view of an image processing apparatus. 画像処理装置のハードウェアのブロック図である。It is a block diagram of the hardware of an image processing apparatus. 操作部のハードウェアのブロック図である。It is a block diagram of the hardware of an operation part. 光学センサの検出距離を示す図である。It is a figure which shows the detection distance of an optical sensor. 実施例1の測距動作のメインフローである。3 is a main flow of a distance measuring operation according to the first embodiment. ロング測距のサブルーチンである。This is a long ranging subroutine. ショート測距のサブルーチンである。This is a short distance measurement subroutine. 実施例2の測距動作のメインフローである。10 is a main flow of a distance measuring operation according to the second embodiment. モーション測距のサブルーチンである。This is a subroutine for motion ranging. 光学センサの構造および動作を表す模式図である。It is a schematic diagram showing the structure and operation | movement of an optical sensor.

以下、本発明を実施するための形態について図面を用いて説明する。   Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.

図1および図2は、本発明の実施例において用いられる画像処理装置100の外観図である。
図1は、画像処理装置100を側面から見た外観図であり、図2は、画像処理装置を上面から見た外観図である。
1 and 2 are external views of an image processing apparatus 100 used in the embodiment of the present invention.
FIG. 1 is an external view of the image processing apparatus 100 viewed from the side, and FIG. 2 is an external view of the image processing apparatus viewed from the top.

本実施例において、画像処理装置100は、プリント機能、スキャナ機能、コピー機能、FAX機能などの複数の機能を備える複合機(MFP:MultiFunction Peripheral)である。   In this embodiment, the image processing apparatus 100 is a multifunction peripheral (MFP) having a plurality of functions such as a print function, a scanner function, a copy function, and a FAX function.

画像処理装置100は、画像処理装置100に接近する人を検知するための光学センサ15を備えている。画像処理装置100は、少なくとも、通常状態(第1電力状態)と、通常状態より消費電力が小さい省電力状態(第2電力状態)とで、動作可能である。画像処理装置100は、ユーザから操作を受け付けておらず、かつ、上記複数の機能のいずれも実行していない期間が所定時間以上となった場合に省電力状態に遷移する。また画像処理装置100は、光学センサ15が画像処理装置100に接近する人を検知した場合、省電力状態から通常状態に復帰する。なお、省電力状態は、上記した機能の何れかが使用可能な通常状態より、消費電力が小さい状態である。   The image processing apparatus 100 includes an optical sensor 15 for detecting a person approaching the image processing apparatus 100. The image processing apparatus 100 can operate at least in a normal state (first power state) and a power saving state (second power state) in which power consumption is lower than that in the normal state. The image processing apparatus 100 transitions to the power saving state when an operation is not received from the user and a period in which none of the plurality of functions is executed is a predetermined time or more. Further, when the optical sensor 15 detects a person approaching the image processing apparatus 100, the image processing apparatus 100 returns from the power saving state to the normal state. Note that the power saving state is a state in which power consumption is smaller than a normal state in which any of the functions described above can be used.

光学センサ15は、例えば近赤外レーザーパルス光を照射すると共に、物体で反射したパルスの反射光を受光する。
図8に、光学センサ15の模式的な構成図を示す。
光学センサ15は、レーザーからなる発光素子800、PSD(Position Sensitive Device)からなる受光素子801、これらの光学素子を制御する制御回路802、投光レンズ803、集光レンズ804、などから構成される。そして、発光素子800から照射されたレーザー光が、対象物805で反射されて、反射光が受光素子D801で受光される。
そして、発光素子800が出力したレーザーの反射光が受光素子801上で結像した位置に基づいて、制御回路802が演算を行う。これにより、光学センサ15は、対象物805までの距離を検出することができ、測距デバイスとして機能する。
The optical sensor 15 emits, for example, near-infrared laser pulse light and receives reflected light of a pulse reflected by an object.
FIG. 8 shows a schematic configuration diagram of the optical sensor 15.
The optical sensor 15 includes a light emitting element 800 made of laser, a light receiving element 801 made of PSD (Position Sensitive Device), a control circuit 802 for controlling these optical elements, a light projecting lens 803, a condenser lens 804, and the like. . Then, the laser light emitted from the light emitting element 800 is reflected by the object 805, and the reflected light is received by the light receiving element D801.
The control circuit 802 performs calculation based on the position where the reflected light of the laser output from the light emitting element 800 forms an image on the light receiving element 801. Thereby, the optical sensor 15 can detect the distance to the object 805 and functions as a distance measuring device.

また、画像処理装置100と対象物805との間の距離の計測を繰り返し実施することにより、画像処理装置100と対象物805との距離の遷移(すなわち、対象物805の軌跡)を確認することができる。
なお、上記の例では、光学センサ15の受光素子801がPSDである場合について説明したが、対象物との距離が測定できる光学センサであれば、デバイスの種類は問わない。また、光学センサ15は、図2に示されるような、扇形の検知エリアA1を有する。
In addition, by repeatedly measuring the distance between the image processing apparatus 100 and the target object 805, the transition of the distance between the image processing apparatus 100 and the target object 805 (that is, the locus of the target object 805) is confirmed. Can do.
In the above example, the case where the light receiving element 801 of the optical sensor 15 is a PSD has been described. However, the type of device is not limited as long as the optical sensor can measure the distance to the object. The optical sensor 15 has a fan-shaped detection area A1 as shown in FIG.

図3は、画像処理装置100のハードウェアのブロック図である。
図3に示すように、画像処理装置100は、画像処理装置100の動作を統括するコントローラ11、操作部12、スキャナ部13、プリンタ部14、光学センサ15を備えている。
FIG. 3 is a hardware block diagram of the image processing apparatus 100.
As illustrated in FIG. 3, the image processing apparatus 100 includes a controller 11 that controls the operation of the image processing apparatus 100, an operation unit 12, a scanner unit 13, a printer unit 14, and an optical sensor 15.

コントローラ11は、操作部12、スキャナ部13、プリンタ部14と通信可能に接続されている。
コントローラ11は、CPU301、RAM302、ROM303、電源制御部304、入出力I/F305、LANコントローラ306を備えている。そして、CPU301、RAM302、ROM303、電源制御部304、入出力I/F305、LANコントローラ306は、システムバス307に接続されている。
また、コントローラ11は、HDD308、画像処理部309、スキャナI/F310プリンタI/F311を備えている。そして、HDD308、画像処理部309、スキャナI/F310、プリンタI/F311は、画像バス312に接続されている。
The controller 11 is communicably connected to the operation unit 12, the scanner unit 13, and the printer unit 14.
The controller 11 includes a CPU 301, a RAM 302, a ROM 303, a power supply control unit 304, an input / output I / F 305, and a LAN controller 306. The CPU 301, RAM 302, ROM 303, power supply control unit 304, input / output I / F 305, and LAN controller 306 are connected to the system bus 307.
The controller 11 also includes an HDD 308, an image processing unit 309, and a scanner I / F 310 printer I / F 311. The HDD 308, the image processing unit 309, the scanner I / F 310, and the printer I / F 311 are connected to the image bus 312.

CPU301は、ROM303に記憶された制御プログラムなどに基づいて接続中の各種デバイスとのアクセスを統括的に制御する。また、コントローラ11で実行される各種処理についても統括的に制御する。
RAM302は、CPU301が動作するためのシステムワークメモリである。RAM302は、画像データを一時記憶するためのメモリでもある。
ROM303は、画像処理装置100のブートプログラムなどを格納する。
The CPU 301 comprehensively controls access to various connected devices based on a control program stored in the ROM 303. In addition, various processes executed by the controller 11 are also controlled in an integrated manner.
A RAM 302 is a system work memory for the CPU 301 to operate. The RAM 302 is also a memory for temporarily storing image data.
The ROM 303 stores a boot program for the image processing apparatus 100 and the like.

電源制御部304は、画像処理装置100の各部への電力供給を制御する。
電源制御部304は、画像処理装置100の電力状態が通常状態であるときに図3に示される各ハードウェアに電力を供給する。また、電源制御部304は、画像処理装置100の電力状態が省電力状態であるときに、図3に示される各ハードウェアについて、RAM302、入出力I/F305、LANコントローラ306、操作部12の一部、光学センサ15に電力を供給する。
電源制御部304には、通常状態でも省電力状態でも電力が供給されており、省電力状態において、後述の操作部12に設けられている状態遷移キーの押下を入出力I/F305を介して検知すると、画像処理装置100を通常状態に遷移させる。また、この状態遷移キーが通常状態において押下されると、電源制御部304は、画像処理装置100を省電力状態に遷移させる。
The power control unit 304 controls power supply to each unit of the image processing apparatus 100.
The power control unit 304 supplies power to each piece of hardware illustrated in FIG. 3 when the power state of the image processing apparatus 100 is the normal state. In addition, the power control unit 304 includes the RAM 302, the input / output I / F 305, the LAN controller 306, and the operation unit 12 for each piece of hardware illustrated in FIG. 3 when the power state of the image processing apparatus 100 is the power saving state. Some power is supplied to the optical sensor 15.
The power supply control unit 304 is supplied with power in both the normal state and the power saving state. In the power saving state, pressing of a state transition key provided in the operation unit 12 described later is performed via the input / output I / F 305. When detected, the image processing apparatus 100 is shifted to the normal state. When the state transition key is pressed in the normal state, the power control unit 304 causes the image processing apparatus 100 to transition to the power saving state.

入出力I/F305は、システムバス307と操作部12を接続するためのインタフェース部である。入出力I/F305は、操作部12に表示するための画像データをシステムバス307から受け取り、操作部12に出力すると共に、操作部12から入力された情報をシステムバス307へと出力する。
LANコントローラ306は、ネットワーク30に接続される外部装置20と情報の送受信を行う。
The input / output I / F 305 is an interface unit for connecting the system bus 307 and the operation unit 12. The input / output I / F 305 receives image data to be displayed on the operation unit 12 from the system bus 307, outputs the image data to the operation unit 12, and outputs information input from the operation unit 12 to the system bus 307.
The LAN controller 306 transmits and receives information to and from the external device 20 connected to the network 30.

HDD308は、ハードディスクドライブであり、システムソフトウェアや画像データを格納する。
画像処理部309は、RAM302に記憶された画像データを読み出し、JPEG、JBIGなどへの変換、画像の拡大または縮小、色調整などの画像処理を行う。
The HDD 308 is a hard disk drive and stores system software and image data.
The image processing unit 309 reads out image data stored in the RAM 302 and performs image processing such as conversion to JPEG, JBIG, etc., image enlargement or reduction, and color adjustment.

スキャナI/F310は、スキャナ部13のスキャナ制御部331と通信するためのインタフェース部である。
プリンタI/F311は、プリンタ部14のプリンタ制御部341と通信するためのインタフェース部である。
画像バス312は、画像データを送受信するための伝送路であり、PCIバスやIEEE1394などのバスで構成されている。
The scanner I / F 310 is an interface unit for communicating with the scanner control unit 331 of the scanner unit 13.
The printer I / F 311 is an interface unit for communicating with the printer control unit 341 of the printer unit 14.
The image bus 312 is a transmission path for transmitting and receiving image data, and includes a bus such as a PCI bus and IEEE1394.

スキャナ部13は、原稿から光学的に画像を読み取り、画像データを生成する。スキャナ部13は、スキャナ制御部331とスキャナ駆動部332とを有する。
スキャナ駆動部332は、原稿を読み取る読み取りヘッドを移動させるための駆動部、原稿を読取位置まで搬送するための駆動部(いずれも、不図示)などを含む。
スキャナ制御部331は、スキャナ駆動部332の動作を制御する。スキャナ制御部331は、スキャナ処理を行う際に、ユーザによって設定された設定情報をCPU301から受信し、設定情報に基づいてスキャナ駆動部332の動作を制御する。
The scanner unit 13 optically reads an image from a document and generates image data. The scanner unit 13 includes a scanner control unit 331 and a scanner driving unit 332.
The scanner driving unit 332 includes a driving unit for moving a reading head that reads a document, a driving unit for conveying the document to a reading position (both not shown), and the like.
The scanner control unit 331 controls the operation of the scanner driving unit 332. When performing scanner processing, the scanner control unit 331 receives setting information set by the user from the CPU 301 and controls the operation of the scanner driving unit 332 based on the setting information.

プリンタ部14は、電子写真方式にしたがって記録媒体(用紙)に画像を形成する。プリンタ部14は、プリンタ制御部341とプリンタ駆動部342とを有する。
プリンタ駆動部342は、感光ドラムを回転させるモータ、定着器を加圧するための機構部、ヒータ(いずれも、不図示)などを含む。
プリンタ制御部341は、プリンタ駆動部342の動作を制御する。プリンタ制御部341は、プリント処理を行う際に、ユーザによって設定された設定情報をCPU301から受信し、設定情報に基づいてプリンタ駆動部342の動作を制御する。
The printer unit 14 forms an image on a recording medium (paper) according to an electrophotographic method. The printer unit 14 includes a printer control unit 341 and a printer driving unit 342.
The printer driving unit 342 includes a motor that rotates the photosensitive drum, a mechanism unit that pressurizes the fixing device, a heater (all not shown), and the like.
The printer control unit 341 controls the operation of the printer driving unit 342. The printer control unit 341 receives setting information set by the user from the CPU 301 when performing print processing, and controls the operation of the printer driving unit 342 based on the setting information.

図4は、画像処理装置100の操作部12内部のハードウェアのブロック図である。
同図において、マイコン401は、操作部12の全体を制御する。マイコン401には、制御用のプログラム、設定値を格納するためのROM、ワーク用に使用されるRAM(いずれも、不図示)、などが内蔵されている。このマイコン401には、通常状態でも省電力状態でも電力が供給される。
FIG. 4 is a block diagram of hardware inside the operation unit 12 of the image processing apparatus 100.
In the figure, a microcomputer 401 controls the entire operation unit 12. The microcomputer 401 incorporates a control program, a ROM for storing set values, a RAM used for work (both not shown), and the like. The microcomputer 401 is supplied with electric power in both a normal state and a power saving state.

キー入力部402は、ユーザがキー入力するために操作される。このキー入力部402は、画像処理装置100を省電力状態に遷移させ、かつ、省電力状態から通常状態に遷移させるための状態遷移キーを有する。また、キー入力部402は、テンキーや各種設定を行うために、ユーザによって押下されるキーを有する。通常状態では、これらすべてのキーの押下を検知する検知部に電力が供給されるが、省電力状態では、状態遷移キーの押下を検知する検知部にのみ電力が供給される。どのキーが押下されたかについての情報は、入出力I/F405を介してコントローラ11に入力される。   The key input unit 402 is operated for the user to input keys. The key input unit 402 includes a state transition key for causing the image processing apparatus 100 to transition to the power saving state and to transition from the power saving state to the normal state. In addition, the key input unit 402 includes keys that are pressed by the user in order to perform numeric keys and various settings. In the normal state, power is supplied to the detection unit that detects pressing of all these keys, but in the power saving state, power is supplied only to the detection unit that detects pressing of the state transition key. Information about which key is pressed is input to the controller 11 via the input / output I / F 405.

表示部403は、ユーザに対して表示を行う液晶ディスプレイである。表示内容(表示データ)は、入出力I/F405を介してコントローラ11から取得される。また、表示部403がタッチスクリーンであれば、ユーザによるタッチ操作を検出し、タッチ操作の内容が、入出力I/F405を介してコントローラ11に入力される。表示部403には、通常状態においては電力が供給されるが、省電力状態においては電力が供給されない。   The display unit 403 is a liquid crystal display that displays to the user. Display contents (display data) are acquired from the controller 11 via the input / output I / F 405. If the display unit 403 is a touch screen, the touch operation by the user is detected, and the content of the touch operation is input to the controller 11 via the input / output I / F 405. The display unit 403 is supplied with power in the normal state, but is not supplied with power in the power saving state.

センサI/F404は、光学センサ15とマイコン401との間で通信を行うためのセンサインタフェースである。センサI/F404には、通常状態でも省電力状態でも電力が供給される。
入出力I/F405は、コントローラ11の入出力I/F305と通信するための入出力インタフェースである。入出力I/F405には、通常状態でも省電力状態でも電力が供給される。
A sensor I / F 404 is a sensor interface for performing communication between the optical sensor 15 and the microcomputer 401. Electric power is supplied to the sensor I / F 404 in both a normal state and a power saving state.
The input / output I / F 405 is an input / output interface for communicating with the input / output I / F 305 of the controller 11. The input / output I / F 405 is supplied with power in both a normal state and a power saving state.

操作部12は、光学センサ15を制御する。マイコン401の命令を受けると、上述したとおり、光学センサ15は、発光素子800からレーザー光を照射し、対象物に反射した光を受光素子801で受光する。そして、受光した結果から対象物までの距離を算出し、測定した結果をマイコン401に対して出力する。   The operation unit 12 controls the optical sensor 15. When receiving an instruction from the microcomputer 401, as described above, the optical sensor 15 emits laser light from the light emitting element 800, and the light receiving element 801 receives the light reflected on the object. Then, the distance to the object is calculated from the received light result, and the measured result is output to the microcomputer 401.

光学センサ15が照射するレーザー光は、ユーザの安全性のために出力を大きくすることはできない。そのためレーザー光の届く範囲は限られる。
出力するレーザー光は、対象物の色による反射率の影響を受けるため、対象物の色により検出距離の差が発生する。また、色むらや凹凸も、受光素子の誤差を増加させる。そのため、対象物に色むらや表面の凹凸があると、光学センサ15が算出する測定距離にも誤差が生じる。
また、受光する光が弱いほど誤差は大きくなり、一定強度を下回れば検出自体ができなくなる。そのため、反射光の強度が弱いほど、誤測距の可能性が高くなる。
The output of the laser light emitted by the optical sensor 15 cannot be increased for the safety of the user. Therefore, the reach of laser light is limited.
Since the laser beam to be output is affected by the reflectance due to the color of the object, a difference in detection distance occurs depending on the color of the object. Color unevenness and unevenness also increase the error of the light receiving element. For this reason, if the object has uneven color or surface irregularities, an error also occurs in the measurement distance calculated by the optical sensor 15.
In addition, the weaker the received light, the larger the error, and if it falls below a certain intensity, the detection itself cannot be performed. Therefore, the lower the intensity of the reflected light, the higher the possibility of erroneous distance measurement.

図5は、光学センサ15の検出距離に関する各種の閾値を示した図である。
対象物を検出できる範囲をL1で示している。また、対象物の色によっても、検出される距離に誤差が発生しない基準距離をL2で示している。
加えて、画像処理装置100を省電力状態から通常状態に復帰させる距離である、復帰距離をL3で示している。
基準距離L2は、マイコン401内のROMに予め保持しておく。また、復帰距離L3も、同様に保持しておく。
FIG. 5 is a diagram showing various threshold values related to the detection distance of the optical sensor 15.
A range in which the object can be detected is indicated by L1. In addition, a reference distance at which no error occurs in the detected distance depending on the color of the object is indicated by L2.
In addition, a return distance, which is a distance for returning the image processing apparatus 100 from the power saving state to the normal state, is indicated by L3.
The reference distance L2 is stored in advance in the ROM in the microcomputer 401. Similarly, the return distance L3 is also maintained.

マイコン401は、光学センサ15を制御し、画像処理装置100が省電力状態の時に、画像処理装置100の近くにいるユーザの探索を行う。
上述のとおり、対象物が遠くある場合は、光学センサには測距誤差が発生しやすくなる。
そこで、対象物の色によっても、検出される距離に差が発生しない基準距離L2を予め定めておく。そして、対象物がL2よりも遠くあるか、近くにあるかによって、測距方法を変更する。
具体的には、対象物までの距離がL2よりも遠い場合には、測距回数を多くする。一方、対象物までの距離がL2よりも近い場合には、測距回数を少なくする。
The microcomputer 401 controls the optical sensor 15 and searches for a user near the image processing apparatus 100 when the image processing apparatus 100 is in the power saving state.
As described above, when the object is far away, a distance measurement error is likely to occur in the optical sensor.
Therefore, a reference distance L2 that does not cause a difference in the detected distance depending on the color of the object is determined in advance. Then, the distance measuring method is changed depending on whether the object is farther or closer than L2.
Specifically, when the distance to the object is longer than L2, the number of distance measurement is increased. On the other hand, when the distance to the object is closer than L2, the number of distance measurements is reduced.

次に、図6のフローチャートを用いて、実施例1の測距方法を説明する。
図6Aは、実施例1の測距方法のメインフローである。
また、図6Bは、図6AのメインフローのS601におけるロング測距のサブルーチンであり、図6Cは、図6AのメインフローのS604におけるショート測距のサブルーチンである。
なお、以下では、ロング測距における測距回数を7回、ショート測距における測距回数を3回とした場合について説明する。但し、測距回数は上記のものに限られるものではなく、適宜変更することができる。
Next, the distance measuring method according to the first embodiment will be described with reference to the flowchart of FIG.
FIG. 6A is a main flow of the distance measuring method according to the first embodiment.
6B is a long distance measurement subroutine in S601 of the main flow in FIG. 6A, and FIG. 6C is a short distance measurement subroutine in S604 of the main flow in FIG. 6A.
Hereinafter, a case will be described in which the number of distance measurements in long distance measurement is 7 and the number of distance measurements in short distance measurement is 3. However, the number of distance measurements is not limited to the above, and can be changed as appropriate.

まず、図6Bのロング測距のサブルーチンから説明する。
図6Aのメインルーチンが開始すると、S601でロング測距のサブルーチンがコールされる。
そして、図6BのS621において、画像処理装置100の操作部12内部のマイコン401は、測距回数をカウントする測距カウンタをクリアする。
First, the long distance measurement subroutine of FIG. 6B will be described.
When the main routine of FIG. 6A is started, a long ranging subroutine is called in S601.
In step S621 in FIG. 6B, the microcomputer 401 in the operation unit 12 of the image processing apparatus 100 clears the distance measurement counter that counts the number of distance measurements.

S622において、マイコン401は、光学センサ15に対して測距を実施するためのコマンドを送る。そして、光学センサ15が実施した測距の結果を検出距離として受信する。
S623において、マイコン401は、S622で受信した検出距離をマイコン401内の内蔵メモリに格納する。
S624において、マイコン401は、測距回数をカウントする測距カウンタをインクリメントする。
S625において、マイコン401は、測距カウンタの値が7に一致したか否かを判定する。一致した場合にはS626に進み、一致しなかった場合にはS622に戻る。
In step S <b> 622, the microcomputer 401 sends a command for performing distance measurement to the optical sensor 15. Then, the result of distance measurement performed by the optical sensor 15 is received as a detection distance.
In step S623, the microcomputer 401 stores the detection distance received in step S622 in a built-in memory in the microcomputer 401.
In step S624, the microcomputer 401 increments a distance measurement counter that counts the number of distance measurements.
In step S625, the microcomputer 401 determines whether the value of the distance measurement counter matches 7. If they match, the process proceeds to S626, and if they do not match, the process returns to S622.

S626において、マイコン401は、内蔵メモリ内に格納した7回の測距による検出距離から、対象物までの距離を判定距離として算出する。
そして、S627において、S626で算出した測距結果をもって、メインフローに戻る。
In S626, the microcomputer 401 calculates the distance to the object as the determination distance from the detection distances of the seven distance measurements stored in the built-in memory.
In S627, the process returns to the main flow with the distance measurement result calculated in S626.

次に、図6Cのショート測距のサブルーチンを説明する。
図6AのメインフローでS604に進むと、ショート測距のサブルーチンがコールされる。
そして、図6CのS631において、マイコン401は、測距回数をカウントする測距カウンタをクリアする。
Next, the short distance measurement subroutine of FIG. 6C will be described.
When the process proceeds to S604 in the main flow of FIG. 6A, a short distance measurement subroutine is called.
In step S631 in FIG. 6C, the microcomputer 401 clears a distance measurement counter that counts the number of distance measurements.

S632において、マイコン401は、光学センサ15に対して測距を実施するためのコマンドを送る。そして、光学センサ15が実施した測距の結果を検出距離として受信する。
S633において、マイコン401は、S632で受信した検出距離をマイコン401内の内蔵メモリに格納する。
S634において、マイコン401は、測距回数をカウントする測距カウンタをインクリメントする。
S635において、マイコン401は、測距カウンタの値が3に一致したかを判定する。一致した場合にはS636に進み、一致しなかった場合にはS632に戻る。
In step S <b> 632, the microcomputer 401 sends a command for performing distance measurement to the optical sensor 15. Then, the result of distance measurement performed by the optical sensor 15 is received as a detection distance.
In step S633, the microcomputer 401 stores the detection distance received in step S632 in a built-in memory in the microcomputer 401.
In step S634, the microcomputer 401 increments a distance measurement counter that counts the number of distance measurements.
In step S635, the microcomputer 401 determines whether the value of the distance measurement counter matches 3. If they match, the process proceeds to S636, and if they do not match, the process returns to S632.

S636において、マイコン401は、内蔵メモリ内に格納した3回の測距による検出距離から、対象物までの距離を判定距離として算出する。
そして、S637において、S626で算出した測距結果をもって、メインフローに戻る。
In S636, the microcomputer 401 calculates the distance to the object as the determination distance from the detection distances of the three distance measurements stored in the built-in memory.
In S637, the process returns to the main flow with the distance measurement result calculated in S626.

次に、図6Aのメインフローについて説明する。
メインフローを開始する段階では、まだユーザが検出されていない。
そこで、まず、S601において、図6Bのロング測距のサブルーチンをコールする。
Next, the main flow of FIG. 6A will be described.
At the stage of starting the main flow, the user has not been detected yet.
Therefore, first, in S601, the long distance measurement subroutine of FIG. 6B is called.

S602において、マイコン401は、S601(ロング測距)の測距結果に基づいて、ユーザの有無を判定する。
ロング測距においてユーザが検出された場合はS603へ進み、ユーザが検出されなかった場合はS601へ戻る。
In step S602, the microcomputer 401 determines the presence or absence of the user based on the distance measurement result in step S601 (long distance measurement).
When the user is detected in the long distance measurement, the process proceeds to S603, and when the user is not detected, the process returns to S601.

S602でユーザが検出された場合、S603において、マイコン401は、S601の測距結果から、検出したユーザまでの距離が図5で上述した基準距離L2以内であるか否かを判定する。
基準距離L2よりも近い場合にはS604に進み、基準距離L2よりも遠い場合にはS601に戻る。
When a user is detected in S602, in S603, the microcomputer 401 determines whether the distance to the detected user is within the reference distance L2 described above with reference to FIG. 5 based on the distance measurement result in S601.
If it is shorter than the reference distance L2, the process proceeds to S604, and if it is farther than the reference distance L2, the process returns to S601.

S603で検出したユーザまでの距離が基準距離L2よりも近かった場合、S604において、図6Cのショート測距のサブルーチンをコールする。   When the distance to the user detected in S603 is shorter than the reference distance L2, the short distance measurement subroutine of FIG. 6C is called in S604.

S605において、マイコン401は、S604(ショート測距)の測距結果に基づいて、ユーザの有無を判定する。
ショート測距においてユーザが検出された場合はS606へ進み、ユーザが検出されなかった場合はS604へ戻る。
In step S605, the microcomputer 401 determines the presence / absence of the user based on the distance measurement result in step S604 (short distance measurement).
If the user is detected in the short distance measurement, the process proceeds to S606, and if the user is not detected, the process returns to S604.

ショート測距においてもユーザが検出された場合、S606において、マイコン401は、S604の測距結果から、検出したユーザまでの距離が図5で上述した復帰距離L3以内であるか否かを判定する。
復帰距離L3よりも近い場合にはS607に進み、復帰距離L3よりも遠い場合にはS604に戻る。
When the user is detected even in the short distance measurement, in S606, the microcomputer 401 determines whether the distance to the detected user is within the return distance L3 described above with reference to FIG. 5 from the distance measurement result in S604. .
If the distance is shorter than the return distance L3, the process proceeds to S607. If the distance is longer than the return distance L3, the process returns to S604.

S606で復帰距離L3よりも近くにユーザが検出されたと判断した場合、S607において、マイコン401は、入出力I/F405を通して、コントローラ11のCPU301に装置復帰信号を出力する。
そして、画像処理装置100は省電力状態から通常状態に復帰する。
If it is determined in S606 that the user has been detected closer than the return distance L3, in S607, the microcomputer 401 outputs a device return signal to the CPU 301 of the controller 11 through the input / output I / F 405.
Then, the image processing apparatus 100 returns from the power saving state to the normal state.

画像処理装置100が一定時間使用されなくなると、S608において、マイコン401は、画像処理装置100が省電力状態に入ったか否かを判定する。
省電力状態に入った場合にはS601に進み、省電力状態に入っていない場合にはS608に留まる。
When the image processing apparatus 100 is not used for a certain period of time, in S608, the microcomputer 401 determines whether or not the image processing apparatus 100 has entered a power saving state.
If the power saving state is entered, the process proceeds to S601. If the power saving state is not entered, the process stays in S608.

ユーザが画像処理装置から遠くにいる場合には、直ぐに画像処理装置を復帰させる必要はないため、ユーザの検出に時間をかけても支障はない。
また、光学センサについても、対象物までの距離が遠い場合は、光学センサの検出結果に誤検知が発生しやすい。そのため、1回の測定結果に頼ると、ユーザの有無および距離に誤差が発生しやすく、多数回の測距結果に基づいて判断を行った方が、信頼性の高い結果を得ることができる。
When the user is far away from the image processing apparatus, it is not necessary to immediately restore the image processing apparatus, so there is no problem even if it takes a long time to detect the user.
Further, regarding the optical sensor, when the distance to the object is long, erroneous detection is likely to occur in the detection result of the optical sensor. Therefore, depending on the measurement result of one time, an error is likely to occur in the presence or absence of the user and the distance, and a more reliable result can be obtained if the determination is made based on the result of many times of distance measurement.

一方、対象物までの距離が近い場合は、光学センサが誤測距する可能性が低くなるため、対象物までの距離が遠い場合に比べて、測距回数を減らすことができる。
このように、ユーザと画像処理装置との距離に応じて、測距回数を切り替えることにより、画像処理装置からユーザまでの距離を無駄なく正確に検出することが可能となる。
On the other hand, when the distance to the object is short, the possibility that the optical sensor performs a distance measurement is low, so the number of times of distance measurement can be reduced compared to the case where the distance to the object is far.
In this way, by switching the number of distance measurements in accordance with the distance between the user and the image processing apparatus, it becomes possible to accurately detect the distance from the image processing apparatus to the user without waste.

以上のとおり、実施例1では、まず、ユーザが遠くにいる場合においてもユーザを検知できるように、ロング測距として、多い測距回数により、ユーザの存在の有無およびユーザまでの距離を判断する。
そして、基準距離よりも近くにユーザがいると判断できた場合は、ショート測距として、少ない測距回数により、ユーザの存在の有無およびユーザまでの距離を判断する。
これにより、測距回数を状況に応じて可能な範囲で抑えつつ、誤検知や測距誤差を低減することができる。
また、基準距離を設定して測距することにより、検出対象の色や形状による検出誤差を低減することができる。
As described above, in the first embodiment, first, the presence / absence of a user and the distance to the user are determined based on a large number of distance measurement as long distance measurement so that the user can be detected even when the user is far away. .
If it can be determined that the user is closer than the reference distance, the presence / absence of the user and the distance to the user are determined based on a small number of distance measurements as short distance measurement.
As a result, it is possible to reduce false detection and distance measurement errors while suppressing the number of distance measurements within a possible range according to the situation.
In addition, by setting the reference distance and measuring the distance, detection errors due to the color and shape of the detection target can be reduced.

遠くの対象物を検出するためには光学センサ15の受光感度を高くする、すなわち、レーザー光の出力を大きくする必要がある。しかし、受光感度を高くすると測距誤差が大きくなる傾向がある。
そこで、実施例2では、対象物であるユーザを検出するまでは、レーザー光の出力を大きくして、高い感度で測距を行う。そして、ユーザが基準距離L2まで近づいたことを検知したら、例えばレーザー光の出力を小さくして、受光感度を下げ、測距誤差が小さくなる測距を行う。
また、実施例1と同様に、基準距離L2に基づいて、対象物までの距離が遠い場合には測距回数を多くし、近い場合には測距回数を少なくする。
また、ユーザが復帰距離L3以内にいる判断した場合には、画像処理装置を復帰させる。そして、ユーザが復帰距離L3以内にいる場合には、続けてユーザまでの測距を行い、蓄積した測距結果からユーザの軌跡を生成する。ユーザが復帰距離L3から検出できなくなったら、蓄積していた測距結果を消去する。
In order to detect a distant object, it is necessary to increase the light receiving sensitivity of the optical sensor 15, that is, to increase the output of the laser beam. However, when the light receiving sensitivity is increased, the ranging error tends to increase.
Therefore, in the second embodiment, until the user who is the object is detected, the laser light output is increased and the distance is measured with high sensitivity. When it is detected that the user has approached the reference distance L2, for example, the laser light output is reduced to reduce the light receiving sensitivity, and distance measurement is performed to reduce the distance measurement error.
Similarly to the first embodiment, based on the reference distance L2, the number of distance measurements is increased when the distance to the object is far, and the number of distance measurements is decreased when the distance is close.
If it is determined that the user is within the return distance L3, the image processing apparatus is returned. Then, when the user is within the return distance L3, the distance to the user is continuously measured, and the user's locus is generated from the accumulated distance measurement results. When the user cannot detect from the return distance L3, the accumulated distance measurement result is deleted.

次に、図7のフローチャートを用いて、実施例2の測距方法を説明する。   Next, the distance measuring method according to the second embodiment will be described with reference to the flowchart of FIG.

図7Aは、実施例2の測距方法のメインフローである。
また、図7Bは、図7AのメインフローのS711におけるモーション測距のサブルーチンである。
なお、図7AのメインフローのS702とS706は、それぞれ、実施例1で上述した、図6Bのロング測距のサブルーチンと図6Cのショート測距のサブルーチンと同様である。
FIG. 7A is a main flow of the distance measuring method according to the second embodiment.
FIG. 7B is a subroutine for motion ranging in S711 of the main flow of FIG. 7A.
Note that S702 and S706 in the main flow of FIG. 7A are the same as the long distance measurement subroutine of FIG. 6B and the short distance measurement subroutine of FIG.

まず、図7Bのモーション測距のサブルーチンから説明する。
図7Aのメインフローで画像処理装置が通常状態に復帰すると、S711でモーション測距のサブルーチンがコールされる。
First, the motion ranging subroutine of FIG. 7B will be described.
When the image processing apparatus returns to the normal state in the main flow of FIG. 7A, a motion distance measurement subroutine is called in S711.

そして、図7BのS741において、マイコン401は、測距回数をカウントする測距カウンタをクリアする。
S742において、マイコン401は、光学センサ15に対して測距を実施するためのコマンドを送る。そして、光学センサ15が実施した測距の結果を検出距離として受信する。
S743において、マイコン401は、S742で受信した検出距離をマイコン401内の内蔵メモリに格納する。
In step S741 in FIG. 7B, the microcomputer 401 clears the distance measurement counter that counts the number of distance measurements.
In step S <b> 742, the microcomputer 401 sends a command for performing distance measurement to the optical sensor 15. Then, the result of distance measurement performed by the optical sensor 15 is received as a detection distance.
In step S <b> 743, the microcomputer 401 stores the detection distance received in step S <b> 742 in a built-in memory in the microcomputer 401.

S744において、マイコン401は、測距回数をカウントする測距カウンタをインクリメントする。
S745において、マイコン401は、測距カウンタの値が2に一致したかを判定する。一致した場合にはS746に進み、一致しなかった場合にはS742に戻る。
In step S744, the microcomputer 401 increments a distance measurement counter that counts the number of distance measurements.
In step S745, the microcomputer 401 determines whether the value of the distance measurement counter matches 2. If they match, the process proceeds to S746, and if they do not match, the process returns to S742.

S746では、マイコン401は、内蔵メモリ内に格納した2回の測距による検出距離から、対象物までの距離を判定距離として算出する。なお、この測距回数は適宜変更することができる。
そして、S747において、S746で算出した測距結果をもって、メインフローに戻る。
In step S746, the microcomputer 401 calculates the distance to the object as the determination distance from the detection distance obtained by the two distance measurements stored in the built-in memory. The number of distance measurements can be changed as appropriate.
In S747, the process returns to the main flow with the distance measurement result calculated in S746.

次に、図7Aのメインフローについて説明する。
まず、S701において、マイコン401は、光学センサ15の受光素子の感度を高くなるように設定する。
Next, the main flow of FIG. 7A will be described.
First, in S701, the microcomputer 401 sets the sensitivity of the light receiving element of the optical sensor 15 to be high.

S702において、まだユーザが検出されていない状態であるため、図6Bのロング測距のサブルーチンをコールする。
S703において、S702(ロング測距)の測距結果に基づいて、ユーザの有無を判定する。
ロング測距においてユーザが検出された場合はS704へ進み、ユーザが検出されなかった場合にはS702へ戻る。
In S702, since the user has not yet been detected, the long distance measurement subroutine of FIG. 6B is called.
In S703, the presence or absence of the user is determined based on the distance measurement result in S702 (long distance measurement).
When the user is detected in the long distance measurement, the process proceeds to S704, and when the user is not detected, the process returns to S702.

S703でユーザが検出されたと判断した場合、S704において、マイコン401は、S702での判定距離から、検出したユーザまでの距離が基準距離L2以内であるか否かを判定する。
基準距離L2よりも近い場合にはS705に進み、基準距離L2よりも遠い場合にはS702に戻る。
If it is determined in S703 that the user has been detected, in S704, the microcomputer 401 determines whether the distance to the detected user is within the reference distance L2 from the determination distance in S702.
If the distance is shorter than the reference distance L2, the process proceeds to S705. If the distance is longer than the reference distance L2, the process returns to S702.

S705において、マイコン401は、光学センサ15の受光素子の感度を低くなるように変更する。
S704で検出したユーザまでの距離が基準距離L2よりも近かったと判断した場合、S706において、マイコン401は、図6Cのショート測距のサブルーチンをコールする。
In step S <b> 705, the microcomputer 401 changes the sensitivity of the light receiving element of the optical sensor 15 to be low.
If it is determined that the distance to the user detected in S704 is closer than the reference distance L2, in S706, the microcomputer 401 calls the short distance measurement subroutine of FIG. 6C.

S707において、マイコン401は、S706(ショート測距)の測距結果に基づいて、ユーザの有無を判定する。
ショート測距においてユーザが検出された場合はS709へ進み、ユーザが検出されなかった場合はS708へ進む。
S708において、マイコン401は、光学センサ15の受光素子の感度を高くなるように変更する。
In step S707, the microcomputer 401 determines the presence or absence of the user based on the distance measurement result in step S706 (short distance measurement).
If the user is detected in the short distance measurement, the process proceeds to S709. If the user is not detected, the process proceeds to S708.
In step S708, the microcomputer 401 changes the sensitivity of the light receiving element of the optical sensor 15 to be high.

ショート測距においてもユーザが検出された場合、S709において、マイコン401は、S706の判定距離から、検出したユーザまでの距離が復帰距離L3以内であるか否かを判定する。
復帰距離L3よりも近い場合にはS710に進み、復帰距離L3よりも遠い場合にはS706に戻る。
If the user is detected even in the short distance measurement, in step S709, the microcomputer 401 determines whether the detected distance from the determination distance in step S706 is within the return distance L3.
If it is shorter than the return distance L3, the process proceeds to S710, and if it is farther than the return distance L3, the process returns to S706.

S707で復帰距離L3よりも近くにユーザが検出されたと判断した場合、S710において、マイコン401は、入出力I/F405を通して、コントローラ11のCPU301に装置復帰信号を出力する。
そして、画像処理装置100は省電力状態から通常状態に復帰する。
If it is determined in S707 that the user has been detected closer than the return distance L3, in S710, the microcomputer 401 outputs a device return signal to the CPU 301 of the controller 11 through the input / output I / F 405.
Then, the image processing apparatus 100 returns from the power saving state to the normal state.

S711において、マイコン401は、図7Bのモーション測距のサブルーチンをコールする。
S712において、マイコン401は、S711(モーション測距)で得られた距離情報をマイコン401内のメモリに格納する。
S713において、マイコン401は、S712で格納した距離情報からユーザの軌跡データを生成する。
In step S <b> 711, the microcomputer 401 calls the motion ranging subroutine of FIG. 7B.
In step S <b> 712, the microcomputer 401 stores the distance information obtained in step S <b> 711 (motion ranging) in a memory in the microcomputer 401.
In S713, the microcomputer 401 generates user trajectory data from the distance information stored in S712.

S714において、マイコン401は、検出したユーザまでの距離が復帰距離L3以内であるか否かを判定する。
復帰距離L3以内の場合には、S711に戻り、復帰距離L3よりも遠くなった場合にはS715に進む。
S715において、マイコン401は、マイコン401内のメモリに格納保持していた距離情報を削除する。そして、S708に進む。
In S714, the microcomputer 401 determines whether or not the detected distance to the user is within the return distance L3.
If it is within the return distance L3, the process returns to S711, and if it is farther than the return distance L3, the process proceeds to S715.
In step S <b> 715, the microcomputer 401 deletes the distance information stored and held in the memory in the microcomputer 401. Then, the process proceeds to S708.

以上に説明したとおり、光学センサの感度を高く設定することにより、感度が低い時よりも遠くの物体を検知することが可能となるものの、誤検知や誤差が大きくなる。
そこで、実施例2においては、測距結果の信頼性を上げるために、基準距離より遠くのロング測距を行う場合は光学センサの感度を高く設定し、基準距離より近くのショート測距を行う場合は光学センサの感度を低く設定する。
これにより、より遠くの対象物を検出することが可能となり、測距結果の信頼性の低下も防止することができる。
As described above, by setting the sensitivity of the optical sensor high, it is possible to detect an object farther than when the sensitivity is low, but false detection and errors increase.
Therefore, in Example 2, in order to increase the reliability of the distance measurement result, when performing long distance measurement farther than the reference distance, the sensitivity of the optical sensor is set high, and short distance measurement closer to the reference distance is performed. In this case, the sensitivity of the optical sensor is set low.
As a result, it is possible to detect a farther object, and it is possible to prevent a decrease in reliability of the distance measurement result.

また、実施例2においては、復帰距離であるL3内にユーザがいる場合、ユーザの軌跡データを取得する。但し、軌跡データの取得について、必ずしも復帰距離L3に基づいて判断する必要はなく、別途距離を定めることも可能である。   In the second embodiment, when there is a user within L3 that is the return distance, user trajectory data is acquired. However, it is not always necessary to determine the acquisition of trajectory data based on the return distance L3, and a separate distance can be determined.

また、上述の各実施例においては、1個の光学センサにより測距デバイスを構成したが、複数個の光学センサを使用してもよい。この場合、画像処理装置100の近くにおけるユーザの動きを、奥行き(遠近)方向だけでなく、左右方向でも捉えることができ、ユーザの動きをより正確に追跡することができる。   In each of the above-described embodiments, the distance measuring device is configured by one optical sensor, but a plurality of optical sensors may be used. In this case, the user's movement near the image processing apparatus 100 can be captured not only in the depth (perspective) direction but also in the left-right direction, and the user's movement can be tracked more accurately.

(その他の実施例)
本発明は、上述の実施例の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
また、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器からなる装置に適用してもよい。
本発明は上述の実施例に限定されるものではなく、本発明の趣旨に基づき種々の変形(各実施例の有機的な組合せを含む)が可能であり、それらを本発明の範囲から除外するものではない。すなわち、上述の各実施例及びその変形例を組み合わせた構成もすべて本発明に含まれるものである。
(Other examples)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
Further, the present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device.
The present invention is not limited to the above-described embodiments, and various modifications (including organic combinations of the embodiments) are possible based on the spirit of the present invention, and these are excluded from the scope of the present invention. It is not a thing. That is, all the configurations in which the above-described embodiments and modifications thereof are combined are also included in the present invention.

15 光学センサ
100 画像処理装置
800 発光素子
801 受光素子
15 Optical sensor 100 Image processing device 800 Light emitting element 801 Light receiving element

Claims (8)

光を照射する発光素子と、前記発光素子から照射され、対象物で反射された反射光を受光する受光素子と、を備える光学センサと、
前記受光素子が受光した前記反射光に基づいて、前記光学センサから前記対象物までの距離を検出距離として検出する検出手段と、
第1の基準距離を記憶する記憶手段と、
前記検出手段が検出した前記検出距離に基づいて、前記光学センサから前記対象物までの距離を算出する算出手段と、を有する測距デバイスであって、
前記算出手段は、第1の回数、前記検出手段が検出した第1の前記検出距離に基づいて、前記光学センサから前記対象物までの距離を第1の判定距離として算出するとともに、
前記第1の判定距離が前記第1の基準距離より近くにある場合は、前記算出手段は、第2の回数、前記検出手段が検出した第2の前記検出距離に基づいて、前記光学センサから前記対象物までの距離を第2の判定距離として算出し、
前記第1の回数は前記第2の回数より多いことを特徴とする測距デバイス。
An optical sensor comprising: a light emitting element that emits light; and a light receiving element that receives reflected light that is emitted from the light emitting element and reflected by an object;
Detecting means for detecting a distance from the optical sensor to the object as a detection distance based on the reflected light received by the light receiving element;
Storage means for storing a first reference distance;
A distance measuring device having calculation means for calculating a distance from the optical sensor to the object based on the detection distance detected by the detection means,
The calculating means calculates the distance from the optical sensor to the object as the first determination distance based on the first number of times and the first detection distance detected by the detection means;
When the first determination distance is closer than the first reference distance, the calculation means determines the second number of times from the optical sensor based on the second detection distance detected by the detection means. Calculating the distance to the object as a second determination distance;
The distance measuring device, wherein the first number of times is greater than the second number of times.
前記検出手段が前記第1の検出距離を検出するときの前記光学センサの感度は、前記検出手段が前記第2の検出距離を検出するときの前記光学センサの感度に比べて、高いことを特徴とする請求項1に記載の測距デバイス。   The sensitivity of the optical sensor when the detection means detects the first detection distance is higher than the sensitivity of the optical sensor when the detection means detects the second detection distance. The distance measuring device according to claim 1. 前記検出手段が前記第1の検出距離を検出するときの前記発光素子の強度は、前記検出手段が前記第2の検出距離を検出するときの前記発光素子の強度に比べて、高いことを特徴とする請求項2に記載の測距デバイス。   The intensity of the light emitting element when the detecting means detects the first detection distance is higher than the intensity of the light emitting element when the detecting means detects the second detection distance. The distance measuring device according to claim 2. 前記記憶手段が、前記第1の基準距離より短い第2の基準距離を記憶しており、
第2の判定距離が、第2の基準距離より近いか否かを判定することを特徴とする請求項1から3のいずれか1項に記載の測距デバイス。
The storage means stores a second reference distance shorter than the first reference distance;
The distance measuring device according to any one of claims 1 to 3, wherein it is determined whether or not the second determination distance is closer to the second reference distance.
前記第2の判定距離が前記第2の基準距離より近い場合、前記算出手段は、第3の回数、前記検出手段が検出した第3の検出距離に基づいて、前記対象物の軌跡を生成することを特徴とする請求項4に記載の測距デバイス。   When the second determination distance is closer than the second reference distance, the calculation unit generates a trajectory of the object based on the third detection distance detected by the detection unit a third number of times. The distance measuring device according to claim 4. 光を照射する発光素子と、前記発光素子から照射され、対象物で反射された反射光を受光する受光素子と、を備える光学センサと、
前記受光素子が受光した前記反射光に基づいて、前記光学センサから前記対象物までの距離を検出距離として検出する検出手段と、
第1の基準距離を記憶する記憶手段と、
前記検出手段が検出した前記検出距離に基づいて、前記光学センサから前記対象物までの距離を算出する算出手段と、を有する測距デバイスを用いた測距方法であって、
前記算出手段は、第1の回数、前記検出手段が検出した第1の前記検出距離に基づいて、前記光学センサから前記対象物までの距離を第1の判定距離として算出する工程と、
前記第1の判定距離が前記第1の基準距離より近くにある場合は、前記算出手段は、第2の回数、前記検出手段が検出した第2の前記検出距離に基づいて、前記光学センサから前記対象物までの距離を第2の判定距離として算出する工程とを有し、
前記第1の回数は前記第2の回数より多いことを特徴とする測距方法。
An optical sensor comprising: a light emitting element that emits light; and a light receiving element that receives reflected light that is emitted from the light emitting element and reflected by an object;
Detecting means for detecting a distance from the optical sensor to the object as a detection distance based on the reflected light received by the light receiving element;
Storage means for storing a first reference distance;
A distance measuring method using a distance measuring device having a calculation means for calculating a distance from the optical sensor to the object based on the detection distance detected by the detection means,
The calculating means calculates a distance from the optical sensor to the object as a first determination distance based on the first number of times and the first detection distance detected by the detection means;
When the first determination distance is closer than the first reference distance, the calculation means determines the second number of times from the optical sensor based on the second detection distance detected by the detection means. Calculating a distance to the object as a second determination distance,
The distance measuring method, wherein the first number of times is greater than the second number of times.
請求項1から5のいずれか1項に記載の測距デバイスを備えた画像処理装置。   An image processing apparatus comprising the distance measuring device according to claim 1. 請求項3に記載の測距デバイスを備え、少なくとも第1電力状態および該第1電力状態よりも消費電力が小さい第2電力状態で動作可能な画像処理装置であって、
第2の判定距離が第2の基準距離より近い場合、前記第2電力状態から前記第1電力状態に復帰することを特徴とする請求項7に記載の画像処理装置。
An image processing apparatus comprising the distance measuring device according to claim 3 and operable in at least a first power state and a second power state in which power consumption is smaller than the first power state,
The image processing apparatus according to claim 7, wherein when the second determination distance is shorter than the second reference distance, the image processing apparatus returns from the second power state to the first power state.
JP2018057875A 2018-03-26 2018-03-26 Distance measuring device, distance measuring method, and image processing device equipped with distance measuring device Pending JP2019168397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018057875A JP2019168397A (en) 2018-03-26 2018-03-26 Distance measuring device, distance measuring method, and image processing device equipped with distance measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018057875A JP2019168397A (en) 2018-03-26 2018-03-26 Distance measuring device, distance measuring method, and image processing device equipped with distance measuring device

Publications (1)

Publication Number Publication Date
JP2019168397A true JP2019168397A (en) 2019-10-03

Family

ID=68106599

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018057875A Pending JP2019168397A (en) 2018-03-26 2018-03-26 Distance measuring device, distance measuring method, and image processing device equipped with distance measuring device

Country Status (1)

Country Link
JP (1) JP2019168397A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799081A (en) * 2019-11-14 2021-05-14 日立乐金光科技株式会社 Distance measuring device
WO2021124763A1 (en) * 2019-12-20 2021-06-24 ソニーセミコンダクタソリューションズ株式会社 Ranging device, method for controlling ranging device, and electronic apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799081A (en) * 2019-11-14 2021-05-14 日立乐金光科技株式会社 Distance measuring device
CN112799081B (en) * 2019-11-14 2024-05-14 日立乐金光科技株式会社 Distance measuring device
WO2021124763A1 (en) * 2019-12-20 2021-06-24 ソニーセミコンダクタソリューションズ株式会社 Ranging device, method for controlling ranging device, and electronic apparatus

Similar Documents

Publication Publication Date Title
US8924759B2 (en) Power-supply control device, image processing apparatus, power-supply control method, and computer-readable medium
US8578185B2 (en) Power supply control device, image processing apparatus, power supply control method and computer readable medium for controlling power supply
EP2741486B1 (en) Information processing apparatus having user authentication function and authentication method
US20140002843A1 (en) Image forming apparatus and control method therefor
US20120127518A1 (en) Power-supply monitoring device and image processing apparatus
KR101636688B1 (en) Image forming apparatus, method for controlling thereof, and storage medium
US20190025424A1 (en) Apparatus that detects person by using sonic sensor, method, electronic apparatus that includes the detection apparatus, and storage medium
US9280122B2 (en) Printing apparatus, method for controlling printing apparatus, and recording medium
US20180032013A1 (en) Information processing apparatus, control method thereof, and storage medium
US20180115673A1 (en) Information processing apparatus and image processing apparatus
US10057445B2 (en) Image forming apparatus and control method of image forming apparatus
JP2019168397A (en) Distance measuring device, distance measuring method, and image processing device equipped with distance measuring device
JP2009511291A (en) Printing medium discrimination method and apparatus
JP6480706B2 (en) Image forming apparatus, control method therefor, and program
US11509781B2 (en) Information processing apparatus, and control method for information processing apparatus
US10298796B2 (en) Information processing apparatus, control method thereof, and storage medium for controlling power state shifting based on amplitudes of received sound waves
WO2012014593A1 (en) Presence determination device, method of determining presence, and program
JP2019184880A (en) Image processing device and control method of the same
JP6897010B2 (en) Return control device, image processing device and program
US10757282B2 (en) Image forming apparatus capable of notifying uncollected printed matter, notification method
JP4204739B2 (en) Image forming apparatus, stop control method in image forming apparatus, and computer-readable storage medium storing program for executing the method
US20190082070A1 (en) Image processing apparatus and sleep cancellation method
JP6768443B2 (en) Image forming device
JP2006138868A (en) Optical position detection apparatus and record medium
JP6723026B2 (en) Image forming apparatus, image forming apparatus control program, and image forming apparatus control method