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
JP4645952B2 - Image identification method for ID photo and image processing apparatus - Google Patents
[go: Go Back, main page]

JP4645952B2 - Image identification method for ID photo and image processing apparatus - Google Patents

Image identification method for ID photo and image processing apparatus Download PDF

Info

Publication number
JP4645952B2
JP4645952B2 JP2005218853A JP2005218853A JP4645952B2 JP 4645952 B2 JP4645952 B2 JP 4645952B2 JP 2005218853 A JP2005218853 A JP 2005218853A JP 2005218853 A JP2005218853 A JP 2005218853A JP 4645952 B2 JP4645952 B2 JP 4645952B2
Authority
JP
Japan
Prior art keywords
image
subject
face
photo
hue
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 - Lifetime
Application number
JP2005218853A
Other languages
Japanese (ja)
Other versions
JP2007034804A (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.)
Noritsu Koki Co Ltd
Original Assignee
Noritsu Koki Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Noritsu Koki Co Ltd filed Critical Noritsu Koki Co Ltd
Priority to JP2005218853A priority Critical patent/JP4645952B2/en
Publication of JP2007034804A publication Critical patent/JP2007034804A/en
Application granted granted Critical
Publication of JP4645952B2 publication Critical patent/JP4645952B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Description

本発明は、原画像の内容(シーン)に応じた補正を自動的に施す画像処理技術に関し、特に、証明写真用画像に係る補正を自動的に施し、好適な出力用画像を得るための証明写真用画像判別方法及び画像処理装置に関する。   The present invention relates to an image processing technique for automatically performing correction according to the content (scene) of an original image, and in particular, a proof for automatically performing correction related to an ID photo image and obtaining a suitable output image. The present invention relates to a photographic image discrimination method and an image processing apparatus.

写真撮影には、風景を被写体としたもの、主として人物を被写体としたもの等、様々なシーンが存在する。また、一般にDPE店等に設置される写真処理装置には、これらのシーン毎に応じた補正(色濃度補正やコントラスト補正等)を施す機能が備わっており、より当該シーンに適した高品質の写真プリント等が出力され、顧客に提供されるようになっている。   In photography, there are various scenes, such as those with a landscape as a subject and mainly those with a person as a subject. In general, a photographic processing apparatus installed in a DPE store or the like has a function of performing correction (color density correction, contrast correction, etc.) according to each scene, and has a high quality suitable for the scene. Photo prints and the like are output and provided to customers.

ところで、近年、高性能のデジタルカメラの普及等に伴い、写真スタジオ(スピード撮影ボックス等も含む)等に出向かずに自ら所有するカメラで撮像した画像を証明写真用の画像として使用するケースも珍しくない。   By the way, in recent years, with the spread of high-performance digital cameras, it is rare to use images taken with a camera that you own without going to a photo studio (including a speed photography box) as an image for an ID photo. Absent.

かかる証明写真用の画像についても、それに応じた補正(具体的には、(風景画像に比べ)コントラストを弱めにしたり、階調特性が軟調ぎみになるように階調を補正したり、彩度を補正したり等する。)を施すことで、人物の肌、髪等の質感を損なわない画像、即ち、証明写真用として適切な画像を得られることは一般的に知られている。   For such an ID photo image, the corresponding correction (specifically, the contrast is weakened (compared to a landscape image), the gradation is corrected so that the gradation characteristics are soft, and the saturation is adjusted). It is generally known that an image that does not impair the texture of a person's skin, hair, or the like, that is, an image suitable for an ID photo can be obtained.

上述したように、DPE店等の写真処理装置では、このような証明写真用の画像を含め様々なシーンの画像に応じた補正を行うことができ、あるシーンの補正モードを予め設定しておけば、顧客が持ち込んだ記録メディア等から画像を読み込む際に当該補正モードに係る補正を自動的に施すことができる構成となっている。   As described above, a photo processing apparatus such as a DPE store can perform correction according to images of various scenes including such an image for ID photo, and a correction mode for a certain scene can be set in advance. For example, when an image is read from a recording medium or the like brought in by a customer, the correction related to the correction mode can be automatically performed.

しかしながら、上記自動補正は、予め設定した補正モードに応じた補正を当該画像に対して行うのであって、自動的に対象画像のシーンを判別し、そのシーンに応じた補正を行うものではない。   However, the automatic correction performs correction on the image according to a preset correction mode, and does not automatically determine the scene of the target image and perform correction according to the scene.

したがって、顧客が持ち込んだ画像が非常に多く、また、あらゆるシーンが混在している場合等(デジタルカメラ用のメモリ等の大容量化が進んでいる昨今の状況を鑑みると、かかるケースは増加傾向にあるといえる。)では、処理の効率化の観点から、通常、予め設定した補正モード(例えば、風景用補正モード)で、全画像について自動補正されることになる。そうすると、風景用画像については、かかる補正が効果的に作用し、見映えが良い画像を得ることになるが、証明写真用の画像については、逆に人物の肌、髪等の質感が損なわれてしまう虞がある。   Therefore, there are a lot of images brought in by customers, and when all scenes are mixed (in view of the current situation where the capacity of memory for digital cameras, etc. is increasing, this case is increasing) From the viewpoint of improving processing efficiency, normally, all images are automatically corrected in a preset correction mode (for example, landscape correction mode). In such a case, the correction works effectively on the landscape image, and a good-looking image is obtained. On the other hand, on the ID photo image, the texture of human skin, hair, etc. is adversely affected. There is a risk that.

この点に関し、原画像(顧客が持ち込んだ写真フィルムあるいは記録メディアから読み込んだ画像)に人物の顔が存在するか否かを自動的に検出し、顔検出時には、それに応じて、輝度や色濃度等の補正を自動的に行える機能を搭載した写真処理装置も存在する。しかしながら、証明写真用であるか否かを確実に検出する手法については、未だ確立されておらず、したがって、原画像が証明写真用画像であるか否かを自動的に判断し、さらに、証明写真用画像であるならば、それに特化した補正を自動的に行えるとする写真処理装置(画像処理装置)は存在しない。   In this regard, it automatically detects whether a person's face is present in the original image (an image read from a photographic film or recording media brought in by the customer). There is also a photographic processing apparatus equipped with a function capable of automatically correcting such as. However, a method for reliably detecting whether or not it is for ID photo has not been established yet, so it is automatically determined whether or not the original image is for ID photo, and further, If it is a photographic image, there is no photographic processing apparatus (image processing apparatus) that can automatically perform corrections specialized for it.

本発明は、上記問題に鑑み、原画像が証明写真用の画像であるか否かを確実に判別できる新たな方法を提供し、かかる判別方法を採用することで、読み込んだ原画像に対して、自動的に証明写真用画像に係る補正を施すことのできる利便性の優れた画像処理装置を提供することを目的とする。   In view of the above problems, the present invention provides a new method that can reliably determine whether an original image is an image for an ID photo, and adopts such a determination method to Another object of the present invention is to provide a convenient image processing apparatus that can automatically perform correction on an ID photo image.

本発明に係る証明写真用画像判別方法は、原画像を解析して人物の顔画像の検出を行い、顔画像が検出された場合には、その検出数、顔の向き及び当該顔画像領域の大きさを判定パラメータとして、当該顔画像に係る被写体が証明写真用の被写体として適するか否かを判定する被写体判定ステップと、該被写体判定ステップで被写体として適すると判定した場合に、当該被写体の背景画像の色相分布の解析を行う色相解析ステップと、を備え、該色相解析ステップでの解析の結果、前記色相分布が所定の傾向を示している場合には、当該原画像を証明写真用の画像と判断する、ことを特徴とする。
ID photo image determination method according to the present invention analyzes the original image performs detection of human face images, when the face image is detect, the detection number, orientation and the face image area of the face And a subject determination step for determining whether or not the subject related to the face image is suitable as a subject for an ID photo, and the subject determination step determines that the subject is suitable as a subject. A hue analysis step for analyzing a hue distribution of a background image, and when the hue distribution shows a predetermined tendency as a result of the analysis in the hue analysis step, the original image is used for an identification photograph. It is judged that it is an image.

本発明は、被写体要件及び背景要件の2要件を充足する画像が、証明写真用の画像として妥当であると判断する点に特徴を有する。被写体要件は、証明用写真の被写体としての妥当性を要件とするもので、前記被写体判定ステップにおいて、原画像から人物の顔検出が行われ、それに伴って取得される各種パラメータ(検出数、顔の向き及び顔画像の大きさ)から判定される。具体的には、1人の人物の正面向きの顔画像が、ある程度の大きさ(その人物の特定が可能な程度の大きさ、即ち、証明用写真として妥当な大きさ)を有している場合には、被写体要件を満たす(即ち、証明写真用の被写体として適する)と判定される。尚、顔検出(各種パラメータの取得も含む)については、公知の顔検出技術(ソフトウェアプログラム等で提供される)を採用することができる。   The present invention is characterized in that an image satisfying the two requirements of the subject requirement and the background requirement is judged to be appropriate as an image for ID photo. The subject requirement requires the validity of the certification photograph as the subject, and in the subject determination step, human face detection is performed from the original image, and various parameters (number of detections, face acquired) are acquired accordingly. And the size of the face image). Specifically, a face image of one person facing the front has a certain size (a size that allows the person to be identified, that is, a size that is appropriate as a proof photograph). In this case, it is determined that the subject requirement is satisfied (that is, the subject is suitable as an ID photo subject). For face detection (including acquisition of various parameters), a known face detection technique (provided by a software program or the like) can be employed.

一方、背景要件は、証明用写真の背景画像としての妥当性を要件とするもので、前記被写体要件を満たすことを前提に、色相解析ステップにおいて、背景画像の色相分布の解析が行われ、その解析結果に基づいて判定される。具体的には、前記色相分布が所定の傾向を示している場合(換言すれば、特定の色相に偏っている、即ち、単調な色合いで背景画像が構成されている場合)は、当該背景画像は、証明用写真の背景画像として妥当であると判定される。   On the other hand, the background requirement requires the validity as a background image of the proof photo, and on the assumption that the subject requirement is satisfied, the hue distribution of the background image is analyzed in the hue analysis step. It is determined based on the analysis result. Specifically, when the hue distribution shows a predetermined tendency (in other words, when the hue distribution is biased to a specific hue, that is, when the background image is configured with a monotonous hue), the background image Is determined to be valid as the background image of the proof photo.

このように本発明の証明写真用画像判別方法によれば、簡易な方法で、原画像が証明写真用の画像であるか否かを判別できるため、処理速度が速く、また、安価に製造することが可能であり、実用性に優れる。   As described above, according to the identification photo image discrimination method of the present invention, it is possible to discriminate whether or not the original image is an identification photo image by a simple method, so that the processing speed is high and the manufacturing is inexpensive. It is possible and excellent in practicality.

また、前記色相解析ステップにおいて、原画像の内の当該顔縦方向の所定位置から上部領域の背景画像が解析対象となる、構成とすると、例えば、当該人物が着用している服の画像を背景画像から除外することができるので、判別性能を低下させずに、さらに処理内容を簡易化させることができる。   In the hue analysis step, the background image of the upper region from the predetermined position in the vertical direction of the face in the original image is to be analyzed. For example, an image of clothes worn by the person is used as the background. Since it can be excluded from the image, the processing content can be further simplified without degrading the discrimination performance.

また、上記証明写真用画像判別方法を適用した本発明に係る画像処理装置は、原画像に画像処理を施し、出力用画像を生成する画像処理装置において、読み込んだ原画像を解析して人物の顔画像の検出を行い、顔画像が検出された場合には、その検出数、顔の向き及び当該顔画像領域の大きさを判定パラメータとして、当該顔画像に係る被写体が証明写真用の被写体として適するか否かを判定する被写体判定手段と、該被写体判定手段が被写体として適すると判定した場合に、当該被写体の背景画像の色相分布の解析を行う色相解析手段と、を備え、該色相解析手段による解析の結果、前記色相分布が所定の傾向を示している場合には、当該原画像に対して証明写真用画像に係る補正を施す、ことを特徴とする。 An image processing apparatus according to the present invention to which the ID photo image discrimination method is applied performs image processing on an original image and generates an output image. performs detection of facial images, when the face image is detect, the detection number, orientation and size of the face image area of the face as the determination parameter, the object of the subject related to the face image for identification photograph Subject determination means for determining whether or not the image is suitable, and hue analysis means for analyzing the hue distribution of the background image of the subject when the subject determination means is determined to be suitable for the subject. When the hue distribution shows a predetermined tendency as a result of the analysis by the means, the original image is corrected according to the ID photo image.

また、前記色相解析手段は、原画像の内の当該顔縦方向の所定位置から上部領域の背景画像を解析対象とする、ことを特徴とする。   Further, the hue analysis means is characterized in that the background image of the upper region from the predetermined position in the vertical direction of the face in the original image is an analysis target.

上記構成の画像処理装置によれば、写真フィルム又は記録メディアから読み込んだ原画像が証明写真用画像であるか否かを自動的に判別し、証明写真用画像である場合には、それに特化した補正処理を自動的に施せるので、複数の画像データ(画像ファイル)の中に証明写真用に使うために撮像した画像データが混在していても、自動的に、当該証明写真用画像を判別し、それに対して適切な補正を行うことができる。   According to the image processing apparatus having the above configuration, it is automatically determined whether or not the original image read from the photographic film or the recording medium is an ID photo image. The correction process can be performed automatically, so even if multiple image data (image files) contain image data captured for use in ID photos, the ID photo images are automatically identified. Therefore, appropriate correction can be performed.

以上の如く、本発明の証明写真用画像判別方法によれば、原画像が証明写真用画像であるか否かの判別を簡易な方法で実現できるため、例えば、複数のシーンで撮像された多くの画像の中から、証明写真用画像を確実かつ迅速に選択することが可能となる。   As described above, according to the ID photo image discrimination method of the present invention, since it is possible to realize whether or not the original image is an ID photo image by a simple method, for example, many images captured in a plurality of scenes are used. It is possible to reliably and quickly select an ID photo image from among the images.

また、本発明の画像処理装置によれば、読み込んだ原画像が証明写真用画像であるか否か自動的に判別でき、さらに証明写真用画像である場合には、それに特化した補正処理を自動的に行うことができる。したがって、例えば、当該画像処理装置を写真処理装置に適用すると、顧客が持ち込んだ複数のシーンで撮像された多くの画像データ(画像ファイル)の中に証明写真用画像が混在していても、当該証明写真用画像のみに対して適切な補正を自動的に施すことができ、顧客に対するサービスの拡充が図れる。   Further, according to the image processing apparatus of the present invention, it is possible to automatically determine whether or not the read original image is an ID photo image, and if it is an ID photo image, a correction process specialized for it is performed. It can be done automatically. Therefore, for example, when the image processing apparatus is applied to a photo processing apparatus, even if ID image is mixed in many image data (image files) captured in a plurality of scenes brought by a customer, Appropriate correction can be automatically applied only to the ID photo image, and the service to customers can be expanded.

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

図1は、本実施形態に係る画像処理装置を備えた写真処理装置の外観図であり、図2は、該写真処理装置の内部構成を示すブロック図である。本写真処理装置は、写真フィルムFや記録メディアMから画像データを読み込み、該画像データに対して色濃度補正やコントラスト補正等のデジタル画像処理を施し、出力用の画像データを生成する画像処理装置1と、該画像処理装置1から出力された画像データを基に、感光材料PAに画像をプリントするプリント装置2とで構成されている。   FIG. 1 is an external view of a photographic processing apparatus provided with an image processing apparatus according to the present embodiment, and FIG. 2 is a block diagram showing an internal configuration of the photographic processing apparatus. This photographic processing apparatus reads image data from a photographic film F or a recording medium M, performs digital image processing such as color density correction and contrast correction on the image data, and generates image data for output. 1 and a printing apparatus 2 that prints an image on the photosensitive material PA based on the image data output from the image processing apparatus 1.

画像処理装置1は、写真フィルムFから画像を読み取るフィルムスキャナ3と、メモリカードやCD−R等の記録メディアMに対して画像データの読み書き可能なメディアドライブ4aと、記録メディアMから読み出した多数の画像データ(画像ファイル)等を記録可能な大容量のハードディスク4b、画像処理装置1の制御を含む本写真処理装置全体を制御する主制御装置5と、該主制御装置5の制御に係る操作画面等を表示するモニタ6及びオペレータからの操作指令を受け付ける入力装置7(キーボード7a及びマウス7b)を備えている。尚、モニタ6をタッチパネル方式で構成し、オペレータの指や専用の入力ペン等を使用して操作指令を受け付けるようにすることも可能である。   The image processing apparatus 1 includes a film scanner 3 that reads an image from a photographic film F, a media drive 4a that can read and write image data from and to a recording medium M such as a memory card and a CD-R, and a large number of images read from the recording medium M. Large-capacity hard disk 4b capable of recording the image data (image file) and the like, a main control device 5 for controlling the entire photographic processing device including the control of the image processing device 1, and operations related to the control of the main control device 5 A monitor 6 for displaying a screen and the like and an input device 7 (a keyboard 7a and a mouse 7b) for receiving an operation command from an operator are provided. Note that the monitor 6 may be configured by a touch panel method, and an operation command may be received using an operator's finger, a dedicated input pen, or the like.

主制御装置5は、当該制御、演算の主体であるCPU8、画像処理用プログラム等が記憶されるROM9a、処理用のワークエリア等として使用されるRAM9b及び各種外部装置(フィルムスキャナ3、メディアドライブ4a、ハードディスク4b、モニタ6及び入力装置7)とのI/O処理を行うI/O処理部10をその内部に備えている。   The main control device 5 includes a CPU 8 that is a main body of the control and calculation, a ROM 9a that stores an image processing program, a RAM 9b that is used as a work area for processing, and various external devices (film scanner 3, media drive 4a). The hard disk 4b, the monitor 6 and the input device 7) are provided with an I / O processing unit 10 for performing I / O processing.

プリント装置2は、画像処理装置1によって画像処理された画像データを基に感光材料PAに対して露光処理する露光処理部11と、露光処理された感光材料PAを現像処理する現像処理部12と、現像処理された感光材料PAを乾燥処理する乾燥処理部13と、乾燥処理されて写真となった感光材料PAを仕分処理する仕分処理部14とで構成されている。   The printing apparatus 2 includes an exposure processing unit 11 that performs exposure processing on the photosensitive material PA based on image data that has been subjected to image processing by the image processing device 1, and a development processing unit 12 that performs development processing on the exposed photosensitive material PA. The drying processing unit 13 performs drying processing on the developed photosensitive material PA, and the sorting processing unit 14 performs sorting processing on the photosensitive material PA that has been dried and turned into a photograph.

露光処理部11は、感光材料PAを一対のマガジン15a、15bから引き出し、搬送用ローラ対16によって下流側に搬送する。そして、ハロゲンランプ等からなる光源17aと、該光源17aに光ファイバ束17bを介して接続された光シャッタ17cとで構成されるPLZT方式の露光装置17によって、感光材料PAを露光する。尚、露光装置17は、PLZT方式に限らず、例えば、レーザ方式やCRT方式等であっても構わない。   The exposure processing unit 11 pulls out the photosensitive material PA from the pair of magazines 15 a and 15 b and conveys it to the downstream side by the conveying roller pair 16. Then, the photosensitive material PA is exposed by a PLZT type exposure device 17 including a light source 17a composed of a halogen lamp or the like and an optical shutter 17c connected to the light source 17a via an optical fiber bundle 17b. The exposure device 17 is not limited to the PLZT method, and may be a laser method, a CRT method, or the like.

現像処理部12は、感光材料PAに対して、現像、漂白、定着、安定化等の処理を行う。   The development processing unit 12 performs processing such as development, bleaching, fixing, and stabilization on the photosensitive material PA.

乾燥処理部13は、現像処理部12から送られてくる感光材料PAに熱風装置18からの熱風を吹き付け、感光材料PAに付着した現象液等を乾燥させる処理を行う。   The drying processing unit 13 performs a process of blowing hot air from the hot air device 18 to the photosensitive material PA sent from the development processing unit 12 to dry the phenomenon liquid adhering to the photosensitive material PA.

仕分処理部14は、露光処理、現像処理及び乾燥処理が施された感光材料PAを大小別に仕分けるサイズ仕分部19と、該サイズ仕分部19で仕分けされた小さなサイズの感光材料PAをオーダー毎に仕分けるオーダー仕分部20とを有している。   The sorting processing unit 14 sorts the photosensitive material PA that has been subjected to the exposure processing, development processing, and drying processing according to size, and the small-sized photosensitive material PA sorted by the size sorting unit 19 for each order. And an order sorting unit 20 for sorting.

サイズ仕分部19は、大きなサイズの感光材料PAをトレー21に排出し、小さなサイズの感光材料PAをコンベア22に搬送する。オーダー仕分部20は、コンベア22によって搬送されてくる感光材料PAを各受皿23に対してオーダー毎に振り分ける。   The size sorting unit 19 discharges the photosensitive material PA having a large size to the tray 21 and conveys the photosensitive material PA having a small size to the conveyor 22. The order sorting unit 20 distributes the photosensitive material PA conveyed by the conveyor 22 to each tray 23 for each order.

本実施形態に係る写真処理装置は、以上の一般的な機能に加え、顧客が持ち込んだ写真フィルムFや記録メディアMから読み込まれた原画像データが証明写真用の画像データであるか否かを自動的に判別し、それに特化した補正処理を自動的に行えるという従来にない優れた特徴を有する。以下、かかる特徴について詳細に説明する。   In addition to the above general functions, the photographic processing apparatus according to the present embodiment determines whether or not the original image data read from the photographic film F or the recording medium M brought in by the customer is image data for an ID photo. It has an unprecedented superior feature that it can automatically determine and automatically perform a correction process specialized for it. Hereinafter, this feature will be described in detail.

図3は、画像処理装置1が行う証明写真用画像データの判別処理の流れを示すフローチャートである。ここで、画像処理装置1(詳細には主制御装置5)の当該判別処理に係る処理機能部は、被写体判定手段及び色相解析手段を構成する。先ず、写真フィルムF又は記録メディアMから原画像データが読み込まれると、当該原画像から人物の顔を検出するための処理(顔検出処理)が行われる(ステップS301)。ここでの顔検出処理としては、特定色(例えば、肌色)が連続する領域を顔領域とする方法や、ハフ変換等を用いた特定の形状パターンを抽出する方法、テンプレートマッチングによる構造物抽出方法、又はこれらを組み合わせた方法等、公知の技術を採用することができる。   FIG. 3 is a flowchart showing a flow of identification photo image data discrimination processing performed by the image processing apparatus 1. Here, the processing function unit related to the determination process of the image processing apparatus 1 (specifically, the main control apparatus 5) constitutes a subject determination unit and a hue analysis unit. First, when original image data is read from the photographic film F or the recording medium M, a process (face detection process) for detecting a human face from the original image is performed (step S301). As face detection processing here, a method in which a region where a specific color (for example, skin color) continues is used as a face region, a specific shape pattern using Hough transform or the like, a structure extraction method by template matching Alternatively, a known technique such as a method combining these may be employed.

ここで、人物の顔が検出されなかった場合(ステップS302でNo)、本処理は終了する。この場合は、証明写真用の画像データとみなされないので、予め設定された補正モード(例えば、風景用補正モード(コントラスト強めで、硬調ぎみの補正となる。)等)に従い自動補正が施される。一方、顔が検出された場合(ステップS302でYes)は、検出数が1つ(即ち、被写体の人物が1人)であるか否かがチェックされ、検出数が複数である場合(ステップS303でNo)、本処理は終了し、上記同様に予め設定された補正モードに従い補正処理が実行される。一方、検出数が1つである場合(ステップS303でYes)は、検出された顔が正面を向いているか否かがチェックされる。ここで、顔の方向の判定についても、公知のあらゆる技術が採用できるが、処理の複雑化を避けるため、例えば、両目が検出された場合は、正面を向いているとする仕様にしてもよい。   If no human face is detected (No in step S302), the process ends. In this case, since it is not regarded as image data for ID photos, automatic correction is performed in accordance with a preset correction mode (for example, a landscape correction mode (high contrast and high contrast correction), etc.). . On the other hand, if a face is detected (Yes in step S302), it is checked whether or not the number of detection is one (that is, one person as a subject), and if the number of detection is plural (step S303). No), this processing ends, and correction processing is executed according to a preset correction mode as described above. On the other hand, when the number of detection is one (Yes in step S303), it is checked whether or not the detected face is facing the front. Here, for the determination of the face direction, any known technique can be adopted. However, in order to avoid complication of processing, for example, when both eyes are detected, the specification may be that the front faces. .

顔方向の判定の結果、正面を向いていないと判定された場合(ステップS304でNo)、本処理は終了し、予め設定された補正モードに従い補正処理が実行される。一方、正面を向いていると判定された場合(ステップS304でYes)は、さらに、当該顔画像の大きさの妥当性がチェックされる。具体的には、当該顔画像の領域の原画像全体に占める割合が算出され、当該割合が証明写真用として妥当性を有しているか否かの判定が行われる。   As a result of the determination of the face direction, when it is determined that it is not facing the front (No in step S304), this processing ends, and correction processing is executed according to a preset correction mode. On the other hand, if it is determined that it is facing the front (Yes in step S304), the validity of the size of the face image is further checked. Specifically, the ratio of the face image area to the entire original image is calculated, and it is determined whether or not the ratio has validity for the ID photo.

その結果、大きさが妥当でないと判定された場合(ステップS305でNo)、本処理は終了し、予め設定された補正モードに従い補正処理が実行される。一方、大きさが妥当であると判定された場合(ステップS305でYes)は、当該原画像の被写体は、証明用写真の被写体として妥当であると判定されたことになる。具体例を挙げると、図4の(ロ)に示すような風景のみ(人物が写っていない)の画像データは、ステップS302の判定により除外され、図4の(ハ)に示すような複数の人物が写っている画像データは、ステップS303の判定により除外され、図4の(ニ)に示すような被写体の人物の顔が正面を向いていない画像データについては、ステップS304の判定により除外され、さらに、図4の(ホ)に示すような顔画像の領域が小さい画像データについては、ステップS305の判定により除外されることになる。   As a result, when it is determined that the size is not appropriate (No in step S305), the process ends, and the correction process is executed according to a preset correction mode. On the other hand, when it is determined that the size is appropriate (Yes in step S305), it is determined that the subject of the original image is appropriate as the subject of the certification photograph. As a specific example, the image data of only the landscape as shown in (b) of FIG. 4 (no person is captured) is excluded by the determination in step S302, and a plurality of images as shown in (c) of FIG. Image data showing a person is excluded by the determination in step S303, and image data in which the face of the subject person as shown in FIG. 4D is not facing the front is excluded by the determination in step S304. Furthermore, image data with a small face image area as shown in FIG. 4E is excluded by the determination in step S305.

以上の処理により被写体の妥当性が確認されると、続いて、背景画像データの解析処理が行われる(ステップS306)。かかる解析処理では、背景画像データ(即ち、当該原画像データの内の人物に係る画像データ部分を除く部分の画像データ)を構成する各画素の色相を求め、これについての分布解析を行う。尚、この場合、人物の服に係る画像データを背景画像データから除外し、処理を簡略化するため、原画像データの内の当該顔縦方向の所定位置から上部領域の背景画像データのみを解析対象とする仕様にしてもよい。図5では、前記顔縦方向の所定位置を被写体(人物)の唇近傍にした例を示している。この場合は、図中の一点鎖線より上部領域(斜線で示される領域)が解析対象となる背景画像データとなる。尚、各画素の色相は、例えば、所定の変換テーブル等を用いて、RGB形式である原画像データをYCbCr形式のデータ(明度(Y)及び彩度(C)成分からなるデータ)に変換し、変換したCb及びCrから所定の算出式等を用いて求めることができる。   When the validity of the subject is confirmed by the above processing, the background image data analysis processing is subsequently performed (step S306). In this analysis processing, the hue of each pixel constituting the background image data (that is, the image data of the original image data excluding the image data portion related to the person) is obtained, and distribution analysis is performed on this. In this case, only the background image data of the upper region from the predetermined position in the vertical direction of the face in the original image data is analyzed in order to simplify the process by excluding the image data related to the clothes of the person from the background image data. The target specification may be used. FIG. 5 shows an example in which the predetermined position in the vertical direction of the face is in the vicinity of the lips of the subject (person). In this case, the region above the one-dot chain line (the region indicated by the oblique lines) in the figure is the background image data to be analyzed. The hue of each pixel is converted from RGB original image data to YCbCr format data (data composed of lightness (Y) and saturation (C) components) using, for example, a predetermined conversion table. From the converted Cb and Cr, it can be obtained using a predetermined calculation formula or the like.

上記解析の結果、当該色相分布から当該背景画像データが特定の色合いに偏っていると認められない場合(ステップS307でNo)は、当該原画像データは、証明写真用の画像データとみなされず、本処理は終了し、予め設定された補正モードに従い補正処理が実行される。かかる判定により、例えば、図4の(ヘ)に示すように、被写体としての要件は満たすものの、その背景データが証明写真用として適切でない画像データが確実に除外されることになる。   As a result of the above analysis, when it is not recognized that the background image data is biased to a specific hue from the hue distribution (No in step S307), the original image data is not regarded as image data for an ID photo, This process ends, and the correction process is executed in accordance with a preset correction mode. With this determination, for example, as shown in FIG. 4F, image data whose background data is not suitable for the ID photo is surely excluded although the requirements as a subject are satisfied.

一方、背景画像データが特定の色合いに偏っていると認められる場合(ステップS307でYes)は、当該原画像データは証明写真用の画像データであるとみなされ(図4の(イ)参照)、予め設定された補正モードに拘わらず、証明写真用画像に係る所定の補正が行われる(ステップS308)。具体的には、コントラストは弱く、階調特性が軟調ぎみになるような補正が行われる。   On the other hand, when it is recognized that the background image data is biased to a specific color (Yes in step S307), the original image data is regarded as image data for an ID photo (see (A) in FIG. 4). Regardless of the correction mode set in advance, the predetermined correction relating to the ID photo image is performed (step S308). Specifically, correction is performed such that the contrast is weak and the gradation characteristics are soft.

以上のように、本発明の本実施形態に係る画像処理装置1によれば、写真フィルム又は記録メディアから読み込んだ原画像データが証明写真用の画像データであるか否かを自動的に判別し、証明写真用の画像データであると判断した場合には、それに特化した補正処理を自動的に施すことができるので、証明写真用として好適な画像データ(即ち、人物の肌や髪の質感を損なっていない画像データ)を確実に得ることができる。また、画像処理装置1で採用するかかる判断機能は簡易な処理で実現できるため、その処理速度は速く、製造コストも低い。   As described above, according to the image processing apparatus 1 of the present embodiment of the present invention, it is automatically determined whether or not the original image data read from the photographic film or the recording medium is the image data for the ID photo. If it is determined that the image data is for ID photo, correction processing specialized for it can be automatically performed. Therefore, image data suitable for ID photo (that is, texture of human skin and hair) Image data that does not impair the image quality). In addition, since the determination function employed in the image processing apparatus 1 can be realized by simple processing, the processing speed is high and the manufacturing cost is low.

その上、仮に、顧客が証明写真用として意図していない原画像データが、当該画像処理装置1により、証明写真用の画像データであると判別され、それに応じた補正処理が行われたとしても、顧客に不利益が生じる可能性は少なく、実用性に優れるといえる。   In addition, even if the original image data that the customer did not intend for the ID photo is determined to be image data for the ID photo by the image processing apparatus 1, and correction processing is performed accordingly. Therefore, it can be said that there is little possibility of causing a disadvantage to the customer and it is excellent in practicality.

尚、本発明は、上記実施形態に限定されることはなく、本発明の要旨を逸脱しない範囲で種々の変更が可能であることは勿論である。   In addition, this invention is not limited to the said embodiment, Of course, a various change is possible in the range which does not deviate from the summary of this invention.

本発明の一実施形態に係る写真処理装置の外観図である。1 is an external view of a photographic processing apparatus according to an embodiment of the present invention. 同実施形態に係る写真処理装置の概略構成図である。It is a schematic block diagram of the photographic processing apparatus which concerns on the same embodiment. 同実施形態において、証明写真用画像データであるか否かを判別する処理の流れを示すフローチャートである。4 is a flowchart showing a flow of processing for determining whether or not the image data is ID photo data in the embodiment. 同実施形態において、証明写真用として適しているか否かを説明するための画像例を示す図である。In the same embodiment, it is a figure which shows the example of an image for demonstrating whether it is suitable as an object for ID photographs. 同実施形態において、解析対象とする背景画像データの領域を限定するための一例について説明するための図である。In the embodiment, it is a figure for demonstrating an example for limiting the area | region of the background image data made into analysis object.

符号の説明Explanation of symbols

1…画像処理装置、2…プリント装置、3…フィルムスキャナ、4a…メディアドライブ、4b…ハードディスク、5…主制御装置、6…モニタ、7…入力装置、8…CPU、9a…ROM、9b…RAM、10…I/O処理部、11…露光処理部、12…現像処理部、13…乾燥処理部、14…仕分処理部、15a,15b…マガジン、16…搬送用ローラ対、17…露光装置、17a…光源、17b…光ファイバ束、17c…光シャッタ、18…熱風装置、19…サイズ仕分部、20…オーダー仕分部、21…トレー、22…コンベア、23…受皿   DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus, 2 ... Printing apparatus, 3 ... Film scanner, 4a ... Media drive, 4b ... Hard disk, 5 ... Main controller, 6 ... Monitor, 7 ... Input device, 8 ... CPU, 9a ... ROM, 9b ... RAM, 10 ... I / O processing unit, 11 ... exposure processing unit, 12 ... development processing unit, 13 ... drying processing unit, 14 ... sorting processing unit, 15a, 15b ... magazine, 16 ... conveying roller pair, 17 ... exposure 17a ... light source, 17b ... optical shutter, 18 ... hot air device, 19 ... size sorting unit, 20 ... order sorting unit, 21 ... tray, 22 ... conveyor, 23 ... dish

Claims (4)

原画像を解析して人物の顔画像の検出を行い、顔画像が検出された場合には、その検出数、顔の向き及び当該顔画像領域の大きさを判定パラメータとして、当該顔画像に係る被写体が証明写真用の被写体として適するか否かを判定する被写体判定ステップと、
該被写体判定ステップで被写体として適すると判定した場合に、当該被写体の背景画像の色相分布の解析を行う色相解析ステップと、を備え、
該色相解析ステップでの解析の結果、前記色相分布が所定の傾向を示している場合には、当該原画像を証明写真用の画像と判断する、ことを特徴とする証明写真用画像判別方法。
Analyzes the original image performs detection of human face images, when the face image is detect, the detection number, orientation and size of the face image area of the face as the determination parameter, to the face image A subject determination step for determining whether or not the subject is suitable as a subject for the ID photo;
A hue analysis step for analyzing a hue distribution of a background image of the subject when the subject determination step determines that the subject is suitable as a subject,
As a result of the analysis in the hue analysis step, when the hue distribution shows a predetermined tendency, the original image is determined to be an image for an ID photo.
前記色相解析ステップにおいて、原画像の内の当該顔縦方向の所定位置から上部領域の背景画像が解析対象となる、ことを特徴とする請求項1に記載の証明写真用画像判別方法。   2. The ID photo image discrimination method according to claim 1, wherein in the hue analysis step, a background image of an upper region from a predetermined position in the vertical direction of the face in the original image is an analysis target. 原画像に画像処理を施し、出力用画像を生成する画像処理装置において、
読み込んだ原画像を解析して人物の顔画像の検出を行い、顔画像が検出された場合には、その検出数、顔の向き及び当該顔画像領域の大きさを判定パラメータとして、当該顔画像に係る被写体が証明写真用の被写体として適するか否かを判定する被写体判定手段と、
該被写体判定手段が被写体として適すると判定した場合に、当該被写体の背景画像の色相分布の解析を行う色相解析手段と、を備え、
該色相解析手段による解析の結果、前記色相分布が所定の傾向を示している場合には、当該原画像に対して証明写真用画像に係る補正を施す、ことを特徴とする画像処理装置。
In an image processing apparatus that performs image processing on an original image and generates an output image,
Performs detection of human face images by analyzing the read original image, when the face image is detect, the detection number, orientation and size of the face image area of the face as the determination parameter, the face Subject determination means for determining whether or not the subject related to the image is suitable as a subject for the ID photo;
Hue analysis means for analyzing the hue distribution of the background image of the subject when the subject determination means is determined to be suitable as a subject,
As a result of the analysis by the hue analysis means, if the hue distribution shows a predetermined tendency, the original image is corrected according to the ID photo image.
前記色相解析手段は、原画像の内の当該顔縦方向の所定位置から上部領域の背景画像を解析対象とする、ことを特徴とする請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein the hue analysis unit analyzes a background image of an upper region from a predetermined position in the vertical direction of the face in the original image.
JP2005218853A 2005-07-28 2005-07-28 Image identification method for ID photo and image processing apparatus Expired - Lifetime JP4645952B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005218853A JP4645952B2 (en) 2005-07-28 2005-07-28 Image identification method for ID photo and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005218853A JP4645952B2 (en) 2005-07-28 2005-07-28 Image identification method for ID photo and image processing apparatus

Publications (2)

Publication Number Publication Date
JP2007034804A JP2007034804A (en) 2007-02-08
JP4645952B2 true JP4645952B2 (en) 2011-03-09

Family

ID=37793973

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005218853A Expired - Lifetime JP4645952B2 (en) 2005-07-28 2005-07-28 Image identification method for ID photo and image processing apparatus

Country Status (1)

Country Link
JP (1) JP4645952B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8065197B2 (en) * 2007-03-06 2011-11-22 Portrait Innovations, Inc. System, method, and computer program product for evaluating photographic performance

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001111806A (en) * 1999-10-05 2001-04-20 Minolta Co Ltd Image generator and device and method for recognizing top and bottom of image
JP2001186323A (en) * 1999-12-24 2001-07-06 Fuji Photo Film Co Ltd Identification photograph system and picture on processing method
JP4367010B2 (en) * 2003-05-30 2009-11-18 セイコーエプソン株式会社 System, program and method
JP2005141523A (en) * 2003-11-07 2005-06-02 Konica Minolta Photo Imaging Inc Image processing method

Also Published As

Publication number Publication date
JP2007034804A (en) 2007-02-08

Similar Documents

Publication Publication Date Title
JP4244018B2 (en) Defective pixel correction method, program, and defective pixel correction system for implementing the method
JP2003344021A (en) Method for calculating dimension of human face in image and method for detecting face
JP4769847B2 (en) Image processing apparatus, image processing method, program, and computer-readable storage medium
JP2006011685A (en) Photographic image processing method and apparatus
US7460707B2 (en) Image processing method and apparatus for red eye correction
JP4645952B2 (en) Image identification method for ID photo and image processing apparatus
JP2005148915A (en) Appropriate face discrimination method and apparatus for carrying out this method
JP2002118766A (en) Method and system for correcting underwater image
JPH09281605A (en) Image recorder
JP4415488B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JP4496856B2 (en) Photographic image processing method and apparatus
JP2006146646A (en) Photographic image processing method and apparatus
JP4513006B2 (en) Emulsion scratch determination method and emulsion scratch determination system
JP2007200068A (en) Photographic image processing method and apparatus
JP3997486B2 (en) Image processing apparatus, method, and program
JP4292440B2 (en) Photo processing device
JP2008146657A (en) Image processing method and image processing apparatus
JP2006059162A (en) Tooth image correction method and apparatus
JP2007200069A (en) Photographic image processing method and apparatus
JP2009016940A (en) Frame image alignment correction processing apparatus and alignment correction processing method
JP4264070B2 (en) Image forming method and image forming apparatus
JP2006011618A (en) Photographic image processing method and apparatus
JP2006301675A (en) Image processing apparatus and image processing method
JP2006092153A (en) Image processing system and image processing method
JP2003259290A (en) Picture processing method and picture processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080317

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080624

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100721

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100820

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101012

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101125

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

S801 Written request for registration of abandonment of right

Free format text: JAPANESE INTERMEDIATE CODE: R311801

ABAN Cancellation due to abandonment
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131217

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350