Firefly开源社区

打印 上一主题 下一主题

Firefly高性能人脸识别SDK发布啦

14

积分

0

威望

0

贡献

游客

积分
14
发表于 2017-11-23 10:10:29      楼主
Ubuntu16.04 运行报错,尝试编译也报错,不太熟C
错误如下:
FaceDetectImageSample.cpp: In function ‘int CheckImageType(const unsigned char*, rr_image_type, int, int)’:
FaceDetectImageSample.cpp:25:21: error: ‘rr_image_type’ is not a class or namespace
  int cv_type = (int)rr_image_type::RR_IMAGE_MAX;
                     ^
FaceDetectImageSample.cpp:29:8: error: ‘rr_image_type’ is not a class or namespace
   case rr_image_type::RR_IMAGE_BGR8UC3:
        ^
FaceDetectImageSample.cpp:35:8: error: ‘rr_image_type’ is not a class or namespace
   case rr_image_type::RR_IMAGE_BGRA8UC4:
        ^
FaceDetectImageSample.cpp:41:8: error: ‘rr_image_type’ is not a class or namespace
   case rr_image_type::RR_IMAGE_GRAY8UC1:
        ^
FaceDetectImageSample.cpp: In function ‘int main()’:
FaceDetectImageSample.cpp:80:63: error: ‘printf’ was not declared in this scope
  printf("**************************************************\n");
                                                               ^
FaceDetectImageSample.cpp:120:53: error: ‘rr_image_type’ is not a class or namespace
  ret = firefly_fd_detect_image(hDetector, img.data, rr_image_type::RR_IMAGE_BGR8UC3, img.cols, img.rows, &faces_array, &faces_count);
                                                     ^
FaceDetectImageSample.cpp:142:47: error: ‘to_string’ was not declared in this scope
   string strText = to_string(faces_array[i].id) + " " + to_string(faces_array[i].confidence);
求版主解答,谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表