JP2011199503A - Imaging apparatus and program - Google Patents

Imaging apparatus and program Download PDF

Info

Publication number
JP2011199503A
JP2011199503A JP2010062878A JP2010062878A JP2011199503A JP 2011199503 A JP2011199503 A JP 2011199503A JP 2010062878 A JP2010062878 A JP 2010062878A JP 2010062878 A JP2010062878 A JP 2010062878A JP 2011199503 A JP2011199503 A JP 2011199503A
Authority
JP
Japan
Prior art keywords
image sensor
image
sensor
range
depression angle
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
JP2010062878A
Other languages
Japanese (ja)
Inventor
Masanao Takahata
昌尚 高畠
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.)
PFU Ltd
Original Assignee
PFU Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PFU Ltd filed Critical PFU Ltd
Priority to JP2010062878A priority Critical patent/JP2011199503A/en
Publication of JP2011199503A publication Critical patent/JP2011199503A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an imaging apparatus whose applications can be extended.SOLUTION: The imaging apparatus includes: a deformable flexible arm 2; a type-A plug 3 which is provided at one end of the flexible arm 2 and supports the flexible arm 2; a camera head 4 provided at the other end of the flexible arm 2; an image sensor 12 which is provided in the camera head 4 and picks up an image; a tilt sensor 13 which is provided in the camera head 4 and detects tilt of the image sensor 12; and a controller 14 which sets the number of pixels of the image to be picked up by the image sensor 12 based on the tilt of the image sensor 12 detected by the tilt sensor 13.

Description

本発明は、画像を撮像する撮像装置及びそのような撮像装置が接続されたコンピュータで実行されるプログラムに関する。   The present invention relates to an imaging apparatus that captures an image and a program executed by a computer to which such an imaging apparatus is connected.

パーソナルコンピュータ(PC)に接続される周辺機器として2次元のイメージセンサを用いたスキャナが用いられている。スキャナは、主に、机上に置かれた書類や名刺などの読み取りに用いられる。その際、スキャナのイメージセンサは机上に向けられる、すなわち、イメージセンサは俯角が大きくなるように配向される。   As a peripheral device connected to a personal computer (PC), a scanner using a two-dimensional image sensor is used. The scanner is mainly used for reading a document or a business card placed on a desk. At that time, the image sensor of the scanner is directed on the desk, that is, the image sensor is oriented so that the depression angle is increased.

なお、特許文献1〜4には、カメラや撮像手段の俯角、傾き、回動角度を検出する技術が記載されている。   Patent Documents 1 to 4 describe techniques for detecting the depression angle, inclination, and rotation angle of a camera or imaging means.

特開2002−207160号公報JP 2002-207160 A 特開2002−232753号公報JP 2002-232753 A 特開2002−290818号公報JP 2002-290818 A 特開2007−214999号公報JP 2007-214999 A

イメージセンサを用いたスキャナの用途を、机上に置かれた書類や名刺などの読み取り用途に留まらず、他にも広げることが望まれる。   It is desired to expand the application of scanners using image sensors to other applications than reading documents and business cards placed on a desk.

本発明の目的は、上記に鑑みてなされたものであって、イメージセンサを用いたスキャナの用途を広げることが可能な撮像装置及びそのような撮像装置が接続されたコンピュータで実行されるプログラムを提供することである。   An object of the present invention has been made in view of the above, and relates to an imaging device capable of expanding the application of a scanner using an image sensor and a program executed by a computer to which such an imaging device is connected. Is to provide.

本発明の撮像装置は、変形可能なアーム部材と、前記アーム部材の一端に設けられ、前記アーム部材を支持する支持部材と、前記アーム部材の他端に設けられたヘッド部と、前記ヘッド部内に設けられ、画像を撮像するイメージセンサと、前記ヘッド部内に設けられ、前記イメージセンサの傾きを検出する傾きセンサと、前記傾きセンサによって検出された前記イメージセンサの傾きに基づいて、前記イメージセンサが撮像する画像の画素数を設定する制御部と、を備えることを特徴とする。   An imaging apparatus according to the present invention includes a deformable arm member, a support member that is provided at one end of the arm member and supports the arm member, a head unit that is provided at the other end of the arm member, and an inside of the head unit. An image sensor that captures an image, an inclination sensor that is provided in the head unit and detects an inclination of the image sensor, and the image sensor based on an inclination of the image sensor detected by the inclination sensor And a control unit that sets the number of pixels of an image to be captured.

本発明の撮像装置において、前記制御部は、前記イメージセンサによって撮像された画像及び/又は前記傾きセンサによって検出された前記イメージセンサの傾きを外部機器に出力することを特徴とする。   In the imaging apparatus of the present invention, the control unit outputs an image captured by the image sensor and / or an inclination of the image sensor detected by the inclination sensor to an external device.

本発明の撮像装置において、前記支持部材は、USB(Universal Serial Bus)のA型プラグであり、前記制御部は、前記イメージセンサによって撮像された画像及び/又は前記傾きセンサによって検出された前記イメージセンサの傾きを前記A型プラグを介して外部機器に出力することを特徴とする。   In the imaging apparatus of the present invention, the support member is a USB (Universal Serial Bus) A-type plug, and the control unit is configured to detect an image captured by the image sensor and / or the image detected by the tilt sensor. The sensor inclination is output to an external device through the A-type plug.

本発明の撮像装置において、前記制御部は、前記イメージセンサの俯角が所定の第1の範囲内の場合には、前記イメージセンサが撮像する画像の画素数を第1の画素数に設定し、前記イメージセンサの俯角が前記第1の範囲外の場合には、前記イメージセンサが撮像する画像の画素数を前記第1の画素数より少ない第2の画素数に設定することを特徴とする。   In the imaging device of the present invention, the control unit sets the number of pixels of the image captured by the image sensor to the first number of pixels when the depression angle of the image sensor is within a predetermined first range, When the depression angle of the image sensor is outside the first range, the number of pixels of the image captured by the image sensor is set to a second number of pixels that is smaller than the first number of pixels.

本発明の撮像装置において、前記制御部は、前記イメージセンサの俯角が前記第1の範囲内の場合には、前記イメージセンサによって撮像された画像を水平面に射影変換することを特徴とする。   In the imaging apparatus according to the aspect of the invention, the control unit may project-convert an image captured by the image sensor onto a horizontal plane when the depression angle of the image sensor is within the first range.

本発明の撮像装置において、前記制御部は、前記イメージセンサの俯角が所定の第2の範囲内の場合には、前記イメージセンサによって撮像された画像の上下方向の補正を行うことを特徴とする。   In the imaging apparatus according to the aspect of the invention, when the depression angle of the image sensor is within a predetermined second range, the control unit corrects the image captured by the image sensor in the vertical direction. .

本発明の撮像装置において、前記制御部は、前記イメージセンサの俯角が所定の第1の範囲外で、前記イメージセンサの方位角が所定の範囲外の場合には、前記イメージセンサによって撮像された画像の水平方向の補正を行うことを特徴とする。   In the imaging apparatus according to the aspect of the invention, the control unit captures an image by the image sensor when the depression angle of the image sensor is outside the predetermined first range and the azimuth angle of the image sensor is outside the predetermined range. The correction is performed in the horizontal direction of the image.

本発明の撮像装置において、前記制御部は、前記イメージセンサの俯角が前記第1の範囲外の場合には、前記イメージセンサによって撮像された画像の顔認識処理を行い、前記イメージセンサによって撮像された画像の顔部分をトリミングすることを特徴とする。   In the imaging apparatus according to the aspect of the invention, the control unit performs face recognition processing of an image captured by the image sensor when the depression angle of the image sensor is outside the first range, and is captured by the image sensor. It is characterized by trimming the face portion of the captured image.

本発明の撮像装置において、前記イメージセンサの俯角が前記第1の範囲内の場合には、スキャナとして動作し、前記イメージセンサの俯角が前記第1の範囲外の場合には、Webカメラとして動作することを特徴とする。   In the imaging apparatus of the present invention, when the depression angle of the image sensor is within the first range, the image sensor operates as a scanner, and when the depression angle of the image sensor is outside the first range, the image sensor operates as a Web camera. It is characterized by doing.

本発明のプログラムは、本発明の撮像装置が接続されたコンピュータで実行されるプログラムであって、前記イメージセンサの俯角が所定の第2の範囲内の場合には、前記イメージセンサによって撮像された画像の上下方向の補正を行うステップを含むことを特徴とする。   The program of the present invention is a program executed by a computer to which the imaging device of the present invention is connected, and when the depression angle of the image sensor is within a predetermined second range, the program is captured by the image sensor. The method includes a step of correcting the image in the vertical direction.

本発明によれば、撮像装置の用途を広げることが可能となるという効果を奏する。   According to the present invention, there is an effect that the application of the imaging apparatus can be expanded.

図1は、本発明に係る撮像装置の一実施形態の概略構成を示す模式図である。FIG. 1 is a schematic diagram showing a schematic configuration of an embodiment of an imaging apparatus according to the present invention. 図2は、図1に示す撮像装置の機能の概略構成を示すブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration of functions of the imaging apparatus illustrated in FIG. 1. 図3−1は、図1に示す撮像装置の垂直方向の傾きを示す図である。3A is a diagram illustrating a vertical inclination of the imaging apparatus illustrated in FIG. 1. 図3−2は、図1に示す撮像装置の水平方向の傾きを示す図である。3-2 is a diagram illustrating a horizontal inclination of the imaging apparatus illustrated in FIG. 1. 図4は、図1に示す撮像装置の動作の一例を示すフロー図である。FIG. 4 is a flowchart showing an example of the operation of the imaging apparatus shown in FIG. 図5−1は、図1に示す撮像装置によって撮像された画像の例を示す図である。FIG. 5A is a diagram illustrating an example of an image captured by the imaging apparatus illustrated in FIG. 1. 図5−2は、図5−1に示す画像に補正を行った画像の例を示す図である。FIG. 5B is a diagram illustrating an example of an image obtained by correcting the image illustrated in FIG. 図5−3は、図5−2に示す画像にトリミングを行った画像の例を示す図である。FIG. 5C is a diagram illustrating an example of an image obtained by performing trimming on the image illustrated in FIG.

以下に、本発明にかかる撮像装置の一実施形態につき図面を参照しつつ詳細に説明する。なお、この実施形態によりこの発明が限定されるものではない。また、下記の実施形態における構成要素には、当業者が容易に想定できるものあるいは実質的に同一のものが含まれる。   Hereinafter, an embodiment of an imaging apparatus according to the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited by this embodiment. In addition, constituent elements in the following embodiments include those that can be easily assumed by those skilled in the art or those that are substantially the same.

図1は、本発明に係る撮像装置の一実施形態の概略構成を示す模式図である。撮像装置1は、変形可能なアーム部材であるフレキシブルアーム2を備える。フレキシブルアーム2の一端には、USB(Universal Serial Bus)のA型プラグ3が設けられている。A型プラグ3は、パーソナルコンピュータ(PC)のA型レセプタクルに挿入され、フレキシブルアーム2を支持する。なお、A型プラグ3は、USBハブのA型レセプタクルに挿入され、USBハブを介してPCに接続されても良い。このようにすれば、PCと離れた場所でも撮像装置1を使用することができる。   FIG. 1 is a schematic diagram showing a schematic configuration of an embodiment of an imaging apparatus according to the present invention. The imaging device 1 includes a flexible arm 2 that is a deformable arm member. One end of the flexible arm 2 is provided with a USB (Universal Serial Bus) A-type plug 3. The A-type plug 3 is inserted into an A-type receptacle of a personal computer (PC) and supports the flexible arm 2. The A-type plug 3 may be inserted into the A-type receptacle of the USB hub and connected to the PC via the USB hub. In this way, the imaging device 1 can be used even at a location away from the PC.

フレキシブルアーム2の他端には、カメラヘッド部4が設けられている。カメラヘッド部4には、基板10が内蔵されている。基板10には、イメージセンサ12、傾きセンサ13、制御部14が実装されている。イメージセンサ12には、画像をイメージセンサ12の撮像面に合焦させるための光学系11が設けられている。フレキシブルアーム2が変形可能であるので、カメラヘッド部4は、様々な方向を向くことができる。   A camera head unit 4 is provided at the other end of the flexible arm 2. A substrate 10 is built in the camera head unit 4. An image sensor 12, an inclination sensor 13, and a control unit 14 are mounted on the substrate 10. The image sensor 12 is provided with an optical system 11 for focusing an image on the imaging surface of the image sensor 12. Since the flexible arm 2 is deformable, the camera head unit 4 can face in various directions.

フレキシブルアーム2内には基板10とA型プラグ3とを接続する配線が通されており、基板10には、A型プラグ3を介してPCやUSBハブからUSBバスパワーが供給され、イメージセンサ12、傾きセンサ13、制御部14は、USBバスパワーを電源として動作する。   A wiring for connecting the substrate 10 and the A-type plug 3 is passed through the flexible arm 2, and USB bus power is supplied to the substrate 10 from the PC or USB hub via the A-type plug 3. 12, the tilt sensor 13 and the control unit 14 operate using USB bus power as a power source.

図2は、撮像装置1の機能の概略構成を示すブロック図である。イメージセンサ12は、画像を撮像する2次元センサであり、本例では300万個の撮像素子を有する。なお、イメージセンサ12の撮像画像の画素数は、制御部14により、300万画素又は100万画素に設定可能である。   FIG. 2 is a block diagram illustrating a schematic configuration of functions of the imaging apparatus 1. The image sensor 12 is a two-dimensional sensor that captures an image, and has 3 million image sensors in this example. Note that the number of pixels of the captured image of the image sensor 12 can be set to 3 million pixels or 1 million pixels by the control unit 14.

傾きセンサ13は、2軸の加速度センサ等である。傾きセンサ13は、図3−1に示すように、カメラヘッド部4の垂直方向の傾き、すなわちイメージセンサ12の垂直方向との間の傾き(俯角)θと、図3−2に示すように、カメラヘッド部4の水平面との間の傾き、すなわちイメージセンサ12の水平方向の傾き(方位角)θと、を検出し、制御部14に出力する。 The tilt sensor 13 is a biaxial acceleration sensor or the like. As shown in FIG. 3A, the tilt sensor 13 has a tilt in the vertical direction of the camera head unit 4, that is, a tilt (angle of depression) θ V between the vertical direction of the image sensor 12, and as shown in FIG. In addition, the inclination of the camera head unit 4 with respect to the horizontal plane, that is, the horizontal inclination (azimuth angle) θ H of the image sensor 12 is detected and output to the control unit 14.

制御部14は、撮像装置1の全体的な動作を統括的に制御する処理部、例えばシングルチップマイクロコンピュータである。制御部14は、USBインタフェース14aを備えており、A型プラグ3を介してPCとUSB通信可能である。撮像装置1は、基本的に以上のような構成である。   The control unit 14 is a processing unit that comprehensively controls the overall operation of the imaging apparatus 1, for example, a single chip microcomputer. The control unit 14 includes a USB interface 14 a and can communicate with a PC via USB via the A-type plug 3. The imaging device 1 is basically configured as described above.

次に、図4を用いて撮像装置1の動作について説明する。図4は、撮像装置1の制御部14の処理を示すフロー図である。   Next, the operation of the imaging apparatus 1 will be described with reference to FIG. FIG. 4 is a flowchart showing processing of the control unit 14 of the imaging apparatus 1.

まず、制御部14は、ステップS1として、イメージセンサ12の俯角θが第1の範囲内であるか否か、例えば45°<θ<135°であるか否かを判定する。なお、45°や135°といった閾値は一例であり、他の閾値を用いても良い。また、閾値はユーザにより設定可能としても良い。例えば、閾値はPC側から設定可能としても良い。 First, in step S1, the control unit 14 determines whether or not the depression angle θ V of the image sensor 12 is within the first range, for example, 45 ° <θ V <135 °. Note that threshold values such as 45 ° and 135 ° are examples, and other threshold values may be used. The threshold value may be set by the user. For example, the threshold value may be settable from the PC side.

制御部14は、ステップS1でイメージセンサ12の俯角θが45°<θ<135°である(Yes)と判定したら、ステップS2として、撮像装置1をスキャナとして動作させ(スキャナモード)、モード情報をPCに出力してPC上でスキャナアプリケーションプログラムを起動させ、イメージセンサ12の撮像画素数を第1の画素数、例えば300万画素に設定する。なお、イメージセンサ12の俯角θが45°<θ<135°の場合に撮像装置1をスキャナモードにするのは、イメージセンサ12の俯角θが45°<θ<135°の場合、つまりイメージセンサ12が下方向を向いている場合には、机上に置かれた書類等を読み取ることをユーザが所望していると考えられるためである。また、イメージセンサ12の撮像画素数を300万画素に設定するのは、スキャナでは、書類や名刺等の文字を読み取るために高い解像度が必要であるためである。次に、制御部14は、ステップS3として、イメージセンサ12で撮像された300万画素の画像を、俯角と方位角から空間座標を算出し、水平面に射影変換する。水平面に射影変換するのは、読み取りのために書類や名刺を置く机等は一般に水平面であるため、上記射影変換により、正面から見た形状すなわち水平面に対し垂直に見た場合の画像に変換することで、視認する上で違和感のない画像にするためである。その後、制御部14は、ステップS4として、射影変換された300万画素の画像を外部機器(PC)に出力する。出力された画像は、スキャナアプリケーションに送られる。 Control unit 14, if it is determined that the depression angle theta V of the image sensor 12 is 45 ° <θ V <135 ° in step S1 (Yes), the step S2, to operate the imaging apparatus 1 as a scanner (scanner mode), The mode information is output to the PC, the scanner application program is started on the PC, and the number of imaging pixels of the image sensor 12 is set to the first pixel number, for example, 3 million pixels. Incidentally, depression theta V is 45 ° of the image sensor 12 <θ V <to the imaging apparatus 1 in the scanner mode when the 135 °, the depression angle theta V is 45 ° of the image sensor 12 <θ V <For 135 ° That is, when the image sensor 12 faces downward, it is considered that the user desires to read a document or the like placed on the desk. In addition, the reason why the number of image pickup pixels of the image sensor 12 is set to 3 million pixels is that the scanner needs high resolution to read characters such as documents and business cards. Next, the control part 14 calculates a spatial coordinate from the depression angle and an azimuth angle, and carries out projective transformation to the horizontal surface about the image of 3 million pixels imaged with the image sensor 12 as step S3. Projection conversion to the horizontal plane is because the desk on which a document or business card is placed for reading is generally a horizontal plane, so the above-mentioned projection conversion converts the shape seen from the front, that is, the image viewed perpendicular to the horizontal plane. This is to make an image that does not feel strange when viewed. Thereafter, in step S4, the control unit 14 outputs the projected 3 million pixel image to the external device (PC). The output image is sent to the scanner application.

制御部14は、ステップS1でイメージセンサ12の俯角θが45°<θ<135°ではない(No)と判定したら、ステップS5として、撮像装置1をWebカメラとして動作させ(Webカメラモード)、モード情報をPCに出力してPC上でWebカメラアプリケーションを起動させ、イメージセンサ12の撮像画素数を第1の画素数より少ない第2の画素数、例えば100万画素に設定する。なお、このとき、制御部14が、撮像装置1をUSBビデオクラスデバイス(USB Video Class device)として動作させるようにしても良い。また、イメージセンサ12の俯角θが45°<θ<135°ではない場合に撮像装置1をWebカメラモードにするのは、イメージセンサ12の俯角θが45°<θ<135°ではない場合、つまりイメージセンサ12が下方向を向いていない場合には、人や物等を撮像することをユーザが所望していると考えられるためである。また、イメージセンサ12の撮像画素数を100万画素に設定するのは、Webカメラアプリケーションでは画像をインターネット等のネットワークを介して他のPCに送信するので、送信時間が長くなることを防ぐために画像のサイズを抑えることが望ましいためである。 If the control unit 14 determines in step S1 that the depression angle θ V of the image sensor 12 is not 45 ° <θ V <135 ° (No), in step S5, the control unit 14 operates the imaging device 1 as a Web camera (Web camera mode). ), The mode information is output to the PC, the Web camera application is started on the PC, and the number of imaging pixels of the image sensor 12 is set to a second number of pixels smaller than the first number of pixels, for example, 1 million pixels. At this time, the control unit 14 may cause the imaging device 1 to operate as a USB video class device. Also, depression theta V is 45 ° of the image sensor 12 <theta V <is to the imaging apparatus 1 to the Web camera mode when not 135 °, the depression angle theta V of the image sensor 12 is 45 ° <θ V <135 ° If this is not the case, that is, if the image sensor 12 is not facing downward, it is considered that the user desires to image a person or an object. The image sensor 12 is set to 1 million pixels because the Web camera application transmits an image to another PC via a network such as the Internet. This is because it is desirable to reduce the size of the.

次に、制御部14は、ステップS6として、イメージセンサ12の俯角θが第2の範囲内であるか否か、例えば135°≦θ<270°であるか否かを判定する。なお、135°や270°といった閾値は一例であり、他の閾値を用いても良い。また、閾値はユーザにより設定可能としても良い。例えば、閾値はPC側から設定可能としても良い。イメージセンサ12の俯角θが135°≦θ<270°である場合、図5−1に示すように、上下が逆さの画像が撮像される。そこで、制御部14は、ステップS6でイメージセンサ12の俯角θが135°≦θ<270°である(Yes)と判定したら、ステップS7として、イメージセンサ12で撮像された画像を180°回転させる。 Next, the control unit 14 determines whether or not the depression angle θ V of the image sensor 12 is within the second range, for example, 135 ° ≦ θ V <270 °, as step S6. Note that threshold values such as 135 ° and 270 ° are merely examples, and other threshold values may be used. The threshold value may be set by the user. For example, the threshold value may be settable from the PC side. When the depression angle θ V of the image sensor 12 is 135 ° ≦ θ V <270 °, as shown in FIG. 5A, an upside down image is captured. Therefore, when the control unit 14 determines in step S6 that the depression angle θ V of the image sensor 12 is 135 ° ≦ θ V <270 ° (Yes), in step S7, the image captured by the image sensor 12 is 180 °. Rotate.

制御部14は、ステップS6でイメージセンサ12の俯角θが135°≦θ<270°ではない(No)と判定したら、またはステップS7で画像を180°回転させたら、ステップS8として、イメージセンサ12の方位角θが所定の範囲内であるか否か、例えば−3°<θ<3°であるか否かを判定する。なお、−3°や3°といった閾値は、一例であり、他の閾値を用いても良い。また、閾値はユーザにより設定可能としても良い。例えば、閾値はPC側から設定可能としても良い。イメージセンサ12の方位角θが−3°<θ<3°ではない場合、画像を見る者は画像の傾きが気になると考えられる。そこで、制御部14は、ステップS8でイメージセンサ12の方位角θが−3°<θ<3°ではない(No)と判定したら、ステップS9として、画像に水平補正(画像の水平方向の傾きの補正)を行う。図5−2は、図5−1に示す画像を180°回転させ、さらに水平補正を行った画像を示す図である。 If it is determined in step S6 that the depression angle θ V of the image sensor 12 is not 135 ° ≦ θ V <270 ° (No), or if the image is rotated by 180 ° in step S7, the control unit 14 sets the image as step S8. whether the azimuth angle theta H of the sensor 12 is within a predetermined range, it is determined whether, for example -3 ° <θ H <3 ° . Note that threshold values such as −3 ° and 3 ° are examples, and other threshold values may be used. The threshold value may be set by the user. For example, the threshold value may be settable from the PC side. When the azimuth angle θ H of the image sensor 12 is not −3 ° <θ H <3 °, it is considered that the person viewing the image is concerned about the inclination of the image. Therefore, when the control unit 14 determines in step S8 that the azimuth angle θ H of the image sensor 12 is not −3 ° <θ H <3 ° (No), in step S9, the control unit 14 performs horizontal correction on the image (the horizontal direction of the image). Correction of the tilt). FIG. 5B is a diagram illustrating an image obtained by rotating the image illustrated in FIG. 5A by 180 ° and further performing horizontal correction.

制御部14は、ステップS8でイメージセンサ12の方位角θが−3°<θ<3°である(Yes)と判定したら、またはステップS9で画像に水平補正を行ったら、ステップS10として、画像に顔認識処理を行い、図5−2に示すように、顔部分を顔部分のサイズに応じた適切な大きさに縦横比率3:4でトリミングする。なお、この縦横比率は一例であり、他の縦横比率でトリミングしても良い。また、縦横比率はユーザにより設定可能としても良い。例えば、縦横比率はPC側から設定可能としても良い。 If the controller 14 determines in step S8 that the azimuth angle θ H of the image sensor 12 is −3 ° <θ H <3 ° (Yes), or if the image is horizontally corrected in step S9, the control unit 14 performs step S10. Then, face recognition processing is performed on the image, and the face part is trimmed to an appropriate size according to the size of the face part at an aspect ratio of 3: 4 as shown in FIG. Note that this aspect ratio is an example, and trimming may be performed with other aspect ratios. The aspect ratio may be set by the user. For example, the aspect ratio may be settable from the PC side.

次に、制御部14は、ステップS11として、画像をVGA(640×480)サイズに変換する。図5−3は、図5−2の顔部分をトリミングしてVGAサイズに変換した画像を示す図である。その後、制御部14は、ステップS12として、画像を外部機器(PC)に出力する。出力された画像は、Webカメラアプリケーションに送られる。   Next, the control part 14 converts an image into VGA (640x480) size as step S11. FIG. 5C is a diagram illustrating an image obtained by trimming the face portion of FIG. 5B and converting it to the VGA size. Then, the control part 14 outputs an image to an external apparatus (PC) as step S12. The output image is sent to the Web camera application.

以上説明したように、本実施形態によれば、イメージセンサ12の俯角に応じて、スキャナまたはWebカメラとして動作するので、用途を広げることが可能となる。   As described above, according to the present embodiment, the scanner operates as a scanner or a Web camera in accordance with the depression angle of the image sensor 12, so that the application can be expanded.

なお、本実施形態においては、アーム部材としてフレキシブルアーム2を用いているが、折りたたみ式のアーム等を用いても良い。   In the present embodiment, the flexible arm 2 is used as the arm member, but a foldable arm or the like may be used.

また、本実施形態においては、制御部14がステップS1〜ステップS12を実行することとしているが、PC上で実行されるデバイスドライバプログラムでステップS1〜ステップS12を実行することとしても良い。その場合、制御部14は、イメージセンサ12で撮像された300万画素の画像をそのまま外部機器(PC)に出力するとともに、イメージセンサ12の俯角θ及び方位角θを外部機器(PC)に出力すれば良い。このとき、PC上で実行されるデバイスドライバプログラムは、イメージセンサ12の俯角θに基づいてスキャナモード又はWebカメラモードを判定し、スキャナアプリケーションプログラム又はWebカメラアプリケーションプログラムを起動することができる。 In the present embodiment, the control unit 14 executes steps S1 to S12. However, the device driver program executed on the PC may execute steps S1 to S12. In that case, the control unit 14 outputs an image of 3 million pixels picked up by the image sensor 12 to the external device (PC) as it is, and sets the depression angle θ V and the azimuth angle θ H of the image sensor 12 to the external device (PC). Can be output. At this time, the device driver program running on the PC determines the scanner mode or Web camera mode based on the depression angle theta V of the image sensor 12, it is possible to start the scanner application program or Web camera application program.

また、本実施形態においては、撮像装置1とPCがUSB接続されることとしているが、無線接続されても良い。   In the present embodiment, the imaging apparatus 1 and the PC are connected by USB, but may be connected wirelessly.

以上のように、本発明は、画像を撮像する撮像装置及びそのような撮像装置が接続されたコンピュータで実行されるプログラムに有用である。   As described above, the present invention is useful for an imaging apparatus that captures an image and a program that is executed by a computer to which such an imaging apparatus is connected.

1 撮像装置
2 フレキシブルアーム
3 A型プラグ
4 カメラヘッド部
10 基板
11 光学系
12 イメージセンサ
13 傾きセンサ
14 制御部
14a USBインタフェース
DESCRIPTION OF SYMBOLS 1 Imaging device 2 Flexible arm 3 A type plug 4 Camera head part 10 Board | substrate 11 Optical system 12 Image sensor 13 Inclination sensor 14 Control part 14a USB interface

Claims (10)

変形可能なアーム部材と、
前記アーム部材の一端に設けられ、前記アーム部材を支持する支持部材と、
前記アーム部材の他端に設けられたヘッド部と、
前記ヘッド部内に設けられ、画像を撮像するイメージセンサと、
前記ヘッド部内に設けられ、前記イメージセンサの傾きを検出する傾きセンサと、
前記傾きセンサによって検出された前記イメージセンサの傾きに基づいて、前記イメージセンサが撮像する画像の画素数を設定する制御部と、
を備えることを特徴とする撮像装置。
A deformable arm member;
A support member provided at one end of the arm member and supporting the arm member;
A head portion provided at the other end of the arm member;
An image sensor provided in the head unit for capturing an image;
An inclination sensor provided in the head portion for detecting an inclination of the image sensor;
A control unit that sets the number of pixels of an image captured by the image sensor based on the tilt of the image sensor detected by the tilt sensor;
An imaging apparatus comprising:
前記制御部は、前記イメージセンサによって撮像された画像及び/又は前記傾きセンサによって検出された前記イメージセンサの傾きを外部機器に出力することを特徴とする請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the control unit outputs an image captured by the image sensor and / or a tilt of the image sensor detected by the tilt sensor to an external device. 前記支持部材は、USB(Universal Serial Bus)のA型プラグであり、
前記制御部は、前記イメージセンサによって撮像された画像及び/又は前記傾きセンサによって検出された前記イメージセンサの傾きを前記A型プラグを介して外部機器に出力することを特徴とする請求項1に記載の撮像装置。
The support member is a USB (Universal Serial Bus) A-type plug,
The control unit outputs an image captured by the image sensor and / or an inclination of the image sensor detected by the inclination sensor to an external device via the A-type plug. The imaging device described.
前記制御部は、前記イメージセンサの俯角が所定の第1の範囲内の場合には、前記イメージセンサが撮像する画像の画素数を第1の画素数に設定し、前記イメージセンサの俯角が前記第1の範囲外の場合には、前記イメージセンサが撮像する画像の画素数を前記第1の画素数よりも少ない第2の画素数に設定することを特徴とする請求項1〜3のいずれか1項に記載の撮像装置。   When the depression angle of the image sensor is within a predetermined first range, the control unit sets the number of pixels of the image captured by the image sensor to the first pixel number, and the depression angle of the image sensor 4. The method according to claim 1, wherein when the image sensor is out of the first range, the number of pixels of the image captured by the image sensor is set to a second number of pixels smaller than the first number of pixels. The imaging apparatus of Claim 1. 前記制御部は、前記イメージセンサの俯角が前記第1の範囲内の場合には、前記イメージセンサによって撮像された画像を水平面に射影変換することを特徴とする請求項1〜4のいずれか1項に記載の撮像装置。   The said control part projectively transforms the image imaged by the said image sensor to a horizontal surface, when the depression angle of the said image sensor is in the said 1st range, The any one of Claims 1-4 characterized by the above-mentioned. The imaging device according to item. 前記制御部は、前記イメージセンサの俯角が所定の第2の範囲内の場合には、前記イメージセンサによって撮像された画像の上下方向の補正を行うことを特徴とする請求項1〜5のいずれか1項に記載の撮像装置。   The said control part performs correction | amendment of the up-down direction of the image imaged by the said image sensor, when the depression angle of the said image sensor is in a predetermined 2nd range. The imaging apparatus of Claim 1. 前記制御部は、前記イメージセンサの俯角が所定の第1の範囲外で、前記イメージセンサの方位角が所定の範囲外の場合には、前記イメージセンサによって撮像された画像の水平方向の補正を行うことを特徴とする請求項1〜6のいずれか1項に記載の撮像装置。   When the depression angle of the image sensor is out of the predetermined first range and the azimuth angle of the image sensor is out of the predetermined range, the control unit corrects the image captured by the image sensor in the horizontal direction. The imaging apparatus according to claim 1, wherein the imaging apparatus is performed. 前記制御部は、前記イメージセンサの俯角が前記第1の範囲外の場合には、前記イメージセンサによって撮像された画像の顔認識処理を行い、前記イメージセンサによって撮像された画像の顔部分をトリミングすることを特徴とする請求項4〜7のいずれか1項に記載の撮像装置。   When the depression angle of the image sensor is outside the first range, the control unit performs face recognition processing on the image captured by the image sensor and trims the face portion of the image captured by the image sensor. The image pickup apparatus according to claim 4, wherein the image pickup apparatus is an image pickup apparatus. 前記イメージセンサの俯角が前記第1の範囲内の場合には、スキャナとして動作し、前記イメージセンサの俯角が前記第1の範囲外の場合には、Webカメラとして動作することを特徴とする請求項4〜8のいずれか1項に記載の撮像装置。   The image sensor operates as a scanner when the depression angle of the image sensor is within the first range, and operates as a Web camera when the depression angle of the image sensor is outside the first range. Item 9. The imaging device according to any one of Items 4 to 8. 請求項2または3に記載の撮像装置が接続されたコンピュータで実行されるプログラムであって、
前記イメージセンサの俯角が所定の第2の範囲内の場合には、前記イメージセンサによって撮像された画像の上下方向の補正を行うステップを含むことを特徴とするプログラム。
A program executed by a computer to which the imaging device according to claim 2 is connected,
When the depression angle of the image sensor is within a predetermined second range, the program includes a step of correcting the image captured by the image sensor in the vertical direction.
JP2010062878A 2010-03-18 2010-03-18 Imaging apparatus and program Pending JP2011199503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010062878A JP2011199503A (en) 2010-03-18 2010-03-18 Imaging apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010062878A JP2011199503A (en) 2010-03-18 2010-03-18 Imaging apparatus and program

Publications (1)

Publication Number Publication Date
JP2011199503A true JP2011199503A (en) 2011-10-06

Family

ID=44877168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010062878A Pending JP2011199503A (en) 2010-03-18 2010-03-18 Imaging apparatus and program

Country Status (1)

Country Link
JP (1) JP2011199503A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014090631A (en) * 2012-10-31 2014-05-15 Panasonic Corp Noncontact power supply system, movable device and control method of power supply device of noncontact power supply system
WO2017187573A1 (en) * 2016-04-27 2017-11-02 日立マクセル株式会社 Image pickup device
WO2019026598A1 (en) * 2017-07-31 2019-02-07 ソニー株式会社 Image processing device, image processing method, program, and remote communication system
JP2022022238A (en) * 2020-09-15 2022-02-03 株式会社ユピテル On-vehicle instrument

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08340466A (en) * 1995-06-09 1996-12-24 Sony Corp Desk-top camera
JP2003078725A (en) * 2001-02-14 2003-03-14 Ricoh Co Ltd Image input apparatus
JP2006148638A (en) * 2004-11-22 2006-06-08 Victor Co Of Japan Ltd Video imaging device
JP2006166434A (en) * 2005-11-24 2006-06-22 Trek 2000 Internatl Ltd Portable data storage device and image recording device directly connectable to computer usb port
JP2006324841A (en) * 2005-05-18 2006-11-30 Canon Electronics Inc Document imaging apparatus
JP2008160703A (en) * 2006-12-26 2008-07-10 Sky Kk Camera and program for camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08340466A (en) * 1995-06-09 1996-12-24 Sony Corp Desk-top camera
JP2003078725A (en) * 2001-02-14 2003-03-14 Ricoh Co Ltd Image input apparatus
JP2006148638A (en) * 2004-11-22 2006-06-08 Victor Co Of Japan Ltd Video imaging device
JP2006324841A (en) * 2005-05-18 2006-11-30 Canon Electronics Inc Document imaging apparatus
JP2006166434A (en) * 2005-11-24 2006-06-22 Trek 2000 Internatl Ltd Portable data storage device and image recording device directly connectable to computer usb port
JP2008160703A (en) * 2006-12-26 2008-07-10 Sky Kk Camera and program for camera

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014090631A (en) * 2012-10-31 2014-05-15 Panasonic Corp Noncontact power supply system, movable device and control method of power supply device of noncontact power supply system
WO2017187573A1 (en) * 2016-04-27 2017-11-02 日立マクセル株式会社 Image pickup device
WO2019026598A1 (en) * 2017-07-31 2019-02-07 ソニー株式会社 Image processing device, image processing method, program, and remote communication system
JP2022022238A (en) * 2020-09-15 2022-02-03 株式会社ユピテル On-vehicle instrument

Similar Documents

Publication Publication Date Title
EP3457680B1 (en) Electronic device for correcting image and method for operating the same
JP4529837B2 (en) Imaging apparatus, image correction method, and program
JP6330987B2 (en) Image processing apparatus, image processing method, and storage medium
US11558553B2 (en) Electronic device for stabilizing image and method for operating same
TWI275824B (en) Image processing system, projector, portable device and image processing method
JP2014131257A (en) Image correction system, image correction method, and program
US10587799B2 (en) Electronic apparatus and method for controlling electronic apparatus thereof
US20030152291A1 (en) Tilt correction of electronic images
US20120328152A1 (en) Image processing apparatus, image processing method and storage medium
WO2013133456A1 (en) Image capturing apparatus, image capture system, image processing method, information processing apparatus, and computer-readable storage medium
US20170244900A1 (en) Imaging apparatus and imaging method
KR102452575B1 (en) Apparatus and method for compensating variation of images caused by optical image stabilization motion
JP6874850B2 (en) Object detection device, object detection method, and program
US20130076854A1 (en) Image processing apparatus, image processing method, and computer readable medium
JP2011199503A (en) Imaging apparatus and program
JP6564136B2 (en) Image processing apparatus, image processing method, and program
WO2018167971A1 (en) Image processing device, control method, and control program
US10116809B2 (en) Image processing apparatus, control method, and computer-readable storage medium, which obtains calibration image information with which to correct image data
JP2019016843A (en) Document reading device, control method of document reading device, and program
JP2005063141A (en) Image conversion system and image conversion method
JP4736611B2 (en) Image processing apparatus and image processing method
JP2005063141A5 (en)
CN104704804B (en) Photographic device, detection device
JP6103942B2 (en) Image data processing apparatus and image data processing program
JP2013012930A (en) Omnidirectional imaging device and control method therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120406

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130430

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130703

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130910