本文介绍如何使用OpenCV检测人脸,并且给出示例,本平台仍然采用的是 Jetson TK1。
为了能够从摄像头中实时检测出人脸,首先要做的就是判断你的摄像头是否可以工作,其基本方法如下:
sudo apt-get install luvcview luvcview
参考网址:图文详解OpenCV在Jetson TK1上的安装和使用
mkdir ~/faceActivatedGPIO cd ~/faceActivatedGPIO
cp ~/opencv/samples/gpu/cascadeclassifier.cpp . g++ cascadeclassifier.cpp -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_calib3d -lopencv_contrib -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_video -lopencv_videostab -o cascadeclassifier
./cascadeclassifier --cascade ~/opencv-2.4.9/data/haarcascades/haarcascade_frontalface_alt.xml --camera 0
NVIDIA Jetson TK1学习与开发(十):人脸检测(Face Detection)
原文地址:http://blog.csdn.net/frd2009041510/article/details/43051239