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

Question: OpenCV.Mat creation from buffer #38

Open
dhombios opened this issue Mar 15, 2024 · 0 comments
Open

Question: OpenCV.Mat creation from buffer #38

dhombios opened this issue Mar 15, 2024 · 0 comments
Labels
question Further information is requested

Comments

@dhombios
Copy link

I'm trying to load an image stored in a buffer to OpenCV in Julia. In order to achieve that, I'm reading the buffer using take! function, obtaining a Vector{UInt8} type as a result.

However, when trying to create the image from that vector using OpenCV.Mat{UInt8}(1, size(vector), OpenCV.CV_8U, vector), an error is raised as there is no method matching that call. The closest method Julia finds is OpenCV.Mat{T}(::Any, !Matched::AbstractArray(T,3)).

Does OpenCV.jl support creating Mat objects from unidimensional buffers?

@rakeshksr rakeshksr added the question Further information is requested label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants