When I use cv:: VideoCapture:: open() to open the camera, it initially works normally. However, if I repeatedly close and open it multiple times, the following error may occur. What may be the reason for this?
ERROR: Could not start graph
[ERROR: 1@201.774 ]Global D: github opencv 4.6.0 modules videoio src cap. cpp (280) cv:: VideoCapture:: open VIDEOIO (DSHOW): raised OpenCV exception:
OpenCV (4.6.0) D: github opencv 4.6.0 modules videoio src backend_ Static. cpp: 26: error: (-213: The function/feature is not implemented) VIDEOIO: Failed to apply invalid or unsupported parameters: [4]=720/720/0x000002d0 in function ‘cv:: applyParametersFallback’