Doc for standalone face/hand + Travis scripts

This commit is contained in:
gineshidalgo99
2019-01-19 19:32:11 -05:00
parent 5b84113566
commit 5f768fe52b
8 changed files with 85 additions and 57 deletions
@@ -170,9 +170,9 @@ int tutorialApiCpp()
// Read image and face rectangle locations
const auto imageToProcess = cv::imread(FLAGS_image_path);
const std::vector<op::Rectangle<float>> faceRectangles{
op::Rectangle<float>{330.119385f, 277.532715f, 48.717274f, 48.717274f}, // Face 0
op::Rectangle<float>{24.036991f, 267.918793f, 65.175171f, 65.175171f}, // Face 1
op::Rectangle<float>{151.803436f, 32.477852f, 108.295761f, 108.295761f} // Face 2
op::Rectangle<float>{330.119385f, 277.532715f, 48.717274f, 48.717274f}, // Face of person 0
op::Rectangle<float>{24.036991f, 267.918793f, 65.175171f, 65.175171f}, // Face of person 1
op::Rectangle<float>{151.803436f, 32.477852f, 108.295761f, 108.295761f} // Face of person 2
};
// Create new datum
@@ -170,18 +170,18 @@ int tutorialApiCpp()
// Read image and hand rectangle locations
const auto imageToProcess = cv::imread(FLAGS_image_path);
const std::vector<std::array<op::Rectangle<float>, 2>> handRectangles{
// Left/Right hands person 0
// Left/Right hands of person 0
std::array<op::Rectangle<float>, 2>{
op::Rectangle<float>{320.035889f, 377.675049f, 69.300949f, 69.300949f},
op::Rectangle<float>{0.f, 0.f, 0.f, 0.f}},
// Left/Right hands person 1
op::Rectangle<float>{320.035889f, 377.675049f, 69.300949f, 69.300949f}, // Left hand
op::Rectangle<float>{0.f, 0.f, 0.f, 0.f}}, // Right hand
// Left/Right hands of person 1
std::array<op::Rectangle<float>, 2>{
op::Rectangle<float>{80.155792f, 407.673492f, 80.812706f, 80.812706f},
op::Rectangle<float>{46.449715f, 404.559753f, 98.898178f, 98.898178f}},
// Left/Right hands person 2
op::Rectangle<float>{80.155792f, 407.673492f, 80.812706f, 80.812706f}, // Left hand
op::Rectangle<float>{46.449715f, 404.559753f, 98.898178f, 98.898178f}}, // Right hand
// Left/Right hands of person 2
std::array<op::Rectangle<float>, 2>{
op::Rectangle<float>{185.692673f, 303.112244f, 157.587555f, 157.587555f},
op::Rectangle<float>{88.984360f, 268.866547f, 117.818230f, 117.818230f}}
op::Rectangle<float>{185.692673f, 303.112244f, 157.587555f, 157.587555f},// Left hand
op::Rectangle<float>{88.984360f, 268.866547f, 117.818230f, 117.818230f}} // Right hand
};
// Create new datum