mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 18:42:48 +08:00
Fixed sleep_ms to use ms rather than microseconds
This commit is contained in:
@@ -155,7 +155,7 @@ int main( int argc, const char** argv )
|
|||||||
while (cap.read(frame))
|
while (cap.read(frame))
|
||||||
{
|
{
|
||||||
detectandshow(&alpr, frame, "", outputJson);
|
detectandshow(&alpr, frame, "", outputJson);
|
||||||
sleep_ms(1000);
|
sleep_ms(10);
|
||||||
framenum++;
|
framenum++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -180,7 +180,7 @@ int main( int argc, const char** argv )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sleep 10ms
|
// Sleep 10ms
|
||||||
sleep_ms(10000);
|
sleep_ms(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
videoBuffer.disconnect();
|
videoBuffer.disconnect();
|
||||||
@@ -208,7 +208,7 @@ int main( int argc, const char** argv )
|
|||||||
|
|
||||||
detectandshow( &alpr, frame, "", outputJson);
|
detectandshow( &alpr, frame, "", outputJson);
|
||||||
//create a 1ms delay
|
//create a 1ms delay
|
||||||
sleep_ms(1000);
|
sleep_ms(1);
|
||||||
framenum++;
|
framenum++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -135,7 +135,7 @@ void imageCollectionThread(void* arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Delay 1 second
|
// Delay 1 second
|
||||||
sleep_ms(1000000);
|
sleep_ms(1000);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -189,10 +189,10 @@ void getALPRImages(cv::VideoCapture cap, VideoDispatcher* dispatcher)
|
|||||||
|
|
||||||
|
|
||||||
// Delay 15ms
|
// Delay 15ms
|
||||||
sleep_ms(15000);
|
sleep_ms(15);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delay 100ms
|
// Delay 100ms
|
||||||
sleep_ms(100000);
|
sleep_ms(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user