Open CV Viola-Jones Face Detection in Matlab

버전 1.0.0.0 (1.24 MB) 작성자: Sreekar Krishna
Viola-Jones Fast Face Detection Mex Implementation
다운로드 수: 38.3K
업데이트 날짜: 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.

Usage:

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.

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

인용 양식

Sreekar Krishna (2025). Open CV Viola-Jones Face Detection in Matlab (https://www.mathworks.com/matlabcentral/fileexchange/19912-open-cv-viola-jones-face-detection-in-matlab), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

The original code was causing segmentation fault in matlab. Removed the last but one line in the source file 'FaceDetect.cpp' - delete(cascade).
Have tested this code up to 1500 continuous face detections without any segmentation faults.