MAUIverse MAUIverse

Image Detection in .NET MAUI on iOS

Once ARKit recognizes an image in a scene, you can augment or replace it. David Britch shows how to set up image detection in a .NET MAUI iOS app and highlight the detected image with an overlay that reorients itself as the image moves.

What you’ll learn

  • Declaring reference images — adding AR Reference Images to an AR Resource Group in the asset catalog, including multiple images
  • Handling image anchors — using an ARSCNViewDelegate and DidAddNode to respond when an ARImageAnchor is detected
  • Overlaying content — creating a semi-transparent PlaneNode sized to the detected image and orienting it correctly
  • Configuring the session — loading detection images and setting them on an ARWorldTrackingConfiguration

Read the full post for the complete handler and delegate code, and note you’ll need a physical iPhone to run ARKit.

View Source →

← Back to Community Feed

}