Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f6d927ef
Commit
f6d927ef
authored
Nov 15, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnn: avoid conflicts with original caffe.proto
rename caffe.proto => opencv-caffe.proto
parent
75b980ac
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
10 deletions
+8
-10
OpenCVFindLibProtobuf.cmake
cmake/OpenCVFindLibProtobuf.cmake
+2
-2
CMakeLists.txt
modules/dnn/CMakeLists.txt
+5
-4
caffe_importer.cpp
modules/dnn/src/caffe/caffe_importer.cpp
+0
-2
caffe_io.cpp
modules/dnn/src/caffe/caffe_io.cpp
+0
-1
caffe_io.hpp
modules/dnn/src/caffe/caffe_io.hpp
+1
-1
opencv-caffe.proto
modules/dnn/src/caffe/opencv-caffe.proto
+0
-0
No files found.
cmake/OpenCVFindLibProtobuf.cmake
View file @
f6d927ef
...
...
@@ -7,7 +7,7 @@ OCV_OPTION(BUILD_PROTOBUF "Force to build libprotobuf from sources" ON)
OCV_OPTION
(
PROTOBUF_UPDATE_FILES
"Force to rebuild .proto files"
OFF
)
if
(
PROTOBUF_UPDATE_FILES
)
if
(
NOT
DEFINED Protobuf_PROTOC_EXECUTABLE
)
if
(
NOT
COMMAND PROTOBUF_GENERATE_CPP
)
find_package
(
Protobuf QUIET
)
endif
()
if
(
DEFINED Protobuf_PROTOC_EXECUTABLE AND EXISTS
${
Protobuf_PROTOC_EXECUTABLE
}
)
...
...
@@ -21,7 +21,7 @@ if(NOT BUILD_PROTOBUF AND NOT (DEFINED Protobuf_INCLUDE_DIRS AND DEFINED Protobu
find_package
(
Protobuf QUIET
)
endif
()
if
(
Protobuf_FOUND
)
if
(
Protobuf_FOUND
AND NOT BUILD_PROTOBUF
)
# nothing
else
()
set
(
Protobuf_LIBRARIES libprotobuf
)
...
...
modules/dnn/CMakeLists.txt
View file @
f6d927ef
...
...
@@ -56,14 +56,15 @@ ocv_warnings_disable(CMAKE_CXX_FLAGS
)
if
(
PROTOBUF_UPDATE_FILES
)
file
(
GLOB proto_files src/tensorflow/*.proto
)
list
(
APPEND proto_files src/caffe/caffe.proto
)
file
(
GLOB proto_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/tensorflow/*.proto
)
list
(
APPEND proto_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/caffe/opencv-caffe.proto
)
set
(
PROTOBUF_GENERATE_CPP_APPEND_PATH ON
)
# required for tensorflow
PROTOBUF_GENERATE_CPP
(
Protobuf_HDRS Protobuf_SRCS
${
proto_files
}
)
else
()
file
(
GLOB fw_srcs
${
CMAKE_CURRENT_SOURCE_DIR
}
/misc/tensorflow/*.cc
)
file
(
GLOB fw_hdrs
${
CMAKE_CURRENT_SOURCE_DIR
}
/misc/tensorflow/*.h
)
list
(
APPEND fw_srcs
${
CMAKE_CURRENT_SOURCE_DIR
}
/misc/caffe/caffe.pb.cc
)
list
(
APPEND fw_hdrs
${
CMAKE_CURRENT_SOURCE_DIR
}
/misc/caffe/caffe.pb.h
)
list
(
APPEND fw_srcs
${
CMAKE_CURRENT_SOURCE_DIR
}
/misc/caffe/
opencv-
caffe.pb.cc
)
list
(
APPEND fw_hdrs
${
CMAKE_CURRENT_SOURCE_DIR
}
/misc/caffe/
opencv-
caffe.pb.h
)
list
(
APPEND Protobuf_SRCS
${
fw_srcs
}
)
list
(
APPEND Protobuf_HDRS
${
fw_hdrs
}
)
list
(
APPEND Protobuf_INCLUDE_DIRS
${
CMAKE_CURRENT_SOURCE_DIR
}
/misc/caffe
)
...
...
modules/dnn/src/caffe/caffe_importer.cpp
View file @
f6d927ef
...
...
@@ -42,8 +42,6 @@
#include "../precomp.hpp"
#ifdef HAVE_PROTOBUF
#include "caffe.pb.h"
#include <iostream>
#include <fstream>
#include <sstream>
...
...
modules/dnn/src/caffe/caffe_io.cpp
View file @
f6d927ef
...
...
@@ -99,7 +99,6 @@
#include <fstream>
#include <vector>
#include "caffe.pb.h"
#include "caffe_io.hpp"
#include "glog_emulator.hpp"
...
...
modules/dnn/src/caffe/caffe_io.hpp
View file @
f6d927ef
...
...
@@ -91,7 +91,7 @@
#define __OPENCV_DNN_CAFFE_IO_HPP__
#ifdef HAVE_PROTOBUF
#include "caffe.pb.h"
#include "
opencv-
caffe.pb.h"
namespace
cv
{
namespace
dnn
{
...
...
modules/dnn/src/caffe/caffe.proto
→
modules/dnn/src/caffe/
opencv-
caffe.proto
View file @
f6d927ef
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment