Viola Jones Object Detection

版本 1.1.0.0 (224.2 KB) 作者: Dirk-Jan Kroon
Viola Jones Object detection using OpenCV trained classifiers
24.3K 次下载
更新时间 2010/11/18

查看许可证

This function ObjectDetection is an implementation of the Detection in the Viola-Jones framework. In this framework Haar-like features are used for rapid object detection. It supports the trained classifiers in the XML files of OpenCV which can be download as part of the OPENCV software on opencv.willowgarage.com


Objects=ObjectDetection(I,FilenameHaarcasade,Options)

inputs,
I : 2D image, or Filename of an image
FilenameHaarcasade : The filename of a Matlab file with a Haarcasade which is created from an OpenCV xml file
Options : A struct with options
Options.ScaleUpdate : The scale update, default 1/1.2
Options.Resize : If boolean is true (default), the function will
resize the image to maximum size 384 for less cpu-time
Options.Verbose : Display process information

outputs,
Objects : An array n x 4 with [x y width height] of the detected
objects

Literature :
- Rainer Linehart and Jochend Maydt, "An Extended Set of Haar-like
Features for Rapid Object Detection"
- Paul viola and Michael J. Jones, "Rapid Object Detection using
a Boosted Cascade of Simple Features", 2001

Example 1,
% % Convert an OpenCV classifier XML file to a Matlab file
% ConvertHaarcasadeXMLOpenCV('HaarCascades/haarcascade_frontalface_alt.xml');
% % Detect Faces
% Options.Resize=false;
% ObjectDetection('Images/1.jpg','HaarCascades/haarcascade_frontalface_alt.mat',Options);

引用格式

Dirk-Jan Kroon (2024). Viola Jones Object Detection (https://www.mathworks.com/matlabcentral/fileexchange/29437-viola-jones-object-detection), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Fixed Comment, and added xml file

1.0.0.0