You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh yeah, forgot to mention that, the uchar is from opencv typedef unsigned char uchar.
And I guess the encoding is the whole problem here since the unsigned char actually represent intensity values for each pixel and channel in the range of 0-255. I guess if I want to encode that information into a json string, I'd have to map these values to valid utf-8 byte codes.
I ended up encoding the image to .jpg and create a base64 from that which I can add to the json without any issues.
What is the issue you have?
Using the json::parse() function with uchar* yields in a parsing error for the very first character.
Please describe the steps to reproduce the issue.
What is the expected behavior?
A parsed img string can be added to the json object such as:
And what is the actual behavior instead?
Getting this error:
Which compiler and operating system are you using?
GCC v7.4, Linux Mint 19
Did you use a released version of the library or the version from the
develop
branch?Release version: 3.7.3
The text was updated successfully, but these errors were encountered: