Closed kipcole9 closed 1 year ago
I'll check Evision.VideoIORegistry
related functions. getBackendName
and hasBackend
shouldn't be expecting a list as their input.
I did try with a single integer argument with a different error result:
iex> Evision.VideoCapture.getBackendName 1900
{:error,
"cannot get `Ptr<cv::VideoCapture>` from `self`: mismatched type or invalid resource?"}
Evision.VideoCapture.getBackendName
returns the backend name that is currently used by an Evision.VideoCapture
instance. It's an instance method so you need to pass in an Evision.VideoCapture.t()
When looking to identify the configured VideoCapture backends it seems there is a documentation mismatch or API error in
Evision.VideoIORegistry.getBackendName/1
.The spec for
Evision.VideoIORegistry.getBackendName/1
reads:So I expected that passing the output of
Evision.VideoIORegistry.getBackends/0
would be acceptable. I also tried a single backend number like[1900]
with the same error result: