Example:
----------
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
using namespace cv;
using namespace std;
int main()
{
Mat image;
CvCapture* capture;
// Read the video stream
capture = cvCaptureFromCAM( -1 );
// Load Face cascade (.xml file)
CascadeClassifier face_cascade;
face_cascade.load( "C:/OpenCV243/data/Haarcascades/haarcascade_frontalface_alt2.xml" );
while(1)
{
image = cvQueryFrame( capture );
// Detect faces
std::vector<Rect> faces;
face_cascade.detectMultiScale( image, faces, 1.1, 2, 0|CV_HAAR_SCALE_IMAGE, Size(30, 30) );
// Draw circles on the detected faces
for( int i = 0; i < faces.size(); i++ )
{
Point center( faces[i].x + faces[i].width*0.5, faces[i].y + faces[i].height*0.5 );
ellipse( image, center, Size( faces[i].width*0.5, faces[i].height*0.5), 0, 0, 360, Scalar( 255, 0, 255 ), 4, 8, 0 );
}
imshow( "Detected Face", image );
waitKey(10);
}
waitKey(0);
}
----------
Trung tâm dạy kế toán thực tế Tại cầu giấy
ReplyDeleteTrung tâm dạy kế toán thực tế Tại từ liêm
Trung tâm dạy kế toán thực tế Tại thanh xuân
Trung tâm dạy kế toán thực tế Tại hà đông
Trung tâm dạy kế toán thực tế Tại long biên
Trung tâm dạy kế toán thực tế Tại nguyễn chính thanh đống đa
Trung tâm dạy kế toán thực tế Tại minh khai hai bà trưng
Trung tâm dạy kế toán thực tế Tại bắc ninh
Trung tâm dạy kế toán thực tế Tại hải phòng
Trung tâm dạy kế toán thực tế Tại tphcm
Trung tâm dạy kế toán thực tế Tại quận 3
Trung tâm dạy kế toán thực tế Tại thủ đức
Trung tâm dạy kế toán thực tế Tại đà nẵng
Trung tâm dạy kế toán thực tế Tại biên hòa
Trung tâm dạy kế toán thực tế Tại đồng nai
Trung tâm dạy kế toán thực tế Tại nam định
Trung tâm dạy kế toán thực tế Tại thái bình
Trung tâm dạy kế toán thực tế Tại bắc giang
Trung tâm dạy kế toán thực tế Tại vĩnh phúc
Trung tâm dạy kế toán thực tế Tại thái nguyên
Trung tâm dạy kế toán thực tế Tại quảng ninh
Trung tâm dạy kế toán thực tế Tại hải dương
Trung tâm dạy kế toán thực tế Tại hưng yên
Trung tâm dạy kế toán thực tế Tại hà nam
Trung tâm dạy kế toán thực tế Tại ninh bình
Trung tâm dạy kế toán thực tế Tại nghệ an
Trung tâm dạy kế toán thực tế Tại vũng tàu
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru JavaScript Online Training in India. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai
Deletejavascript code examples for starters
ReplyDeleteتتميز شركة مكافحة حشرات بالاحساء بتواجد فيها اقوي فريق عمل يتمكن من القضاء التام علي جميع انواع الحشرات من اضيق الاماكن التي يبات فيها الحشرات و تتكاثر
ReplyDeletehttp://abraj-dubai.net/%D8%B4%D8%B1%D9%83%D8%A9-%D9%85%D9%83%D8%A7%D9%81%D8%AD%D8%A9-%D8%AD%D8%B4%D8%B1%D8%A7%D8%AA-%D8%A8%D8%A7%D9%84%D8%AF%D9%85%D8%A7%D9%85-%D8%A8%D8%A7%D9%84%D8%A7%D8%AD%D8%B3%D8%A7%D8%A1/
يتوافد الي مراكز صيانة ويرلبول الكثير من العملاء و ذلك لثقتهم الكبيرة بجميع اعمال الصيانة التي نقوم بها في الاجهزة الكهربائية لان توكيل ويرلبول يقضي تماما علي الاعطال الكهربائية و الاعطال الفنية
ReplyDeletehttp://www.maintenanceg.com/Whirlpool-Center-Agent-Egypt.html