the shape of the red-eye is to accurately detect the red-eye be changed by eye opening degree and an object thereof is to provide a red-eye detection apparatus capable. ECU20 connected to the image sensor 10, a face position and face feature point detection unit 21 for detecting the feature points of the face of the driver, the red eye detecting section 22 for red-eye detection by template matching using a red eye template, eye opening degree The the eye opening degree calculation unit 23 that calculates a relative eye opening degree calculation unit 24 for calculating a relative eye opening degree of the percentage of the closed-eye state and the 0% and open-eye state is 100%, to produce a red eye template based on the relative eye opening degree together, and a red-eye template update section 25 for updating the red eye template to be used for the next template matching, in the generated red eye template.赤目の形状が開眼度によって変化しても赤目を正確に検出することができる赤目検出装置を提供することを課題とする。画像センサ10に接続されたECU20は、ドライバの顔の特徴点を検出する顔位置・顔特徴点検出部21と、赤目テンプレートを用いたテンプレートマッチングにより赤目検出を行う赤目検出部22と、開眼度を算出する開眼度算出部23と、閉眼状態を0%及び開眼状態を100%とした割合の相対開眼度を算出する相対開眼度算出部24と、相対開眼度に基づいて赤目テンプレートを生成するとともに、この生成した赤目テンプレートで次回のテンプレートマッチングに用いる赤目テンプレートを更新する赤目テンプレート更新部25と、を備える。