|
发表于 2017-11-23 10:10:29
只看该作者
28#
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);
求版主解答,谢谢 |
|