mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 21:53:01 +08:00
Added jpg images to benchmark
This commit is contained in:
@@ -92,7 +92,7 @@ int main( int argc, const char** argv )
|
||||
|
||||
for (int i = 0; i< files.size(); i++)
|
||||
{
|
||||
if (hasEnding(files[i], ".png"))
|
||||
if (hasEnding(files[i], ".png") || hasEnding(files[i], ".jpg"))
|
||||
{
|
||||
string fullpath = inDir + "/" + files[i];
|
||||
|
||||
@@ -150,7 +150,7 @@ int main( int argc, const char** argv )
|
||||
|
||||
for (int i = 0; i< files.size(); i++)
|
||||
{
|
||||
if (hasEnding(files[i], ".png"))
|
||||
if (hasEnding(files[i], ".png") || hasEnding(files[i], ".jpg"))
|
||||
{
|
||||
string fullpath = inDir + "/" + files[i];
|
||||
frame = imread( fullpath.c_str() );
|
||||
@@ -190,7 +190,7 @@ int main( int argc, const char** argv )
|
||||
|
||||
for (int i = 0; i< files.size(); i++)
|
||||
{
|
||||
if (hasEnding(files[i], ".png"))
|
||||
if (hasEnding(files[i], ".png") || hasEnding(files[i], ".jpg"))
|
||||
{
|
||||
cout << "Image: " << files[i] << endl;
|
||||
|
||||
|
Reference in New Issue
Block a user