My apologies i could not find an option to ask a question so putting it here. I have recently migrated my Windows Forms app from .Net Framework 4.7 to .Net 7.0 and my code no longer works with cameras to capture images. Now Open() method is returning false:
int camera = 0;
this.f_frame = new Mat();
this.f_capture = new VideoCapture(camera, VideoCaptureAPIs.ANY);
bool CamOpenStatus = this.f_capture.Open(camera);
Plz suggest a fix, if there is any. Thanks.
Windows 11, C#, In settings, apps can access camera
My apologies i could not find an option to ask a question so putting it here. I have recently migrated my Windows Forms app from .Net Framework 4.7 to .Net 7.0 and my code no longer works with cameras to capture images. Now Open() method is returning false: int camera = 0; this.f_frame = new Mat(); this.f_capture = new VideoCapture(camera, VideoCaptureAPIs.ANY); bool CamOpenStatus = this.f_capture.Open(camera);
Plz suggest a fix, if there is any. Thanks. Windows 11, C#, In settings, apps can access camera