Giter Site home page Giter Site logo

Comments (3)

KonstantinosAng avatar KonstantinosAng commented on July 21, 2024 1

I cannot say for sure what is going on, as when calling the depth_point_2_world_point function I just call the Kinect's transformation function MapDepthPointToCameraSpace and return the values, so I cannot know for sure what this function does internally.

But what I know is that the depth point is actually the z (distance from the Kinect Sensor) so you can actually get the z value like this:

if (int(depth_y) * 512 + int(depth_x)) < 512 * 424:
world_z = float(depth[int(depth_y) * 512 + int(depth_x)]) # mm

where depth is just:

depth = kinect.get_last_depth_frame()

from pykinect2-mapper-functions.

Yudh0B avatar Yudh0B commented on July 21, 2024

image

I happened to get the same problem, if i just get the depth_z it can be more accurate but it also isnt that accurate as you can see below

image

the image above is the output of color x,y and depth_z, noted that the object is a person's face mask and it's not moving that much considering the change in the depth_z is huge, and one more thing the object that's detected isnt 5 or 6 meters away, instead it's just about 1,5 meters away from the kinect.

from pykinect2-mapper-functions.

KonstantinosAng avatar KonstantinosAng commented on July 21, 2024

The Kinect's sensor is very sensible, you cannot simply trust the raw data of Kinect, you have to apply a filter (most of the time Kalman filters) to smooth and reduce the Kinect's noise.

from pykinect2-mapper-functions.

Related Issues (13)

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.