Comments (4)
This could be documented better. Both in our wrapper and on the official SDK.
See functions save_calibration_json
and load_calibration_json
Line 74 in 6d1355a
Line 78 in 6d1355a
You should use save_calibration_json
first to have a template.
An example can be found here: https://github.com/etiennedub/pyk4a/blob/6d1355a1ee994fddcabb48501586b058671c9443/tests/assets/calibration.json
from pyk4a.
可以更好地记录下来。 无论是在我们的包装中还是在官方SDK中。
查看功能
save_calibration_json
和load_calibration_json
Line 74 in 6d1355a
Line 78 in 6d1355a
您应该 使用
save_calibration_json
首先 一个模板。
可以在这里找到一个示例: : https //github.com/etiennedub/pyk4a/blob/6d1355a1ee994fddcabb48501586b058671c9443/tests/assets/calibration.json
@lpasselin
I try to change some data manually, and try to use k4a. load_ calibration_ json
to read the data of "JSON" in the path I specified. And k4a.calibration_raw
is printed with print
There is no change in the attribute of k4a.calibration_raw
.
In addition, through k4a.save_calibration_json
saves "JSON" data, it is effective. It changes the original "json" data (but the style becomes only one line of code instead of the style of the template you gave me).
I will k4a.load_calibration_json
in the main function, I found that he successfully printed my modified "json", but this method still can't change k4a.calibration_raw
Maybe my usage is wrong. Can you give me an example?
from pyk4a.
You can use high level api: create Calibration from string and then use it for image transformation or coordinates translation
calibration = Calibration.from_raw(json_string, DepthMode.NFOV_UNBINNED, ColorResolution.RES_1080P)
transormed_image = depth_image_to_color_camera(depth_image, calibration)
color_x, color_y, color_z = calibration.depth_to_color_3d((depth_x, depth_y, depth_z)) # 3d coordinates from Depth camera space to Color camera space
from pyk4a.
您可以使用高级api:根据字符串创建校准,然后将其用于图像转换或坐标转换
calibration = Calibration.from_raw(json_string, DepthMode.NFOV_UNBINNED, ColorResolution.RES_1080P) transormed_image = depth_image_to_color_camera(depth_image, calibration) color_x, color_y, color_z = calibration.depth_to_color_3d((depth_x, depth_y, depth_z)) # 3d coordinates from Depth camera space to Color camera space
Thank you for your reply, this method is effective.
from pyk4a.
Related Issues (20)
- why the coordinate of the depth camera is the opposite of the RGB? HOT 1
- missing system timestamp for depth and color image during playback HOT 2
- Unable to set LD_LIBRARY_PATH for pyk4a HOT 2
- Error with transformations in recorded file (playback): color frame not BGRA32 HOT 19
- get trajectory data on the fly HOT 1
- Misalignment of depth_image_to_color_camera? HOT 7
- May solve the problem of "cannot import k4a_module" HOT 3
- issue with depth capture HOT 2
- pip install fails on Ubuntu 20.04.4 with "k4a/k4a.h: No such file or directory" HOT 4
- Error installing the py4ak lib HOT 4
- How to record multiple azure kinects HOT 1
- Get Exposure and ISO values in playback HOT 6
- Function "color_image_to_depth_camera" not working HOT 2
- errors when config the depth_mode of the pyk4a as WFOV_UNBINNED HOT 2
- TypeError using with statement to read PyK4APlayback HOT 3
- pyk4a raises an error when Depth mode is set to 0 (Depth is off) HOT 1
- Question about Library HOT 1
- Who knows about [depth_image_to_color_camera_custom]? HOT 1
- Color camera not working with get_capture() in any configuration HOT 12
- How can I get the intrinsic parameters of depth sensor ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyk4a.