MyRobotLab / myrobotlab

Open Source Java Framework for Robotics and Creative Machine Control
Apache License 2.0
226 stars 108 forks source link

openNI, shows no image, only depth. My cam is working for both with Processing. #75

Open Calamity01 opened 7 years ago

Calamity01 commented 7 years ago

The OpenNi service can manage rbg images, but currently it's not enable as it is not needed for the usage it have been used (skeleton tracking).

try OpenNi.enableRBG(true) and the getData() method will probably return the image (I did not test if it work)

ghost commented 7 years ago

it's more an issue with the gui. it offers an image butten but does not show anything. I first thought my cam was broken.

ghost commented 7 years ago

do you know how I can access the depth data im my own python code? e.g. openNI = Runtime.createAndStart("openNI","openNI")

def myDepthView: openNI.getData() ?? but how can I access the data.depthMap array?

Calamity01 commented 7 years ago

when OpenNi is active, it will internally call getData() so you don't have to use that method

getData will publishOpenNIData so you need to subscribe to that method.

the data returned on the publish event is a data class. You can see the detail here https://github.com/MyRobotLab/myrobotlab/blob/master/src/org/myrobotlab/openni/OpenNiData.java some data may be null if they are not computed

Le ven. 12 mai 2017 à 05:55, juergmaier notifications@github.com a écrit :

do you know how I can access the depth data im my own python code? e.g. openNI = Runtime.createAndStart("openNI","openNI")

def myDepthView: openNI.getData() ?? but how can I access the data.depthMap array?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MyRobotLab/myrobotlab/issues/75#issuecomment-301035737, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ8xSHUqmIQo_xmMnLzvDzJMPo3d5Kyzks5r5CyrgaJpZM4NYoU2 .

supertick commented 7 years ago

not required for Manticore release - dropping from project board