cocoa-xu / evision

Evision: An OpenCV-Erlang/Elixir binding
https://evision.app
Apache License 2.0
323 stars 22 forks source link

Evision.VideoCapture.set/3 type inconsistent with retval #167

Closed kipcole9 closed 1 year ago

kipcole9 commented 1 year ago

Tested on Evision 0.1.26-rc.2:

The type signature for Evision.VideoCapture.set/3 is:

@spec set(t(), integer(), number()) :: t() | {:error, String.t()}

However the retval is actually boolean() | {:error, String.t()}. The @doc also notes the return code is a boolean.

cocoa-xu commented 1 year ago

Hi @kipcole9, thanks for reporting this issue! I'll look into it and fix it in the next version. :)