Items with no label
Ankündigungen
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
3338 Diskussionen

RealSense on macOS with Python

KK7
Einsteiger
7.059Aufrufe

I'm new to RealSense. I'd like to develop some application by using SR300. I use macOS (10.12.2) and I'd like to use Python for the development. Is it possible to use RealSense on Mac by using Python? There are very few information on the web and I couldn't judge based on that information.

0 Kudos
8 Antworten
MartyG
Geehrter Beitragender III
3.421Aufrufe

Librealsense, the open-source SDK for RealSense cameras, has Python integration according to its download page.

https://github.com/IntelRealSense/librealsense GitHub - IntelRealSense/librealsense: Cross-platform camera capture for Intel® RealSense™ F200, SR300 and R200

KK7
Einsteiger
3.421Aufrufe

Thank you. Is it the only choice? Above link leads to pyrealsense library, which supports Ubuntu but not tested on macOS.

https://github.com/toinsson/pyrealsense GitHub - toinsson/pyrealsense: Simple ctypes extension to the librealsense library.

MartyG
Geehrter Beitragender III
3.421Aufrufe

It does look like Librealsense or OpenCV is the only choice for using the camera with Python, sadly. Extensive research only turned up references to using the cam with these software packages.

This guide to using RealSense with OpenCV was the most useful link I came across.

http://www.samontab.com/web/2016/04/interfacing-intel-realsense-f200-with-opencv/ Interfacing Intel RealSense F200 with OpenCV – Sebastian Montabone

MMich26
Einsteiger
3.421Aufrufe

I tried working with librealsense and OpenCV and could not maintain a connection using Ubuntu. I then tried Ubilinux, which proved equally as difficult and caused a lot of headaches from various OpenGL errors. I never got around to trying it on macOS, but it would probably be somewhat difficult

KK7
Einsteiger
3.421Aufrufe

Thank you MartyG and michael5486. I found that VirtualBoxVM (5.0.30) now supports USB3.0, so we could use librealsense and pyrealsense on Ubuntu 16.04 LTS via VM to run RealSense.

MMich26
Einsteiger
3.421Aufrufe

I tried with VMware, no luck. Something about the USB abstraction layer not allowing for proper usage. My RealSense R200 would not show up as a device on the Ubuntu VM. But maybe VirtualBox is different!

KK7
Einsteiger
3.421Aufrufe

Yes, it was very tricky. Firstly, you need to install extension pack, then need to add usb 3.0 port manually.

http://askubuntu.com/questions/678574/how-can-i-fix-a-usb-3-0-issue-in-a-ubuntu-14-04-virtualbox-vm macosx - How can I fix a USB 3.0 Issue in a Ubuntu 14.04 VirtualBox VM - Ask Ubuntu

http://www.htpcbeginner.com/install-virtualbox-extension-pack-on-linux-windows/ Install VirtualBox Extension Pack on Linux and Windows

After that, you need to select "Intel(R) RealSense(TM) Camera SR300 [XXXX]" from top menu under "Device" >> "USB".

MMich26
Einsteiger
3.421Aufrufe

Oh, that's good to know, thanks! Good luck.

Antworten