updating python tutorials + providing necessary data
@@ -16,7 +16,7 @@ const char* keys =
|
||||
"{ help h | | print help message }"
|
||||
"{ image i | | specify input image}"
|
||||
"{ camera c | | enable camera capturing }"
|
||||
"{ video v | ../data/768x576.avi | use video as input }"
|
||||
"{ video v | ../data/vtest.avi | use video as input }"
|
||||
"{ directory d | | images directory}"
|
||||
};
|
||||
|
||||
@@ -79,7 +79,7 @@ int main(int argc, char** argv)
|
||||
namedWindow("people detector", 1);
|
||||
|
||||
string pattern_glob = "";
|
||||
string video_filename = "../data/768x576.avi";
|
||||
string video_filename = "../data/vtest.avi";
|
||||
int camera_id = -1;
|
||||
if (parser.has("directory"))
|
||||
{
|
||||
|
||||
BIN
samples/data/apple.jpg
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
samples/data/gradient.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
samples/data/ml.png
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
samples/data/opencv-logo-white.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 24 KiB |
BIN
samples/data/orange.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
samples/data/sudoku.png
Normal file
|
After Width: | Height: | Size: 245 KiB |
@@ -23,10 +23,10 @@ enum Method
|
||||
int main(int argc, const char** argv)
|
||||
{
|
||||
cv::CommandLineParser cmd(argc, argv,
|
||||
"{ c camera | | use camera }"
|
||||
"{ f file | ../data/768x576.avi | input video file }"
|
||||
"{ m method | mog | method (mog, mog2, gmg, fgd) }"
|
||||
"{ h help | | print help message }");
|
||||
"{ c camera | | use camera }"
|
||||
"{ f file | ../data/vtest.avi | input video file }"
|
||||
"{ m method | mog | method (mog, mog2, gmg, fgd) }"
|
||||
"{ h help | | print help message }");
|
||||
|
||||
if (cmd.has("help") || !cmd.check())
|
||||
{
|
||||
|
||||
@@ -1191,10 +1191,10 @@ TEST(GoodFeaturesToTrack)
|
||||
|
||||
TEST(MOG)
|
||||
{
|
||||
const std::string inputFile = abspath("../data/768x576.avi");
|
||||
const std::string inputFile = abspath("../data/vtest.avi");
|
||||
|
||||
cv::VideoCapture cap(inputFile);
|
||||
if (!cap.isOpened()) throw runtime_error("can't open ../data/768x576.avi");
|
||||
if (!cap.isOpened()) throw runtime_error("can't open ../data/vtest.avi");
|
||||
|
||||
cv::Mat frame;
|
||||
cap >> frame;
|
||||
|
||||
@@ -17,11 +17,11 @@ using namespace cv;
|
||||
int main(int argc, const char** argv)
|
||||
{
|
||||
CommandLineParser cmd(argc, argv,
|
||||
"{ c camera | | use camera }"
|
||||
"{ f file | ../data/768x576.avi | input video file }"
|
||||
"{ t type | mog2 | method's type (knn, mog2) }"
|
||||
"{ h help | | print help message }"
|
||||
"{ m cpu_mode | false | press 'm' to switch OpenCL<->CPU}");
|
||||
"{ c camera | | use camera }"
|
||||
"{ f file | ../data/vtest.avi | input video file }"
|
||||
"{ t type | mog2 | method's type (knn, mog2) }"
|
||||
"{ h help | | print help message }"
|
||||
"{ m cpu_mode | false | press 'm' to switch OpenCL<->CPU}");
|
||||
|
||||
if (cmd.has("help"))
|
||||
{
|
||||
|
||||
@@ -71,7 +71,7 @@ int main(int argc, char** argv)
|
||||
"{ h help | | print help message }"
|
||||
"{ i input | | specify input image}"
|
||||
"{ c camera | -1 | enable camera capturing }"
|
||||
"{ v video | ../data/768x576.avi | use video as input }"
|
||||
"{ v video | ../data/vtest.avi | use video as input }"
|
||||
"{ g gray | | convert image to gray one or not}"
|
||||
"{ s scale | 1.0 | resize the image before detect}"
|
||||
"{ o output | | specify output path when input is images}";
|
||||
|
||||