mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-16 04:08:00 +00:00
Bit more on HOG recording.
This commit is contained in:
@@ -89,8 +89,11 @@ RecorderOpenFace::RecorderOpenFace(const std::string out_directory, const std::s
|
||||
output_AUs, output_gaze, num_face_landmarks, num_model_modes, num_eye_landmarks, au_names_class, au_names_reg);
|
||||
|
||||
// Consruct HOG recorder here
|
||||
std::string hog_filename = (path(record_root) / path(filename).replace_extension(".hog")).string();
|
||||
hog_recorder.Open(hog_filename);
|
||||
if(output_hog)
|
||||
{
|
||||
std::string hog_filename = (path(record_root) / path(filename).replace_extension(".hog")).string();
|
||||
hog_recorder.Open(hog_filename);
|
||||
}
|
||||
|
||||
// TODO construct a video recorder
|
||||
|
||||
@@ -98,5 +101,10 @@ RecorderOpenFace::RecorderOpenFace(const std::string out_directory, const std::s
|
||||
|
||||
}
|
||||
|
||||
void RecorderOpenFace::AddObservationHOG(bool good_frame, const cv::Mat_<double>& hog_descriptor, int num_cols, int num_rows, int num_channels)
|
||||
{
|
||||
hog_recorder.AddObservationHOG(good_frame, hog_descriptor, num_cols, num_rows, num_channels);
|
||||
}
|
||||
|
||||
// TODO the other 4 constructors + destructors?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user