added support for V4L2CAM

This commit is contained in:
jario
2023-11-27 18:05:20 +08:00
parent ae21d40e2b
commit 4e4a479b08
3 changed files with 12 additions and 4 deletions

View File

@@ -1110,7 +1110,7 @@ void CameraBase::_run()
}
bool CameraBase::read(cv::Mat& image)
{
if (this->_type == CameraType::WEBCAM || this->_type == CameraType::G1 || this->_type == CameraType::MIPI)
if (this->_type != CameraType::NONE)
{
int n_try = 0;
while (n_try < 5000)