dnn: rename caffe protobuf package
authorAlexander Alekhin <alexander.alekhin@intel.com>
Wed, 22 Nov 2017 15:31:36 +0000 (18:31 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Wed, 22 Nov 2017 15:34:07 +0000 (18:34 +0300)
modules/dnn/src/caffe/caffe_io.hpp
modules/dnn/src/caffe/opencv-caffe.proto

index f5912c3..be545f6 100644 (file)
@@ -92,6 +92,7 @@
 #ifdef HAVE_PROTOBUF
 
 #include "opencv-caffe.pb.h"
+namespace caffe { using namespace opencv_caffe; } // avoid massive renames from caffe proto package
 
 namespace cv {
 namespace dnn {
index b0a31e2..d28e3d2 100644 (file)
@@ -48,7 +48,7 @@
 
 syntax = "proto2";
 
-package caffe;
+package opencv_caffe;
 
 // NVidia's Caffe feature is used to store fp16 weights, https://github.com/NVIDIA/caffe:
 // Math and storage types