Tinker Board Forum

Full Version: Problem with Microsoft Kinect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I tried hard to start working with Kinect and ASUS Tinker Board, because i'm creating some projects with ROS,  but i can't. Image from RGB camera or depth sensor is not possible. No matter which package I'm using kinect isn't working. For example when i try to use freenect-glview i've got:

Code:
linaro@linaro-alip:~$ freenect-glview
Kinect camera test
Number of devices found: 1
GL thread
[Stream 70] Negotiated packet size 1920
write_register: 0x0105 <= 0x00
write_register: 0x0006 <= 0x00
write_register: 0x0012 <= 0x03
write_register: 0x0013 <= 0x01
write_register: 0x0014 <= 0x1e
write_register: 0x0006 <= 0x02
write_register: 0x0017 <= 0x00
[Stream 80] Negotiated packet size 1920
write_register: 0x000c <= 0x00
write_register: 0x000d <= 0x01
write_register: 0x000e <= 0x1e
write_register: 0x0005 <= 0x01
write_register: 0x0047 <= 0x00
'w' - tilt up, 's' - level, 'x' - tilt down, '0'-'6' - select LED mode, '+' & '-' - change IR intensity
'f' - change video format, 'm' - mirror video, 'o' - rotate video with accelerometer
'e' - auto exposure, 'b' - white balance, 'r' - raw color, 'n' - near mode (K4W only)
raw acceleration:   19  843   12  mks acceleration: 0.227505 10.094024 0.1436876
 
and of course black space in window where i should see an image from camera, but i can move motor and change kolor of LED.

Code:
lsusb

gives me the same output as odther device which are able to use with kinect:

Code:
linaro@linaro-alip:~$ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 014: ID 0461:4d0f Primax Electronics, Ltd HP Optical Mouse
Bus 001 Device 003: ID 04d9:1702 Holtek Semiconductor, Inc. Keyboard LKS02
Bus 001 Device 012: ID 045e:02ae Microsoft Corp. Xbox NUI Camera
Bus 001 Device 010: ID 045e:02b0 Microsoft Corp. Xbox NUI Motor
Bus 001 Device 011: ID 045e:02ad Microsoft Corp. Xbox NUI Audio
Bus 001 Device 009: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0bda:481a Realtek Semiconductor Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

as we can see all 3 components of kinect are recognizable, so theoretically everything is fine  Huh 

I don't have any idea why it works with Ubuntu/Laptop, Ubuntu/RPi, and it dosn't work with Debian/TinkerBoard Ubuntu/TinkerBoard ( i check in both case). 


I would be grateful for your help  Smile 

Greetings,
Hubert.
Problem concerns not only Kinect, but also other USB cams, I checked few in cheese and if resolution is bigger then 640x480 image looks like 5-10 FPS. When I tried to use usb_cam package from ROS, and set up 640x480 10 FPS everything is fine (slow, but works), but if I set up >=10 FPS with the same resolution I will get after few seconds:

[ERROR] select timeout
(09-25-2017, 03:51 PM)hubert4242 Wrote: [ -> ]Problem concerns not only Kinect, but also other USB cams, I checked few in cheese and if resolution is bigger then 640x480 image looks like 5-10 FPS. When I tried to use usb_cam package from ROS, and set up 640x480 10 FPS everything is fine (slow, but works), but if I set up >=10 FPS with the same resolution I will get after few seconds:

[ERROR] select timeout

May I know your image version ?
I'm using TinkerOS-Debian from https://www.asus.com/us/Single-Board-Com...ker-Board/
More precisely:
20170417-tinker-board-linaro-stretch-alip-v1.8.img

Models of camera:
-Microsoft LifeCam HD-3000
-1.0 megapixel CMOS OV9712 H.264 (no name)

Just try to use "cheese" with bigger resolution and you will see what I mean. I need this board to use with ROS and with this defect using for example package find_object_2d is almost impossible Sad
(09-28-2017, 12:10 PM)hubert4242 Wrote: [ -> ]I'm using TinkerOS-Debian from https://www.asus.com/us/Single-Board-Com...ker-Board/
More precisely:
20170417-tinker-board-linaro-stretch-alip-v1.8.img

Models of camera:
-Microsoft LifeCam HD-3000
-1.0 megapixel CMOS OV9712 H.264 (no name)

Just try to use "cheese" with bigger resolution and you will see what I mean. I need this board to use with ROS and with this defect using for example package find_object_2d is almost impossible Sad

I am not sure if the following cmd can meet your requirement or not.
1. update the image to Beta V2.0.1
2. use the following cmd to start camera preview
    $ gst-launch-1.0 v4l2src device=/dev/video0 ! mppvideodec ! rkximagesink

This cmd will use GPU to draw the preview instead of using CPU.
Now both cams are working perfectly fine. Thank you very much!!! I have to check my Kinect now Smile
Hello everyone.

I know that it took me a lot of time but I have already checked Kinect on newest image and it still doesn't working :confused: Everything is like before update. I can run motor and change LED colors but access to RGB camera or depth sensor image is not possible. For remind you, I have try it with freenect package. Maybe someone else may try to use Kinect with Tinker Board? I'm waiting for your help.
(10-04-2017, 11:17 AM)hubert4242 Wrote: [ -> ]Hello everyone.

I know that it took me a lot of time but I have already checked Kinect on newest image and it still doesn't working :confused: Everything is like before update. I can run motor and change LED colors but access to RGB camera or depth sensor image is not possible. For remind you, I have try it with freenect package. Maybe someone else may try to use Kinect with Tinker Board? I'm waiting for your help.

Hi hubert
    Let me confirm your question again, ensure that I did not mis-understanding.
    Now you can use the other usb cams successfully with the v2.0.1 image and with the following command which I provided.
    (gst-launch-1.0 v4l2src device=/dev/video0 ! mppvideodec ! rkximagesink)
    But the Kinect still can not work, right ?
    If yes, may I know the command you used for Kinect ? and what is your expectation of the result ?
I'm also having trouble getting my Kinect V1 to display depth data. I've tried the official TinkerOS, Armbian, and Elar's Lubuntu images. I'm using libfreenect's Python wrapper ( https://github.com/OpenKinect/libfreenect ) in a Python project, but the device isn't sending any depth/rgb data. It only sends body data.

The same Python project runs fine on both the Raspberry Pi Model 3 and the Pine A64+ 2GB.
@jamess you understand me properly. I simply run freenect-glview and I expecting to see view like on every other linux device which I have tried before.
Pages: 1 2 3