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
Describe the bug
Sometimes when I use pyk4a to get the calibration object from the camera, I get the error 'utf-8' codec can't decode bytes in position 4297-4298: invalid continuation byte
To Reproduce
Run the following code (with appropriate changes to "K4A_DLL_DIR" several times, making sure to restart the python kernel between attempts.
@jbrownkramer Hello, we have reproduced the code you provided and did not find any errors. I suggest that you run the code after specifying the Python file encoding format as utf-8. For example, if you encounter any problems at the file header, please feel free to contact us.
Did you try running the code several times? It does not fail every time, so the byte string being returned from the camera is inconsistent.
If you look at the error in the screenshot I provided, you will see that python is attempting to decode the byte string as utf-8 encoded, but failing because the bytes being returned from the camera are (sometimes) not proper utf-8.
Describe the bug
Sometimes when I use pyk4a to get the calibration object from the camera, I get the error
'utf-8' codec can't decode bytes in position 4297-4298: invalid continuation byte
To Reproduce
Run the following code (with appropriate changes to "K4A_DLL_DIR" several times, making sure to restart the python kernel between attempts.
Expected behavior
Should always return a string with the calibration json.
Logs
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: