marek-simonik / record3d

Accompanying library for the Record3D iOS app (https://record3d.app/). Allows you to receive RGBD stream from iOS devices with TrueDepth camera(s).
https://record3d.app/
GNU Lesser General Public License v2.1
379 stars 55 forks source link

Launch start stream command from terminal #49

Closed mattiazuffanelli closed 1 year ago

mattiazuffanelli commented 1 year ago

Hi, I need to open the app and run the stream command from the terminal (iphone 13pro wired connected to my mac). Is there something in the library (command/examples) I could use?

Thanks a lot, Mattia

marek-simonik commented 1 year ago

Hi Mattia,

it sounds like you'd like to be able to programmatically (using this library) open the Record3D iOS app on your iPhone/iPad and start the stream, but I'm not sure if I understood your question correctly. If you'd like to do what I wrote in the previous sentence, then that is not possible (at least not with a non-jailbroken iDevice).

In order to receive RGBD live stream from your iPhone, you always need to have the Record3D iOS app open and tap the red circular button to make your iDevice ready to start streaming.

For example, if you'd like to run the Python live streaming demo, then this is what you should do:

  1. Connect your iPhone/iPad to your computer via the USB cable and open the Record3D iOS app.
  2. Go to the Settings tab, change the "Live RGBD Video Streaming" option to "USB" and switch back to the Record tab.
  3. Tap the red circular button to make your iDevice ready for streaming.
  4. On your computer: make sure you have installed the record3d library as described here and then run the Python demo demo-main.py (this assumes you have only one iPhone/iPad connected to your computer).

In general, I recommend checking out how the Python demo-main.py sample script looks like to learn how to use the library. If you are interested in a C++ demo, see DemoMain.cpp.

In case I misunderstood your question, please let me know.

~Marek

marek-simonik commented 1 year ago

This issue has been inactive for some time, so I'm assuming you were able to get the demo running. Feel free to reopen this issue if you need help.