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

OpenCV.imwrite fails #6

Closed
AndreasAZiegler opened this issue Sep 15, 2021 · 2 comments
Closed

OpenCV.imwrite fails #6

AndreasAZiegler opened this issue Sep 15, 2021 · 2 comments

Comments

@AndreasAZiegler
Copy link

I have the following code:

using OpenCV;
const cv = OpenCV;
img = cv.imread("../../debug/roi_frame_0.png");
filename = "../../debug/roi_frame_processed_" * string(0) * ".png";
cv.imwrite(filename, img);

and get the following error:

ERROR: MethodError: no method matching var"#imwrite#245"(::CxxWrap.StdLib.StdVectorAllocated{Int32}, ::typeof(OpenCV.imwrite), ::String, ::OpenCV.Mat{UInt8})
Closest candidates are:
  var"#imwrite#245"(::Vector{Int32}, ::typeof(OpenCV.imwrite), ::String, ::Union{OpenCV.CxxMat, AbstractArray{T, 3} where T<:Union{Float32, Float64, Int16, Int32, Int8, UInt16, UInt8}}) at /home/andreasziegler/.julia/artifacts/7f7ecae944127299b78b8a360c8b5a5f94df8b2f/OpenCV/src/cv_cxx_wrap.jl:2345
Stacktrace:
 [1] imwrite(filename::String, img::OpenCV.Mat{UInt8})
   @ OpenCV ~/.julia/artifacts/7f7ecae944127299b78b8a360c8b5a5f94df8b2f/OpenCV/src/cv_cxx_wrap.jl:2345
 [2] top-level scope
@archit120
Copy link
Member

This should be fixed once opencv/opencv_contrib#3009 is merged.

@rakeshksr
Copy link
Member

Not reproducible in latest version(v4.6.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants