OpenCV DNN人脸检测模块不能与Caffe C ++库一起使用

时间:2019-03-27 18:18:10

标签: opencv caffe face

我从Github下载caffe源代码并将其编译为C ++静态库,并使用该静态库测试OpenCV人脸检测Caffe模型,但lib报告出现以下错误:

[libprotobuf ERROR D:\ThirdPartyLibrary\protobuf\src\google\protobuf\text_format.cc:296] Error parsing text-format caffe.NetParameter: 984:14: Message type "caffe.LayerParameter" has no field named "norm_param".
F0328 02:08:05.225075 24332 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: D:/DATA/PreTrainedModel/cv_facedet/deploy.prototxt

这是否意味着norm_param字段仅由OpenCV实现,而不是标准的Caffe字段?

2 个答案:

答案 0 :(得分:0)

在Caffe中,它可能具有不同的名称:normalize_bbox_param。参见this discussion

答案 1 :(得分:0)