Skip to content

What does this algorithm do? Convert Mat (OPENCV) to base64, and vise-versa.

Notifications You must be signed in to change notification settings

RonnyldoSilva/OpenCV_Mat_to_Base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mat to Base64 and Base64 to Mat (OPENCV C++)

What does this algorithm do?

Convert Mat (OPENCV) to base64, and vise-versa.

What is Base64?

Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The term Base64 originates from a specific MIME content transfer encoding.

Each base64 digit represents exactly 6 bits of data. Three 8-bit bytes (i.e., a total of 24 bits) can therefore be represented by four 6-bit base64 digits.

What is Mat?

Mat is basically a class with two data parts: the matrix header (containing information such as the size of the matrix, the method used for storing, at which address is the matrix stored, and so on) and a pointer to the matrix containing the pixel values (taking any dimensionality depending on the method chosen for storing). The matrix header size is constant, however the size of the matrix itself may vary from image to image and usually is larger by orders of magnitude.

About

What does this algorithm do? Convert Mat (OPENCV) to base64, and vise-versa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages