Skip to content
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

findContours bug? #8

Open
liupgd opened this issue Sep 24, 2021 · 2 comments
Open

findContours bug? #8

liupgd opened this issue Sep 24, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@liupgd
Copy link

liupgd commented Sep 24, 2021

using OpenCV
const cv = OpenCV
...
contours = cv.findContours(threshImgBlr2, cv.RETR_LIST, cv.CHAIN_APPROX_NONE)

output:

ERROR: MethodError: no method matching jlopencv_core_Mat_mutable_data(::OpenCV.CxxMatDereferenced)
Closest candidates are:
jlopencv_core_Mat_mutable_data(::Union{CxxWrap.CxxWrapCore.SmartPointer{T2}, T2} where T2<:OpenCV.CxxMatAllocated) at /home/.../.julia/packages/CxxWrap/OcN1Z/src/CxxWrap.jl:618
Stacktrace:
[1] cpp_to_julia(mat::OpenCV.CxxMatDereferenced)
@ OpenCV ~/.julia/artifacts/7f7ecae944127299b78b8a360c8b5a5f94df8b2f/OpenCV/src/mat_conversion.jl:20
[2] cpp_to_julia
@ ~/.julia/artifacts/7f7ecae944127299b78b8a360c8b5a5f94df8b2f/OpenCV/src/mat_conversion.jl:103 [inlined]
[3] cpp_to_julia
@ ~/.julia/artifacts/7f7ecae944127299b78b8a360c8b5a5f94df8b2f/OpenCV/src/cv_cxx.jl:38 [inlined]
[4] findContours
@ ~/.julia/artifacts/7f7ecae944127299b78b8a360c8b5a5f94df8b2f/OpenCV/src/cv_cxx_wrap.jl:2232 [inlined]
[5] #findContours#226
@ ~/.julia/artifacts/7f7ecae944127299b78b8a360c8b5a5f94df8b2f/OpenCV/src/cv_cxx_wrap.jl:2234 [inlined]
[6] findContours(image::OpenCV.Mat{UInt8}, mode::Int32, method::Int32)
@ OpenCV ~/.julia/artifacts/7f7ecae944127299b78b8a360c8b5a5f94df8b2f/OpenCV/src/cv_cxx_wrap.jl:2234
[7] top-level scope
@ REPL[220]:1

Thx

@rakeshksr
Copy link
Member

@liupgd Does this issue still continue to persist?

@rakeshksr rakeshksr added the bug Something isn't working label Oct 30, 2024
@rakeshksr
Copy link
Member

Related issue opencv/opencv_contrib#2788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants