Skip to content

Conversation

@vlad0209
Copy link
Contributor

This pull request introduces logic to handle a large number of detection images during ARKit view initialization by batching them to avoid overloading the AR session. The main change is the addition of a batching mechanism that processes detection images in groups of up to 100, running each batch sequentially with a delay, which improves stability and reliability when initializing with many images.

ARKit image detection batching:

  • Added logic to check if the number of detection images exceeds 100 in the FlutterArkitView initialization; if so, splits images into batches of 100 and processes them sequentially to prevent ARKit session overload.
  • Implemented the runImageDetectionBatches private method to handle running each batch, updating the configuration and AR session for each, and scheduling the next batch with a delay to comply with Apple’s recommended behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant