基于OpenCV的通用人脸检测模块设计
收稿日期: 2009-09-25
修回日期: 2010-04-15
网络出版日期: 2011-01-25
基金资助
国家863计划资助项目(2008AA01Z124)
Design of a Common Face Detection Module Based on OpenCV
Received date: 2009-09-25
Revised date: 2010-04-15
Online published: 2011-01-25
人脸检测是智能视频监控系统中的重要组成部分,OpenCV实现的Adaboost人脸检测算法达到了实时检测人脸的处理速度。但在实际应用中,由于平台移植等障碍,现有系统升级兼容此模块困难。本文提出了一种支持多编程语言平台的通用人脸检测模块,详细阐述了.NET平台调用技术和改进的JNI方法调用OpenCV人脸检测模块的具体步骤和关键过程。该模块解决了.NET、Java和OpenCV彩色图像数据的传递问题,定义了人脸检测模块调用的接口标准,为更多跨平台调用提供参考,可很容易地集成到原有视频监控系统当中。通过多次实验验证,集成该模块的视频系统在系统资源有限的条件下获得了较高的检测率和处理速度。
关键词: 本地方法接口; OpenCV人脸检测; 视频监控; 性能测试
张莹,李勇平,敖新宇 . 基于OpenCV的通用人脸检测模块设计[J]. 计算机工程与科学, 2011 , 33(1) : 97 -101 . DOI: 10.3969/j.issn.1007130X.2011.
Face detection is an important part in intelligent video surveillance systems. The Adaboost face detection algorithm of OpenCV can process videos in a realtime way. Because of the languages and platforms, very few systems are compatible with such a function. A module of face detection that supports multiple program languages is presented,and the P/Invoke techniques in the .NET and the improved JNI methods for calling the OpenCV face detection module are explained in detail. This module solves the problems of parameter passing among .NET, Java and OpenCV for color images and can be simply integrated into most existing videobased application systems. It also defines a standard interface for module scheduling and can be referenced by more crossplatform applications. The experimental results show that the video systems which integrate this module obtain a high detection rate and realtime processing speed with limited system resources.
[1]韩露,李祖枢,陈东艺.一种Java与OpenCV结合实现的目标检测模块[J].计算机应用,2008,28(3):2932.
[2]刘晓华.精通.NET核心技术[M].北京:电子工业出版社,2002.
[3]黄际洲,崔晓源.精通.NET互操作:P/Invoke、C++ Interop和COM Interop[M].北京:人民邮电出版社,2009.
[4]SharperCV Project[EB/OL].[20090917].http://www.cs.ru.ac.za/research/groups/SharperCV/.
[5]Emgu CV[EB/OL].[20090917].http://sourceforge.net/projects/emgucv/.
[6]详细介绍C# BitmapData[EB/OL].[20090917].http://developer.51cto.com.
[7]Joseph Weber. Java 1.1使用大全[M].第三版.北京:电子工业出版社,1998.
[8]Verts W T. An Essay on Endian Order[EB/OL].[2009917]. http://www.cs.umass.edu/~Verts/cs32/endian.html.
[9]赵楠.基于Adaboost的人脸检测:[博士学位论文][D].北京:北京大学,2005.
/
| 〈 |
|
〉 |