Comments (22)
Following up as this is an issue for a lot of other depth camera libraries:
See the discussion here: IntelRealSense/librealsense#11815
The TLDR:
- Starting in macOS 12 UVC cameras need
sudo
if they are opened via libuvc. - This is because using libuvc bypasses Apple's requirement of showing a popup to access a camera ( see: libuvc/libuvc#194 )
- To get round this you can create an empty video class extension with the vid and pid of the product, this prevents Apple locking the device and requiring sudo: https://developer.apple.com/documentation/coremediaio/overriding_the_default_usb_video_class_extension?language=objc
Reopening, as this will probably affect all supported Orbbec cameras on macOS.
from orbbecsdk.
Femto Mega does not support MacOS,MacOS only support Gemini 2 L、Astra 2、Gemini 2 device.
from orbbecsdk.
from orbbecsdk.
Going to close - but would absolutely love if you could get at least network access to Femto Mega working on macOS in the future 😁🙏
from orbbecsdk.
Hey, I am having the same issue with Astra Stereo SU3. What could be the problem?
from orbbecsdk.
I think this might be due to macOS already locking the UVC device, so the SDK cannot open the stream again.. Any thoughts?
from orbbecsdk.
Hey, I am having the same issue with Astra Stereo SU3. What could be the problem?
This is a permission issue. You can use sudo to open the device with administrator privileges.
from orbbecsdk.
from orbbecsdk.
@henriquenunez - was your solution to run the example with sudo
, or did you do something else?
from orbbecsdk.
from orbbecsdk.
@ofTheo It is expected that by January 30, 2024, FemtoMega will support mac OS and support both USB and network functions
from orbbecsdk.
@ofTheo It is expected that by January 30, 2024, FemtoMega will support mac OS and support both USB and network functions
We are resolving the issue, may be January 30, 2024 support mac OS.
from orbbecsdk.
Wow!! That's wonderful news @xcy2011sky @zhonghong322
Super excited for this - going to be incredible for our community. 🎉🙏
from orbbecsdk.
@ofTheo
The latest SDK version 1.9.3 has been released. The camera models FemtoMega, Gemini2, Gemini2L, and Astra2 are all now supported on the MacOS system.
from orbbecsdk.
@ofTheo https://github.com/orbbec/OrbbecSDK/releases/tag/v1.9.3, The OrbbecViewer tool, which supports Mac, will be released very soon.
from orbbecsdk.
@zhonghong322 - awesome to hear about the OrbbecViewer tool.
Can confirm USB 3.2 works on macOS but does require sudo to launch.
( This would be amazing to solve ) but I can take a look too.
from orbbecsdk.
update: it does seem the USB / sudo situation is fairly flakey on macOS.
I got it working a couple of times, but then other times it just hangs after listing the device.
DesignIO2023:bin theo$ sudo TrackerDev.app/Contents/MacOS/TrackerDev
2024-01-19 15:42:26.884 TrackerDev[43718:12163482] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
[warning] ofPixels: setting color not supported yet for UNKOWN format
[01/19 15:42:26.998128][info][12163482][Context.cpp:67] Context created with config: default config!
[01/19 15:42:26.998146][info][12163482][Context.cpp:72] Context work_dir=/users/me/TrackerDev/bin/TrackerDev.app/Contents/Resources
[01/19 15:42:27.000860][info][12163482][MacPal.cpp:104] Create PollingDeviceWatcher!
[01/19 15:42:27.000869][info][12163482][DeviceManager.cpp:15] Current found device(s): (1)
[01/19 15:42:27.000870][info][12163482][DeviceManager.cpp:24] - Name: Femto Mega, PID: 0x0669, SN/ID: CL2AA31003T, Connection: USB3.2
not sure if this is the macOS sudo issue or something else
from orbbecsdk.
@ofTheo Have you connected the external power adapter to ensure stable power supply? If the power supply is stable, the power indicator on the back of the Femto Mega should be white.
from orbbecsdk.
@ofTheo We have updated to OrbbecSDK version 1.9.4, and the OrbbecViewer tool now supports MacOS. https://github.com/orbbec/OrbbecSDK/releases/tag/v1.9.4
from orbbecsdk.
Thanks @zhonghong322 - I did give the Orbbec Viewer a try on macOS and it requires a lot of steps to even get the application open.
1 - I first had to expliately allow OrbbecViewer to be run as a non signed app via Security System Preferences.
2 - Then for each dylib it was trying to load I had to explicitly approve it via the same section in System Preferences. Each time this causes the app to crash so I had to run the app as many times as there was dylib ( 10+ times ).
3 - Then I had to launch the app with Sudo.
Here you can see the permissions I had to give to each dylib
Once I did all above and running with sudo I get a hang after listing the device:
DesignIO2023:OrbbecViewer_v1.9.4_202401301118_macos_arm64_release theo$ sudo ./OrbbecViewer
Password:
2024-02-06 15:01:26.673 INFO [17124546] [loggerInit@18] **********************************************
2024-02-06 15:01:26.673 INFO [17124546] [loggerInit@19] OrbbecViewer launched! Welcome!!
2024-02-06 15:01:26.673 INFO [17124546] [loggerInit@20] - Version: V1.9.4
2024-02-06 15:01:26.673 INFO [17124546] [loggerInit@21] - Author:
2024-02-06 15:01:26.673 INFO [17124546] [loggerInit@22] - E-Mail:
2024-02-06 15:01:26.673 INFO [17124546] [loggerInit@23] - Company: orbbec
2024-02-06 15:01:26.673 INFO [17124546] [loggerInit@24] - Website: http://www.orbbec.com.cn/
2024-02-06 15:01:26.673 INFO [17124546] [loggerInit@25] **********************************************
2024-02-06 15:01:26.811 INFO [17124546] [IWindow::IWindow@133] Init glfw down!
[02/06 15:01:26.817745][info][17124546][Context.cpp:69] Context created with config: /Users/theo/Downloads/OrbbecViewer_v1.9.4_202401301118_macos_arm64_release/OrbbecSDKConfig_v1.0.xml
[02/06 15:01:26.817770][info][17124546][Context.cpp:74] Context work_dir=/Users/theo/Downloads/OrbbecViewer_v1.9.4_202401301118_macos_arm64_release
[02/06 15:01:26.817776][info][17124546][Context.cpp:77] - SDK version: 1.9.4
[02/06 15:01:26.817781][info][17124546][Context.cpp:78] - SDK stage version: main
[02/06 15:01:26.817787][info][17124546][Context.cpp:82] get config EnumerateNetDevice:false
[02/06 15:01:26.817795][info][17124546][MacPal.cpp:36] createObPal: create MacPal!
[02/06 15:01:26.822145][info][17124546][MacPal.cpp:104] Create PollingDeviceWatcher!
[02/06 15:01:26.822164][info][17124546][DeviceManager.cpp:15] Current found device(s): (1)
[02/06 15:01:26.822168][info][17124546][DeviceManager.cpp:24] - Name: Femto Mega, PID: 0x0669, SN/ID: CL2AA31003T, Connection: USB3.2
If I have the Femto Mega disconnected before launching the app the app opens as expected, but then hangs as soon as I connect the Femto Mega.
For 1) and 2) I think this could be solved by bundling the dylibs in an App Bundle and getting it Signed and Notarized as a typical Mac App.
For 3) Does the Mega need the latest firmware? I still have the firmware from when it shipped.
from orbbecsdk.
@ofTheo
I hope to communicate with you about the use experience of FemtoBolt. Could you please give me an email address? Or you can contact me directly.My email [email protected];
from orbbecsdk.
I'm following this thread with interest as I would be very keen to have an Orbbec running native to Mac OS. I currently employ an Azure Kinect talking to a Windows GTX 1080 laptop running Kinect SDK in Unity and then send data to an M3 Max Mac over UDP. This works for skeleton data, but I'd love to be able to send video and point cloud data like this - which doesn't seem possible with this setup. On the Mac I am picking up the data in Processing 4.3 (Apple Silicon). Note the latest Mac OS upgrade 14.4.1 seems to have totally broken USB camera input, so not sure if that would represent a further barrier to getting an Orbbec to work with a Mac. I'm having to use Continuity camera to get video input to correlate to the Kinect skeleton data (not a sustainable solution).
from orbbecsdk.
Related Issues (20)
- RGB image exposure time and gain HOT 3
- Frame index abnormal warnings on Femto Mega with ethernet HOT 5
- API Docs result in 404 error HOT 2
- Orbbec Viewer Crash if another Camera is in Network HOT 1
- How to know Gemini E parameters? HOT 6
- Femto Bolt: Crash after "got nvram data failed.retrying..." HOT 3
- Femto Bolt: Crash after "Process frame failed!" HOT 2
- Femto Bolt: Failed to load depth engine plugin HOT 1
- OrbbecViewer_v1.9.5 fails to startup when (10) Femto Bolt sensors are connected to the host PC HOT 2
- Static release OrbbecSDK/lib HOT 2
- retCode: 204 using Raspberry pi 4 / Raspberry pi 5 with Orbbec Bold HOT 2
- Does Femto Bolt support Ubuntu 22.04 ? HOT 2
- Is 2bc5:0404 still well supported by recent release 1.9.5? HOT 1
- depth to color space mapping problem HOT 1
- Playback control (pause, resume, frame by frame) HOT 1
- Unity Wrapper Support? HOT 7
- Gemini 2XL [35472][ObRTPSink.cpp:320] Drop output-frame to receive new frame due to reclaimed-frame queue is empty HOT 2
- Windows 10/11 problems using OrbbecUnitySDK after building HOT 5
- Firmware update failure on macOS, device is unresponsive HOT 3
- Help, Question aboult timestamp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orbbecsdk.