Fix with sequence recording.
This commit is contained in:
parent
0e428cca45
commit
b37335052c
3 changed files with 8 additions and 4 deletions
|
@ -317,7 +317,7 @@ int main (int argc, char **argv)
|
||||||
fy = fx;
|
fy = fx;
|
||||||
}
|
}
|
||||||
|
|
||||||
Recorder::RecorderOpenFaceParameters recording_params(arguments);
|
Recorder::RecorderOpenFaceParameters recording_params(arguments, true, fps_vid_in);
|
||||||
Recorder::RecorderOpenFace open_face_rec(output_files[f_n], input_files[f_n], recording_params);
|
Recorder::RecorderOpenFace open_face_rec(output_files[f_n], input_files[f_n], recording_params);
|
||||||
|
|
||||||
int frame_count = 0;
|
int frame_count = 0;
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace Recorder
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
RecorderOpenFaceParameters(std::vector<std::string> &arguments, double fps_vid_out = 30, std::string output_codec = "DIVX");
|
RecorderOpenFaceParameters(std::vector<std::string> &arguments, bool sequence, double fps_vid_out = 30);
|
||||||
|
|
||||||
bool isSequence() const { return is_sequence; }
|
bool isSequence() const { return is_sequence; }
|
||||||
bool output2DLandmarks() const { return output_2D_landmarks; }
|
bool output2DLandmarks() const { return output_2D_landmarks; }
|
||||||
|
|
|
@ -37,13 +37,17 @@ using namespace std;
|
||||||
|
|
||||||
using namespace Recorder;
|
using namespace Recorder;
|
||||||
|
|
||||||
RecorderOpenFaceParameters::RecorderOpenFaceParameters(std::vector<std::string> &arguments, double fps_vid_out, std::string output_codec)
|
RecorderOpenFaceParameters::RecorderOpenFaceParameters(std::vector<std::string> &arguments, bool sequence, double fps_vid_out)
|
||||||
{
|
{
|
||||||
|
|
||||||
string separator = string(1, boost::filesystem::path::preferred_separator);
|
string separator = string(1, boost::filesystem::path::preferred_separator);
|
||||||
|
|
||||||
|
this->is_sequence = sequence;
|
||||||
|
|
||||||
this->fps_vid_out = fps_vid_out;
|
this->fps_vid_out = fps_vid_out;
|
||||||
this->output_codec = output_codec;
|
|
||||||
|
// Default output code
|
||||||
|
this->output_codec = "DIVX";
|
||||||
|
|
||||||
// First check if there is a root argument (so that videos and outputs could be defined more easilly)
|
// First check if there is a root argument (so that videos and outputs could be defined more easilly)
|
||||||
for (size_t i = 0; i < arguments.size(); ++i)
|
for (size_t i = 0; i < arguments.size(); ++i)
|
||||||
|
|
Loading…
Reference in a new issue