5 Replies
      Latest reply on Sep 10, 2018 8:06 PM by 4k4
      Koos Korver Level 1 Level 1 (0 points)

        I would like to load my detectionImages from dropbox. The route I've chosen is to load the image using CGImageCreate and then change it to an ARReferenceImage with initWithCGImage.


        I add the ARReferenceImage to a NSMutableSet<ARReferenceImage *>


        When I assign this set to configuration.detectionImages it fails to recognize the images.


        When I store the same images in Assets.xcassets and load them with referenceImagesInGroupNamed then they do get recognized and it all works fine.


        The documentation states that xcode does some preprocessing to the images. I suspect that this is what would be missing when I load the images on the fly.

        But then I wonder what is the use of having the option to generate an ARReferenceImage with initWithCGImage.


        Can someone point me in the right direction?