GithubHelp home page GithubHelp logo

Comments (7)

kfarivar avatar kfarivar commented on July 30, 2024 1

I think I have to send the calibration to color_image_to_depth_camera ? and it is a private variable of capture I think.

from pyk4a.

lpasselin avatar lpasselin commented on July 30, 2024

The first loop is probably to clear the first capture, which iirc is sometimes black for capture.color

If an image is badly processed by the SDK or by the C pyk4a code, it is possible capture.depth or capture.color will be None it is why this line is there.

The line is not required if the device configuration is synchronized. In the script, the configuration it is shown here: https://github.com/etiennedub/pyk4a/blob/master/example/viewer_point_cloud.py#L15

You must understand synchronized images are software synchronized. If there are dropped images (depth or color), the capture is not sent when configured as synchronized. More info here:
https://microsoft.github.io/Azure-Kinect-Sensor-SDK/master/structk4a__device__configuration__t_a8208974f05d89fc1362c6a0900bdef4d.html#a8208974f05d89fc1362c6a0900bdef4d

from pyk4a.

kfarivar avatar kfarivar commented on July 30, 2024

Ok thanks it makes more sense.

Regarding the same script I also wanted to know if there is a way of mapping 2D masks/selection (on the image pixels) into the pointcloud. (I segment the objects in 2D and want to map that to the pointcloud) is that possible ?
technically something like the capture.transformed_color method ? or somehow making the color_image_to_depth_camera method public ?

from pyk4a.

lpasselin avatar lpasselin commented on July 30, 2024

I think it is already available with from pyk4a import color_image_to_depth_camera?

from pyk4a.

lpasselin avatar lpasselin commented on July 30, 2024

I noticed a problem with transformed_depth_point_cloud (has color camera reference).
Fixed here: #73
After this PR is merged, you will be able to modify viewer_point_cloud.py to replace capture.depth_point_cloud with capture.transformed_depth_point_cloud and capture.transformed_color with capture.color. Or replace capture.color with your segmentation/mask directly!

from pyk4a.

kfarivar avatar kfarivar commented on July 30, 2024

Ok so after the pull request I can just set my mask as capture.color and then call capture.transformed_color ?

and estimation when the PR will get merged ?

from pyk4a.

lpasselin avatar lpasselin commented on July 30, 2024

from pyk4a.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.