-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Serializing OpenCV Mat problem #1070
Comments
I did not find the time to check the first issue so far. But since the parameter is a const reference, there should not be any change. (Maybe @theodelrieu has an idea) On the second issue: the |
What makes the code throw exactly? Could you post the code leading to |
@ArkadiuszRaj Could you provide more information? |
Hello, exactly as stated in first example.
But...
What additional info do you need? |
Ok I got it, Please take a look at the readme section about third party types, you have to specialize |
That is true. I have populated other types in ADL but not Mat. |
Thanks! |
Hello,
Trying to serialise Mat object taken from camera
Of course specialised serializer is prepared, for the sake of clarity only one Mat depth is shown:
But code throws:
It seems that somewhere under the hood the Mat type is changed while calling serializer.
But code works when I am explicitly calling serializer by myself:
Why first version does not?
Additionally, while pushing to array, json dump() (or serializing to stream in general) puts single value per line, making file unreadable. Is there possibility to set number of values per line?
And can I serialize in such a way 3Mpx image? yes, finally I will put some base64 encoding yet still I need to serialize full image from time to time
The text was updated successfully, but these errors were encountered: