JP2009265726A - Image processor and image processing method - Google Patents

Image processor and image processing method Download PDF

Info

Publication number
JP2009265726A
JP2009265726A JP2008111079A JP2008111079A JP2009265726A JP 2009265726 A JP2009265726 A JP 2009265726A JP 2008111079 A JP2008111079 A JP 2008111079A JP 2008111079 A JP2008111079 A JP 2008111079A JP 2009265726 A JP2009265726 A JP 2009265726A
Authority
JP
Japan
Prior art keywords
image data
face
area
image processing
image
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
JP2008111079A
Other languages
Japanese (ja)
Inventor
Makoto Kaneda
田 真 金
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2008111079A priority Critical patent/JP2009265726A/en
Publication of JP2009265726A publication Critical patent/JP2009265726A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor and an image processing method for generating correction image data, which provides a person in a photographic image with a display result or a print result without giving the person a sense of dissatisfaction. <P>SOLUTION: The image processor has: a face detection unit detecting a face area of a person and an organ area of a face included in image data; and an averaging processing unit applying right-and-left averaging processing to the image data of the detected face area based on the detected organ area. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、画像処理装置及び画像処理方法に係り、特に、写真画像中の被写体人物本人にとって違和感の少ない表示結果又は印刷結果を得られる補正画像データを生成するための画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method, and more particularly, to an image processing apparatus and an image processing method for generating corrected image data that can obtain a display result or a print result with little discomfort for a subject person in a photographic image. About.

人の顔は、一見左右対称のように見えていても、よく見ると完全に左右対称ではないことが少なくなく、その度合いによっては、普段、本人が鏡を見て見慣れている左右反転像の自分の顔と写真に写された左右反転していない自分の顔との相違に違和感を感じることがある。   Even if a person's face appears to be symmetrical at first glance, it is often not completely symmetrical when viewed closely. Depending on the degree, the person's face is usually a mirror image that he is used to looking at in the mirror. You may feel uncomfortable with the difference between your face and your face that is not flipped.

この違和感によって、本来は良い思い出となるはずの記念写真が、本人にとっては不満を感じるものになってしまうことがあった。   Due to this uncomfortable feeling, commemorative photos that were supposed to be good memories could be frustrating for the person.

また、上述の違和感によって、「自分は写真写りが悪い」と思い込んでしまい、人によっては、写真を撮影されることに抵抗感や嫌悪感を感じるようになってしまうこともあった。   In addition, due to the above-mentioned uncomfortable feeling, it has been assumed that "I am not good at taking a picture", and some people may feel resistance or aversion to taking a picture.

写真画像やCG画像等の各種画像データに対しては従来より様々な画像処理が行われており、そのうちの一つに、画像の略全体を反転させて鏡像処理を施しながら、文字部分等の反転させたくない部分のみ反転させずにそのまま残すという画像処理技術がある(例えば、特許文献1を参照。)。
特開平8−223402号公報
Various image processing has been performed on various types of image data such as photographic images and CG images, and one of them is a mirror image process by reversing almost the entire image, There is an image processing technique in which only a portion that is not desired to be inverted is left as it is without being inverted (see, for example, Patent Document 1).
JP-A-8-223402

しかし、上記画像処理技術は、処理対象の画像として建造物の間取り図等を想定し、画像の非反転部分として、画像の一部分に存在する文字部分等を想定しているものであり、処理対象の画像の大部分は反転させて鏡像処理を施すことが前提となっている。   However, the above image processing technology assumes a floor plan of a building as an image to be processed, and assumes a character portion or the like existing in a part of the image as a non-inverted portion of the image. It is assumed that the majority of the image is reversed and subjected to mirror image processing.

従って、人物が背景と共に撮影された写真画像データにこの画像処理技術を適用すると、人物の顔のみならず人物の体や背景まで反転させてしまうため、記念写真やスナップ写真等の写真画像データに対する処理として不適当であり、上述の違和感を解消するための解決策として妥当でない。   Therefore, when this image processing technique is applied to photographic image data in which a person is photographed together with the background, not only the face of the person but also the body and background of the person are reversed. It is inappropriate as a process and is not appropriate as a solution for solving the above-mentioned uncomfortable feeling.

本発明は、以上の問題点に鑑みてなされたものであり、その目的は、写真画像中の被写体人物本人にとって違和感の少ない表示結果又は印刷結果を得られる補正画像データを生成するための画像処理装置及び画像処理方法を提供することである。   The present invention has been made in view of the above problems, and an object of the present invention is to perform image processing for generating corrected image data capable of obtaining a display result or a print result with little discomfort for the subject person in the photographic image. An apparatus and an image processing method are provided.

本発明に係る画像処理装置の一態様によれば、画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出ユニットと、前記検出された器官領域に基づいて、前記検出された顔領域の画像データに対し左右平均化処理を施す平均化処理ユニットと、を備えていることを特徴とする画像処理装置が提供される。   According to an aspect of the image processing apparatus of the present invention, the detection is performed based on the face detection unit that detects a human face area and a facial organ area included in the image data, and the detected organ area. An image processing apparatus is provided that includes an averaging processing unit that performs left-right averaging processing on the image data of the face area.

本発明に係る画像処理装置の上記一態様において、前記顔検出ユニットは、前記検出された顔領域を画定する矩形領域を各顔領域ごとに設定するとともに、前記矩形領域の縦の中心軸を前記各矩形領域ごとに特定し、かつ、前記各矩形領域を、顔の各器官の左右部分がそれぞれ含まれる複数の分割矩形領域に分割するものとするとよい。   In the above aspect of the image processing apparatus according to the present invention, the face detection unit sets a rectangular area defining the detected face area for each face area, and sets a vertical central axis of the rectangular area to the vertical axis. Each rectangular area is specified, and each rectangular area may be divided into a plurality of divided rectangular areas each including left and right portions of each organ of the face.

前記平均化処理ユニットは、対応する左右の前記分割矩形領域に含まれる器官部分の位置座標を比較し、それらの位置座標が平均化されるように、対応する左右の前記分割矩形領域に含まれる器官部分の画像データの変形処理を、対応する左右の前記分割矩形領域ごとに行うことにより、前記左右平均化処理を行うものとするとよい。   The averaging processing unit compares position coordinates of organ parts included in the corresponding left and right divided rectangular areas, and is included in the corresponding left and right divided rectangular areas so that the position coordinates are averaged. The left-right averaging process may be performed by performing a deformation process of the image data of the organ part for each of the corresponding left and right divided rectangular areas.

前記顔検出ユニットにより複数の顔領域が検出された場合、前記平均化処理ユニットは、複数の顔領域の画像データのうちのいずれかに対し前記左右平均化処理を選択的に行うものとするとよい。   When a plurality of face areas are detected by the face detection unit, the averaging processing unit may selectively perform the left-right averaging process on any of the image data of the plurality of face areas. .

本発明に係る画像処理装置の上記一態様において、画像データのデータ形式を変換して、プリンタで処理可能な印刷画像データを生成する印刷データ生成ユニットをさらに備えているものとするとよい。   In the above aspect of the image processing apparatus according to the present invention, it is preferable that the image processing apparatus further includes a print data generation unit that converts the data format of the image data and generates print image data that can be processed by the printer.

前記顔検出ユニットにより複数の顔領域が検出され、かつ、検出された顔領域の数と予定印刷枚数とが一致した場合、前記平均化処理ユニットは、前記左右平均化処理の対象とする顔領域の画像データを予定印刷枚数の一枚ごとに変更して前記左右平均化処理を行うものとするとよい。   When a plurality of face areas are detected by the face detection unit and the number of detected face areas matches the planned number of prints, the averaging processing unit is the face area to be subjected to the left-right averaging process The left and right averaging process may be performed by changing the image data for each scheduled print number.

本発明に係る画像処理装置の他の態様によれば、画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出ユニットと、検出された顔領域の画像データを切り出すデータ切り出しユニットと、切り出された顔領域の画像データに対し左右平均化処理を行って顔領域の変形画像データを生成するデータ変形ユニットと、生成された顔領域の変形画像データを元の写真画像データに合成するデータ合成ユニットと、を備えていることを特徴とする画像処理装置が提供される。   According to another aspect of the image processing apparatus of the present invention, a face detection unit for detecting a human face area and a face organ area included in the image data, and data for cutting out the image data of the detected face area A clipping unit, a data deformation unit that performs left-right averaging processing on the image data of the cut face area to generate deformed image data of the face area, and the original deformed image data of the generated face area An image processing apparatus is provided.

本発明に係る画像処理装置の上記他の態様において、上記顔検出ユニットは、検出された顔領域を画定する矩形領域を各顔領域ごとに設定するとともに、上記矩形領域の縦の中心軸を上記各矩形領域ごとに特定し、かつ、上記各矩形領域を、顔の各器官の左右部分がそれぞれ含まれる複数の分割矩形領域に分割するものとするとよい。   In the other aspect of the image processing apparatus according to the present invention, the face detection unit sets a rectangular area defining the detected face area for each face area, and sets the vertical central axis of the rectangular area to the It is preferable to specify each rectangular area and divide each rectangular area into a plurality of divided rectangular areas each including left and right portions of each organ of the face.

上記データ変形ユニットは、対応する左右の上記分割矩形領域に含まれる器官部分の位置座標を比較し、それらの位置座標が平均化されるように、対応する左右の上記分割矩形領域に含まれる器官部分の画像データの変形処理を、対応する左右の上記分割矩形領域ごとに行うことにより、上記左右平均化処理を行うものとするとよい。   The data transformation unit compares the position coordinates of the organ parts included in the corresponding left and right divided rectangular areas, and the organs included in the corresponding left and right divided rectangular areas so that the position coordinates are averaged. The left-right averaging process may be performed by performing the deformation process of the image data of the part for each of the corresponding left and right divided rectangular areas.

上記顔検出ユニットにより複数の顔領域が検出された場合、上記データ変形ユニットは、複数の顔領域の画像データのうちのいずれかに対し上記左右平均化処理を選択的に行うものとするとよい。   When a plurality of face areas are detected by the face detection unit, the data transformation unit may selectively perform the left-right averaging process on any of the image data of the plurality of face areas.

本発明に係る画像処理装置の上記他の態様において、上記データ合成ユニットにより合成された補正画像データのデータ形式を変換して、プリンタで処理可能な印刷画像データを生成する印刷データ生成ユニットをさらに備えているものとするとよい。   In another aspect of the image processing apparatus according to the present invention, a print data generation unit that converts the data format of the corrected image data synthesized by the data synthesis unit and generates print image data that can be processed by a printer is further provided. It should be provided.

上記顔検出ユニットにより複数の顔領域が検出され、かつ、検出された顔領域の数と予定印刷枚数とが一致した場合、上記データ変形ユニットは、上記左右平均化処理の対象とする顔領域の画像データを予定印刷枚数の一枚ごとに変更して上記左右平均化処理を行うものとするとよい。   When a plurality of face areas are detected by the face detection unit and the number of detected face areas matches the planned number of prints, the data transformation unit determines the face area to be subjected to the left-right averaging process. The left and right averaging process may be performed by changing the image data for each scheduled print number.

また、本発明に係る画像処理方法の一態様によれば、画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出過程と、前記検出された器官領域に基づいて、前記検出された顔領域の画像データに対し左右平均化処理を施す平均化処理過程と、を含むことを特徴とする画像処理方法が提供される。   Further, according to one aspect of the image processing method according to the present invention, based on the face detection process of detecting a human face area and facial organ area included in the image data, and the detected organ area, There is provided an image processing method comprising: an averaging process step of performing a left-right averaging process on the image data of the detected face area.

また、本発明に係る画像処理方法の他の態様によれば、画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出過程と、検出された顔領域の画像データを切り出すデータ切り出し過程と、切り出された顔領域の画像データに対し左右平均化処理を行って顔領域の変形画像データを生成するデータ変形過程と、生成された顔領域の変形画像データを元の写真画像データに合成するデータ合成過程と、を含むことを特徴とする画像処理方法が提供される。   According to another aspect of the image processing method of the present invention, a face detection process for detecting a human face area and a face organ area included in the image data, and image data of the detected face area are obtained. Data cut-out process to cut out, data deformation process to perform left-right averaging on the cut-out face area image data to generate deformed image data of the face area, and the generated deformed image data of the face area to the original photo And an image processing method characterized by including a data synthesis process for synthesizing the image data.

また、本発明に係るコンピュータプログラムの一態様によれば、画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出機能と、前記検出された器官領域に基づいて、前記検出された顔領域の画像データに対し左右平均化処理を施す平均化処理機能と、をコンピュータに実現させるためのコンピュータプログラムが提供される。   Further, according to one aspect of the computer program according to the present invention, based on the face detection function for detecting the human face area and the facial organ area included in the image data, and the detected organ area, There is provided a computer program for causing a computer to realize an averaging processing function for performing left-right averaging processing on detected face area image data.

また、本発明に係るコンピュータプログラムの他の態様によれば、画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出機能と、検出された顔領域の画像データを切り出すデータ切り出し機能と、切り出された顔領域の画像データに対し左右平均化処理を行って顔領域の変形画像データを生成するデータ変形機能と、生成された顔領域の変形画像データを元の写真画像データに合成するデータ合成機能と、をコンピュータに実現させるためのコンピュータプログラムが提供される。   According to another aspect of the computer program of the present invention, a face detection function for detecting a human face area and a face organ area included in the image data, and image data of the detected face area are cut out. A data cutout function, a data transformation function that performs left-right averaging processing on the image data of the cut face area to generate deformed image data of the face area, and the original photo image of the generated deformed image data of the face area There is provided a computer program for causing a computer to implement a data synthesizing function for synthesizing data.

本発明に係る画像処理装置及び画像処理方法は、上記各態様により、写真画像中の被写体人物本人が鏡を見て見慣れている左右反転像の自分の顔との比較において感じる違和感を解消又は軽減し得る表示結果又は印刷結果を得られる補正画像データを生成することができる。   The image processing apparatus and the image processing method according to the present invention eliminate or reduce the uncomfortable feeling that the subject person in the photographic image feels in comparison with his / her face of the reversed right-and-left image that he / she is familiar with by looking at the mirror. It is possible to generate corrected image data that can obtain a display result or a print result.

本発明に係る画像処理装置及び画像処理方法の構成の概要は、人物が被写体として含まれている写真画像を表示又は印刷するに際し、当該画像データに含まれている人物の顔領域を検出して、顔領域の画像データに対し左右反転処理又は左右平均化処理を行い、元の写真画像データに合成して補正画像データを生成するものである。   The outline of the configuration of the image processing apparatus and the image processing method according to the present invention is to detect a face area of a person included in the image data when displaying or printing a photographic image in which the person is included as a subject. The image data of the face area is subjected to left / right reversal processing or left / right averaging processing, and is synthesized with the original photographic image data to generate corrected image data.

顔領域の画像データに対し左右反転処理を行うことにより、被写体人物本人が鏡を見て見慣れている左右反転像の顔を写真画像中に再現し、本人にとって自分自身が記憶している自分の顔との比較において違和感のない写真表示結果又は印刷結果を提供することができる。   By performing left-right reversal processing on the image data of the face area, the face of the reversed right-and-left image that the subject person is accustomed to seeing in the mirror is reproduced in the photographic image, and the person himself / herself remembers It is possible to provide a photo display result or a print result that does not give a sense of incompatibility in comparison with the face.

但し、写真画像中に含まれている人物の顔領域に左右反転処理を行うと、結果として得られる写真画像は、被写体人物本人にとっては違和感のないものであっても、他人から見ると違和感を感じる可能性がある。   However, if the left and right reversal processing is performed on the face area of the person included in the photographic image, the resulting photographic image will not feel uncomfortable for the subject person himself, but will feel uncomfortable when viewed from others. May feel.

そこで、本発明に係る画像処理装置及び画像処理方法においては、検出した顔領域の画像データに対して行う処理として、左右反転処理のみならず、左右平均化処理を選択することも可能として、被写体人物本人にとっても他人にとっても違和感の少ない写真表示結果又は印刷結果を提供することができる。   Therefore, in the image processing apparatus and the image processing method according to the present invention, it is possible to select not only the left / right reversal process but also the left / right averaging process as a process to be performed on the detected face area image data. It is possible to provide a photographic display result or a print result with little discomfort for the person himself / herself and others.

以下、本発明に係る画像処理装置及び画像処理方法の実施の形態について、図面を参照しながら詳細に説明する。   Embodiments of an image processing apparatus and an image processing method according to the present invention will be described below in detail with reference to the drawings.

図1は、本発明の第一の実施の形態に係る画像処理装置を含むプリンタ複合機の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of a printer multifunction machine including an image processing apparatus according to the first embodiment of the present invention.

図1に示す本発明の第一の実施の形態に係る画像処理装置20は、ホストコンピュータへの接続が必須ではなく、メモリカード等に記録された写真画像データを単体で印刷可能なプリンタ複合機1の一部を構成する装置として具現化された例である。尚、プリンタ複合機とは、プリンタの機能の他にスキャナ、コピー機等の機能を備えたものをいう。   The image processing apparatus 20 according to the first embodiment of the present invention shown in FIG. 1 is not necessarily required to be connected to a host computer, and is a printer multifunction device capable of printing photographic image data recorded on a memory card or the like alone. It is the example embodied as an apparatus which comprises some 1s. Note that a printer multifunction device is a device having functions of a scanner, a copier, etc. in addition to the functions of a printer.

図1に示すプリンタ複合機1は、画像データを入力するためのデータ入力装置10と、入力された画像データを一時的に保持するメモリ30と、画像データに対し画像処理を行う画像処理装置20と、操作に必要な情報表示及び入力を行うためのユーザインタフェース40と、画像処理の結果として生成された印刷画像データに基づき印刷を行うプリンタユニット50とを備えている。   1 includes a data input device 10 for inputting image data, a memory 30 that temporarily stores input image data, and an image processing device 20 that performs image processing on the image data. And a user interface 40 for displaying and inputting information necessary for operation, and a printer unit 50 for performing printing based on print image data generated as a result of image processing.

データ入力装置10は、メモリカードからの画像データの読み込みを行うメモリカードリーダ11と、原稿からの画像データの読み込みを行うスキャナユニット12と、コンピュータ等の外部機器からの画像データの入力を行うための外部インタフェースユニット13とを備えている。   The data input device 10 inputs image data from an external device such as a memory card reader 11 that reads image data from a memory card, a scanner unit 12 that reads image data from a document, and a computer. The external interface unit 13 is provided.

データ入力装置10を介して入力された画像データは、メモリ30に一時的に保持される。   Image data input via the data input device 10 is temporarily stored in the memory 30.

ユーザインタフェース40は、操作に必要な情報表示を行う液晶ディスプレイ(LCD)41と、ユーザからの指示を入力するためのスイッチ若しくはボタン42又はタッチパネル43とを備えている。   The user interface 40 includes a liquid crystal display (LCD) 41 that displays information necessary for operation, and a switch or button 42 or a touch panel 43 for inputting an instruction from the user.

本発明の第一の実施の形態に係る画像処理装置20は、画像データに含まれている人物の顔領域を検出する顔検出ユニット21と、検出された顔領域の画像データを切り出すデータ切り出しユニット22と、切り出された顔領域の画像データに対し左右反転処理又は左右平均化処理を行って顔領域の変形画像データを生成するデータ変形ユニット23と、生成された顔領域の変形画像データを元の写真画像データに合成するデータ合成ユニット24と、合成された合成写真画像データのデータ形式を変換して、プリンタユニット50で処理可能な印刷画像データを生成する印刷データ生成ユニット25とを備えている。   An image processing apparatus 20 according to the first embodiment of the present invention includes a face detection unit 21 that detects a face area of a person included in image data, and a data cutout unit that cuts out image data of the detected face area. 22, a data transformation unit 23 that performs left-right reversal processing or left-right averaging processing on the cut-out face area image data to generate deformed image data of the face area, and the generated deformed image data of the face area A data synthesizing unit 24 that synthesizes the photographic image data, and a print data generating unit 25 that converts the data format of the synthesized photographic image data to generate print image data that can be processed by the printer unit 50. Yes.

本発明の第一の実施の形態に係る画像処理装置20は、上記各ユニット21乃至25の順次動作によって、メモリ30に一時的に保持されている写真画像データに対する画像処理を行う。   The image processing apparatus 20 according to the first embodiment of the present invention performs image processing on the photographic image data temporarily stored in the memory 30 by the sequential operation of the units 21 to 25.

プリンタユニット50は、生成された印刷画像データに基づき画像印刷を行う。   The printer unit 50 performs image printing based on the generated print image data.

次に、本発明の第一の実施の形態に係る画像処理装置の動作、即ち、本発明の第一の実施の形態に係る画像処理方法の手順について、より詳細に説明する。   Next, the operation of the image processing apparatus according to the first embodiment of the present invention, that is, the procedure of the image processing method according to the first embodiment of the present invention will be described in more detail.

図2は、本発明の第一の実施の形態に係る画像処理装置の動作、即ち、本発明の第一の実施の形態に係る画像処理方法の手順を示すフローチャートである。また、図3は、検出された画像データの顔を順次選択して表示する様子を模式的に示す説明図である。   FIG. 2 is a flowchart showing the operation of the image processing apparatus according to the first embodiment of the present invention, that is, the procedure of the image processing method according to the first embodiment of the present invention. FIG. 3 is an explanatory diagram schematically showing how the faces of detected image data are sequentially selected and displayed.

本発明の第一の実施の形態に係る画像処理装置及び画像処理方法では、先ず最初に、処理対象となる画像データに対し顔検出ユニット21による顔検出処理を行って、画像データに含まれている人物の顔領域を検出し、顔領域の数、各顔領域の位置及び大きさを特定する(ステップS101)。顔検出処理は、既存の顔検出技術を含む任意の顔検出技術を用いて行うことができる。顔検出処理の際には、検出された顔領域を画定する矩形領域を各顔領域ごとに設定しておく。また、本発明の第一の実施の形態に係る画像処理装置及び画像処理方法において顔領域の画像データに対し行う左右反転処理又は左右平均化処理は、画像データの顔がほぼ真正面から写っている場合には容易に実施が可能であるが、画像データの顔が斜め方向から写っている場合には実施が困難であるため、顔検出ユニット21による顔検出処理では、ほぼ真正面から写っている顔のみ検出するように、予め設定を行っておくとよい。斯かる設定は、例えば、顔検出ユニット21の動作制御プログラムに使用する学習サンプル用顔画像データとして真正面から写っている顔画像データのみを用いることにより、画像データに含まれている人物の顔領域のなかからほぼ真正面から写っている顔のみを抽出して検出することができる。   In the image processing apparatus and the image processing method according to the first embodiment of the present invention, first, face detection processing by the face detection unit 21 is performed on the image data to be processed, and the image data is included in the image data. The face area of a person is detected, and the number of face areas and the position and size of each face area are specified (step S101). The face detection process can be performed using any face detection technique including an existing face detection technique. In the face detection process, a rectangular area that defines the detected face area is set for each face area. Further, in the image processing apparatus and the image processing method according to the first embodiment of the present invention, the left / right reversing process or the left / right averaging process performed on the image data of the face area shows the face of the image data almost from the front. However, when the face of the image data is seen from an oblique direction, it is difficult to carry out the face. Therefore, in the face detection processing by the face detection unit 21, the face that is reflected almost directly from the front. It is preferable to make a setting in advance so as to detect only. Such setting is performed by using, for example, only face image data taken from the front as learning sample face image data used for the operation control program of the face detection unit 21, so that the face area of the person included in the image data is used. It is possible to extract and detect only the face that is reflected from the front.

顔検出処理の結果、人物の顔領域が検出されたか否かを識別し(ステップS102)、人物の顔領域が検出されなかった場合は、本発明の第一の実施の形態に係る画像処理装置及び画像処理方法による画像処理を実施する必要がないので、印刷データ生成ユニット25により、写真画像データのデータ形式を変換して、プリンタユニット50で処理可能な印刷画像データを生成する(ステップS115)。   As a result of the face detection process, it is identified whether or not a person's face area is detected (step S102). If no person's face area is detected, the image processing apparatus according to the first embodiment of the present invention In addition, since it is not necessary to perform image processing by the image processing method, the print data generation unit 25 converts the data format of the photographic image data to generate print image data that can be processed by the printer unit 50 (step S115). .

一方、人物の顔領域が検出された場合は、本発明の第一の実施の形態に係る画像処理装置及び画像処理方法による画像処理の適用又は不適用を順次決定するため、適用又は不適用が未決定の残りの顔領域があるか否かを識別し(ステップS106)、適用又は不適用が未決定の残りの顔領域がある場合には、そのうちの一つを選択して(ステップS107)、選択した顔領域に対する処理方法の選択入力を受け付ける(ステップS108)。   On the other hand, when a face area of a person is detected, application or non-application is determined in order to sequentially determine application or non-application of image processing by the image processing apparatus and the image processing method according to the first embodiment of the present invention. It is identified whether or not there is a remaining face area that has not been determined (step S106). If there is a remaining face area that has not yet been determined to be applied or not applied, one of them is selected (step S107). Then, a selection input of a processing method for the selected face area is received (step S108).

ここでは、例えば、ユーザインタフェース40の液晶ディスプレイ41を使用して、図3(a)、図3(b)、図3(c)に示すように、写真画像中の選択した顔領域に枠状カーソルを重ねて表示し、その顔領域の画像データに対する補正処理、即ち、左右反転処理又は左右平均化処理の適用又は不適用、及び、補正処理を適用する場合には左右反転処理又は左右平均化処理のいずれを適用するかについての選択入力を受け付ける。表示画面には、「選択された顔に補正処理を行いますか?」というメッセージと共に「Yes」及び「No」のクリックボタンを表示し、「Yes」が選択された場合には、さらに、補正処理として「左右反転処理又は左右平均化処理のいずれを行いますか?」というメッセージと共に「左右反転処理」及び「左右平均化処理」のクリックボタンを表示し、「左右反転処理」又は「左右平均化処理」のいずれかについての選択入力を受け付けるようにする。選択入力は、例えば、ユーザインタフェース40のスイッチ若しくはボタン42又はタッチパネル43を介して受け付ける。   Here, for example, by using the liquid crystal display 41 of the user interface 40, as shown in FIG. 3A, FIG. 3B, and FIG. When the cursor is overlaid and displayed, correction processing for the image data of the face area, that is, application or non-application of left / right inversion processing or left / right averaging processing, and when applying correction processing, left / right inversion processing or left / right averaging A selection input as to which of the processing is applied is accepted. On the display screen, a “Yes” and “No” click button is displayed together with a message “Do you want to perform correction processing on the selected face?”, And if “Yes” is selected, further correction is performed. As a process, the message “Would you like to perform left-right reversal processing or left-right reversal averaging processing?” Is displayed along with the “Left-right reversal processing” and “Left-right reversal averaging” click buttons, and “Right-left reversal processing” or “Left-right reversal processing” The selection input for any of the “processing” is accepted. The selection input is received via the switch or button 42 of the user interface 40 or the touch panel 43, for example.

現在選択中の顔領域に対する処理方法の選択入力を受け付けた後、その選択入力に基づいて補正処理の適用又は不適用を決定し(ステップS109)、不適用が決定された場合には、ステップS106へ戻って適用又は不適用が未決定の残りの顔領域があるか否かを識別し、以後の各ステップを順次同様に行う。   After accepting a selection input of a processing method for the currently selected face area, application or non-application of the correction process is determined based on the selection input (step S109). If non-application is determined, step S106 is performed. Returning to, it is determined whether or not there is a remaining face area for which application or non-application has yet to be determined, and the subsequent steps are sequentially performed in the same manner.

一方、補正処理の適用が決定された場合には、現在選択中の顔領域を画定する矩形領域の画像データを元の写真画像データからデータ切り出しユニット22によって切り出し処理し(ステップS110)、処理方法の選択入力に基づいて左右反転処理及び左右平均化処理のうちの左右平均化処理が選択されているか否かを識別し(ステップS111)、左右平均化処理が選択されている場合には顔領域の画像データに対して左右平均化処理を実行し(ステップS112)、左右平均化処理が選択されていない場合には顔領域の画像データに対して左右反転処理を実行して(ステップS113)、顔領域の変形画像データを生成する。   On the other hand, when application of the correction process is determined, the image data of the rectangular area defining the currently selected face area is cut out from the original photographic image data by the data cutout unit 22 (step S110), and the processing method Based on the selection input, it is identified whether or not the left / right inversion processing and the left / right averaging processing are selected (step S111). If the left / right averaging processing is selected, the face area is selected. Left and right averaging processing is performed on the image data (step S112), and when left and right averaging processing is not selected, left and right inversion processing is performed on the image data of the face area (step S113). Deformed image data of the face area is generated.

ここで、本発明の第一の実施の形態に係る画像処理装置及び画像処理方法における左右反転処理及び左右平均化処理について説明する。   Here, the horizontal inversion process and the horizontal averaging process in the image processing apparatus and the image processing method according to the first embodiment of the present invention will be described.

左右反転処理においては、検出された顔領域を画定する矩形領域の縦の中心軸、即ち、顔の眉間及び鼻梁並びに下顎中央端部を通過する中心軸を特定し、その中心軸に関する左右反転処理を行うことにより、顔領域の画像データに対して鏡面反転処理を行う。   In the left-right reversal process, the vertical center axis of the rectangular area that defines the detected face area, that is, the center axis that passes between the eyebrows and the nasal bridge and the central end of the lower jaw is specified, and the left-right reversal process with respect to the center axis By performing the above, mirror surface inversion processing is performed on the image data of the face area.

尚、補正処理対象となっている人物の髪型が例えば右分け又は左分け等になっていて、頭髪部分が鏡面反転写像と実像とで明らかに異なるものとなる場合があるので、補正処理対象となる顔領域を画定する矩形領域には、頭髪部分が含まれないようにしておくことが望ましい。   It should be noted that the hairstyle of the person who is the correction processing target is, for example, right division or left division, and the hair portion may be clearly different between the mirror anti-transfer image and the real image. It is desirable that the rectangular area that defines the face area to be included does not include the hair portion.

一方、左右平均化処理においては、検出された顔領域を画定する矩形領域の縦の中心軸を特定するだけでなく、その顔領域に含まれる器官、即ち、眉毛、目、鼻、口の位置を特定し、顔領域を画定する矩形領域を、各器官の左右部分がそれぞれ含まれる複数の分割矩形領域に分割する。例えば、複数の分割矩形領域として、左眉毛、右眉毛、左目、右目、鼻の左半分、鼻の右半分、口の左半分、口の右半分をそれぞれ含む分割矩形領域を設定する。   On the other hand, in the left-right averaging process, not only the vertical central axis of the rectangular area that defines the detected face area is specified, but also the positions of the organs included in the face area, that is, eyebrows, eyes, nose, and mouth And the rectangular area defining the face area is divided into a plurality of divided rectangular areas each including left and right portions of each organ. For example, as the plurality of divided rectangular areas, divided rectangular areas each including the left eyebrow, the right eyebrow, the left eye, the right eye, the left half of the nose, the right half of the nose, the left half of the mouth, and the right half of the mouth are set.

そして、対応する左右の分割矩形領域に含まれる器官部分の位置座標を比較し、それらの位置座標が平均化されるように、対応する左右の分割矩形領域に含まれる器官部分の画像データの変形処理を行う。この器官部分の画像データの変形処理による左右の器官部分の位置座標平均化処理を、対応する左右の分割矩形領域ごとに行うことによって、顔領域の画像データの左右平均化処理を行うことができる。   Then, the position coordinates of the organ parts included in the corresponding left and right divided rectangular areas are compared, and the image data of the organ parts included in the corresponding left and right divided rectangular areas are transformed so that the position coordinates are averaged. Process. By performing the position coordinate averaging process of the left and right organ parts by the deformation process of the image data of the organ part for each of the corresponding left and right divided rectangular areas, the left and right averaging process of the image data of the face area can be performed. .

顔領域に含まれる器官の位置特定には、例えば、特表2002−531901号公報に開示された技術を含む任意の位置特定技術を用いることができる。   For specifying the position of the organ included in the face area, for example, any position specifying technique including the technique disclosed in JP-T-2002-53901 can be used.

また、顔領域を画定する矩形領域の縦の中心軸の特定、顔領域を画定する矩形領域の複数の分割矩形領域への分割、及び、分割矩形領域の画像データの変形処理については、例えば、特願2007−082325号及び特願2007−195049号に開示された技術を含む任意の顔検出技術及び画像データ変形処理技術を用いることができる。   Further, with regard to the specification of the vertical central axis of the rectangular area that defines the face area, the division of the rectangular area that defines the face area into a plurality of divided rectangular areas, and the deformation processing of the image data of the divided rectangular areas, for example, Any face detection technology and image data deformation processing technology including the technology disclosed in Japanese Patent Application No. 2007-082325 and Japanese Patent Application No. 2007-195049 can be used.

左右反転処理又は左右平均化処理の終了後、顔領域の変形画像データと元の写真画像データとの合成処理を行い(ステップS114)、補正画像データを生成する。この合成処理の際、顔領域の変形画像データと元の写真画像データとの境界部分が不自然に目立たないようにするために、境界部分に例えばぼかし処理等の補正処理を行って、全体として自然な写真画像になるようにするとよい。   After the left / right reversing process or the left / right averaging process is completed, a process of combining the deformed image data of the face area and the original photographic image data is performed (step S114) to generate corrected image data. At the time of this composition processing, in order to prevent the boundary portion between the deformed image data of the face region and the original photographic image data from being unnaturally conspicuous, correction processing such as blurring processing is performed on the boundary portion as a whole. It should be natural photographic images.

合成処理を実行後、ステップS106へ戻って、本発明の第一の実施の形態に係る画像処理装置及び画像処理方法による画像処理の適用又は不適用が未決定の残りの顔領域があるか否かを識別し、適用又は不適用が未決定の残りの顔領域がある場合には、以後の各ステップを順次同様に行う。   After performing the synthesis process, the process returns to step S106, and whether there is a remaining face area for which application or non-application of image processing by the image processing apparatus and the image processing method according to the first embodiment of the present invention is undetermined. If there is a remaining face area for which application or non-application is not yet determined, the subsequent steps are sequentially performed in the same manner.

一方、適用又は不適用が未決定の残りの顔領域がない場合には、合成処理済みの補正画像データのデータ形式を印刷データ生成ユニット25により変換して、プリンタユニット50で処理可能な印刷画像データを生成する(ステップS115)。ここで行う印刷画像データへのデータ形式の変換は、例えば、RGBデータからCMYKデータへの色データ変換やハーフトーニング処理等の既知のデータ変換処理であり、本発明の本質的構成とは関係がないので、詳細な説明は省略する。   On the other hand, if there is no remaining face area for which application or non-application has yet to be determined, the print data generation unit 25 converts the data format of the corrected image data that has been combined and can be processed by the printer unit 50. Data is generated (step S115). The conversion of the data format into the print image data performed here is a known data conversion process such as color data conversion from RGB data to CMYK data and halftoning process, and is related to the essential configuration of the present invention. Since there is no detailed explanation, it is omitted.

本発明の第一の実施の形態に係る画像処理装置及び画像処理方法は、以上のように、画像データに含まれている人物の顔領域を検出して顔領域の画像データに対し左右反転処理又は左右平均化処理を行うことにより、画像中の被写体人物本人が鏡を見て見慣れている左右反転像の自分の顔との比較において感じる違和感を解消又は軽減し得る表示結果又は印刷結果を得られる補正画像データを生成することができる。   As described above, the image processing apparatus and the image processing method according to the first embodiment of the present invention detect a human face area included in image data and perform left-right inversion processing on the image data of the face area. Alternatively, by performing left-right averaging processing, a display result or print result that can eliminate or reduce the sense of incongruity that the subject person in the image feels in comparison with his / her face of a horizontally reversed image that he / she is familiar with looking at the mirror is obtained. Correction image data to be generated can be generated.

尚、上述の本発明の第一の実施の形態に係る画像処理装置及び画像処理方法においては、処理対象となる写真画像データに基づいて印刷画像データが生成されて最終的に印刷が行われるものとして、本発明の第一の実施の形態に係る画像処理装置20が印刷データ生成ユニット25を備え且つプリンタ複合機1の一部を構成する装置として具現化された例について説明した。   In the above-described image processing apparatus and image processing method according to the first embodiment of the present invention, print image data is generated based on photographic image data to be processed and finally printed. The example in which the image processing apparatus 20 according to the first embodiment of the present invention is embodied as an apparatus that includes the print data generation unit 25 and constitutes a part of the multifunction printer 1 has been described.

しかし、印刷を行わない場合、即ち、顔領域の変形画像データと元の写真画像データとの合成処理により生成された補正画像データに基づいて表示装置に補正写真画像を表示させるだけで足りる場合は、印刷データ生成ユニット25及び印刷データ生成ステップ(過程)は、本発明の第一の実施の形態に係る画像処理装置及び画像処理方法の構成として必要な構成ではない。   However, when printing is not performed, that is, when it is sufficient to display the corrected photographic image on the display device based on the corrected image data generated by combining the deformed image data of the face area and the original photographic image data. The print data generation unit 25 and the print data generation step (process) are not necessary configurations as the configurations of the image processing apparatus and the image processing method according to the first embodiment of the present invention.

また、本発明の第一の実施の形態に係る画像処理装置及び画像処理方法において必要不可欠な構成のみを抽出すると、本発明の第一の実施の形態に係る画像処理装置及び画像処理方法は、画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出ユニット(又は過程)と、検出された器官領域に基づいて、検出された顔領域の画像データに対し左右反転処理又は左右平均化処理を施すデータ変形(反転処理又は平均化処理)ユニット(又は過程)と、を備えているものとなる。   Further, when only the indispensable components are extracted from the image processing apparatus and the image processing method according to the first embodiment of the present invention, the image processing apparatus and the image processing method according to the first embodiment of the present invention are as follows. A face detection unit (or process) that detects a human face area and facial organ area included in the image data, and a left-right inversion process for the detected face area image data based on the detected organ area Alternatively, a data transformation (inversion process or averaging process) unit (or process) that performs a left-right averaging process is provided.

次に、複数の人物が写っている写真を、写っている人物の人数と同じ枚数だけ印刷して各人に配布する場合に、画像処理対象となる人物の顔領域の選択を印刷一枚ごとに変更し、顔領域の画像データに画像処理が行われた人物と当該印刷結果を受け取る人物とが一致するように写真の配布を行う実施の形態を、上記第一の実施の形態の応用例である第二の実施の形態として説明する。   Next, when printing the same number of photos of multiple people as the number of people in the photo and distributing it to each person, select the face area of the person to be image-processed for each print. The embodiment in which the photograph is distributed so that the person who has been subjected to the image processing on the image data of the face area and the person who receives the print result is the same as the application example of the first embodiment. The second embodiment will be described.

図4は、本発明の第二の実施の形態に係る画像処理装置の動作、即ち、本発明の第二の実施の形態に係る画像処理方法の手順を示すフローチャートである。また、図5は、画像処理対象となる人物の顔領域の選択を印刷一枚ごとに変更して顔領域の画像データに画像処理を行った写真画像データに基づく印刷結果である補正写真画像を模式的に示す説明図である。   FIG. 4 is a flowchart showing the operation of the image processing apparatus according to the second embodiment of the present invention, that is, the procedure of the image processing method according to the second embodiment of the present invention. FIG. 5 also shows a corrected photographic image that is a print result based on photographic image data obtained by changing the selection of the face area of a person to be image-processed for each print and performing image processing on the image data of the face area. It is explanatory drawing shown typically.

本発明の第二の実施の形態に係る画像処理装置及び画像処理方法でも、先ず最初に、処理対象となる画像データに対し顔検出ユニット21による顔検出処理を行って、画像データに含まれている人物の顔領域を検出し、顔領域の数、各顔領域の位置及び大きさを特定する(ステップS101)。また、顔検出処理の際には、検出された顔領域を画定する矩形領域を各顔領域ごとに設定しておく。   Also in the image processing apparatus and the image processing method according to the second embodiment of the present invention, first, face detection processing by the face detection unit 21 is performed on the image data to be processed, and the image data is included in the image data. The face area of a person is detected, and the number of face areas and the position and size of each face area are specified (step S101). In the face detection process, a rectangular area that defines the detected face area is set for each face area.

顔検出処理の結果、人物の顔領域が検出されたか否かを識別し(ステップS102)、人物の顔領域が検出されなかった場合は、本発明の第二の実施の形態に係る画像処理装置及び画像処理方法による画像処理を実施する必要がないので、印刷データ生成ユニット25により、写真画像データのデータ形式を変換して、プリンタユニット50で処理可能な印刷画像データを生成する(ステップS115)。   As a result of the face detection process, it is identified whether or not a person's face area is detected (step S102). If no person's face area is detected, the image processing apparatus according to the second embodiment of the present invention In addition, since it is not necessary to perform image processing by the image processing method, the print data generation unit 25 converts the data format of the photographic image data to generate print image data that can be processed by the printer unit 50 (step S115). .

一方、人物の顔領域が検出された場合は、本発明の第二の実施の形態に係る画像処理装置及び画像処理方法では、検出された顔領域の数が複数であるか否かを識別する(ステップS103)。   On the other hand, when a human face area is detected, the image processing apparatus and the image processing method according to the second embodiment of the present invention identify whether or not the number of detected face areas is plural. (Step S103).

検出された顔領域の数が複数でない場合、即ち、一つのみの場合は、本発明の第二の実施の形態に係る画像処理装置及び画像処理方法が想定する場合ではないので、ステップS106からステップS115までを前述の本発明の第一の実施の形態に係る画像処理装置及び画像処理方法と全く同様に行う。   If the number of detected face regions is not plural, that is, only one is not the case assumed by the image processing apparatus and the image processing method according to the second embodiment of the present invention, step S106 is started. Steps up to step S115 are performed in exactly the same manner as the image processing apparatus and image processing method according to the first embodiment of the present invention described above.

他方、検出された顔領域の数が複数である場合は、本発明の第二の実施の形態に係る画像処理装置及び画像処理方法では、ここで印刷枚数の受付を行う(ステップS104)。印刷枚数の入力は、例えば、ユーザインタフェース40のスイッチ若しくはボタン42又はタッチパネル43を介して受け付ける。   On the other hand, when the number of detected face regions is plural, the image processing apparatus and the image processing method according to the second embodiment of the present invention accept the number of printed sheets (step S104). The input of the number of prints is received via the switch or button 42 or the touch panel 43 of the user interface 40, for example.

印刷枚数の受付後、検出された顔領域の数と印刷枚数とが一致するか否かを識別する(ステップS105)。   After receiving the number of printed sheets, it is determined whether or not the number of detected face areas matches the number of printed sheets (step S105).

検出された顔領域の数と印刷枚数とが一致しない場合は、本発明の第二の実施の形態に係る画像処理装置及び画像処理方法が想定する場合ではないので、ステップS106からステップS115までを前述の本発明の第一の実施の形態に係る画像処理装置及び画像処理方法と全く同様に行う。   If the number of detected face areas and the number of printed sheets do not match, the image processing apparatus and the image processing method according to the second embodiment of the present invention are not assumed, so steps S106 to S115 are performed. This is exactly the same as the image processing apparatus and image processing method according to the first embodiment of the present invention described above.

一方、検出された顔領域の数と印刷枚数とが一致する場合は、本発明の第二の実施の形態に係る画像処理装置及び画像処理方法が想定する場合に該当する可能性が高いと推測されるので、前述の本発明の第一の実施の形態に係る画像処理装置及び画像処理方法の動作手順を一部変更した本発明の第二の実施の形態に係る画像処理装置及び画像処理方法の動作手順を実行する。   On the other hand, if the number of detected face areas and the number of printed sheets match, it is estimated that there is a high possibility that the image processing apparatus and the image processing method according to the second embodiment of the present invention are assumed. Therefore, the image processing apparatus and the image processing method according to the second embodiment of the present invention in which the operation procedure of the image processing apparatus and the image processing method according to the first embodiment of the present invention is partially changed. Execute the operation procedure.

先ず、印刷枚数の一枚ごとに、本発明の第二の実施の形態に係る画像処理装置及び画像処理方法による画像処理の適用又は不適用を順次決定するため、適用又は不適用が未決定の残りの印刷枚数があるか否かを識別し(ステップS116)、適用又は不適用が未決定の残りの印刷枚数がある場合には、検出された顔領域のうちの未選択の顔領域の一つを選択して(ステップS117)、選択した顔領域に対する処理方法の選択入力を受け付ける(ステップS118)。具体的には、前述の本発明の第一の実施の形態に係る画像処理装置及び画像処理方法と同様に、選択した顔領域の画像データに対する補正処理、即ち、左右反転処理又は左右平均化処理の適用又は不適用、及び、補正処理を適用する場合には左右反転処理又は左右平均化処理のいずれを適用するかについての選択入力を受け付ける。即ち、例えば、ユーザインタフェース40の液晶ディスプレイ41を使用して、前述の図3(a)、図3(b)、図3(c)に示すように、写真画像中の選択した顔に枠状カーソルを重ねて表示し、選択入力は、例えば、ユーザインタフェース40のスイッチ若しくはボタン42又はタッチパネル43を介して受け付ける。   First, application or non-application is undecided in order to sequentially determine application or non-application of image processing by the image processing apparatus and image processing method according to the second embodiment of the present invention for each printed sheet. It is discriminated whether or not there is a remaining number of prints (step S116), and if there is a remaining number of prints that has not yet been determined to be applied or not applied, one of the unselected face areas of the detected face areas Is selected (step S117), and a selection input of a processing method for the selected face area is received (step S118). Specifically, as in the image processing apparatus and image processing method according to the first embodiment of the present invention described above, correction processing for the image data of the selected face area, that is, left-right inversion processing or left-right averaging processing In the case of applying or non-applying and applying correction processing, selection input regarding whether to apply left-right inversion processing or left-right averaging processing is accepted. That is, for example, by using the liquid crystal display 41 of the user interface 40, as shown in FIGS. 3 (a), 3 (b), and 3 (c), the selected face in the photographic image has a frame shape. The cursor is displayed in an overlapping manner, and the selection input is received via the switch or button 42 of the user interface 40 or the touch panel 43, for example.

現在選択中の顔領域に対する処理方法の選択入力を受け付けた後、その選択入力に基づいて補正処理の適用又は不適用を決定し(ステップS119)、不適用が決定された場合には、ステップS116へ戻って適用又は不適用が未決定の残りの印刷枚数があるか否かを識別し、以後の各ステップを順次同様に行う。   After accepting a selection input of the processing method for the currently selected face area, application or non-application of the correction processing is determined based on the selection input (step S119). If non-application is determined, step S116 is performed. Returning to, it is identified whether there is a remaining number of prints that have not yet been determined to be applied or not applied, and the subsequent steps are sequentially performed in the same manner.

一方、補正処理の適用が決定された場合には、現在選択中の顔領域を画定する矩形領域の画像データを元の写真画像データからデータ切り出しユニット22によって切り出し処理し(ステップS120)、処理方法の選択入力に基づいて左右反転処理及び左右平均化処理のうちの左右平均化処理が選択されているか否かを識別し(ステップS121)、左右平均化処理が選択されている場合には顔領域の画像データに対して左右平均化処理を実行し(ステップS122)、左右平均化処理が選択されていない場合には顔領域の画像データに対して左右反転処理を実行して(ステップS123)、顔領域の変形画像データを生成する。本発明の第二の実施の形態に係る画像処理装置及び画像処理方法における左右反転処理及び左右平均化処理の具体的内容は、前述の本発明の第一の実施の形態に係る画像処理装置及び画像処理方法における左右反転処理及び左右平均化処理と同様である。   On the other hand, when the application of the correction process is determined, the image data of the rectangular area defining the currently selected face area is cut out from the original photographic image data by the data cutout unit 22 (step S120), and the processing method Based on the selection input, it is discriminated whether left / right averaging processing of left / right inversion processing and left / right averaging processing is selected (step S121). Left and right averaging processing is performed on the image data (step S122). If left and right averaging processing is not selected, left and right inversion processing is performed on the image data of the face area (step S123). Deformed image data of the face area is generated. The specific contents of the left-right reversing process and the left-right averaging process in the image processing apparatus and image processing method according to the second embodiment of the present invention are the same as the image processing apparatus according to the above-described first embodiment of the present invention and This is the same as the left / right inversion processing and left / right averaging processing in the image processing method.

左右反転処理又は左右平均化処理の終了後、顔領域の変形画像データと元の写真画像データとの合成処理を行い(ステップS124)、補正画像データを生成する。   After the left / right reversing process or the left / right averaging process is completed, a process of combining the deformed image data of the face area and the original photographic image data is performed (step S124) to generate corrected image data.

合成処理を実行後、合成処理済みの補正画像データのデータ形式を印刷データ生成ユニット25により変換して、プリンタユニット50で処理可能な印刷画像データを生成する(ステップS125)。   After executing the synthesizing process, the print data generating unit 25 converts the data format of the corrected corrected image data, and generates print image data that can be processed by the printer unit 50 (step S125).

印刷枚数のうちの一枚についての印刷画像データを生成後、再び、ステップS116へ戻って、本発明の第二の実施の形態に係る画像処理装置及び画像処理方法による画像処理の適用又は不適用が未決定の残りの印刷枚数があるか否かを識別し、適用又は不適用が未決定の残りの印刷枚数がある場合には、以後の各ステップを順次同様に行う。   After generating print image data for one of the printed sheets, the process returns to step S116 again, and application or non-application of image processing by the image processing apparatus and image processing method according to the second embodiment of the present invention. Is determined whether there is an undecided remaining number of prints, and if there is a remaining number of printed sheets that has not yet been determined to be applied or not applied, the subsequent steps are sequentially performed in the same manner.

適用又は不適用が未決定の残りの印刷枚数がない場合には、本発明の第二の実施の形態に係る画像処理装置及び画像処理方法の動作手順は終了する。   If there is no remaining number of prints for which application or non-application has yet to be determined, the operation procedure of the image processing apparatus and the image processing method according to the second embodiment of the present invention ends.

本発明の第二の実施の形態に係る画像処理装置及び画像処理方法は、以上のように、複数の人物が写っている写真を、写っている人物の人数と同じ枚数だけ印刷して各人に配布する場合に、画像処理対象となる人物の顔の選択を印刷一枚ごとに変更して顔領域の画像データに左右反転処理又は左右平均化処理の画像処理を行う。   As described above, the image processing apparatus and the image processing method according to the second embodiment of the present invention print a photograph showing a plurality of persons by the same number as the number of persons in the image. In the case of distributing to a person, the selection of the face of a person to be image-processed is changed for each printed sheet, and the image data of the face area is subjected to image processing such as left-right inversion processing or left-right averaging processing.

そして、顔領域の画像データに画像処理が行われた人物と当該印刷結果を受け取る人物とが一致するように、例えば、Aさんの顔領域の画像データに画像処理が行われた写真画像データに基づく図5(a)に示す印刷結果写真はAさんに配布し、Bさんの顔領域の画像データに画像処理が行われた写真画像データに基づく図5(b)に示す印刷結果写真はBさんに配布し、Cさんの顔領域の画像データに画像処理が行われた写真画像データに基づく図5(c)に示す印刷結果写真はCさんに配布する。   Then, for example, the photographic image data subjected to the image processing on the image data of the face area of Mr. A so that the person who has been subjected to the image processing on the image data of the face area matches the person who receives the print result. The print result photograph shown in FIG. 5A is distributed to Mr. A, and the print result photograph shown in FIG. 5B based on the photograph image data obtained by performing image processing on the image data of the face area of B is B The print result photograph shown in FIG. 5C based on the photographic image data in which image processing is performed on the image data of Mr. C's face area is distributed to Mr. C.

それにより、印刷結果写真を受け取る各人にとって本人が鏡を見て見慣れている左右反転像の自分の顔との比較において違和感が解消又は軽減された自身の写像が現像され、かつ、本人以外の他人の顔については画像処理が適用されない普段見慣れた顔と一致するそのままの写像が現像された最適な印刷結果写真を提供することができる。即ち、印刷結果写真を受け取る各人にとって、現像された写真中の自分を見ても他人を見ても違和感のない又は少ない最適な印刷結果写真を提供することができる。   As a result, each person who receives the print result photo develops his / her own image in which the sense of discomfort has been eliminated or reduced in comparison with his / her face in a mirror image that he / she is accustomed to seeing in the mirror. It is possible to provide an optimal print result photograph in which a mapping of a face that matches a face that is usually familiar to which no image processing is applied is developed. That is, it is possible for each person who receives a print result photograph to provide an optimal print result photograph that is comfortable or less uncomfortable even if he / she sees himself / herself in the developed photograph.

尚、前述の本発明の第一の実施の形態に係る画像処理装置及び上記本発明の第二の実施の形態に係る画像処理装置が備える各構成の機能は、ソフトウェア即ちコンピュータプログラムによりコンピュータにおいて実現されるようにしてもよい。斯かる機能を実現するコンピュータプログラムは、コンピュータによる読み出しが可能な記録媒体に記録された形態で提供される。コンピュータは、直接又は間接に記録媒体から読み出した当該コンピュータプログラムを演算処理装置によって実行することにより、上記各構成の機能を実現することができる。   The functions of the components included in the image processing apparatus according to the first embodiment of the present invention and the image processing apparatus according to the second embodiment of the present invention described above are realized in a computer by software, that is, a computer program. You may be made to do. A computer program that realizes such a function is provided in a form recorded on a recording medium that can be read by a computer. The computer can realize the functions of the above-described components by executing the computer program read from the recording medium directly or indirectly by the arithmetic processing unit.

本発明の第一の実施の形態に係る画像処理装置を含むプリンタ複合機の構成を示すブロック図である。1 is a block diagram illustrating a configuration of a multifunction printer including an image processing apparatus according to a first embodiment of the present invention. 本発明の第一の実施の形態に係る画像処理方法の手順を示すフローチャートである。It is a flowchart which shows the procedure of the image processing method which concerns on 1st embodiment of this invention. 検出された画像データの顔を順次選択して表示する様子を模式的に示す説明図である。It is explanatory drawing which shows typically a mode that the face of the detected image data is selected and displayed sequentially. 本発明の第二の実施の形態に係る画像処理方法の手順を示すフローチャートである。It is a flowchart which shows the procedure of the image processing method which concerns on 2nd embodiment of this invention. 画像処理対象となる人物の顔の選択を印刷一枚ごとに変更して顔領域の画像データに画像処理を行った写真画像データに基づく印刷結果である補正写真画像を模式的に示す説明図である。FIG. 5 is an explanatory diagram schematically showing a corrected photographic image that is a printing result based on photographic image data obtained by changing the selection of the face of a person to be image processed for each print and performing image processing on the image data of the face area. is there.

符号の説明Explanation of symbols

1 プリンタ複合機
10 データ入力装置
11 メモリカードリーダ
12 スキャナユニット
13 外部インタフェースユニット
20 画像処理装置
21 顔検出ユニット
22 データ切り出しユニット
23 データ変形ユニット
24 データ合成ユニット
25 印刷データ生成ユニット
30 メモリ
40 ユーザインタフェース
41 液晶ディスプレイ(LCD)
42 スイッチ又はボタン
43 タッチパネル
50 プリンタユニット
DESCRIPTION OF SYMBOLS 1 Printer multifunction machine 10 Data input device 11 Memory card reader 12 Scanner unit 13 External interface unit 20 Image processing device 21 Face detection unit 22 Data extraction unit 23 Data transformation unit 24 Data composition unit 25 Print data generation unit 30 Memory 40 User interface 41 Liquid crystal display (LCD)
42 Switch or button 43 Touch panel 50 Printer unit

Claims (8)

画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出ユニットと、
前記検出された器官領域に基づいて、前記検出された顔領域の画像データに対し左右平均化処理を施す平均化処理ユニットと、
を備えていることを特徴とする画像処理装置。
A face detection unit for detecting a human face area and facial organ area included in the image data;
Based on the detected organ region, an averaging processing unit that performs left-right averaging processing on the image data of the detected face region;
An image processing apparatus comprising:
前記顔検出ユニットは、前記検出された顔領域を画定する矩形領域を各顔領域ごとに設定するとともに、前記矩形領域の縦の中心軸を前記各矩形領域ごとに特定し、かつ、前記各矩形領域を、顔の各器官の左右部分がそれぞれ含まれる複数の分割矩形領域に分割するものであることを特徴とする請求項1に記載の画像処理装置。   The face detection unit sets a rectangular area that defines the detected face area for each face area, specifies a vertical central axis of the rectangular area for each rectangular area, and each rectangle The image processing apparatus according to claim 1, wherein the area is divided into a plurality of divided rectangular areas each including left and right portions of each organ of the face. 前記平均化処理ユニットは、対応する左右の前記分割矩形領域に含まれる器官部分の位置座標を比較し、それらの位置座標が平均化されるように、対応する左右の前記分割矩形領域に含まれる器官部分の画像データの変形処理を、対応する左右の前記分割矩形領域ごとに行うことにより、前記左右平均化処理を行うものであることを特徴とする請求項2に記載の画像処理装置。   The averaging processing unit compares position coordinates of organ parts included in the corresponding left and right divided rectangular areas, and is included in the corresponding left and right divided rectangular areas so that the position coordinates are averaged. The image processing apparatus according to claim 2, wherein the left-right averaging process is performed by performing a deformation process of the image data of the organ part for each of the corresponding left and right divided rectangular areas. 前記顔検出ユニットにより複数の顔領域が検出された場合、前記平均化処理ユニットは、複数の顔領域の画像データのうちのいずれかに対し前記左右平均化処理を選択的に行うものであることを特徴とする請求項1乃至3のいずれかに記載の画像処理装置。   When a plurality of face areas are detected by the face detection unit, the averaging process unit selectively performs the left-right averaging process on any of the image data of the plurality of face areas. The image processing apparatus according to claim 1, wherein: 画像データのデータ形式を変換して、プリンタで処理可能な印刷画像データを生成する印刷データ生成ユニットをさらに備えていることを特徴とする請求項1乃至4のいずれかに記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a print data generation unit that converts the data format of the image data and generates print image data that can be processed by a printer. 前記顔検出ユニットにより複数の顔領域が検出され、かつ、検出された顔領域の数と予定印刷枚数とが一致した場合、前記平均化処理ユニットは、前記左右平均化処理の対象とする顔領域の画像データを予定印刷枚数の一枚ごとに変更して前記左右平均化処理を行うものであることを特徴とする請求項5に記載の画像処理装置。   When a plurality of face areas are detected by the face detection unit and the number of detected face areas matches the planned number of prints, the averaging processing unit is the face area to be subjected to the left-right averaging process The image processing apparatus according to claim 5, wherein the left-right averaging process is performed by changing the image data for each scheduled print number. 画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出過程と、
前記検出された器官領域に基づいて、前記検出された顔領域の画像データに対し左右平均化処理を施す平均化処理過程と、
を含むことを特徴とする画像処理方法。
A face detection process for detecting a human face area and facial organ area included in the image data;
Based on the detected organ area, an averaging process step for performing a left-right averaging process on the image data of the detected face area;
An image processing method comprising:
画像データに含まれている人物の顔領域及び顔の器官領域を検出する顔検出機能と、
前記検出された器官領域に基づいて、前記検出された顔領域の画像データに対し左右平均化処理を施す平均化処理機能と、
をコンピュータに実現させるためのコンピュータプログラム。
A face detection function for detecting a human face area and facial organ area included in the image data;
Based on the detected organ region, an averaging processing function for performing left-right averaging processing on the image data of the detected face region;
A computer program for realizing a computer.
JP2008111079A 2008-04-22 2008-04-22 Image processor and image processing method Pending JP2009265726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008111079A JP2009265726A (en) 2008-04-22 2008-04-22 Image processor and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008111079A JP2009265726A (en) 2008-04-22 2008-04-22 Image processor and image processing method

Publications (1)

Publication Number Publication Date
JP2009265726A true JP2009265726A (en) 2009-11-12

Family

ID=41391543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008111079A Pending JP2009265726A (en) 2008-04-22 2008-04-22 Image processor and image processing method

Country Status (1)

Country Link
JP (1) JP2009265726A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012003576A (en) * 2010-06-18 2012-01-05 Casio Comput Co Ltd Image processing device, image processing method and program
JP2017084093A (en) * 2015-10-28 2017-05-18 カシオ計算機株式会社 Image processing device, image processing method and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012003576A (en) * 2010-06-18 2012-01-05 Casio Comput Co Ltd Image processing device, image processing method and program
US8842932B2 (en) 2010-06-18 2014-09-23 Casio Computer Co., Ltd. Image processing apparatus, image processing method, and recording medium recording a program
JP2017084093A (en) * 2015-10-28 2017-05-18 カシオ計算機株式会社 Image processing device, image processing method and program

Similar Documents

Publication Publication Date Title
JP3856211B2 (en) Image printing apparatus and method, and program
US8355602B2 (en) Image processing apparatus, image processing method and image processing program
US9631978B2 (en) Method for a hair colour consultation
JP5418708B2 (en) Photo sealing machine, photo sealing machine processing method and program
JP5432532B2 (en) Makeup method, makeup simulation apparatus, and makeup simulation program
WO2006057267A1 (en) Face image synthesis method and face image synthesis device
JP6354653B2 (en) Augmented reality operation system and augmented reality operation program
JP2010086036A (en) Diagnostic device and diagnostic method
JP2007252617A (en) Method for forming hairstyle simulation image
JP7463774B2 (en) MAKEUP SIMULATION DEVICE, MAKEUP SIMULATION METHOD, AND PROGRAM
JP4005322B2 (en) Image processing apparatus, image processing method, program, and automatic photography apparatus
JP2009265726A (en) Image processor and image processing method
JP2004228888A (en) Automatic photograph vending machine
JP2009237976A (en) Unit, method and program for controlling face image output, and print unit
JP2009265725A (en) Image processor and image processing method
JP2004240829A (en) Facial portrait image adjustment system
JP2007034721A (en) Extraction of image including face of object
JP4228670B2 (en) Image processing apparatus, image processing method, and image processing program
JP2007249366A (en) Hairstyle selection support device and method
JP5900826B2 (en) Image editing apparatus, image editing method, and control program
JP7384027B2 (en) Eyebrow template manufacturing system
JP2011128676A (en) Image processing apparatus, image processing method, and image processing program
JP7413691B2 (en) Image processing device, image processing method and program
JP2010130040A (en) Image processing apparatus, control program for this apparatus and computer-readable recording medium with the control program recorded thereon
JP4374718B2 (en) Face photo image cropping method