Fixed sleep_ms to use ms rather than microseconds

This commit is contained in:
Matt Hill
2014-08-28 07:29:46 -04:00
parent 583e85c036
commit 34e00793eb
2 changed files with 6 additions and 6 deletions

View File

@@ -155,7 +155,7 @@ int main( int argc, const char** argv )
while (cap.read(frame))
{
detectandshow(&alpr, frame, "", outputJson);
sleep_ms(1000);
sleep_ms(10);
framenum++;
}
}
@@ -180,7 +180,7 @@ int main( int argc, const char** argv )
}
// Sleep 10ms
sleep_ms(10000);
sleep_ms(10);
}
videoBuffer.disconnect();
@@ -208,7 +208,7 @@ int main( int argc, const char** argv )
detectandshow( &alpr, frame, "", outputJson);
//create a 1ms delay
sleep_ms(1000);
sleep_ms(1);
framenum++;
}
}

View File

@@ -135,7 +135,7 @@ void imageCollectionThread(void* arg)
}
// Delay 1 second
sleep_ms(1000000);
sleep_ms(1000);
}
@@ -189,10 +189,10 @@ void getALPRImages(cv::VideoCapture cap, VideoDispatcher* dispatcher)
// Delay 15ms
sleep_ms(15000);
sleep_ms(15);
}
// Delay 100ms
sleep_ms(100000);
sleep_ms(100);
}
}