mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-08 16:50:07 +08:00
Remove useless empty lines
This commit is contained in:
@@ -57,7 +57,6 @@ int main( int argc, const char** argv )
|
||||
benchmarkName = argv[2];
|
||||
inDir = argv[3];
|
||||
outDir = argv[4];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -133,9 +132,7 @@ int main( int argc, const char** argv )
|
||||
|
||||
imshow("Current LP", frame);
|
||||
waitKey(5);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
delete config;
|
||||
@@ -157,9 +154,7 @@ int main( int argc, const char** argv )
|
||||
|
||||
imshow("Current LP", frame);
|
||||
waitKey(5);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else if (benchmarkName.compare("speed") == 0)
|
||||
@@ -254,9 +249,7 @@ int main( int argc, const char** argv )
|
||||
}
|
||||
|
||||
waitKey(5);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
cout << endl << "---------------------" << endl;
|
||||
@@ -319,14 +312,11 @@ int main( int argc, const char** argv )
|
||||
|
||||
imshow("Current LP", frame);
|
||||
waitKey(5);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
outputdatafile.close();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void outputStats(vector<double> datapoints)
|
||||
@@ -341,5 +331,4 @@ void outputStats(vector<double> datapoints)
|
||||
double stdev = std::sqrt(sq_sum / datapoints.size());
|
||||
|
||||
cout << "\t" << datapoints.size() << " samples, avg: " << mean << "ms, stdev: " << stdev << endl;
|
||||
|
||||
}
|
||||
|
@@ -66,7 +66,6 @@ vector<char> showCharSelection(Mat image, vector<Rect> charRegions, string state
|
||||
|
||||
int main( int argc, const char** argv )
|
||||
{
|
||||
|
||||
string inDir;
|
||||
string outDir;
|
||||
Mat frame;
|
||||
@@ -76,7 +75,6 @@ int main( int argc, const char** argv )
|
||||
{
|
||||
inDir = argv[1];
|
||||
outDir = argv[2];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -227,7 +225,6 @@ int main( int argc, const char** argv )
|
||||
// Save
|
||||
if (somethingSelected && chardataTagged)
|
||||
{
|
||||
|
||||
for (int c = 0; c < charSegmenter.characters.size(); c++)
|
||||
{
|
||||
if (humanInputs[c] == ' ')
|
||||
@@ -253,19 +250,15 @@ int main( int argc, const char** argv )
|
||||
}
|
||||
|
||||
waitkey = (char) waitKey(50);
|
||||
|
||||
}
|
||||
|
||||
if (waitkey == 'p')
|
||||
i = i - 2;
|
||||
if (i < -1)
|
||||
i = -1;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void showDashboard(vector<Mat> images, vector<bool> selectedImages, int selectedIndex)
|
||||
@@ -351,7 +344,6 @@ vector<char> showCharSelection(Mat image, vector<Rect> charRegions, string state
|
||||
if (humanInputs[i] != (char) SPACE_KEY)
|
||||
cout << "Tagged " << state << " char code: '" << humanInputs[i] << "' at char position: " << i << endl;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
destroyWindow("Character selector");
|
||||
|
@@ -33,14 +33,12 @@ using namespace cv;
|
||||
// Also creates a box file so Tesseract can recognize it
|
||||
int main( int argc, const char** argv )
|
||||
{
|
||||
|
||||
string inDir;
|
||||
|
||||
//Check if user specify image to process
|
||||
if(argc == 2)
|
||||
{
|
||||
inDir = argv[1];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -149,15 +147,11 @@ int main( int argc, const char** argv )
|
||||
//imshow("characterImg", cropped);
|
||||
|
||||
waitKey(2);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
imwrite("combined.tif", bigTif);
|
||||
ofstream boxFile("combined.box", std::ios::out);
|
||||
boxFile << boxFileOut.str();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -40,7 +40,6 @@ bool detectPlate( StateIdentifier* identifier, Mat frame);
|
||||
|
||||
int main( int argc, const char** argv )
|
||||
{
|
||||
|
||||
string inDir;
|
||||
string outDir;
|
||||
Mat frame;
|
||||
@@ -51,7 +50,6 @@ int main( int argc, const char** argv )
|
||||
inDir = argv[1];
|
||||
outDir = argv[2];
|
||||
outDir = outDir + "/";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -107,10 +105,8 @@ int main( int argc, const char** argv )
|
||||
else
|
||||
waitKey(50);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool detectPlate( StateIdentifier* identifier, Mat frame);
|
||||
|
Reference in New Issue
Block a user