Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility of ver 4.9 with .Net 7.0 #1665

Open
sirfana opened this issue Apr 23, 2024 · 0 comments
Open

Compatibility of ver 4.9 with .Net 7.0 #1665

sirfana opened this issue Apr 23, 2024 · 0 comments

Comments

@sirfana
Copy link

sirfana commented Apr 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant