Open CV Viola-Jones Face Detection in Matlab

バージョン (1.24 MB) 作成者: Sreekar Krishna
Viola-Jones Fast Face Detection Mex Implementation

ダウンロード 38.1K 件

更新 2008/5/21


This zip file contains source code and windows executables for carrying out face detection on a gray scale image. The code implements Viola-Jones adaboosted algorithm for face detection by providing a mex implementation of OpenCV's face detector. Instructions for use and for compiling can be found in the Readme file.


FaceDetect (<Haar Cascase XML file>, <Gray scale Image>)

The function returns Nx4 matrix. In case no faces were detected, N=1 and all four entries are -1. Otherwise, N=number of faces in the image and the vector contains the x, y, width and height information of the face.

A = imread ('lena.jpg', 'JPG');
Img = double (rgb2gray(A));
Face = FaceDetect('haarcascade_frontalface_alt2.xml',Img);


Sreekar Krishna (2022). Open CV Viola-Jones Face Detection in Matlab (, MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007b
Windows macOS Linux

ヒントを与えたファイル: Face Detection & Recognition System, Fast Eyetracking

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!