Towards HOG recording.
This commit is contained in:
parent
3b21213f41
commit
d6654dec55
2 changed files with 7 additions and 6 deletions
|
@ -39,8 +39,6 @@ using System.Threading;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Threading;
|
using System.Windows.Threading;
|
||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
using System.IO;
|
|
||||||
using Microsoft.Win32;
|
|
||||||
|
|
||||||
// Internal libraries
|
// Internal libraries
|
||||||
using OpenCVWrappers;
|
using OpenCVWrappers;
|
||||||
|
@ -459,7 +457,7 @@ namespace OpenFaceOffline
|
||||||
recorder.SetObservationFaceAlign(face_analyser.GetLatestAlignedFace());
|
recorder.SetObservationFaceAlign(face_analyser.GetLatestAlignedFace());
|
||||||
|
|
||||||
var hog_feature = face_analyser.GetLatestHOGFeature();
|
var hog_feature = face_analyser.GetLatestHOGFeature();
|
||||||
//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
|
recorder.SetObservationHOG(success, hog_feature, face_analyser.GetHOGRows(), face_analyser.GetHOGCols(), face_analyser.GetHOGChannels());
|
||||||
|
|
||||||
recorder.WriteObservation();
|
recorder.WriteObservation();
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,10 @@ public:
|
||||||
return HOG_vis_image;
|
return HOG_vis_image;
|
||||||
}
|
}
|
||||||
|
|
||||||
OpenCVWrappers::RawImage^ GetLatestHOGFeature() {
|
OpenCVWrappers::RawImage^ GetLatestHOGFeature(System::Int32^ num_rows, System::Int32^ num_cols, System::Int32^ num_channels) {
|
||||||
|
num_rows = gcnew System::Int32(*this->num_rows);
|
||||||
|
num_cols = gcnew System::Int32(*this->num_cols);
|
||||||
|
num_channels = gcnew System::Int32(31);
|
||||||
OpenCVWrappers::RawImage^ HOG_feature = gcnew OpenCVWrappers::RawImage(*hog_features);
|
OpenCVWrappers::RawImage^ HOG_feature = gcnew OpenCVWrappers::RawImage(*hog_features);
|
||||||
return HOG_feature;
|
return HOG_feature;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue