Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3556

Camera board • Re: Base 64 encode image from libcamera

$
0
0
Thank you for your replies!

Yes, there are libraries able to do base64 encoding out of the box. In my first post in this topic I also mentioned the one I usually use.

The problem is that I see that the image data coming from the camera is contained in a

Code:

std::vector<libcamera::Span<uint8_t>>
that I would like to convert to a

Code:

std::vector<uchar> 
then I can pass that for example to the library I posted the linnk in my first post in this topic or to the code suggested in the previous answer.

Is this possible? I know maybe this is more a programming-related question and not a Raspberry-related question, but I'm not really sure how to handle that

Code:

libcamera::Span
type.

Statistics: Posted by gev_u — Thu Aug 29, 2024 8:23 pm



Viewing all articles
Browse latest Browse all 3556

Trending Articles