- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the example interactive_face_detection_demo there is an error in the detectors.cpp file in case of several faces
std::vector<float> FacialLandmarksDetection::operator[] (int idx) const {
....
auto begin = n_lm * idx;
auto end = begin + n_lm / 2;
for (auto i_lm = begin; i_lm < end; ++i_lm) {
float normed_x = normed_coordinates[2 * i_lm];
float normed_y = normed_coordinates[2 * i_lm + 1];
if (doRawOutputMessages) {
std::cout << normed_x << ", " << normed_y << std::endl;
}
normedLandmarks.push_back(normed_x);
normedLandmarks.push_back(normed_y);
}
for fix, need to change to :
auto begin = n_lm * idx;
auto end = begin + n_lm;
for(auto i_lm = begin; i_lm < end; i_lm += 2)
{
float normed_x = normed_coordinates[i_lm];
float normed_y = normed_coordinates[i_lm + 1];
normedLandmarks.push_back(normed_x);
normedLandmarks.push_back(normed_y);
}
#endif
Link Copied

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page