Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

gender_estimation.hpp 785 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  1. #ifndef gender_estimation_hpp
  2. #define gender_estimation_hpp
  3. #include <vector>
  4. #include <string>
  5. #include <opencv2/opencv.hpp>
  6. #include "tool_box.hpp"
  7. /**
  8. * @Brief: This module implements the gender estimation with caffe
  9. *
  10. * @Paper Reference: Age and Gender Classification using Convolutional
  11. * Neural Networks (CVPR 2015)
  12. *
  13. * The reason why merge this function with age estimation are presented
  14. * in age_estimation.hpp
  15. *
  16. */
  17. enum class Gender {Man, Woman, Error};
  18. /**
  19. * Using static to eliminate the linking error
  20. */
  21. static std::map<Gender, std::string> gender_listss
  22. {
  23. {Gender::Man, "Man"},
  24. {Gender::Woman, "Woman"},
  25. {Gender::Error, "Error"}
  26. };
  27. std::vector<Gender> gender_estimation(const cv::Mat&, const std::vector<BoundingBox>&);
  28. #endif
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...