Skip to content

Commit 53a8677

Browse files
committed
GSOC 2016 removed warnings from example
1 parent 7c7ecd7 commit 53a8677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/text/samples/dictnet_demo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <iomanip>
1818
#include <fstream>
1919

20-
std::string getHelpStr(std::string progFname){
20+
inline std::string getHelpStr(std::string progFname){
2121
std::stringstream out;
2222
out << " Demo of wordspotting CNN for text recognition." << std::endl;
2323
out << " Max Jaderberg et al.: Reading Text in the Wild with Convolutional Neural Networks, IJCV 2015"<<std::endl<<std::endl;
@@ -83,7 +83,7 @@ int main(int argc, const char * argv[]){
8383

8484
std::ofstream out;
8585
out.open(argv[1]);
86-
for(int imgIdx=0;imgIdx<imageList.size();imgIdx++){
86+
for(int imgIdx=0;imgIdx<int(imageList.size());imgIdx++){
8787
out<<argv[imgIdx+2]<<","<<wordList[imgIdx]<<","<<outProbabillities[imgIdx]<<std::endl;
8888
}
8989
out.close();

0 commit comments

Comments
 (0)