mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 19:26:51 +08:00
Fixed spelling mistakes in comments
This commit is contained in:
@@ -557,12 +557,12 @@ public class JSONTokener {
|
||||
|
||||
/**
|
||||
* Advances past all input up to and including the next occurrence of
|
||||
* {@code thru}. If the remaining input doesn't contain {@code thru}, the
|
||||
* {@code through}. If the remaining input doesn't contain {@code through}, the
|
||||
* input is exhausted.
|
||||
*/
|
||||
public void skipPast(String thru) {
|
||||
int thruStart = in.indexOf(thru, pos);
|
||||
pos = thruStart == -1 ? in.length() : (thruStart + thru.length());
|
||||
public void skipPast(String through) {
|
||||
int throughStart = in.indexOf(through, pos);
|
||||
pos = throughStart == -1 ? in.length() : (throughStart + through.length());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -104,7 +104,7 @@ int main( int argc, const char** argv )
|
||||
|
||||
if (cmd.parse( argc, argv ) == false)
|
||||
{
|
||||
// Error occured while parsing. Exit now.
|
||||
// Error occurred while parsing. Exit now.
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@@ -92,7 +92,7 @@ int main( int argc, const char** argv )
|
||||
|
||||
if (cmd.parse( argc, argv ) == false)
|
||||
{
|
||||
// Error occured while parsing. Exit now.
|
||||
// Error occurred while parsing. Exit now.
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@@ -116,7 +116,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
if (cmd.parse( argc, argv ) == false)
|
||||
{
|
||||
// Error occured while parsing. Exit now.
|
||||
// Error occurred while parsing. Exit now.
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@@ -282,7 +282,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
if (cmd.parse( argc, argv ) == false)
|
||||
{
|
||||
// Error occured while parsing. Exit now.
|
||||
// Error occurred while parsing. Exit now.
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@@ -57,7 +57,7 @@ int main( int argc, const char** argv )
|
||||
|
||||
if (cmd.parse( argc, argv ) == false)
|
||||
{
|
||||
// Error occured while parsing. Exit now.
|
||||
// Error occurred while parsing. Exit now.
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@@ -122,13 +122,13 @@ namespace alpr
|
||||
newLetter.line_index = line_index;
|
||||
newLetter.charposition = charposition;
|
||||
newLetter.letter = letter;
|
||||
newLetter.occurences = 1;
|
||||
newLetter.occurrences = 1;
|
||||
newLetter.totalscore = score;
|
||||
letters[charposition].push_back(newLetter);
|
||||
}
|
||||
else
|
||||
{
|
||||
letters[charposition][existingIndex].occurences = letters[charposition][existingIndex].occurences + 1;
|
||||
letters[charposition][existingIndex].occurrences = letters[charposition][existingIndex].occurrences + 1;
|
||||
letters[charposition][existingIndex].totalscore = letters[charposition][existingIndex].totalscore + score;
|
||||
}
|
||||
}
|
||||
@@ -181,7 +181,7 @@ namespace alpr
|
||||
for (int i = 0; i < letters.size(); i++)
|
||||
{
|
||||
for (int j = 0; j < letters[i].size(); j++)
|
||||
cout << "PostProcess Line " << letters[i][j].line_index << " Letter: " << letters[i][j].charposition << " " << letters[i][j].letter << " -- score: " << letters[i][j].totalscore << " -- occurences: " << letters[i][j].occurences << endl;
|
||||
cout << "PostProcess Line " << letters[i][j].line_index << " Letter: " << letters[i][j].charposition << " " << letters[i][j].letter << " -- score: " << letters[i][j].totalscore << " -- occurrences: " << letters[i][j].occurrences << endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ namespace alpr
|
||||
{
|
||||
if (letters[i].size() > 0)
|
||||
{
|
||||
totalScore += (letters[i][0].totalscore / letters[i][0].occurences) + config->postProcessMinConfidence;
|
||||
totalScore += (letters[i][0].totalscore / letters[i][0].occurrences) + config->postProcessMinConfidence;
|
||||
numScores++;
|
||||
}
|
||||
}
|
||||
|
@@ -43,7 +43,7 @@ namespace alpr
|
||||
int line_index;
|
||||
int charposition;
|
||||
float totalscore;
|
||||
int occurences;
|
||||
int occurrences;
|
||||
};
|
||||
|
||||
struct PPResult
|
||||
|
@@ -2972,7 +2972,7 @@ class SI_ConvertW
|
||||
// This uses the Unicode reference implementation to do the
|
||||
// conversion from UTF-8 to wchar_t. The required files are
|
||||
// ConvertUTF.h and ConvertUTF.c which should be included in
|
||||
// the distribution but are publically available from unicode.org
|
||||
// the distribution but are publicly available from unicode.org
|
||||
// at http://www.unicode.org/Public/PROGRAMS/CVTUTF/
|
||||
ConversionResult retval;
|
||||
const UTF8 * pUtf8 = (const UTF8 *) a_pInputData;
|
||||
@@ -3065,7 +3065,7 @@ class SI_ConvertW
|
||||
// This uses the Unicode reference implementation to do the
|
||||
// conversion from wchar_t to UTF-8. The required files are
|
||||
// ConvertUTF.h and ConvertUTF.c which should be included in
|
||||
// the distribution but are publically available from unicode.org
|
||||
// the distribution but are publicly available from unicode.org
|
||||
// at http://www.unicode.org/Public/PROGRAMS/CVTUTF/
|
||||
ConversionResult retval;
|
||||
UTF8 * pUtf8 = (UTF8 *) a_pOutputData;
|
||||
|
@@ -504,7 +504,7 @@ class RE2 {
|
||||
// to string "out".
|
||||
// Returns true on success. This method can fail because of a malformed
|
||||
// rewrite string. CheckRewriteString guarantees that the rewrite will
|
||||
// be sucessful.
|
||||
// be successful.
|
||||
bool Rewrite(string *out,
|
||||
const StringPiece &rewrite,
|
||||
const StringPiece* vec,
|
||||
|
@@ -1294,7 +1294,7 @@ DFA::State* DFA::StateSaver::Restore() {
|
||||
// inline it to create the specialized ones.
|
||||
//
|
||||
// Note that matches are delayed by one byte, to make it easier to
|
||||
// accomodate match conditions depending on the next input byte (like $ and \b).
|
||||
// accommodate match conditions depending on the next input byte (like $ and \b).
|
||||
// When s->next[c]->IsMatch(), it means that there is a match ending just
|
||||
// *before* byte c.
|
||||
|
||||
|
@@ -4224,7 +4224,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
|
||||
|
||||
|
||||
/* These requests allow control to move from the simulated CPU to the
|
||||
real CPU, calling an arbitary function.
|
||||
real CPU, calling an arbitrary function.
|
||||
|
||||
Note that the current ThreadId is inserted as the first argument.
|
||||
So this call:
|
||||
|
@@ -559,7 +559,7 @@ dirent_next(
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The very last entry has been processed or an error occured */
|
||||
/* The very last entry has been processed or an error occurred */
|
||||
FindClose (dirp->handle);
|
||||
dirp->handle = INVALID_HANDLE_VALUE;
|
||||
p = NULL;
|
||||
@@ -837,7 +837,7 @@ dirent_wcstombs_s(
|
||||
{
|
||||
mbstr[n] = '\0';
|
||||
}
|
||||
/* Lenght of resulting multi-bytes string WITH zero-terminator */
|
||||
/* Length of resulting multi-bytes string WITH zero-terminator */
|
||||
if (pReturnValue)
|
||||
{
|
||||
*pReturnValue = n + 1;
|
||||
|
@@ -44,7 +44,7 @@ struct ValueLike
|
||||
|
||||
/**
|
||||
* A string like argument value type is a value that can be set using
|
||||
* operator=(string). Usefull if the value type contains spaces which
|
||||
* operator=(string). Useful if the value type contains spaces which
|
||||
* will be broken up into individual tokens by operator>>.
|
||||
*/
|
||||
struct StringLike
|
||||
|
@@ -120,7 +120,7 @@ class CmdLine : public CmdLineInterface
|
||||
|
||||
/**
|
||||
* A list of Visitors to be explicitly deleted when the destructor
|
||||
* is called. At the moment, these are the Vistors created for the
|
||||
* is called. At the moment, these are the Visitors created for the
|
||||
* default Args.
|
||||
*/
|
||||
std::list<Visitor*> _visitorDeleteOnExitList;
|
||||
|
Reference in New Issue
Block a user