shimat / opencvsharp

OpenCV wrapper for .NET
Apache License 2.0
5.39k stars 1.15k forks source link

Camera does not open in .NET 6 WPF #1508

Closed dca00 closed 1 year ago

dca00 commented 1 year ago

Porting a .NET 4.8 Winforms app that uses OpenCVSharp4 to WPF. Both now use the same nuget package 4.0.20220628. The same code that opens camera #0 in Winforms 4.8 does not open the camera in WPF 6.0.

VideoCapture.Open(0, VideoCaptureApis.ANY);

Has no effect. The camera light stays off, and the captured frame is empty.

What is the path to migrating to .NET 6?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

alatriste-lee commented 1 month ago

x86 same asking,x64 and any are ok

4.10.0.20240616