Before connecting with the string url, check to see if the string is actually an integer and, if it is, convert it to an integer before passing it into VideoCapture::open() since OpenCV accepts a connection string or device integer id for connections
Before connecting with the string url, check to see if the string is actually an integer and, if it is, convert it to an integer before passing it into
VideoCapture::open()
since OpenCV accepts a connection string or device integer id for connections