mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-08 19:30:08 +08:00
Tweaked videobuffer to support using video files (for testing)
This commit is contained in:
@@ -46,7 +46,7 @@ VideoDispatcher* VideoBuffer::createDispatcher(std::string mjpeg_url, int fps)
|
|||||||
void VideoBuffer::connect(std::string mjpeg_url, int fps)
|
void VideoBuffer::connect(std::string mjpeg_url, int fps)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (hasEnding(mjpeg_url, ".mjpg") == false)
|
if (startsWith(mjpeg_url, "http") && hasEnding(mjpeg_url, ".mjpg") == false)
|
||||||
{
|
{
|
||||||
// The filename doesn't end with ".mjpg" so the downstream processing may not treat it as such
|
// The filename doesn't end with ".mjpg" so the downstream processing may not treat it as such
|
||||||
// OpenCV doesn't have a way to force the rendering, other than via URL path. So, let's add it to the URL
|
// OpenCV doesn't have a way to force the rendering, other than via URL path. So, let's add it to the URL
|
||||||
|
Reference in New Issue
Block a user