Added a small modifications in the code formatting of background subtraction tutorial
This commit is contained in:
parent
449b4d8a65
commit
ea544f08cc
@ -178,8 +178,9 @@ The results as well as the input data are shown on the screen.
|
|||||||
pMOG2->apply(frame, fgMaskMOG2);
|
pMOG2->apply(frame, fgMaskMOG2);
|
||||||
//get the frame number and write it on the current frame
|
//get the frame number and write it on the current frame
|
||||||
size_t index = fn.find_last_of("/");
|
size_t index = fn.find_last_of("/");
|
||||||
if(index == string::npos)
|
if(index == string::npos) {
|
||||||
index = fn.find_last_of("\\");
|
index = fn.find_last_of("\\");
|
||||||
|
}
|
||||||
size_t index2 = fn.find_last_of(".");
|
size_t index2 = fn.find_last_of(".");
|
||||||
string prefix = fn.substr(0,index+1);
|
string prefix = fn.substr(0,index+1);
|
||||||
string suffix = fn.substr(index2);
|
string suffix = fn.substr(index2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user