-
Notifications
You must be signed in to change notification settings - Fork 227
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
Person segmentation not being recorded #126
Comments
The reason you don't see the segmentation is because currently Apple doesn't expose an API for getting the rendered image from an ARSCNView. The way ARVideoKit works around this limitation is using an offscreen SCNRenderer, (leveraging the ARSCNView to access the scene graph) and the ARKit callback that provides the raw image from the camera. to the composite the rendered 3D assets and with the raw image. When using an offscreen renderer in this way, its not accounting for any image manipulation that is done for segmentation. To achieve the segmentation there are a couple different ways, either by modifying ARVideoKit or using its output. Modifying the library to handle the segmentation would be the most efficient way, but would require you to a bit more effort to make it flexible enough to fqualify for a PR to the library (vs. coding just what you need). So I'll leave that up to you. If you want to modify the image using the output from ARVideoKit, then you need use the raw image (from ARKit), the
|
@digitallysavvy Any updates regarding this functionality? Seems like a high demand functionality for this library so hoping there is some good news 🙌 |
I'm not actively working on this feature, my comment was meant to provide enough context to allow any developer looking for this feature in their app to help the community and extend the library. |
Hi all,
First of all, thanks for this amazing library! I'm trying to record an ARSCNView that is configured with personSegmentation:
if ARFaceTrackingConfiguration.supportsFrameSemantics(.personSegmentation) { config.frameSemantics.insert(.personSegmentation) }
but it doesn't seem to record actually the segmented output that I see in the liveview.
What can be the cause?
The text was updated successfully, but these errors were encountered: