More recording in c sharp work
This commit is contained in:
parent
a916e68fdb
commit
98e45c5cd0
2 changed files with 13 additions and 2 deletions
|
@ -455,8 +455,9 @@ namespace OpenFaceOffline
|
|||
var au_classes = face_analyser.GetCurrentAUsClass();
|
||||
recorder.SetObservationActionUnits(au_regs, au_classes);
|
||||
|
||||
//open_face_rec.SetObservationFaceAlign(sim_warped_img);
|
||||
//open_face_rec.WriteObservation();
|
||||
recorder.SetObservationFaceAlign(face_analyser.GetLatestAlignedFace());
|
||||
|
||||
recorder.WriteObservation();
|
||||
|
||||
// TODO
|
||||
//open_face_rec.SetObservationHOG(face_model.detection_success, hog_descriptor, num_hog_rows, num_hog_cols, 31); // The number of channels in HOG is fixed at the moment, as using FHOG
|
||||
|
|
|
@ -108,6 +108,11 @@ namespace UtilitiesOF {
|
|||
m_recorder = new Utilities::RecorderOpenFace(in_filename_std, *parameters->GetParams(), output_directory_std);
|
||||
}
|
||||
|
||||
void WriteObservation()
|
||||
{
|
||||
m_recorder->WriteObservation();
|
||||
}
|
||||
|
||||
void SetObservationGaze(System::Tuple<double, double, double>^ gaze_direction0, System::Tuple<double, double, double>^ gaze_direction1, System::Tuple<double, double>^ gaze_angle,
|
||||
List<System::Tuple<double, double>^>^ landmarks_2D, List<System::Tuple<double,double,double>^>^ landmarks_3D)
|
||||
{
|
||||
|
@ -161,6 +166,11 @@ namespace UtilitiesOF {
|
|||
m_recorder->SetObservationActionUnits(au_regs_std, au_class_std);
|
||||
}
|
||||
|
||||
void SetObservationFaceAlign(OpenCVWrappers::RawImage^ aligned_face_image)
|
||||
{
|
||||
m_recorder->SetObservationFaceAlign(aligned_face_image->Mat);
|
||||
}
|
||||
|
||||
void SetObservationLandmarks(List<System::Tuple<double, double>^>^ landmarks_2D, List<System::Tuple<double, double, double>^>^ landmarks_3D, List<double>^ params_global, List<double>^ params_local, double confidence, bool success)
|
||||
{
|
||||
// Construct an OpenCV matrix from the landmarks
|
||||
|
|
Loading…
Reference in a new issue