人脸检测算法库 jViolajones 运用示例代码

人脸检测算法库 jViolajones 使用示例代码jViolajones是人脸检测算法Viola-Jones的一个Java实现,并能够加

人脸检测算法库 jViolajones 使用示例代码
jViolajones是人脸检测算法Viola-Jones的一个Java实现,并能够加载OpenCV XML文件。

import detection.Detector;String fileName="yourfile.jpg";Detector detector=new Detector("haarcascade_frontalface_default.xml");List<Rectangle> res=detector.getFaces(fileName, 2, 1.25f, 0.1f,3,true);




java -jar jviolajones.jar imageFileName OpenCVXmlFile