Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8959431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:26:12+00:00 2026-06-15T15:26:12+00:00

I need to find a way to have the kinect only recognize objects in

  • 0

I need to find a way to have the kinect only recognize objects in a certain Range. The problem is that in our setup there will be viewers around the scene who may disturb the tracking. Therefore I need to set the kinect to a range of a few meters so it won’t be disturbed by objects beyond that range. We are using the SimpleOpenNI library for processing.

Is there any possibility to achieve something like that in any way?

Thank you very much in advance.

Matteo

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:26:14+00:00Added an answer on June 15, 2026 at 3:26 pm

    You can get the user’s centre of mass(CoM) which retrieves a x,y,z position for a user without skeleton detection:

    OpenNI user CoM

    Based on the z position you should be able to use a basic if statement for your range/threshold.

    import SimpleOpenNI.*;
    
    SimpleOpenNI context;//OpenNI context
    PVector pos = new PVector();//this will store the position of the user
    ArrayList<Integer> users = new ArrayList<Integer>();//this will keep track of the most recent user added
    float minZ = 1000;
    float maxZ = 1700;
    
    void setup(){
      size(640,480);
      context = new SimpleOpenNI(this);//initialize
      context.enableScene();//enable features we want to use
      context.enableUser(SimpleOpenNI.SKEL_PROFILE_NONE);//enable user events, but no skeleton tracking, needed for the CoM functionality
    }
    void draw(){
      context.update();//update openni
      image(context.sceneImage(),0,0);
      if(users.size() > 0){//if we have at least a user
        for(int user : users){//loop through each one and process
          context.getCoM(user,pos);//store that user's position
          println("user " + user + " is at: " + pos);//print it in the console
          if(pos.z > minZ && pos.z < maxZ){//if the user is within a certain range
            //do something cool 
          }
        }
      }
    }
    //OpenNI basic user events
    void onNewUser(int userId){
      println("detected" + userId);
      users.add(userId);
    }
    void onLostUser(int userId){
      println("lost: " + userId);
      users.remove(userId);
    }
    

    You can find more explanation and hopefully useful tips in these workshop notes I posted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have setup spell checking through WinWord but I need to find a way
I need to find a way to matching the number sequence that I have
EDIT: Solved My problem is that I need to find a way to constantly
I have some pdf documents and I need to find a way to automate
I have more than 5000 image links and I need to find a way
I need to find some way of displaying a drop-down menu that depending on
I have a unique and interesting difficulty: I need to find a way to
I need to find a way to have the multiple choice options in a
I need to find a way to copy a masked bitmap. I have a
I need to find a way to join two XML files when they have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.