olexale / arkit_flutter_plugin

ARKit Flutter Plugin
MIT License
797 stars 225 forks source link

referenceImageName is null upon image detection #84

Closed James-A-White closed 3 years ago

James-A-White commented 4 years ago

Hey!

Thanks again for the great ARKit package!

I think I found a bug that makes multiple image detection very challenging to implement when using network images. For the ARKitReferenceImage, I can only pass in a name and a width parameter. Since I'm using network image detection the name I'm passing is a URL (see image below).

image

When the image is detected, the referenceImageName parameter is null, leaving me no way to determine which image has been detected (see screenshot below).

image

When I upload images into the XCode file directly and give them a name there, the name is properly passed back in the referenceImageName parameter.

Is this a bug or a limitation of Apple's ARKit software?

Thanks!

olexale commented 4 years ago

Hi! This issue should be already fixed in 0.5.2. Could you please check the dev build?

You may do this by changing the dependency to:

dependencies:
  arkit_plugin:
    git: git://github.com/olexale/arkit_flutter_plugin.git

Thanks in advance! Oleksandr