samples/cpp/peopledetect.cpp
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Loading...
Searching...
No Matches
samples/cpp/peopledetect.cpp
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
#include <opencv2/objdetect.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/videoio.hpp>
#include <iostream>
#include <iomanip>
using namespace ;
;
{
{ , } ;
, ;
:
() : (), (), ((, ), (, ), (, ), (, ), )
{
.(::());
.(::());
}
() { = ( == ? : ); }
() { ( == ? : ); }
<> ( )
{
<> ;
( == )
.(, , , (,), (), , , );
( == )
.(, , , (,), (), , , );
;
}
( & )
{
. += (.*);
. = (.*);
. += (.*);
. = (.*);
}
};
=
;
( , ** )
{
(, , );
.();
(.())
{
.();
;
}
= .<>();
= .<>();
(!.())
{
.();
;
}
;
(.())
.();
{
= ::();
.();
}
(!.())
{
<< << (.() ? : ) << << ;
;
}
<< << ;
<< << ;
;
;
(;;)
{
>> ;
(.())
{
<< << ;
;
}
= ();
<> = .();
= () - ;
{
;
<< << .() <<
<< << << () << (() / ());
(, .(), (, ), , , (, , ), , );
}
(<>:: = .(); != .(); ++)
{
& = *;
.();
(, .(), .(), ::(, , ), );
}
(, );
= ()();
( == || == )
{
<< << ;
;
}
( == )
{
.();
}
}
;
}