-
Notifications
You must be signed in to change notification settings - Fork 7
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
From cv2.Mat to image #65
Comments
session content:
|
Hi, @kilievich-dmitriy-andreevich When attempting to run the ONNX session, you should send the following JSON as the post data: {
"images": [
// shape 1
[
// shape 3
[
// shape 1024
[
//shape 1024
0,0,0,0,0,0, ... // 1024 float numbers
],
[
//shape 1024
0,0,0,0,0,0, ... // 1024 float numbers
],
[
//shape 1024
0,0,0,0,0,0, ... // 1024 float numbers
],
... // 1024 arrays
],
[
// shape 1024
[
//shape 1024
0,0,0,0,0,0, ... // 1024 float numbers
],
[
//shape 1024
0,0,0,0,0,0, ... // 1024 float numbers
],
[
//shape 1024
0,0,0,0,0,0, ... // 1024 float numbers
],
... // 1024 arrays
],
[
// shape 1024
[
//shape 1024
0,0,0,0,0,0, ... // 1024 float numbers
],
[
//shape 1024
0,0,0,0,0,0, ... // 1024 float numbers
],
[
//shape 1024
0,0,0,0,0,0, ... // 1024 float numbers
],
... // 1024 arrays
]
]
]
} There is a (1024, 1024) shape in the data, which I assume refers to the width or height of the image. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello dear developers!
I ran into a problem when converting cv2.Mat in the picture
As I understand from your example,
what (x y z) these are (R G B) colors. I'm converting an image like in example, but I get an error:
Do you have any Python code that would be an example of checking from Mat images to json? Thank you in advance
The text was updated successfully, but these errors were encountered: