Skip to content

[UWP] VideoCapture.open(0) throws "error: (-215:Assertion failed) !info.backendFactory.empty()". #20514

@utibenkei

Description

@utibenkei
System information (version)
  • OpenCV => 4.5.3
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2017
Detailed description

I get the same error as this issue (#19910 ).

VideoCapture.open(0) throws "error: (-215:Assertion failed) !info.backendFactory.empty()".

terminating with uncaught exception of type cv::Exception: OpenCV(4.5.2-dev) /Users/satoo/opencv/ios/opencv/modules/videoio/src/cap.cpp:239: error: (-215:Assertion failed) !info.backendFactory.empty() in function 'open'

The same error occurs with the following method.
bool VideoCapture::open(const String& filename, int apiPreference)
bool VideoWriter::open(const String& filename, int _fourcc, double fps, Size frameSize, bool isColor)

This commit may be the cause.
e705414

Steps to reproduce
  1. build dll files.
    setup_winrt.bat "WS" "10.0" "x64"
  2. call cap.open(0);
Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions