age-gender-detection.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "base-detection.h"
7 
8 
9 namespace openvino_helpers
10 {
11  /*
12  Detects age and gender for a give face
13  */
15  {
16  public:
17  struct Result
18  {
19  float age;
20  float maleProb;
21  };
22 
23  private:
28 
29  public:
31  bool isAsync = true,
32  int maxBatch = 1, bool isBatchDynamic = false,
33  bool doRawOutputMessages = false );
34 
35  InferenceEngine::CNNNetwork read_network() override;
36  void submit_request() override;
37 
38  void enqueue( const cv::Mat &face );
39  Result operator[] ( int idx ) const;
40  };
41 }
GLsizei const GLchar *const * string
age_gender_detection(const std::string &pathToModel, bool isAsync=true, int maxBatch=1, bool isBatchDynamic=false, bool doRawOutputMessages=false)
InferenceEngine::CNNNetwork read_network() override
GLenum GLuint GLint GLenum face
Definition: glext.h:3377


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:45:06