Skip to content

Commit bf630be

Browse files
committed
Modified initializers list
1 parent 878258b commit bf630be

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/text/src/text_detectorCNN.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ class DeepCNNTextDetectorDNNImpl: public DeepCNNTextDetector{
252252
//Size inputGeometry_;
253253
int minibatchSz_;//The existence of the assignment operator mandates this to be nonconst
254254
//int outputSize_;
255-
int inputHeight_;
256-
int inputWidth_;
257-
int inputChannel_;
255+
//int inputHeight_;
256+
//int inputWidth_;
257+
//int inputChannel_;
258258
public:
259259
DeepCNNTextDetectorDNNImpl(const DeepCNNTextDetectorDNNImpl& dn):
260260
minibatchSz_(dn.minibatchSz_){
@@ -283,7 +283,7 @@ class DeepCNNTextDetectorDNNImpl: public DeepCNNTextDetector{
283283
}
284284

285285
DeepCNNTextDetectorDNNImpl(String modelArchFilename, String modelWeightsFilename,Ptr<ImagePreprocessor> preprocessor, int maxMinibatchSz,int inputHeight=700,int inputWidth =700,int inputChannel =3)
286-
:minibatchSz_(maxMinibatchSz),inputHeight_(inputHeight),inputWidth_(inputWidth),inputChannel_(inputChannel)
286+
:minibatchSz_(maxMinibatchSz)
287287
{
288288

289289
CV_Assert(this->minibatchSz_>0);
@@ -304,9 +304,9 @@ class DeepCNNTextDetectorDNNImpl: public DeepCNNTextDetector{
304304
exit(-1);
305305
}
306306

307-
this->inputGeometry_.height =inputHeight_;
308-
this->inputGeometry_.width = inputWidth_ ;//inputLayer->width();
309-
this->inputChannelCount_ = inputChannel_ ;//inputLayer->channels();
307+
this->inputGeometry_.height =inputHeight;
308+
this->inputGeometry_.width = inputWidth ;//inputLayer->width();
309+
this->inputChannelCount_ = inputChannel ;//inputLayer->channels();
310310

311311
#else
312312
CV_Error(Error::StsError,"DNN module not available during compilation!");

0 commit comments

Comments
 (0)