wtfuzz / leapuvc

Leap motion raw video using libuvc
7 stars 2 forks source link

How is this used? #1

Open parkerlreed opened 6 years ago

parkerlreed commented 6 years ago

I got opencv2 installed and after changing the paths in build.sh to remove local, it compiled fine.

When I run main I get his

[parker@archlinux leapuvc]$ ./main

(i:6179): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(i:6179): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
attempt to claim already-claimed interface 1
DEVICE CONFIGURATION (f182:0003/[none]) ---
Status: streaming
VideoControl:
        bcdUVC: 0x0100
VideoStreaming(1):
        bEndpointAddress: 131
        Formats:
        UncompressedFormat(1)
                  bits per pixel: 16
                  GUID: 5955593200001000800000aa00389b71 (YUY2)
                  default frame: 4
                  aspect ratio: 0x0
                  interlace flags: 00
                  copy protect: 00
                        FrameDescriptor(1)
                          capabilities: 00
                          size: 640x480
                          bit rate: 282624000-282624000
                          max frame size: 614400
                          default interval: 1/57
                          interval[0]: 1/57
                        FrameDescriptor(2)
                          capabilities: 00
                          size: 640x240
                          bit rate: 282624000-282624000
                          max frame size: 307200
                          default interval: 1/115
                          interval[0]: 1/115
                        FrameDescriptor(3)
                          capabilities: 00
                          size: 640x120
                          bit rate: 262963200-262963200
                          max frame size: 153600
                          default interval: 1/214
                          interval[0]: 1/214
                        FrameDescriptor(4)
                          capabilities: 00
                          size: 752x480
                          bit rate: 288768000-288768000
                          max frame size: 721920
                          default interval: 1/50
                          interval[0]: 1/50
                        FrameDescriptor(5)
                          capabilities: 00
                          size: 752x240
                          bit rate: 288768000-288768000
                          max frame size: 360960
                          default interval: 1/100
                          interval[0]: 1/100
                        FrameDescriptor(6)
                          capabilities: 00
                          size: 752x120
                          bit rate: 274329600-274329600
                          max frame size: 180480
                          default interval: 1/190
                          interval[0]: 1/190
END DEVICE CONFIGURATION

And then this window

screenshot_20180226_135129

But nothing else after that.

wtfuzz commented 6 years ago

This code is very experimental. I just tried it on an Ubuntu 17 system, and it's having issues with opencv, but I can verify that raw frames are being delivered from the cameras.

You should get some additional opencv highgui windows that show the left and right images from the leap through a canny edge detector.

What are you trying to accomplish?

parkerlreed commented 6 years ago

Just wanted to view the stream. Nothing particular in mind. Yeah the i is the only window that opens here.