Giter VIP home page Giter VIP logo

Comments (9)

David-dp- avatar David-dp- commented on August 17, 2024 1

I solved my problem by changing the position of the sensor and the test person -- instead of having the sensor on a coffee table facing me a meter away while I sat with my laptop in my lap, I put the sensor at the edge of a table and stood 2-3 meters in front of it, while the laptop is angled so I can see the BodyBasics WPF display.

from kinect2.

wouterverweirder avatar wouterverweirder commented on August 17, 2024

will investigate.
Could you post your system configuration + which kinect (preview or final?) + driver version?

from kinect2.

David-dp- avatar David-dp- commented on August 17, 2024

Win 8.1 Pro 64bit
i7 1.8GHz
Driver version 2.0.1410.18000 (Oct 2014)

This is a production Kinectv2fw, not an evaluation unit.

I also verified in the Device Manager that I'm using a USB 3.0 host. And the white and red lights of my sensor have been on the whole time while I replicated this issue just now.

The dll and xml you are redistributing, Microsoft.Kinect.dll and Microsoft.Kinect.xml, are identical to what I have in C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\Assemblies

from kinect2.

David-dp- avatar David-dp- commented on August 17, 2024

Can you suggest a way I can verify that the following does what it should?

this.edge.openBodyReader = edge.func(_.assign({ methodName: 'OpenBodyReader' }, dllProperties));

I used VS Studio Express to look at what the dll exposes, and I couldn't find any 'OpenBodyReader'. I'd expect this module to use BodyFrameReader instead (which is what the Kinect Studio C# example uses, IIRC).

from kinect2.

wouterverweirder avatar wouterverweirder commented on August 17, 2024

The basicexample only runs for 5 seconds. If you don't stand in front of the sensor, you won't see any additional output.

A more visual example is the skeletons-browser:

  • npm install the dependencies inside that directory
  • run with node: node index.js
  • navigate to http://localhost:8000 with chrome. Skeletons of users in front of the sensor will be shown in the browser.

from kinect2.

David-dp- avatar David-dp- commented on August 17, 2024

After doing this...

C:\Users\david\node_modules\kinect2\examples\skeletons-browser>node index.js
Server listening on port 8000
Point your browser to http://localhost:8000
[Kinect2] Created NodeKinect Instance
[Kinect2] Open
[Kinect2] OpenBodyReader

...I point Chrome v39 (running on same host) to http://localhost:8000/ The sensor's white and red lights come on, but the Chrome view remains blank white. Page source shows complete-looking markup, but I don't see a way to probe what's (not) happening via Dev Tools.

So, at a node prompt, I tried entering each step of index.js. After defining the imports, creating the kinect obj fails this way:

... io = require('socket.io').listen(server);
undefined

var kinect = new Kinect2();
TypeError: Cannot call method 'assign' of undefined
at new Kinect2 (C:\Users\david\node_modules\kinect2\kinect2.js:16:33)
at repl:1:14
at REPLServer.self.eval (repl.js:110:21)
at repl.js:249:20
at REPLServer.self.eval (repl.js:122:7)
at Interface. (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)

node --version is v0.10.26

Upgrading to v0.10.35 (current) made no difference, but also got warnings about the desired versions of 'semver' and 'graceful-fs' not being present, and upgrading resulted in other warnings.

from kinect2.

wouterverweirder avatar wouterverweirder commented on August 17, 2024

This error would indicate that lodash (dependency of my library) isn't working. Can you find the lodash directory inside the npm_modules directory? (normally within node_modules/kinect2/node_modules)

from kinect2.

David-dp- avatar David-dp- commented on August 17, 2024

Here are the results of my unsuccessful investigation, formatted so it would be easy for you to copy/paste any part of it into your docs if you wanted...

  1. Download and install node. For Win8.1 Pro 64bit use http://nodejs.org/dist/v0.10.29/x64/node-v0.10.29-x64.msi because otherwise you get ENOENT errors when npm tries to create folders even if you're using an admin cmd (e.g. with current v0.10.35).

  2. Ctrl+Q and enter "node.js command prompt". There seems no need to run as admin.

  3. 'cd' to the folder where your project will be developed.

  4. If you want to ensure that this installation of the kinect2 and its supporting modules (i.e., edge and lodash) don't conflict with versions that your other node projects might depend on, then make sure you don't have a C:\Users[yourUserId]\node_modules\ folderpath.

  5. Enter "npm install kinect2". Verify that cmd shows:

    Success: platform check for edge.js: node.js x64 v0.10.29
    [email protected] node_modules\kinect2
    ├── [email protected]
    └── [email protected] ([email protected])

If the folderpath isn't exactly "node_modules\kinect2" like above, then it was installed on whatever folderpath is indicated and the following steps probably won't work for you.

  1. Verify it works by trying the skeleton-browser example:

    Make sure your Kinect is fully connected to power and to a USB3 port on your PC
    cd node_modules\kinect2\examples\skeleton-browser
    npm install
    node index.js
    Point your browser to localhost:8000
    Make sure your Kinect has an unoccluded view of someone and ask them to wave. The browser page should show red circles on most joints as they move.

    =========PROBLEM> The page remains blank for me.

  2. Troubleshooting
    7.1. Are you sure your Kinect is properly connected to power and PC? White and red lights are visible from its front when it's recording.
    7.2. Right-click in the page and select "view source". Does it match the contents of public\index.html under the skeleton-browser folderpath?
    7.3. Edit index.js by placing
    console.log('test bodies: '+ bodies +' type: '+ typeof(bodies));
    in the kinect.on callback, then repeat step 6 above.

    =========PROBLEM> I see "test bodies: type: object" printed about once a second. Why is the object empty?

7.3. In cmd with skeleton-browser as the working dir, run node and paste each statement from index.js.

=========PROBLEM> When I enter "var kinect = new Kinect2()", I get
TypeError: Cannot call method 'assign' of undefined at new Kinect2 (C:\Users[...]\node_modules\kinect2\kinect2.js:16:33)
Here, 'assign' is a method of '_', which should have been defined when 'kinect2' was require'd because it in turn require's lodash.
I verified that starting from skeleton-browser, the lodash folder at ....\node_modules\lodash seems to have all its proper contents.

END

from kinect2.

David-dp- avatar David-dp- commented on August 17, 2024

This seems to indicate something's wrong with skeleton-tracking in my Kinect binaries...

Ctrl+Q and enter "sdk browser v2.0 (kinect for windows)". Install and run "Body Basics-WPF". It should show a skeleton corresponding to the person moving in front of the sensor.

=========PROBLEM> It appears blank black for me, but the Color and Depth demos work fine.

from kinect2.

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.