Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💭 How can I access iOS TrueDepth Camera? #2605

Closed
3 of 4 tasks
giannavia opened this issue Feb 25, 2024 · 1 comment
Closed
3 of 4 tasks

💭 How can I access iOS TrueDepth Camera? #2605

giannavia opened this issue Feb 25, 2024 · 1 comment
Labels
💭 question Further information is requested

Comments

@giannavia
Copy link

Question

I've got an iphone 14 and I trying to use TrueDepth Camera to check how an object is.

Probably this is the wrong approach but this is what I did:

  1. I called useCameraDevices() and got a list of devices.
  2. Filtered out deviced which "isMultiCam" is false
  3. The list devices ends up with a single element
  4. I picked a format which "supportsDepthCapture" is true

This is what my camera element looks like:

<Camera
style={{ width: '100%', aspectRatio: 16 / 9 }}
device={trueDepthCamera}
format={trueDepthCameraFormat}
isActive={isCameraActive && isFocused}
enableDepthData={true}
ref={camera}
/>

However, I can't find any depth data. I've added a Frame Processor Plugin as well and still couldn't see any depth data.

Can you guys help me here ?

What I tried

No response

VisionCamera Version

"react-native-vision-camera": "^3.9.0",

Additional information

@giannavia giannavia added the 💭 question Further information is requested label Feb 25, 2024
@mrousavy
Copy link
Owner

mrousavy commented Mar 4, 2024

See this feature request: #2628

@mrousavy mrousavy closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants