Skip to content

Question: OpenCV.Mat creation from buffer #38

@dhombios

Description

@dhombios

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions