Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5424779B2 - Imaging apparatus, imaging method, and program - Google Patents
[go: Go Back, main page]

JP5424779B2 - Imaging apparatus, imaging method, and program - Google Patents

Imaging apparatus, imaging method, and program Download PDF

Info

Publication number
JP5424779B2
JP5424779B2 JP2009193336A JP2009193336A JP5424779B2 JP 5424779 B2 JP5424779 B2 JP 5424779B2 JP 2009193336 A JP2009193336 A JP 2009193336A JP 2009193336 A JP2009193336 A JP 2009193336A JP 5424779 B2 JP5424779 B2 JP 5424779B2
Authority
JP
Japan
Prior art keywords
face
detecting
region
detection
imaging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009193336A
Other languages
Japanese (ja)
Other versions
JP2011045014A5 (en
JP2011045014A (en
Inventor
金子  唯史
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2009193336A priority Critical patent/JP5424779B2/en
Publication of JP2011045014A publication Critical patent/JP2011045014A/en
Publication of JP2011045014A5 publication Critical patent/JP2011045014A5/ja
Application granted granted Critical
Publication of JP5424779B2 publication Critical patent/JP5424779B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Description

本発明は撮像装置、撮像方法及びプログラムに関し、特に、人物を高画質に撮影するために用いて好適な技術に関する。   The present invention relates to an imaging apparatus, an imaging method, and a program, and more particularly to a technique suitable for use in photographing a person with high image quality.

近年、撮影した画像から人物の顔を検出する技術が急速に発達しており、顔検出によって顔領域の画質を高める提案がなされている。特許文献1には、撮影した画像から人物の顔を検出する顔検出手段を備え、検出された顔部分の量子化パラメータを低くして、人物の顔部分の画像を高画質化する技術が開示されている。また、特許文献2には、画像中の顔部分を肌色検出によって判定して、肌色領域に符号量を多く割り当てて高画質化する技術が開示されている。   In recent years, techniques for detecting a person's face from a photographed image have been rapidly developed, and proposals have been made to improve the image quality of a face area through face detection. Japanese Patent Application Laid-Open No. 2004-133867 discloses a technique that includes a face detection unit that detects a person's face from a photographed image and lowers the quantization parameter of the detected face part to improve the image quality of the person's face part. Has been. Japanese Patent Application Laid-Open No. 2004-228561 discloses a technique for determining a face portion in an image by skin color detection and assigning a large amount of code to the skin color area to improve image quality.

特開平6−233292号公報JP-A-6-233292 特開2005−218017号公報JP-A-2005-218017

ビデオカメラなどの撮像装置で人物を撮影する場合、顔だけでなく、胴体部分の画質も重要視される。しかしながら、前述した特許文献1に記載された技術においては、顔検出によって顔部分を高画質化することはできるが、胴体部分は顔以外の部分として取り扱われるため、人物の胴体部分を高画質化することができない。また、特許文献2に記載された技術においても、胴体部分は肌色と限らないため、肌色検出だけでは胴体を特定することができず、よって人物の胴体部分を高画質化することが困難である。   When a person is photographed by an imaging device such as a video camera, the image quality of the body part as well as the face is regarded as important. However, in the technique described in Patent Document 1 described above, the face part can be improved in image quality by face detection, but the torso part is handled as a part other than the face, so that the torso part of a person is improved in image quality. Can not do it. In the technique described in Patent Document 2, the body part is not limited to the skin color, and therefore, the body cannot be specified only by detecting the skin color. .

本発明は前述の問題点に鑑み、人物の顔部分とともに胴体部分を高画質化できるようにすることを目的としている。   The present invention has been made in view of the above-described problems, and an object of the present invention is to improve the image quality of a torso portion together with a human face portion.

本発明の撮像装置は、被写体を撮像して画像信号を生成する撮像手段と、前記撮像手段によって生成された画像信号から人物の顔領域を検出する顔検出手段と、撮像装置本体の傾きを検出する傾き検出手段と、前記顔検出手段による検出結果と前記傾き検出手段による検出結果とに基づいて、前記人物の胴体領域を検出する胴体検出手段と、前記顔検出手段によって検出された顔領域と前記胴体検出手段によって検出された胴体領域とが高画質になるよう量子化処理における量子化ステップサイズを調節して前記画像信号を符号化する符号化手段とを有し、前記胴体検出手段は、前記傾き検出手段によって検出された傾きのうち、水平面に対する前後の傾きが所定の範囲内である場合は、前記顔検出手段によって検出された顔領域を基点として重力方向の領域を胴体領域と決定し、水平面に対する前後の傾きが所定の範囲を越えた場合は、前記顔領域を基点として、顔の傾き方向と平行な領域を胴体領域と決定することを特徴とする。 An image pickup apparatus according to the present invention detects an inclination of an image pickup apparatus body, an image pickup unit that picks up an image of a subject, generates an image signal, a face detection unit that detects a human face area from the image signal generated by the image pickup unit. An inclination detection means for detecting the person's torso area based on the detection result of the face detection means and the detection result of the inclination detection means, and the face area detected by the face detection means. have a coding means for coding the image signal and the detected body region by adjusting the quantization step size in the quantization processing so as to be high quality by the body detection means, the body detecting means, Of the inclinations detected by the inclination detection means, when the front-rear inclination with respect to the horizontal plane is within a predetermined range, the face area detected by the face detection means is used as a base point. The direction of gravity region determines a body region, when the front and rear inclination with respect to the horizontal plane exceeds a predetermined range, characterized in that as a base point of the face region, to determine the tilt direction and parallel to the region of the face and trunk areas And

本発明によれば、胴体領域を適切に検出することができるため、人物の顔部分とともに胴体部分を高画質化することができる。   According to the present invention, the torso area can be detected appropriately, so that the image quality of the torso part as well as the human face part can be improved.

本発明の実施形態に係る撮像装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the imaging device which concerns on embodiment of this invention. 被写体である人物を含む撮影画像の一例を示す図である。It is a figure which shows an example of the picked-up image containing the person who is a to-be-photographed object. 撮像装置本体を傾斜させている状態の一例を示す図である。It is a figure which shows an example of the state which inclined the imaging device main body. 被写体である人物を撮影している様子を示す図である。It is a figure which shows a mode that the person who is a subject is image | photographed. 被写体の人物が顔を傾けていない場合の撮影画像の一例を示す図である。It is a figure which shows an example of the picked-up image when the subject person does not tilt his / her face. 被写体の人物が顔を傾けている場合の撮影画像の一例を示す図である。It is a figure which shows an example of the picked-up image when the subject person inclines the face. 被写体である人物の寝顔を撮影している様子を示す図である。It is a figure which shows a mode that the sleeping face of the person who is a subject is image | photographed. 図7に示した状態で撮影した撮影画像を示す図である。It is a figure which shows the picked-up image image | photographed in the state shown in FIG. 胴体領域を決定する処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence which determines a trunk | drum area | region. 顔の大きさから胴体領域を決定する方法の一例を示す図である。It is a figure which shows an example of the method of determining a torso area | region from the size of a face.

(第1の実施形態)
以下、本発明の好適な実施形態について、図面を参照しながら詳細に説明する。
図1は、本実施形態に係る撮像装置100の構成例を示すブロック図である。
図1において、撮像信号処理部102は、レンズ及び撮像素子からなる撮像部101により得られた撮像信号をA/D変換し、色マトリクス変換やガンマ補正などの処理を行った画像信号を生成する。撮像信号処理部102から出力された画像信号は、符号化部103及び顔検出部104に入力される。
(First embodiment)
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram illustrating a configuration example of an imaging apparatus 100 according to the present embodiment.
In FIG. 1, an imaging signal processing unit 102 performs A / D conversion on an imaging signal obtained by an imaging unit 101 including a lens and an imaging element, and generates an image signal subjected to processing such as color matrix conversion and gamma correction. . The image signal output from the imaging signal processing unit 102 is input to the encoding unit 103 and the face detection unit 104.

符号化部103は、MPEG−2方式等の圧縮符号化方式により撮像信号処理部102から画像信号を符号化する。符号化部103では、マクロブロックと呼ばれる16×16画素のブロックに画像を分割し、動き補償予測、直交変換を行い、さらにその変換係数を量子化処理し、エントロピー符号化を施して画像の圧縮符号化を行っている。   The encoding unit 103 encodes the image signal from the imaging signal processing unit 102 by a compression encoding method such as the MPEG-2 method. The encoding unit 103 divides an image into 16 × 16 pixel blocks called macroblocks, performs motion compensation prediction and orthogonal transform, further quantizes the transform coefficient, performs entropy coding, and compresses the image. Encoding is performed.

ここで、量子化とは、直交変換係数の振幅をある代表値で表現することであり、量子化を行うことにより代表値が少なくなり、発生する符号量を少なくすることができる。ところが、量子化を粗く行うと元の変換係数の再現性が低くなり、再現される画像の画質が劣化する。また、量子化を細かく行うと、画質劣化は少なくなるが符号量が多くなる。このような量子化の度合いを設定する量子化パラメータを制御することによって、発生符号量の調整を行っている。   Here, the quantization is to express the amplitude of the orthogonal transform coefficient by a certain representative value. By performing the quantization, the representative value is reduced, and the generated code amount can be reduced. However, if the quantization is performed roughly, the reproducibility of the original conversion coefficient is lowered, and the image quality of the reproduced image is deteriorated. Further, if quantization is performed finely, image quality deterioration is reduced, but the code amount is increased. The generated code amount is adjusted by controlling the quantization parameter for setting the degree of quantization.

本実施形態では符号化部103は、MPEG−2のTest Model(TM)5と同様の量子化パラメータの制御を行う。すなわち、マクロブロック単位に画像の複雑度を示すアクティビティ値をまず算出する。そして、アクティビティ値を算出することにより、視覚的に劣化の目立ちやすい平坦な画像では量子化パラメータの値(量子化ステップサイズ)を小さくして劣化を発生させないようにする。それとは逆に劣化の比較的目立ち難い複雑な絵柄の画像では量子化パラメータの値(量子化ステップサイズ)を大きくして符号量を減らしつつ画質を保つ制御を行う。また、符号化部103は、以下に説明する顔領域及び胴体領域を高画質化するように量子化パラメータの制御を行う。記録部107は、以上のような手順で圧縮符号化された画像データを記録媒体108に記録する。   In the present embodiment, the encoding unit 103 controls the quantization parameter similar to the Test Model (TM) 5 of MPEG-2. That is, an activity value indicating the complexity of an image is first calculated for each macroblock. Then, by calculating the activity value, the value of the quantization parameter (quantization step size) is reduced in a flat image that tends to be visually noticeable, so that no deterioration occurs. On the other hand, in the case of an image with a complicated pattern that is relatively inconspicuous, deterioration is controlled by increasing the value of the quantization parameter (quantization step size) and reducing the code amount. Also, the encoding unit 103 controls the quantization parameter so as to improve the image quality of the face area and the body area described below. The recording unit 107 records the image data compressed and encoded by the procedure as described above on the recording medium 108.

顔検出部104は、画像信号において人物の顔領域を検出し、顔領域情報として出力する。例えば、図2に示すように人物を撮影した場合、顔部分を取り囲む四角形Aの位置、大きさ、傾きの情報が出力される。そして、出力された顔領域情報は、胴体検出部105及び符号化部103に入力される。胴体検出部105は、顔検出部104から出力された顔領域情報と、傾き検出部106から出力された傾き情報とに応じて胴体領域を決定する。胴体領域を決定する処理の流れについては後述する。傾き検出部106は、撮像装置本体の傾きを検出するためのものであり、一般に重力センサーと呼ばれるものである。また、傾き検出部106は撮像装置100内部に設置され、垂直面に対する撮像装置100本体の左右の傾き角度X、及び水平面に対する前後の傾き角度Yを検出する。撮像装置100本体の傾きと検出される傾き情報との関係については、図3を参照しながら説明する。   The face detection unit 104 detects a human face area in the image signal and outputs it as face area information. For example, when a person is photographed as shown in FIG. 2, information on the position, size, and inclination of the quadrangle A surrounding the face portion is output. The output face area information is input to the body detection unit 105 and the encoding unit 103. The torso detection unit 105 determines the torso region according to the face area information output from the face detection unit 104 and the tilt information output from the tilt detection unit 106. The process flow for determining the body region will be described later. The tilt detection unit 106 is for detecting the tilt of the imaging apparatus main body, and is generally called a gravity sensor. In addition, the inclination detection unit 106 is installed inside the imaging apparatus 100 and detects the left and right inclination angles X of the imaging apparatus 100 main body with respect to the vertical plane and the front and rear inclination angles Y with respect to the horizontal plane. The relationship between the tilt of the imaging apparatus 100 main body and the detected tilt information will be described with reference to FIG.

図3(a)〜図3(d)は、撮像装置100本体を傾斜させている状態の一例を示す図であり、図3(a)及び図3(b)は、撮像装置100本体をレンズ側から見た正面図である。図3(a)は撮像装置100本体が垂直に保持された状態を示しており、垂直面との左右の傾き角度は0度となっている。また、図3(b)は、撮像装置100本体が正面から向かって右に傾けられた状態を示しており、垂直面との左右の傾き角度はXとなっている。なお、左に傾けられた場合はマイナスの角度で表現されるものとする。   FIGS. 3A to 3D are diagrams illustrating an example of a state in which the main body of the imaging apparatus 100 is tilted. FIGS. 3A and 3B illustrate the main body of the imaging apparatus 100 as a lens. It is the front view seen from the side. FIG. 3A shows a state in which the main body of the imaging apparatus 100 is held vertically, and the left and right tilt angles with respect to the vertical plane are 0 degrees. FIG. 3B shows a state in which the main body of the imaging apparatus 100 is tilted to the right from the front, and the left and right tilt angles with respect to the vertical plane are X. When tilted to the left, it is expressed as a negative angle.

図3(c)及び図3(d)は、撮像装置100本体を側面から見た図である。図3(c)は、撮像装置100本体の撮影角度が水平に保持された状態を示しており、水平方向との前後の傾き角度は0度となっている。図3(d)は、撮像装置100本体のレンズ側が下に傾けられた状態を示しており、水平面との前後の傾き角度はYとなっている。なお、レンズ側が上に傾けられた場合はマイナスの角度で表現されるものとする。   3C and 3D are views of the imaging device 100 main body as viewed from the side. FIG. 3C shows a state in which the imaging angle of the main body of the imaging apparatus 100 is held horizontally, and the tilt angle before and after the horizontal direction is 0 degree. FIG. 3D shows a state in which the lens side of the main body of the imaging device 100 is tilted downward, and the tilt angle before and after the horizontal plane is Y. When the lens side is tilted upward, it is expressed as a negative angle.

次に、顔検出結果から胴体領域を決定する処理手順について説明する。図9は、胴体検出部105による胴体領域を決定する処理手順の一例を示すフローチャートである。
図9において、顔検出部104から顔領域情報が入力され、傾き検出部106から傾き情報が入力されると、ステップS901において処理を開始する。そして、ステップS902において、顔検出部104から入力された顔領域情報から顔領域が存在するか否かを判定する。この判定の結果、顔領域が存在しない場合は、ステップS905において、胴体領域が存在しないものとして符号化部103にその情報を送る。そして、ステップS908において胴体検出の処理を終了する。一方、ステップS902の判定の結果、顔領域が存在する場合は、ステップS903において、顔領域情報によって示される顔領域の大きさから胴体領域の大きさを決定する。
Next, a processing procedure for determining the body region from the face detection result will be described. FIG. 9 is a flowchart illustrating an example of a processing procedure for determining a body region by the body detection unit 105.
In FIG. 9, when face area information is input from the face detection unit 104 and tilt information is input from the tilt detection unit 106, processing starts in step S <b> 901. In step S902, it is determined from the face area information input from the face detection unit 104 whether a face area exists. As a result of this determination, if the face area does not exist, the information is sent to the encoding unit 103 in step S905, assuming that the body area does not exist. In step S908, the body detection process is terminated. On the other hand, as a result of the determination in step S902, if a face area exists, the size of the body area is determined from the size of the face area indicated by the face area information in step S903.

図10は、顔領域の大きさから胴体領域の大きさを決定する方法の一例を示す図である。
図10において、四角形Aは、顔領域情報における顔を取り囲むように設定された領域(顔領域)であり、四角形Bは、求めるべき胴体領域である。顔を取り囲む四角形Aの幅Ax及び高さAyから、所定の高さ係数及び幅係数をそれぞれ掛け合わせ、胴体領域の四角形Bの幅Bx及び高さByを算出する。
FIG. 10 is a diagram illustrating an example of a method for determining the size of the body region from the size of the face region.
In FIG. 10, a rectangle A is a region (face region) set to surround the face in the face region information, and a rectangle B is a body region to be obtained. From the width Ax and the height Ay of the quadrangle A that surrounds the face, a predetermined height coefficient and a width coefficient are multiplied to calculate the width Bx and the height By of the quadrangle B in the body region.

次に、胴体領域の位置を決定する。ステップS904において、傾き検出部106から入力された傾き情報における撮像装置100本体の前後の傾きYの絶対値が所定値以下であるか否かを判定する。すなわち、傾き情報における前後の傾き角度をYとし、所定の角度をYaとした場合、−Ya≦Y≦Yaが成立するか否かを判定する。このように式が成立する場合は、撮像装置100本体の前後の傾きの絶対値が水平面から角度Yaの範囲内ということである。この判定の結果、傾きYの絶対値が所定値以下である場合は、次のステップS906へ移行する。   Next, the position of the body region is determined. In step S904, it is determined whether or not the absolute value of the tilt Y before and after the main body of the imaging apparatus 100 in the tilt information input from the tilt detection unit 106 is equal to or less than a predetermined value. That is, when the front and rear tilt angles in the tilt information is Y and the predetermined angle is Ya, it is determined whether −Ya ≦ Y ≦ Ya is satisfied. When the formula is established in this way, the absolute value of the front / rear tilt of the imaging apparatus 100 main body is within the range of the angle Ya from the horizontal plane. If the absolute value of the slope Y is equal to or smaller than the predetermined value as a result of this determination, the process proceeds to the next step S906.

次に、ステップS906において、顔領域に対する胴体領域の位置を重力方向に従って決定する。手順としては、まず、撮影された画像における重力方向を傾き検出部106から入力された傾き情報により求める。傾き検出部106で検出された前後の傾きと左右の傾きとにより重力方向を算出することが可能である。そして、顔領域を基点として、重力方向に胴体領域があるものとして位置を決定する。そして、胴体領域情報として符号化部103に送る。このような手順にすることによって、被写体の人物が顔を傾けた場合や、撮像者が撮像装置を傾けて撮影した場合などでも胴体領域の位置を適切に決定することができる。以下、具体例として図4〜図6を参照しながら説明する。   Next, in step S906, the position of the body region with respect to the face region is determined according to the direction of gravity. As a procedure, first, the gravitational direction in the photographed image is obtained from the tilt information input from the tilt detection unit 106. The gravitational direction can be calculated from the front and rear inclinations and the left and right inclinations detected by the inclination detection unit 106. Then, the position is determined on the basis of the face region as the base region in the gravity direction. And it sends to the encoding part 103 as fuselage area | region information. By adopting such a procedure, it is possible to appropriately determine the position of the torso region even when the subject person tilts his face or when the photographer shoots while tilting the imaging device. Hereinafter, a specific example will be described with reference to FIGS.

図4は、被写体である人物を撮影している様子を示す図であり、撮像装置100本体の前後の傾きの絶対値が水平面から角度Ya以内である場合、すなわち撮像装置100のレンズがほぼ水平方向を向いている場合を示している。   FIG. 4 is a diagram illustrating a situation where a person who is a subject is being photographed. In the case where the absolute value of the front-rear tilt of the imaging apparatus 100 body is within an angle Ya from the horizontal plane, that is, the lens of the imaging apparatus 100 is substantially horizontal. The case where it is facing is shown.

図5(a)は、被写体の人物が顔を傾けていない場合であって、図3(a)に示したように撮像装置100本体に左右の傾きがない場合の撮影画像の一例を示す図である。また、図5(b)は、被写体の人物が顔を傾けていない場合であって、図3(b)に示したように撮像装置100本体に左右の傾きがある場合の撮影画像の一例を示す図である。一方、図6(a)は、被写体の人物が顔を傾けている場合であって、図3(a)に示したように撮像装置100本体に左右の傾きがない場合の撮影画像の一例を示す図である。また、図6(b)は、被写体の人物が顔を傾けている場合であって、図3(b)に示したように撮像装置100本体に左右の傾きがある場合の撮影画像の一例を示す図である。   FIG. 5A is a diagram illustrating an example of a photographed image when the subject person does not tilt his / her face and when the imaging apparatus 100 main body has no left / right tilt as illustrated in FIG. 3A. It is. FIG. 5B shows an example of a photographed image when the subject person does not tilt his / her face and the imaging apparatus 100 main body has a left / right tilt as shown in FIG. 3B. FIG. On the other hand, FIG. 6A shows an example of a photographed image when the subject person tilts his / her face and the imaging apparatus 100 main body has no left-right tilt as shown in FIG. FIG. FIG. 6B shows an example of a photographed image when the subject person tilts his / her face and the imaging apparatus 100 main body has a left / right tilt as shown in FIG. 3B. FIG.

図5(a)の501、図5(b)の502、図6(a)の601、図6(b)の602はそれぞれ、傾き検出部106の傾き情報により求められた重力方向を示す矢印である。図5及び図6に示すように、顔領域Aに対し、重力方向に胴体領域Bを決定することによって、胴体部分を適切に胴体領域と決定することができる。   501 in FIG. 5A, 502 in FIG. 5B, 601 in FIG. 6A, and 602 in FIG. 6B, respectively, arrows indicating the gravitational direction obtained from the inclination information of the inclination detecting unit 106. It is. As shown in FIGS. 5 and 6, by determining the body region B in the gravitational direction with respect to the face region A, the body part can be appropriately determined as the body region.

一方、ステップS904の判定の結果、傾きYの絶対値が所定値を超える場合は、ステップS907において、顔領域に対する胴体領域の位置を顔の傾き方向に従って決定する。そして、胴体領域情報として符号化部103に送る。このように顔領域を基点として、顔の傾き方向に胴体領域があるものとして決定する。以下、具体例について図7及び図8を参照しながら説明する。   On the other hand, if the absolute value of the tilt Y exceeds the predetermined value as a result of the determination in step S904, the position of the body region with respect to the face region is determined according to the tilt direction of the face in step S907. And it sends to the encoding part 103 as fuselage area | region information. Thus, it is determined that the body region is in the tilt direction of the face with the face region as a base point. Hereinafter, specific examples will be described with reference to FIGS.

図7は、被写体である人物の寝顔を撮影している様子を示す図である。図7に示す例では、撮像装置100本体の前後の傾きの絶対値が水平面から角度Ya以上であり、撮像装置100のレンズがYa度以上の斜め下を向いている。また、図8は、図7に示した状態で撮影した撮影画像を示す図である。図8に示すように、顔領域Aに対し、顔の傾き方向と平行な領域を胴体領域Bと決定することによって、胴体部分を適切に胴体領域と決定することができる。   FIG. 7 is a diagram illustrating a state in which a sleeping face of a person who is a subject is photographed. In the example illustrated in FIG. 7, the absolute value of the front / rear tilt of the image capturing apparatus 100 main body is an angle Ya or more from the horizontal plane, and the lens of the image capturing apparatus 100 faces obliquely below Ya degrees or more. FIG. 8 is a diagram illustrating a captured image captured in the state illustrated in FIG. As shown in FIG. 8, by determining a region parallel to the face tilt direction as the body region B with respect to the face region A, the body part can be appropriately determined as the body region.

以上のように、ステップS906またはS907において胴体領域の位置を決定すると、ステップS908へ移行し、胴体領域検出処理を終了する。以上のように図9に示した処理により胴体検出部105は胴体領域を決定し、胴体領域情報を符号化部103に出力する。   As described above, when the position of the body region is determined in step S906 or S907, the process proceeds to step S908, and the body region detection process is terminated. As described above, the body detection unit 105 determines the body region by the processing shown in FIG. 9 and outputs the body region information to the encoding unit 103.

符号化部103には、前述のように顔検出部104から出力された顔領域情報と胴体検出部105から出力された胴体領域情報とが入力される。符号化部103は、画像信号の量子化処理を行う際に、入力された情報に基づき、顔領域及び胴体領域を含むマクロブロックは前述したアクティビティ算出結果の平坦画像(劣化の目立ちやすいマクロブロック)と同様の扱いにするよう量子化パラメータを制御する。すなわち、符号化部103は、画像中の顔領域と胴体領域に対しては、他の領域に比べて量子化ステップサイズを相対的に小さくして量子化する。このように、顔領域及び胴体領域を含むマクロブロックに対しては量子化が細かく行われるように量子化パラメータを調節するため、顔領域及び胴体領域を高画質にすることができる。   The encoding unit 103 receives the face area information output from the face detection unit 104 and the body area information output from the body detection unit 105 as described above. When the encoding unit 103 performs quantization processing of the image signal, based on the input information, the macroblock including the face area and the body area is a flat image of the above-described activity calculation result (a macroblock that is easily deteriorated). The quantization parameter is controlled so as to be handled in the same manner as in FIG. That is, the encoding unit 103 quantizes the face region and the body region in the image with a relatively small quantization step size compared to other regions. As described above, since the quantization parameter is adjusted so that the quantization is finely performed on the macroblock including the face area and the body area, the face area and the body area can be improved in image quality.

以上説明したように本実施形態によれば、様々な撮影状態において、顔領域情報を用いて胴体領域を適切に決定することができる。そして、顔領域及び胴体領域に対しての量子化パラメータを制御することによって、顔領域及び胴体領域を高画質化することができる。   As described above, according to the present embodiment, the body region can be appropriately determined using the face region information in various shooting states. Then, by controlling the quantization parameters for the face region and the body region, the face region and the body region can be improved in image quality.

(本発明に係る他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other embodiments according to the present invention)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

101 撮像部、103 符号化部、104 顔検出部、105 胴体検出部、106 傾き検出部 101 imaging unit, 103 encoding unit, 104 face detection unit, 105 torso detection unit, 106 tilt detection unit

Claims (8)

被写体を撮像して画像信号を生成する撮像手段と、
前記撮像手段によって生成された画像信号から人物の顔領域を検出する顔検出手段と、
撮像装置本体の傾きを検出する傾き検出手段と、
前記顔検出手段による検出結果と前記傾き検出手段による検出結果とに基づいて、前記人物の胴体領域を検出する胴体検出手段と、
前記顔検出手段によって検出された顔領域と前記胴体検出手段によって検出された胴体領域とが高画質になるよう量子化処理における量子化ステップサイズを調節して前記画像信号を符号化する符号化手段とを有し、
前記胴体検出手段は、前記傾き検出手段によって検出された傾きのうち、水平面に対する前後の傾きが所定の範囲内である場合は、前記顔検出手段によって検出された顔領域を基点として重力方向の領域を胴体領域と決定し、水平面に対する前後の傾きが所定の範囲を越えた場合は、前記顔領域を基点として、顔の傾き方向と平行な領域を胴体領域と決定することを特徴とする撮像装置。
Imaging means for imaging a subject and generating an image signal;
Face detection means for detecting a human face area from the image signal generated by the imaging means;
Tilt detecting means for detecting the tilt of the imaging apparatus main body;
A torso detecting means for detecting a torso area of the person based on a detection result by the face detecting means and a detection result by the inclination detecting means;
Coding means for encoding the image signal by adjusting a quantization step size in a quantization process so that the face area detected by the face detection means and the body area detected by the body detection means have high image quality. It has a door,
The body detecting means is an area in the gravity direction with the face area detected by the face detecting means as a base point when the inclination detected by the inclination detecting means is within a predetermined range with respect to the horizontal plane. Is determined as the body region, and when the front-rear inclination with respect to the horizontal plane exceeds a predetermined range, the region parallel to the tilt direction of the face is determined as the body region with the face region as a base point. .
前記符号化手段は、前記顔検出手段によって検出された顔領域と、前記胴体検出手段によって検出された胴体領域とに対して、量子化ステップサイズを他の領域よりも相対的に小さくすることを特徴とする請求項1に記載の撮像装置。   The encoding means reduces the quantization step size relative to the face area detected by the face detection means and the trunk area detected by the trunk detection means relative to other areas. The imaging apparatus according to claim 1, wherein the imaging apparatus is characterized. 前記胴体検出手段は、前記顔検出手段によって検出された顔領域の大きさに応じて胴体領域の大きさを決定することを特徴とする請求項1または2に記載の撮像装置。 The body detection means, the imaging apparatus according to claim 1 or 2, characterized in that to determine the size of the body region according to the size of the face region detected by the face detecting means. 被写体を撮像して画像信号を生成する撮像工程と、
前記撮像工程において生成された画像信号から人物の顔領域を検出する顔検出工程と、
撮像装置本体の傾きを検出する傾き検出工程と、
前記顔検出工程における検出結果と前記傾き検出工程における検出結果とに基づいて、前記人物の胴体領域を検出する胴体検出工程と、
前記顔検出工程において検出された顔領域と前記胴体検出工程において検出された胴体領域とが高画質になるよう量子化処理における量子化ステップサイズを調節して前記画像信号を符号化する符号化工程とを有し、
前記胴体検出工程においては、前記傾き検出工程において検出された傾きのうち、水平面に対する前後の傾きが所定の範囲内である場合は、前記顔検出工程において検出された顔領域を基点として重力方向の領域を胴体領域と決定し、水平面に対する前後の傾きが所定の範囲を越えた場合は、前記顔領域を基点として、顔の傾き方向と平行な領域を胴体領域と決定することを特徴とする撮像方法。
An imaging step of imaging an object and generating an image signal;
A face detection step of detecting a human face region from the image signal generated in the imaging step;
A tilt detection step for detecting the tilt of the imaging device body;
Based on the detection result in the face detection step and the detection result in the tilt detection step, a torso detection step for detecting the torso region of the person,
An encoding step of encoding the image signal by adjusting a quantization step size in a quantization process so that the face area detected in the face detection step and the body region detected in the body detection step have high image quality. And
In the torso detecting step, of the inclinations detected in the inclination detecting step, when the front-rear inclination with respect to the horizontal plane is within a predetermined range, the face region detected in the face detecting step is used as a base point in the gravitational direction. The region is determined as a body region, and when the front-rear inclination with respect to the horizontal plane exceeds a predetermined range, the region parallel to the tilt direction of the face is determined as the body region with the face region as a base point. Method.
被写体を撮像して画像信号を生成する撮像工程と、
前記撮像工程において生成された画像信号から人物の顔領域を検出する顔検出工程と、
撮像装置本体の傾きを検出する傾き検出工程と、
前記顔検出工程における検出結果と前記傾き検出工程における検出結果とに基づいて、前記人物の胴体領域を検出する胴体検出工程と、
前記顔検出工程において検出された顔領域と前記胴体検出工程において検出された胴体領域とが高画質になるよう量子化処理における量子化ステップサイズを調節して前記画像信号を符号化する符号化工程とをコンピュータに実行させ
前記胴体検出工程においては、前記傾き検出工程において検出された傾きのうち、水平面に対する前後の傾きが所定の範囲内である場合は、前記顔検出工程において検出された顔領域を基点として重力方向の領域を胴体領域と決定し、水平面に対する前後の傾きが所定の範囲を越えた場合は、前記顔領域を基点として、顔の傾き方向と平行な領域を胴体領域と決定することを特徴とするプログラム。
An imaging step of imaging an object and generating an image signal;
A face detection step of detecting a human face region from the image signal generated in the imaging step;
A tilt detection step for detecting the tilt of the imaging device body;
Based on the detection result in the face detection step and the detection result in the tilt detection step, a torso detection step for detecting the torso region of the person,
An encoding step of encoding the image signal by adjusting a quantization step size in a quantization process so that the face area detected in the face detection step and the body region detected in the body detection step have high image quality. And let the computer run
In the torso detecting step, of the inclinations detected in the inclination detecting step, when the front-rear inclination with respect to the horizontal plane is within a predetermined range, the face region detected in the face detecting step is used as a base point in the gravitational direction. determine the area and the body area, if the front and rear inclination with respect to the horizontal plane exceeds a predetermined range, as a base point to the face area, characterized that you determine the area parallel with the inclination direction of the face and trunk areas program.
被写体を撮像して画像信号を生成する撮像手段と、
前記撮像手段によって生成された画像信号から人物の顔領域を検出する顔検出手段と、
撮像装置本体に対する重力方向を検出する重力センサーと、
前記顔検出手段による検出結果と前記重力センサーによる検出結果とに基づいて、前記人物の胴体領域を検出する胴体検出手段と、
前記顔検出手段によって検出された顔領域と前記胴体検出手段によって検出された胴体領域とが高画質になるよう量子化処理における量子化ステップサイズを調節して前記画像信号を符号化する符号化手段とを有し、
前記胴体検出手段は、前記重力センサーによる検出結果に基づいて前記撮像装置本体の傾きを判定し、水平面に対する前後の傾きが所定の範囲内である場合は、前記顔検出手段によって検出された顔領域を基点として重力方向の領域を胴体領域と決定し、水平面に対する前後の傾きが所定の範囲を越えた場合は、前記顔領域を基点として、顔の傾き方向と平行な領域を胴体領域と決定することを特徴とする撮像装置。
Imaging means for imaging a subject and generating an image signal;
Face detection means for detecting a human face area from the image signal generated by the imaging means;
A gravity sensor for detecting the direction of gravity relative to the imaging device body;
A torso detecting means for detecting a torso region of the person based on a detection result by the face detecting means and a detection result by the gravity sensor;
Coding means for encoding the image signal by adjusting a quantization step size in a quantization process so that the face area detected by the face detection means and the body area detected by the body detection means have high image quality. It has a door,
The torso detecting means determines the inclination of the imaging device main body based on the detection result by the gravity sensor, and when the front-rear inclination with respect to a horizontal plane is within a predetermined range, the face area detected by the face detecting means The area in the gravitational direction is determined as the body area from the base point, and when the front-rear tilt with respect to the horizontal plane exceeds a predetermined range, the area parallel to the tilt direction of the face is determined as the body area from the face area. An imaging apparatus characterized by that.
前記符号化手段は、前記顔検出手段によって検出された顔領域と、前記胴体検出手段によって検出された胴体領域とに対して、量子化ステップサイズを他の領域よりも相対的に小さくすることを特徴とする請求項に記載の撮像装置。 The encoding means reduces the quantization step size relative to the face area detected by the face detection means and the trunk area detected by the trunk detection means relative to other areas. The imaging apparatus according to claim 6 . 前記胴体検出手段は、前記顔検出手段によって検出された顔領域の大きさに応じて胴体領域の大きさを決定することを特徴とする請求項6または7に記載の撮像装置。 The imaging apparatus according to claim 6 or 7 , wherein the body detection unit determines the size of the body region according to the size of the face region detected by the face detection unit.
JP2009193336A 2009-08-24 2009-08-24 Imaging apparatus, imaging method, and program Expired - Fee Related JP5424779B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009193336A JP5424779B2 (en) 2009-08-24 2009-08-24 Imaging apparatus, imaging method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009193336A JP5424779B2 (en) 2009-08-24 2009-08-24 Imaging apparatus, imaging method, and program

Publications (3)

Publication Number Publication Date
JP2011045014A JP2011045014A (en) 2011-03-03
JP2011045014A5 JP2011045014A5 (en) 2012-09-27
JP5424779B2 true JP5424779B2 (en) 2014-02-26

Family

ID=43832088

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009193336A Expired - Fee Related JP5424779B2 (en) 2009-08-24 2009-08-24 Imaging apparatus, imaging method, and program

Country Status (1)

Country Link
JP (1) JP5424779B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6397354B2 (en) * 2015-02-24 2018-09-26 Kddi株式会社 Human area detection apparatus, method and program
JP7079188B2 (en) * 2018-11-07 2022-06-01 株式会社東海理化電機製作所 Crew discriminator, computer program, and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006129391A (en) * 2004-11-01 2006-05-18 Sony Corp Imaging device
JP4912117B2 (en) * 2006-10-27 2012-04-11 三洋電機株式会社 Imaging device with tracking function
JP4895041B2 (en) * 2007-07-20 2012-03-14 富士フイルム株式会社 Image processing apparatus, image processing method, and program

Also Published As

Publication number Publication date
JP2011045014A (en) 2011-03-03

Similar Documents

Publication Publication Date Title
US8983217B2 (en) Stereo image encoding apparatus, its method, and image pickup apparatus having stereo image encoding apparatus
CN102428707B (en) Image aligning device for stereoscopic viewing and image aligning method for stereoscopic viewing
US7873221B2 (en) Image processing apparatus, image processing method, program for image processing method, and recording medium which records program for image processing method
JP4799438B2 (en) Image recording apparatus, image recording method, image encoding apparatus, and program
CN101848328B (en) Image recording device and image tilt correcting method
CN105407271A (en) Image processing device and method, imaging device, and image generating device
CN112437301B (en) A code rate control method, device, storage medium and terminal for visual analysis
JP2014127744A (en) Imaging device, imaging control method, and program
JP2005295379A (en) Image encoding method, imaging apparatus, and computer program
JP2003189290A (en) Camera control method and apparatus using video compression algorithm
KR20150078275A (en) Digital Photographing Apparatus And Method For Capturing a Moving Subject
US20150288949A1 (en) Image generating apparatus, imaging apparatus, and image generating method
US9066100B2 (en) Image coding apparatus and image coding method
JP5424779B2 (en) Imaging apparatus, imaging method, and program
CN111492657B (en) Light Field Video Compression Based on Face Region Detection
JP4817990B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
KR20170006748A (en) Image capturing apparatus and method for the same
US20250193449A1 (en) Image processing apparatus and image processing method
US9392169B2 (en) Image processing apparatus, image processing method, program, and imaging apparatus
JP5869839B2 (en) Image processing apparatus and control method thereof
JP2001292449A (en) Image processing unit, image processing method, and recording medium
JP5165084B2 (en) Image encoding device
JP2008061184A (en) Image processing apparatus and method, program, and imaging apparatus
JP2018050151A (en) Image coding device, image coding method, and computer program
JP2010171491A (en) Imaging device, imaging method, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120809

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120809

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130620

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130709

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130903

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131029

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131126

R151 Written notification of patent or utility model registration

Ref document number: 5424779

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees