-
Notifications
You must be signed in to change notification settings - Fork 14
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
Type signature issue with "polylines" #18
Comments
Hey @MontyTHall2, could you share your demos? |
I'm running into a similar issue with OpenCV.fillPoly. I cannot determine a data type that successfully dispatches as a Vector{InputArray}. Given that InputArray is julia> OpenCV.InputArray
Union{OpenCV.CxxMat, AbstractArray{T, 3} where T<:Union{Float32, Float64, Int16, Int32, Int8, UInt16, UInt8}} I'm wondering if this is related to : julia> Vector{Float64} <: Vector{Real}
false
julia> Vector{Float64} <: Vector{<:Real}
true For example. julia> Vector{Array{Int32, 3}} <: Vector{OpenCV.InputArray}
false
julia> Vector{Array{Int32, 3}} <: Vector{<:OpenCV.InputArray}
true I'm not familiar with CxxWrap.jl and I think digging deeper into how the function arguments are defined is beyond my Julia knowledge at the moment. |
I am also facing similar issue with
|
I am having the same issue with I fixed the
in
(Note the added However contours are not detected correctly. |
Experienced similar issue when using the function |
So far, everything seems to be working. I'm converting some OpenCV C++ demos to Julia OpenCV. I'm having problems with the "polylines", in particular the second argument isn't matching.
I'm passing "Vector{Array{Int32, 3}}" but it's not matching with the second argument. Here's the error:
ERROR: LoadError: MethodError: no method matching polylines(::OpenCV.Mat{UInt8}, ::Vector{Array{Int32, 3}}, ::Bool, ::Tuple{Int64, Int64, Int64}; thickness=5)
Closest candidates are:
polylines(::Union{OpenCV.CxxMat, AbstractArray{T, 3} where T<:Union{Float32, Float64, Int16, Int32, Int8, UInt16, UInt8}}, ::Vector{Union{OpenCV.CxxMat, AbstractArray{T, 3} where T<:Union{Float32, Float64, Int16, Int32, Int8, UInt16, UInt8}}}, ::Bool, ::Union{Tuple{}, Tuple{Number}, Tuple{Number, Number}, Tuple{Number, Number, Number}, NTuple{4, Number}}; thickness, lineType, shift) at ~/.julia/artifacts/365b03f782c1e4bef434b771da708a9d46aeb711/OpenCV/src/cv_cxx_wrap.jl:1902
I'm learning Julia and was on the discord server. The comments that I'm getting is that the signature isn't quite right. They're suggesting: "Vector{<:cv.InputArray}".
Here's the source code:
Was playing around and saw the following
The text was updated successfully, but these errors were encountered: