Giter VIP home page Giter VIP logo

Comments (11)

padeler avatar padeler commented on June 12, 2024

Hello,

Typically the issue here is a missconfigured openni installation. However since the NiViewer is working fine there are two possible couses:

  1. You have 32bit openni installation (64bit is required)
  2. Your camera is connected on a USB bus that is used by other devices as well. The NiViewer starts the camera on QVGA resolution for both streams while the HandTracker starts is on VGA resolution. If the USB bus is used by another device the bandwidth is not enough for the streaming for 2 VGA streams at 30fps.

Try setting the NiViewer to VGA for both streams and see if the camera still works normally.
Try changing the USB port where the camera is connected. Make sure it is the only device on the bus.

from handtracker.

rongfeng-china avatar rongfeng-china commented on June 12, 2024

Hi, @padeler

I have the same "Openni Error" and NiViewer is running well...
My system setting is Ubuntu 16.04, openni 1.5.4, and my camera is Asus Pro.

I only used one USB port and tried "lsusb" command:
screenshot from 2016-08-19 21-54-37

Do you know what problem may cause the error? Thanks...

from handtracker.

gsiriani avatar gsiriani commented on June 12, 2024

Hi, I'm having the exact same issue here.
I also noticed there is a weird path in the error message:
/home/padeler/work/mbv/release_libs/src/mbv/Acquisition/OpenNIGrabber/OpenNIGrabber.cpp
It's in the second error in liming0791's reported output.
Shouldn't that path point to the local installation?
Thanks

from handtracker.

padeler avatar padeler commented on June 12, 2024

@gsiriani can you check if the NiViewer works when both streams are set to VGA resolution (see second bullet on my original reply). The error message is normal. It refers to the source not the local installation.

from handtracker.

gsiriani avatar gsiriani commented on June 12, 2024

@padeler I set both streams to VGA. The camera still works fine, but i keep getting the same issue when executing the script

from handtracker.

padeler avatar padeler commented on June 12, 2024

Do you get the same issue when you try to open the camera and when you try to open an "oni" recording?

from handtracker.

yayo13 avatar yayo13 commented on June 12, 2024

@padeler I have the same issue with @liming0791 . i've tried on windows & Ubuntu with different usb port but all get OpenNI error. Besides, NiViewer works fine...
And, could u teach me how to set NiViewer to VGA res?

from handtracker.

MarekStojecki avatar MarekStojecki commented on June 12, 2024

@yayo13 open NiViewer and click right mouse button you should see a menu.
@padeler I have the same problem as gsiriani. NiViewer works fine although I get the "OpenNI error. Function Failed" when I try to open an "oni" recording. Could you please provide any suggestion how to fix it? Many Thanks.

from handtracker.

padeler avatar padeler commented on June 12, 2024

@MarekStojecki Maybe you don't have the correct version of openni installed? I have never encountered an issue while grabbing from an "oni" file.

If you cannot get your camera to work with our grabber you can always supply the depth and rgb images directly to the tracker, check the python script comments for details.

from handtracker.

MarekStojecki avatar MarekStojecki commented on June 12, 2024

@padeler Ok. Thank you. I'm using Openni 1.5.4 but probably I'll write my own grabber as you suggested.

from handtracker.

xinleiz avatar xinleiz commented on June 12, 2024

Same issue here.
Solved it by modifying the code in line 90 from
oniPath = 'loop.oni'
to
oniPath = ''
and it worked.
Maybe give it a try will help.

Best luck

from handtracker.

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.