Skip to content

Commit b7a7600

Browse files
committed
Attenpt to supress visual studio and IOS warnings v2
1 parent 2b78890 commit b7a7600

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/text/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
6161
if(${Caffe_FOUND})
6262

6363
include_directories(${Caffe_INCLUDE_DIR})
64-
#Anguelos: taken from caffe's cmake
64+
#taken from caffe's cmake
6565
find_package(HDF5 COMPONENTS HL REQUIRED)
6666
include_directories(SYSTEM ${HDF5_INCLUDE_DIRS} ${HDF5_HL_INCLUDE_DIR})
6767
list(APPEND Caffe_LINKER_LIBS ${HDF5_LIBRARIES})
@@ -74,7 +74,7 @@ endif()
7474

7575

7676
if(${Caffe_FOUND})
77-
#Anguelos: taken from caffe's cmake
77+
#taken from caffe's cmake
7878
target_link_libraries(opencv_text ${Caffe_LIBS} ${Glog_LIBS} ${Protobuf_LIBS} ${HDF5_LIBRARIES} ${Boost_LIBRARIES})
7979
endif()
8080
endif()

modules/text/src/ocr_holistic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class DictNetCaffeImpl: public DictNet{
133133
void classifyBatch(InputArrayOfArrays inputImageList, OutputArray classProbabilities){
134134
std::vector<Mat> allImageVector;
135135
inputImageList.getMatVector(allImageVector);
136-
classProbabilities.create(Size(unsigned int(this->outputSize_),allImageVector.size()),CV_32F);
136+
classProbabilities.create(Size((size_t)(this->outputSize_),allImageVector.size()),CV_32F);
137137
Mat outputMat = classProbabilities.getMat();
138138
for(size_t imgNum=0;imgNum<allImageVector.size();imgNum+=this->minibatchSz_){
139139
int rangeEnd=imgNum+std::min<int>(allImageVector.size()-imgNum,this->minibatchSz_);

0 commit comments

Comments
 (0)